@wavemaker/app-ng-runtime 12.0.0-next.45096 → 12.0.0-next.45099

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/data/table/src/table.props.ts","../../../../../projects/components/widgets/data/table/src/table.component.html","../../../../../projects/components/widgets/data/table/src/table.component.ts","../../../../../projects/components/widgets/data/table/src/table-cud.directive.ts","../../../../../projects/components/widgets/data/table/src/table-filter.directive.ts","../../../../../projects/components/widgets/data/table/src/table-action/table-action.props.ts","../../../../../projects/components/widgets/data/table/src/table-action/table-action.directive.ts","../../../../../projects/components/widgets/data/table/src/table-column/table-column.props.ts","../../../../../projects/components/widgets/data/table/src/table-column-group/table-column-group.props.ts","../../../../../projects/components/widgets/data/table/src/table-column-group/table-column-group.directive.ts","../../../../../projects/components/widgets/data/table/src/table-column/table-column.directive.ts","../../../../../projects/components/widgets/data/table/src/table-row/table-row.props.ts","../../../../../projects/components/widgets/data/table/src/table-row/table-row.directive.ts","../../../../../projects/components/widgets/data/table/src/table-row-action/table-row-action.props.ts","../../../../../projects/components/widgets/data/table/src/table-row-action/table-row-action.directive.ts","../../../../../projects/components/widgets/data/table/src/table.module.ts","../../../../../projects/components/widgets/data/table/src/index.ts"],"sourcesContent":["import { PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-table',\n new Map(\n [\n ['boundarylinks', {value: false, ...PROP_BOOLEAN}],\n ['class', PROP_STRING],\n ['confirmdelete', {value: 'Are you sure you want to delete this?', ...PROP_STRING}],\n ['datasource', PROP_STRING],\n ['dataset', PROP_ANY],\n ['deletecanceltext', PROP_STRING],\n ['deleteoktext', PROP_STRING],\n ['deletemessage', {value: 'Record deleted successfully', ...PROP_STRING}],\n ['directionlinks', {value: true, ...PROP_BOOLEAN}],\n ['editmode', PROP_STRING],\n ['errorstyle', {value: 'hover', ...PROP_STRING}],\n ['enablecolumnselection', {value: false, ...PROP_BOOLEAN}],\n ['enablesort', {value: true, ...PROP_BOOLEAN}],\n ['errormessage', PROP_STRING],\n ['exportformat', PROP_STRING],\n ['exportdatasize', {value: 100, ...PROP_NUMBER}],\n ['filtermode', PROP_STRING],\n ['filteronkeypress', {value: false, ...PROP_BOOLEAN}],\n ['filternullrecords', {value: true, ...PROP_BOOLEAN}],\n ['forceellipses', {value: true, ...PROP_BOOLEAN}],\n ['formposition', PROP_STRING],\n ['gridclass', {value: 'table-hover', ...PROP_STRING}],\n ['gridfirstrowselect', PROP_BOOLEAN],\n ['iconclass', PROP_STRING],\n ['insertmessage', {value: 'Record added successfully', ...PROP_STRING}],\n ['isdynamictable', PROP_BOOLEAN], // internal property to determine dynamic table\n ['isrowexpansionenabled', PROP_BOOLEAN],\n ['loadingdatamsg', {value: 'Loading...', ...PROP_STRING}],\n ['loadingicon', {value: 'fa fa-circle-o-notch fa-spin', ...PROP_STRING}],\n ['maxsize', {value: 5, ...PROP_NUMBER}],\n ['multiselect', PROP_BOOLEAN],\n ['name', PROP_STRING],\n ['navigation', {value: 'Basic', ...PROP_STRING}],\n ['navigationalign', {value: 'left', ...PROP_STRING}],\n ['nodatamessage', {value: 'No data found.', ...PROP_STRING}],\n ['ondemandmessage', {value: 'Load More', ...PROP_STRING}],\n ['showviewlessbutton', {value: false, ...PROP_BOOLEAN}],\n ['viewlessmessage', {value: 'View Less', ...PROP_STRING}],\n ['pagesize', PROP_NUMBER],\n ['radioselect', PROP_BOOLEAN],\n ['rowclass', PROP_STRING],\n ['rowngclass', PROP_STRING],\n ['searchlabel', {value: 'Search', ...PROP_STRING}],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['showheader', {value: true, ...PROP_BOOLEAN}],\n ['shownewrow', {value: true, ...PROP_BOOLEAN}],\n ['showrecordcount', PROP_BOOLEAN],\n ['showrowindex', PROP_BOOLEAN],\n ['spacing', {value: 'normal', ...PROP_STRING}],\n ['statehandler', {value: 'none', ...PROP_STRING}],\n ['subheading', PROP_STRING],\n ['tabindex', {value: 0, ...PROP_NUMBER}],\n ['title', PROP_STRING],\n ['updatemessage', {value: 'Record updated successfully', ...PROP_STRING}]\n ]\n )\n );\n};\n","<div class=\"panel-heading\" *ngIf=\"title || subheading || iconclass || exportOptions.length || _actions.header.length\">\n <h3 class=\"panel-title\">\n <div class=\"pull-left\">\n <i class=\"app-icon panel-icon {{iconclass}}\" *ngIf=\"iconclass\"></i>\n </div>\n <div class=\"pull-left\">\n <div class=\"heading\" [innerHTML]=\"title\"></div>\n <div class=\"description\" [innerHTML]=\"subheading\"></div>\n </div>\n <div class=\"panel-actions app-datagrid-actions\" *ngIf=\"exportOptions.length || _actions.header.length\">\n <ng-container *ngFor=\"let btn of _actions.header; let index = index;\"\n [ngTemplateOutlet]=\"btn.widgetType === 'button' ? buttonRef : anchorRef\"\n [ngTemplateOutletContext]=\"{btn:btn}\"\n [ngTemplateOutletInjector]=\"createCustomInjector('actions_header_' + index, {btn:btn})\">\n </ng-container>\n <div wmMenu dropdown caption.bind=\"appLocale.LABEL_EXPORT\" *ngIf=\"exportOptions.length\" autoclose=\"always\" attr.name=\"{{name}}-export\"\n dataset.bind=\"exportOptions\" select.event=\"export($item)\" menuposition=\"down,left\"></div>\n </div>\n </h3>\n</div>\n<div class=\"app-datagrid\" #datagridElement></div>\n\n<div class=\"panel-footer clearfix\" [hidden]=\"!_actions.footer.length && (!shownavigation || (onDemandLoad && dataNavigator.isDisableNext) || dataNavigator?.dataSize <= pagesize)\">\n <div class=\"app-datagrid-paginator\" [hidden]=\"(!dataNavigator?.dataSize && !dataNavigator.datasource?.pagination?.next) || !shownavigation || (onDemandLoad && dataNavigator.isDisableNext) || dataNavigator?.dataSize <= pagesize\">\n <nav wmPagination show.bind=\"shownavigation\" navigationalign.bind=\"navigationalign\"\n navigationsize.bind=\"navigationSize\"\n navigation.bind=\"navControls\" showrecordcount.bind=\"showrecordcount\" maxsize.bind=\"maxsize\"\n boundarylinks.bind=\"boundarylinks\"\n forceellipses.bind=\"forceellipses\" directionlinks.bind=\"directionlinks\"></nav>\n </div>\n <div class=\"app-datagrid-actions\" *ngIf=\"_actions.footer.length\">\n <ng-container *ngFor=\"let btn of _actions.footer; let index = index;\"\n [ngTemplateOutlet]=\"btn.widgetType === 'button' ? buttonRef : anchorRef\"\n [ngTemplateOutletContext]=\"{btn:btn}\"\n [ngTemplateOutletInjector]=\"createCustomInjector('actions_footer_' + index, {btn:btn})\">\n </ng-container>\n </div>\n</div>\n\n<ng-template #buttonRef let-btn=\"btn\">\n <button wmButton caption.bind=\"btn.displayName\" show.bind=\"btn.show\" class.bind=\"btn.class\" iconclass.bind=\"btn.iconclass\" (click)=\"invokeActionEvent($event, btn.action)\"\n [ngClass]=\"{'btn-sm': spacing === 'condensed', 'disabled-new': btn.key === 'addNewRow' && (isGridEditMode || isLoading)}\"\n type=\"button\" shortcutkey.bind=\"btn.shortcutkey\" tabindex.bind=\"btn.tabindex\" hint.bind=\"btn.title\" [attr.aria-label]=\"btn.displayName\" disabled.bind=\"btn.disabled\" conditionalclass.bind=\"btn.conditionalclass\" conditionalstyle.bind=\"btn.conditionalstyle\"></button>\n</ng-template>\n\n<ng-template #anchorRef let-btn=\"btn\">\n <a wmAnchor caption.bind=\"btn.displayName\" show.bind=\"btn.show\" class.bind=\"btn.class\" iconclass.bind=\"btn.iconclass\" (click)=\"invokeActionEvent($event, btn.action)\"\n [ngClass]=\"{'btn-sm': spacing === 'condensed', 'disabled-new': btn.key === 'addNewRow' && (isGridEditMode || isLoading)}\"\n shortcutkey.bind=\"btn.shortcutkey\" tabindex.bind=\"btn.tabindex\" hint.bind=\"btn.title\"\n hyperlink.bind=\"btn.hyperlink\" target.bind=\"btn.target\" conditionalclass.bind=\"btn.conditionalclass\" conditionalstyle.bind=\"btn.conditionalstyle\"></a>\n</ng-template>\n\n<div hidden>\n <ng-container #multiColumnFilterView></ng-container>\n\n <ng-container #inlineEditView></ng-container>\n\n <ng-container #inlineEditNewView></ng-container>\n\n <ng-container #rowActionsView></ng-container>\n\n <ng-container #rowExpansionActionView></ng-container>\n\n <ng-container #customExprView></ng-container>\n\n <ng-container #dynamicTable></ng-container>\n\n <ng-container #rowDetailView></ng-container>\n\n <div class=\"dynamic-table-container\"></div>\n</div>\n","import {\n AfterContentInit,\n Attribute,\n Component,\n ContentChild,\n ContentChildren,\n ElementRef,\n HostListener, Inject,\n Injector,\n NgZone,\n OnDestroy,\n Optional,\n QueryList,\n TemplateRef,\n ViewChild,\n ViewContainerRef\n} from '@angular/core';\nimport {ControlValueAccessor, FormBuilder, FormGroup, NG_VALUE_ACCESSOR} from '@angular/forms';\nimport {\n $appDigest,\n $invokeWatchers,\n $parseEvent,\n $unwatch,\n $watch,\n App,\n closePopover,\n DataSource,\n DynamicComponentRefProvider,\n extendProto,\n getClonedObject,\n getDatasourceFromExpr,\n getValidJSON,\n isDataSourceEqual,\n isDefined,\n isMobile,\n PaginationService,\n StatePersistence,\n triggerFn,\n Viewport\n} from '@wm/core';\n\nimport {Observable, Subject} from 'rxjs';\nimport {\n DEBOUNCE_TIMES,\n EDIT_MODE,\n extractDataSourceName,\n getConditionalClasses,\n getOrderByExpr,\n getRowOperationsColumn,\n NAVIGATION_TYPE,\n prepareFieldDefs,\n provideAs,\n provideAsWidgetRef,\n StylableComponent,\n styler,\n transformData,\n TrustAsPipe,\n unsupportedStatePersistenceTypes\n} from '@wm/components/base';\nimport {PaginationComponent} from '@wm/components/data/pagination';\n\nimport {ListComponent} from '@wm/components/data/list';\nimport {registerProps} from './table.props';\nimport {debounceTime} from 'rxjs/operators';\nimport {\n debounce,\n extend, find,\n findIndex, floor, forEach,\n get, includes, indexOf, isArray, isEmpty,\n isEqual,\n isNaN, isObject,\n isUndefined, keys, omitBy,\n pullAllWith,\n remove,\n set,\n some, split, startsWith, toNumber, values\n} from \"lodash-es\";\n\ndeclare const $;\n\nconst DEFAULT_CLS = 'app-grid app-panel panel';\nconst WIDGET_CONFIG = {widgetType: 'wm-table', hostClass: DEFAULT_CLS};\n\nconst exportIconMapping = {\n EXCEL: 'fa fa-file-excel-o',\n CSV: 'fa fa-file-text-o'\n};\n\nconst ROW_OPS_FIELD = 'rowOperations';\n\nconst noop = () => {};\n\nconst isInputBodyWrapper = target => {\n const classes = ['.dropdown-menu', '.uib-typeahead-match', '.modal-dialog', '.toast'];\n let isInput = false;\n classes.forEach(cls => {\n if (target.closest(cls).length) {\n isInput = true;\n return false;\n }\n });\n const attrs = ['bsdatepickerdaydecorator'];\n if (!isInput) {\n attrs.forEach(attr => {\n if (target[0].hasAttribute(attr)) {\n isInput = true;\n return false;\n }\n });\n }\n return isInput;\n};\n\n@Component({\n selector: '[wmTable]',\n templateUrl: './table.component.html',\n providers: [\n provideAs(TableComponent, NG_VALUE_ACCESSOR, true),\n provideAsWidgetRef(TableComponent)\n ]\n})\nexport class TableComponent extends StylableComponent implements AfterContentInit, OnDestroy, ControlValueAccessor {\n static initializeProps = registerProps();\n @ViewChild(PaginationComponent, {static: true}) dataNavigator;\n\n @ViewChild('datagridElement', {static: true}) private _tableElement: ElementRef;\n\n @ContentChildren('rowActionTmpl', { descendants: true }) rowActionTmpl: QueryList<any>;\n @ViewChild('rowActionsView', { static: true, read: ViewContainerRef }) rowActionsViewRef: ViewContainerRef;\n\n @ContentChildren('filterTmpl', {descendants: true}) filterTmpl: QueryList<any>;\n @ViewChild('multiColumnFilterView', { static: true, read: ViewContainerRef }) filterViewRef: ViewContainerRef;\n\n @ContentChildren('inlineWidgetTmpl', {descendants: true}) inlineWidgetTmpl: QueryList<any>;\n @ViewChild('inlineEditView', { static: true, read: ViewContainerRef }) inlineEditViewRef: ViewContainerRef;\n\n @ContentChildren('inlineWidgetTmplNew', {descendants: true}) inlineWidgetNewTmpl: QueryList<any>;\n @ViewChild('inlineEditNewView', { static: true, read: ViewContainerRef }) inlineEditNewViewRef: ViewContainerRef;\n\n @ContentChildren('customExprTmpl', {descendants: true}) customExprTmpl: QueryList<any>;\n @ViewChild('customExprView', { static: true, read: ViewContainerRef }) customExprViewRef: ViewContainerRef;\n\n @ContentChildren('rowExpansionActionTmpl', { descendants: true }) rowExpansionActionTmpl: QueryList<any>;\n @ContentChild('rowExpansionTmpl') rowExpansionTmpl: TemplateRef<any>;\n @ViewChild('rowDetailView', { static: true, read: ViewContainerRef }) rowDetailViewRef: ViewContainerRef;\n @ViewChild('rowExpansionActionView', { static: true, read: ViewContainerRef }) rowExpansionActionViewRef: ViewContainerRef;\n\n @ViewChild('dynamicTable', { static: true, read: ViewContainerRef }) dynamicTableRef: ViewContainerRef;\n\n private rowActionsCompiledTl: any = {};\n private rowFilterCompliedTl: any = {};\n private inlineCompliedTl: any = {};\n private inlineNewCompliedTl: any = {};\n private customExprCompiledTl: any = {};\n private customExprCompiledSummaryTl: any = {};\n private rowDefInstances = {};\n private rowDefMap = {};\n private rowExpansionActionTl: any = {};\n\n columns = {};\n formfields = {};\n datagridElement;\n datasource;\n editmode;\n enablecolumnselection;\n enablesort = true;\n filtermode;\n filteronkeypress;\n searchlabel;\n formposition;\n gridclass;\n gridfirstrowselect;\n iconclass;\n ondemandmessage;\n viewlessmessage;\n showviewlessbutton = false;\n _triggeredByUser;\n isGridEditMode;\n loadingdatamsg;\n multiselect;\n name;\n _isDependent;\n navigation;\n navigationSize;\n navigationalign;\n nodatamessage;\n pagesize;\n prevData;\n primaryKey = [];\n radioselect;\n rowclass;\n rowngclass;\n selectedItems = [];\n showheader;\n showrecordcount;\n showrowindex;\n subheading;\n title;\n shownewrow;\n deleteoktext;\n deletecanceltext;\n onError;\n onRowinsert;\n onRowupdate;\n onRowdelete;\n statehandler;\n selectedItemChange = new Subject();\n selectedItemChange$: Observable<any> = this.selectedItemChange.asObservable();\n\n actions = [];\n _actions = {\n 'header': [],\n 'footer': []\n };\n exportOptions = [];\n exportdatasize;\n formWidgets;\n headerConfig = [];\n items = [];\n navControls;\n rowActions = [];\n selectedColumns;\n shownavigation = false;\n showFirstRow = false;\n dataset;\n _liveTableParent;\n isPartOfLiveGrid;\n gridElement;\n isNewRowInserted;\n isMobile;\n isLoading;\n isRowDeleted;\n documentClickBind = noop;\n actionRowIndex;\n actionRowPage;\n prevFilterExpression: any = [];\n fieldDefs = [];\n rowDef: any = {};\n rowInstance: any = {};\n\n private fullFieldDefs = [];\n private __fullData;\n private dataNavigatorWatched;\n private navigatorResultWatch;\n private navigatorMaxResultWatch;\n private filterInfo;\n private sortInfo;\n private serverData;\n private filternullrecords;\n private variableInflight = true;\n private isdynamictable;\n private _dynamicContext;\n private noOfColumns;\n public onDemandLoad;\n public infScroll;\n private isDataLoading;\n private currentPage;\n private applyProps = new Map();\n\n redraw = debounce(this._redraw, 150);\n debouncedHandleLoading = debounce(this.handleLoading, 350);\n\n // Filter and Sort Methods\n rowFilter: any = {};\n matchModeTypesMap;\n matchModeMsgs;\n emptyMatchModes;\n _searchSortHandler = noop;\n searchSortHandler = (...args) => { this._searchSortHandler.apply(this, args); };\n _isPageSearch;\n _isClientSearch;\n checkFiltersApplied: Function;\n getSearchResult: Function;\n getSortResult: Function;\n getFilterFields: Function;\n onRowFilterChange = noop;\n onFilterConditionSelect = noop;\n showClearIcon = noop;\n clearRowFilter = noop;\n adjustContainer = noop;\n getNavigationTargetBySortInfo: Function;\n refreshData: Function;\n clearFilter: Function;\n\n // Inline Edit\n ngform: FormGroup;\n updateVariable: Function;\n updateRecord: Function;\n deleteRecord: Function;\n insertRecord: Function;\n editRow: Function;\n addNewRow: Function;\n addRow: Function;\n deleteRow: Function;\n onRecordDelete: Function;\n initiateSelectItem: Function;\n hideEditRow: Function;\n saveRow: Function;\n cancelRow: Function;\n private _pageLoad = true;\n\n public gridOptions = {\n data: [],\n colDefs: [],\n startRowIndex: 1,\n mode: '',\n sortInfo: {\n field: '',\n direction: ''\n },\n filtermode: '',\n filteronkeypress: false,\n searchLabel: '',\n rowActions: [],\n headerConfig: [],\n rowClass: '',\n editmode: '',\n formPosition: '',\n isMobile: false,\n rowExpansionEnabled: false,\n rowDef: {\n position: '0'\n },\n name: '',\n messages: {\n selectField: 'Select Field'\n },\n securityUtils: {\n pipeTransform : {}\n },\n navigation: '',\n isdynamictable: '',\n deletedRowIndex: -1,\n lastActionPerformed: 'scroll',\n isSearchTrigerred: false,\n isDatasetUpdated: false,\n isDataUpdatedByUser: false,\n showviewlessbutton: false,\n ondemandmessage: '',\n viewlessmessage: '',\n loadingdatamsg: '',\n isNextPageData: undefined,\n ACTIONS: {\n 'DELETE': 'delete',\n 'EDIT': 'edit',\n 'SEARCH_OR_SORT': 'search_or_sort',\n 'DEFAULT': 'scroll',\n 'FILTER_CRITERIA' : 'filter',\n 'DATASET_UPDATE': 'dataset_update'\n },\n actionRowIndex: undefined,\n actionRowPage: undefined,\n isLastPage : false,\n // get the current page number\n getCurrentPage: () => {\n return get(this.dataNavigator, 'dn.currentPage') || 1;\n },\n // set the page number\n setCurrentPage: (pageNum) => {\n set(this.dataNavigator, 'dn.currentPage', pageNum || 1);\n },\n getDataSource: () => {\n return this.datasource;\n },\n // get the page limit\n getPageSize: () => {\n return this.pagesize;\n },\n\n getPageCount : () =>{\n return this.dataNavigator.pageCount;\n },\n enableNavigation: () => {\n this.dataNavigator.widget.isDisableNext = false;\n this.dataNavigator.widget.isDisableLast = false;\n this.gridOptions.mode = 'viewless';\n },\n // set the deleted row index\n setDeletedRowIndex: (id) => {\n this.setDataGridOption('deletedRowIndex', id);\n },\n // sets the last action performed like edit, delete etc.\n setLastActionPerformed: (action) => {\n this.setDataGridOption('lastActionPerformed', action || this.gridOptions.lastActionPerformed);\n },\n isNavTypeScrollOrOndemand: () => {\n return this.gridOptions.navigation === 'Scroll' || this.gridOptions.navigation === 'On-Demand';\n },\n setIsSearchTrigerred: (value) => {\n this.setDataGridOption('isSearchTrigerred', value);\n },\n setIsDatasetUpdated: (value) => {\n this.setDataGridOption('isDatasetUpdated', value);\n },\n // Fix for [WMS-23263]: 'isNextPageData' flag is set to true -> if user fetching the next page data by clicking onLoad more or scroll\n setIsNextPageData: (value) => {\n this.setDataGridOption('isNextPageData', value);\n },\n // Fix for [WMS-23263]: 'isDataUpdatedByUser' flag is set to true -> if user changes the dataset from script\n setIsDataUpdatedByUser: (value) => {\n this.setDataGridOption('isDataUpdatedByUser', value);\n },\n onDataRender: () => {\n this.ngZone.run(() => {\n if (this.gridData.length) {\n this.invokeEventCallback('datarender', {$data: this.gridData, data: this.gridData});\n }\n // select rows selected in previous pages. (Not finding intersection of data and selecteditems as it will be heavy)\n if (!this.multiselect) {\n this.items.length = 0;\n }\n if(!this.infScroll && !this.onDemandLoad) {\n this.callDataGridMethod('selectRows', this.items);\n }\n this.selectedItems = this.callDataGridMethod('getSelectedRows');\n if(this.selectedItems.length) {\n this.selectedItemChange.next(this.selectedItems);\n }\n // On render, apply the filters set for query service variable\n if (this._isPageSearch && this.filterInfo) {\n this.searchSortHandler(this.filterInfo, undefined, 'search');\n }\n });\n },\n onRowSelect: (row, e) => {\n this.ngZone.run(() => {\n this.selectedItems = this.callDataGridMethod('getSelectedRows');\n if (this.selectedItems.length) {\n this.selectedItemChange.next(this.selectedItems);\n }\n const rowData = this.addRowIndex(row);\n if (this.selectedItems.length && rowData.$index && this.getConfiguredState() !== 'none' && this.dataNavigator && unsupportedStatePersistenceTypes.indexOf(this.navigation) < 0) {\n const obj = {page: this.dataNavigator.dn.currentPage, index: rowData.$index - 1};\n const widgetState = this.statePersistence.getWidgetState(this);\n if (get(widgetState, 'selectedItem') && this.multiselect) {\n if (!some(widgetState.selectedItem, obj)) {\n widgetState.selectedItem.push(obj);\n }\n this.statePersistence.setWidgetState(this, {'selectedItem': widgetState.selectedItem});\n } else {\n this.statePersistence.setWidgetState(this, {'selectedItem': [obj]});\n }\n } else {\n console.warn('Retain State handling on Widget ' + this.name + ' is not supported for current pagination type.');\n }\n this.invokeEventCallback('rowselect', {$data: rowData, $event: e, row: rowData});\n });\n },\n // assigns the items on capture phase of the click handler.\n assignSelectedItems: (row, e, rowInfo) => {\n this.ngZone.run(() => {\n /*\n * in case of single select, update the items with out changing the reference.\n * for multi select, keep old selected items in tact\n */\n if (this.multiselect) {\n //Fix for [WMS-25110]: Add row to items list only if the row is selected\n if (findIndex(this.items, row) === -1 && (rowInfo?._selected === undefined || rowInfo?._selected == true || (this.gridfirstrowselect && rowInfo?.rowId == 0 && !this.showFirstRow))) {\n this.items.push(row);\n if (rowInfo?.rowId == 0) {\n this.showFirstRow = true;\n }\n }\n } else {\n this.items.length = 0;\n this.items.push(row);\n }\n });\n },\n onRowDblClick: (row, e) => {\n const rowData = this.addRowIndex(row);\n this.invokeEventCallback('rowdblclick', {$data: rowData, $event: e, row: rowData});\n },\n onRowDeselect: (row, e) => {\n if (this.multiselect) {\n this.ngZone.run(() => {\n this.items = pullAllWith(this.items, [row], isEqual);\n this.selectedItems = this.callDataGridMethod('getSelectedRows');\n this.invokeEventCallback('rowdeselect', {$data: row, $event: e, row});\n const rowData = this.addRowIndex(row);\n if (this.getConfiguredState() !== 'none' && unsupportedStatePersistenceTypes.indexOf(this.navigation) < 0) {\n const obj = {page: this.dataNavigator.dn.currentPage, index: rowData.$index - 1};\n const widgetState = this.statePersistence.getWidgetState(this);\n if (get(widgetState, 'selectedItem')) {\n remove(widgetState.selectedItem, function (selectedItem) {\n return isEqual(selectedItem, obj);\n });\n this.statePersistence.removeWidgetState(this, 'selectedItem');\n if (widgetState.selectedItem.length > 0) {\n this.statePersistence.setWidgetState(this, {'selectedItem': widgetState.selectedItem});\n }\n }\n } else {\n console.warn('Retain State handling on Widget ' + this.name + ' is not supported for current pagination type.');\n }\n });\n }\n },\n\n callOnRowDeselectEvent: (row, e) => {\n this.items = this.selectedItems = this.callDataGridMethod('getSelectedRows');\n this.invokeEventCallback('rowdeselect', {$data: row, $event: e, row});\n },\n callOnRowClickEvent: (row, e) => {\n // WMS-18774: If we invoke navigation action variable on rowclick callback, the navigation is triggering outside angular zone so adding ngZone.run\n this.ngZone.run(() => {\n // Call row click only if click is triggered by user\n if (e && e.hasOwnProperty('originalEvent')) {\n const rowData = this.addRowIndex(row);\n this.invokeEventCallback('rowclick', {$data: rowData, $event: e, row: rowData});\n }\n });\n },\n closePopover: closePopover,\n onColumnSelect: (col, e) => {\n this.selectedColumns = this.callDataGridMethod('getSelectedColumns');\n this.invokeEventCallback('columnselect', {$data: col, $event: e});\n },\n onColumnDeselect: (col, e) => {\n this.selectedColumns = this.callDataGridMethod('getSelectedColumns');\n this.invokeEventCallback('columndeselect', {$data: col, $event: e});\n },\n onHeaderClick: (col, e) => {\n // if onSort function is registered invoke it when the column header is clicked\n this.invokeEventCallback('headerclick', {$event: e, $data: col, column: col});\n },\n onRowDelete: (row, cancelRowDeleteCallback, e, callBack, options) => {\n this.ngZone.run(() => {\n this.deleteRecord(extend({}, options, {\n row,\n 'cancelRowDeleteCallback': cancelRowDeleteCallback,\n 'evt': e,\n 'callBack': callBack\n }));\n });\n },\n onRowInsert: (row, e, callBack, options) => {\n this.insertRecord(extend({}, options, {row, event: e, 'callBack': callBack}));\n },\n beforeRowUpdate: (row, eventName?) => {\n if (this._liveTableParent) {\n this._liveTableParent.updateRow(row, eventName);\n }\n this.prevData = getClonedObject(row);\n },\n afterRowUpdate: (row, e, callBack, options) => {\n this.updateRecord(extend({}, options, {row, 'prevData': this.prevData, 'event': e, 'callBack': callBack}));\n },\n onBeforeRowUpdate: (row, e, options) => {\n return this.invokeEventCallback('beforerowupdate', {$event: e, $data: row, row, options: options});\n },\n onBeforeRowInsert: (row, e, options) => {\n return this.invokeEventCallback('beforerowinsert', {$event: e, $data: row, row, options: options});\n },\n onBeforeRowDelete: (row, e, options) => {\n const rowData = this.addRowIndex(row);\n return this.invokeEventCallback('beforerowdelete', {$event: e, row: rowData, options: options});\n },\n onFormRender: ($row, e, operation, alwaysNewRow) => {\n const widget = alwaysNewRow ? 'inlineInstanceNew' : 'inlineInstance';\n setTimeout(() => {\n this.formWidgets = {};\n this.fieldDefs.forEach(col => {\n if (col[widget]) {\n this.formWidgets[col.field] = col[widget];\n // Adding formwidgets to the context for inlineinstance widget when fieldDefs were ready\n if (col[widget].context) {\n col[widget].context.formWidgets = this.formWidgets;\n }\n this.setDisabledOnField(operation, col, widget);\n }\n });\n this.invokeEventCallback('formrender', {$event: e, formWidgets: this.formWidgets, $operation: operation});\n }, 250);\n },\n onBeforeFormRender: (row, e, operation) => {\n return this.invokeEventCallback('beforeformrender', {$event: e, row, $operation: operation});\n },\n registerRowNgClassWatcher: (rowData, index) => {\n if (!this.rowngclass) {\n return;\n }\n const row = this.getClonedRowObject(rowData);\n const watchName = `${this.widgetId}_rowNgClass_${index}`;\n $unwatch(watchName);\n //[Todo-CSP]: generate watcher expr in page if rowngclass attr is present for table\n this.registerDestroyListener($watch(this.rowngclass, this.viewParent, {row}, (nv, ov) => {\n this.callDataGridMethod('applyRowNgClass', getConditionalClasses(nv, ov), index);\n }, watchName));\n },\n registerColNgClassWatcher: (rowData, colDef, rowIndex, colIndex) => {\n if (!colDef['col-ng-class']) {\n return;\n }\n const row = this.getClonedRowObject(rowData);\n const watchName = `${this.widgetId}_colNgClass_${rowIndex}_${colIndex}`;\n $unwatch(watchName);\n //[Todo-CSP]: generate watcher expr in page if col-ng-class attr is present for table\n this.registerDestroyListener($watch(colDef['col-ng-class'], this.viewParent, {row}, (nv, ov) => {\n this.callDataGridMethod('applyColNgClass', getConditionalClasses(nv, ov), rowIndex, colIndex);\n }, watchName));\n },\n clearCustomExpression: () => {\n this.customExprViewRef.clear();\n this.customExprCompiledTl = {};\n this.customExprCompiledSummaryTl = {};\n },\n clearRowDetailExpression: () => {\n this.rowDetailViewRef.clear();\n this.rowDefMap = {};\n this.rowDefInstances = {};\n },\n generateCustomExpressions: (rowData, index, summaryRow?) => {\n const row = this.getClonedRowObject(rowData);\n const compileTemplate = (tmpl) => {\n if (!tmpl) {\n return;\n }\n const colDef = {};\n const context = {\n row,\n colDef\n };\n this.addEventsToContext(context);\n const customExprView = this.customExprViewRef.createEmbeddedView(tmpl, context);\n const rootNode = customExprView.rootNodes[0];\n const fieldName = rootNode.getAttribute('data-col-identifier');\n extend(colDef, this.columns[fieldName]);\n if (!summaryRow) {\n this.customExprCompiledTl[fieldName + index] = rootNode;\n } else {\n this.customExprCompiledSummaryTl[fieldName + index] = rootNode;\n }\n };\n if (this.isdynamictable) {\n this.fieldDefs.forEach(col => {\n compileTemplate(col.customExprTmpl);\n });\n return;\n }\n // For all the columns inside the table, generate the custom expression\n this.customExprTmpl.forEach(compileTemplate.bind(this));\n },\n generateRowExpansionCell: (rowData, index) => {\n const row = this.getClonedRowObject(rowData);\n // For all the columns inside the table, generate the inline widget\n this.rowExpansionActionTmpl.forEach((tmpl) => {\n this.rowExpansionActionTl[index] = this.rowExpansionActionViewRef.createEmbeddedView(tmpl, {row}).rootNodes;\n });\n },\n getRowExpansionAction: (index) => {\n return this.rowExpansionActionTl[index];\n },\n generateRowDetailView: ($event, rowData, rowId, $target, $overlay, callback) => {\n const row = this.getClonedRowObject(rowData);\n const rowDef = getClonedObject(this.rowDef);\n if (this.rowInstance.invokeEventCallback('beforerowexpand', {$event, $data: rowDef, row}) === false) {\n return;\n }\n if (!rowDef.content) {\n return;\n }\n // Expand the row detail\n callback();\n // Row is already rendered. Return here\n if (this.rowDefMap[rowId] && this.rowDefMap[rowId].content === rowDef.content) {\n this.rowInstance.invokeEventCallback('rowexpand', {$event, row, $data: this.rowDefInstances[rowId]});\n return;\n }\n this.rowDefMap[rowId] = rowDef;\n $target.empty();\n $target.hide();\n $overlay.show();\n const context = {\n row,\n rowDef,\n containerLoad: (widget) => {\n setTimeout(() => {\n $overlay.hide();\n $target.show();\n this.rowDefInstances[rowId] = widget;\n this.rowInstance.invokeEventCallback('rowexpand', {$event, row, $data: widget});\n }, 500);\n }};\n const rootNode = this.rowDetailViewRef.createEmbeddedView(this.rowExpansionTmpl, context).rootNodes[0];\n $target[0].appendChild(rootNode);\n $appDigest();\n },\n onBeforeRowCollapse: ($event, row, rowId) => {\n return this.rowInstance.invokeEventCallback('beforerowcollapse', {$event, row, $data: this.rowDefInstances[rowId]});\n },\n onRowCollapse: ($event, row) => {\n this.rowInstance.invokeEventCallback('rowcollapse', {$event, row});\n },\n getCustomExpression: (fieldName, index, summaryRow?) => {\n let customExpression;\n if (!summaryRow) {\n customExpression = this.customExprCompiledTl[fieldName + index];\n } else {\n customExpression = this.customExprCompiledSummaryTl[fieldName + index];\n }\n return customExpression || '';\n },\n clearRowActions: () => {\n this.rowActionsViewRef.clear();\n this.rowActionsCompiledTl = {};\n this.rowExpansionActionViewRef.clear();\n this.rowExpansionActionTl = {};\n },\n generateRowActions: (rowData, index) => {\n const row = this.getClonedRowObject(rowData);\n this.rowActionsCompiledTl[index] = [];\n // For all the columns inside the table, generate the inline widget\n this.rowActionTmpl.forEach((tmpl) => {\n this.rowActionsCompiledTl[index].push(...this.rowActionsViewRef.createEmbeddedView(tmpl, {row}).rootNodes);\n });\n },\n getRowAction: (index) => {\n return this.rowActionsCompiledTl[index];\n },\n generateInlineEditRow: (rowData, alwaysNewRow) => {\n const row = this.getClonedRowObject(rowData);\n if (alwaysNewRow) {\n // Clear the view container ref\n this.inlineEditNewViewRef.clear();\n this.inlineNewCompliedTl = {};\n // For all the columns inside the table, generate the inline widget\n this.inlineWidgetNewTmpl.forEach(tmpl => {\n let fieldName;\n const context = {\n row,\n getControl: () => {\n return this.ngform.controls[fieldName + '_new'] || {};\n },\n getValidationMessage: () => {\n return this.columns[fieldName] && this.columns[fieldName].validationmessage;\n },\n getPendingSpinnerStatusNew: () => {\n return this.columns[fieldName] && this.columns[fieldName].showPendingSpinnerNew;\n }\n };\n const rootNode = this.inlineEditNewViewRef.createEmbeddedView(tmpl, context).rootNodes[0];\n fieldName = rootNode.getAttribute('data-col-identifier');\n this.inlineNewCompliedTl[fieldName] = rootNode;\n });\n this.clearForm(true);\n return;\n }\n // Clear the view container ref\n this.inlineEditViewRef.clear();\n this.inlineCompliedTl = {};\n this.clearForm();\n // For all the columns inside the table, generate the inline widget\n this.inlineWidgetTmpl.forEach(tmpl => {\n let fieldName;\n const context = {\n row,\n getControl: () => {\n return this.ngform.controls[fieldName] || {};\n },\n getValidationMessage: () => {\n return this.columns[fieldName] && this.columns[fieldName].validationmessage;\n },\n getPendingSpinnerStatus: () => {\n return this.columns[fieldName] && this.columns[fieldName].showPendingSpinner;\n }\n };\n const rootNode = this.inlineEditViewRef.createEmbeddedView(tmpl, context).rootNodes[0];\n fieldName = rootNode.getAttribute('data-col-identifier');\n this.inlineCompliedTl[fieldName] = rootNode;\n });\n },\n getInlineEditWidget: (fieldName, value, alwaysNewRow) => {\n if (alwaysNewRow) {\n this.gridOptions.setFieldValue(fieldName + '_new', value);\n return this.inlineNewCompliedTl[fieldName];\n }\n this.gridOptions.setFieldValue(fieldName, value);\n return this.inlineCompliedTl[fieldName];\n },\n setFieldValue: (fieldName, value) => {\n const control = this.ngform.controls && this.ngform.controls[fieldName];\n if (control) {\n control.setValue(value);\n }\n },\n getFieldValue: fieldName => {\n const control = this.ngform.controls && this.ngform.controls[fieldName];\n return control && control.value;\n },\n\n // function to add load more button to table\n addLoadMoreBtn: () => {\n this.callDataGridMethod('addLoadMoreBtn', this.ondemandmessage, this.loadingdatamsg, ($event) => {\n this.gridOptions.setIsNextPageData(true);\n this.gridOptions.setIsDataUpdatedByUser(false);\n if (this.gridOptions.mode === 'viewless') {\n this.dataNavigator.navigatePage('first', $event, true);\n this.gridOptions.mode = '';\n } else {\n this.dataNavigator.navigatePage('next', $event);\n this.isDataLoading = true;\n }\n }, this.infScroll);\n },\n // function to bind scroll event\n bindScrollEvt: () => {\n if (this._gridData && this._gridData.length && this.infScroll) {\n // smoothscroll events will be binded.\n // Added timeout as the table html is rendered at runtime\n setTimeout(() => {\n this.paginationService.bindScrollEvt(this, 'tbody', DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME);\n }, 0);\n }\n },\n generateFilterRow: () => {\n // Clear the view container ref\n this.filterViewRef.clear();\n this.rowFilterCompliedTl = {};\n // For all the columns inside the table, generate the compiled filter template\n this.filterTmpl.forEach((tmpl) => {\n const rootNode = this.filterViewRef.createEmbeddedView(tmpl, {\n changeFn: this.onRowFilterChange.bind(this),\n isDisabled: (fieldName) => {\n return this.emptyMatchModes.indexOf(this.rowFilter[fieldName] && this.rowFilter[fieldName].matchMode) > -1;\n }\n }).rootNodes[0];\n this.rowFilterCompliedTl[rootNode.getAttribute('data-col-identifier')] = rootNode;\n });\n },\n getFilterWidget: (fieldName) => {\n // Move the generated filter template to the filter row\n return this.rowFilterCompliedTl[fieldName];\n },\n setGridEditMode: (val) => {\n this.ngZone.run(() => {\n this.isGridEditMode = val;\n $appDigest();\n });\n },\n setGridState: (val) => {\n this.isLoading = val === 'loading';\n },\n /*\n set actionRowIndex and actionRowPage values\n actionRowIndex will have the row index in the dataset on which edit/delete operation is being performed\n actionRowPage will have page number in which the action row index is present\n */\n setActionRowIndex: (val) => {\n if (this.gridOptions.isNavTypeScrollOrOndemand()) {\n this.actionRowIndex = parseInt(val);\n this.setDataGridOption('actionRowIndex', this.actionRowIndex);\n if (!isNaN(this.actionRowIndex)) {\n this.actionRowPage = Math.floor(this.actionRowIndex / this.pagesize) + 1;\n this.setDataGridOption('actionRowPage', this.actionRowPage || this.gridOptions.actionRowPage);\n }\n }\n },\n clearActionRowIndex: () => {\n if (!this.isRowDeleted && (this.infScroll || this.onDemandLoad)) {\n this.clearActionRowVars();\n }\n },\n noChangesDetected: () => {\n this.toggleMessage(true, 'info', 'No Changes Detected', '');\n },\n // Function to redraw the widgets on resize of columns\n redrawWidgets: () => {\n this.fieldDefs.forEach(col => {\n triggerFn(col.inlineInstance && col.inlineInstance.redraw);\n triggerFn(col.inlineInstanceNew && col.inlineInstanceNew.redraw);\n triggerFn(col.filterInstance && col.filterInstance.redraw);\n });\n },\n searchHandler: this.searchSortHandler.bind(this),\n sortHandler: this.searchSortHandler.bind(this),\n timeoutCall: (fn, delay) => {\n setTimeout(fn, delay);\n },\n runInNgZone: fn => {\n this.ngZone.run(fn);\n },\n safeApply: () => {\n $appDigest();\n },\n setTouched: (name) => {\n const ctrl = this.ngform.controls[name];\n if (ctrl) {\n ctrl.markAsTouched();\n }\n },\n clearForm: this.clearForm.bind(this),\n callLoadInlineWidgetData: () => {\n this.fullFieldDefs.forEach(col => {\n if (isUndefined(col.isDataSetBound)) {\n triggerFn(col.loadInlineWidgetData && col.loadInlineWidgetData.bind(col));\n }\n });\n },\n // Function to apply validators to Inline form controls\n applyValidations: (col, alwaysNewRow) => {\n if (alwaysNewRow) {\n triggerFn(col.applyNewRowValidations && col.applyNewRowValidations.bind(col));\n } else {\n triggerFn(col.applyValidations && col.applyValidations.bind(col));\n }\n },\n // Function to remove validators and set form state to untouched for inline form control\n removeValidations: (alwaysNewRow) => {\n this.fullFieldDefs.forEach(col => {\n if (!col.readonly && col.binding !== 'rowOperations') {\n if (alwaysNewRow) {\n triggerFn(col.removeNewRowValidations && col.removeNewRowValidations.bind(col));\n } else {\n triggerFn(col.removeValidations && col.removeValidations.bind(col));\n }\n }\n });\n }\n };\n\n private _gridData;\n private _selectedItemsExist = false;\n set gridData(newValue) {\n this.isDataLoading = false;\n // Fix for [WMS-24012]: hide no datafound msg when variableInflight is true and dataset is empty\n if (this.variableInflight && isEmpty(newValue)) {\n return;\n }\n this.variableInflight = false;\n // Fix for [WMS-24108]: Change the status to ready or nodata found when variableInflight is false(after getting the data)\n if (newValue && (newValue.length) === 0) {\n this.callDataGridMethod('setStatus', 'nodata', this.nodatamessage);\n } else {\n this.callDataGridMethod('setStatus', 'ready');\n }\n if (this.gridOptions.isNavTypeScrollOrOndemand()) {\n // update the _gridData field with the next set of items and modify the current page\n [this._gridData, this.currentPage] = this.paginationService.updateFieldsOnPagination(this, newValue);\n\n // When edit action is performed on previous page, update the _gridData field with the modified row data\n if (this.gridOptions.lastActionPerformed === this.gridOptions.ACTIONS.EDIT) {\n const rowIndex = floor(this.actionRowIndex % this.pagesize);\n this._gridData.splice(this.actionRowIndex, 1 , newValue[rowIndex]);\n }\n this.setDataGridOption('isLastPage', !!(this.dataNavigator.isDisableNext));\n // In case of on demand pagination, create the load more button only once and show the button until next page is not disabled\n if (!this.$element.find('.on-demand-datagrid').length && !this.dataNavigator.isDisableNext && this.onDemandLoad) {\n this.gridOptions.addLoadMoreBtn();\n } else if ((this._gridData && this._gridData.length) && (this.dataNavigator.isDisableNext || !this.isDataLoading)) {\n // when the next page is disabled or when the data is not loading remove the loading/load more button accordingly\n this.callDataGridMethod('hideLoadingIndicator', this.dataNavigator.isDisableNext, this.infScroll);\n }\n } else {\n this._gridData = newValue;\n }\n let startRowIndex = 0;\n let gridOptions;\n\n this._onChange(this._gridData);\n this._onTouched();\n\n if (isDefined(newValue)) {\n this.gridOptions.bindScrollEvt();\n\n /*Setting the serial no's only when show navigation is enabled and data navigator is compiled\n and its current page is set properly*/\n if (this.isNavigationEnabled() && this.dataNavigator.dn.currentPage) {\n startRowIndex = ((this.dataNavigator.dn.currentPage - 1) * (this.dataNavigator.maxResults || 1)) + 1;\n this.setDataGridOption('startRowIndex', startRowIndex);\n }\n /* If colDefs are available, but not already set on the datagrid, then set them.\n * This will happen while switching from markup to design tab. */\n gridOptions = this.callDataGridMethod('getOptions');\n\n if (!gridOptions) {\n return;\n }\n\n if (!gridOptions.colDefs.length && this.fieldDefs.length) {\n this.setDataGridOption('colDefs', getClonedObject(this.fieldDefs));\n }\n // If data and colDefs are present, call on before data render event\n if (!this.isdynamictable && !isEmpty(newValue) && gridOptions.colDefs.length) {\n this.invokeEventCallback('beforedatarender', {$data: this._gridData, $columns: this.columns, data: this._gridData, columns: this.columns});\n }\n this.setDataGridOption('data', getClonedObject(this._gridData));\n }\n }\n\n get gridData() {\n return this._gridData || [];\n }\n\n get selecteditem() {\n if (this.multiselect) {\n return getClonedObject(this.items);\n }\n if (isEmpty(this.items)) {\n return {};\n }\n return getClonedObject(this.items[0]);\n }\n\n set selecteditem(val) {\n // Select the rows in the table based on the new selected items passed\n this.items.length = 0;\n this.callDataGridMethod('selectRows', val);\n }\n\n @HostListener('keypress', ['$event']) onKeyPress ($event: any) {\n if ($event.which === 13) {\n this.invokeEventCallback('enterkeypress', {$event, $data: this.gridData});\n }\n }\n\n constructor(\n public inj: Injector,\n public fb: FormBuilder,\n private app: App,\n private dynamicComponentProvider: DynamicComponentRefProvider,\n private statePersistence: StatePersistence,\n private paginationService: PaginationService,\n private viewport: Viewport,\n @Optional() public parentList: ListComponent,\n @Attribute('dataset.bind') public binddataset,\n @Attribute('datasource.bind') public binddatasource,\n @Attribute('readonlygrid') public readonlygrid,\n private ngZone: NgZone,\n private trustAsPipe: TrustAsPipe,\n @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any\n ) {\n super(inj, WIDGET_CONFIG, explicitContext);\n styler(this.nativeElement, this);\n\n this.ngform = fb.group({});\n this.addEventsToContext(this.context);\n const listenersToRemove = [\n // Updates pagination, filter, sort etc options for service and crud variables\n this.app.subscribe('check-state-persistence-options', options => {\n let dataSourceName = get(this.datasource, 'name');\n // in Prefabs, this.datasource is not resolved at the time of variable invocation, so additional check is required.\n if (!dataSourceName) {\n dataSourceName = extractDataSourceName(this.binddatasource);\n }\n if (get(options, 'variable.name') !== dataSourceName) {\n return;\n }\n if (this._pageLoad && this.getConfiguredState() !== 'none') {\n this._pageLoad = false;\n const widgetState = this.statePersistence.getWidgetState(this);\n if (widgetState) {\n options = this.handleStateParams(widgetState, options);\n } else {\n this.setDataGridOption('selectFirstRow', this.gridfirstrowselect);\n }\n }\n }),\n\n // Show loading status based on the variable life cycle\n this.app.subscribe('toggle-variable-state', options => {\n if (this.datasource && this.datasource.execute(DataSource.Operation.IS_API_AWARE) && isDataSourceEqual(options.variable, this.datasource)) {\n if (this._pageLoad && this.getConfiguredState() !== 'none') {\n this._pageLoad = false;\n const widgetState = this.statePersistence.getWidgetState(this);\n if (widgetState) {\n options = this.handleStateParams(widgetState, options);\n } else {\n this.setDataGridOption('selectFirstRow', this.gridfirstrowselect);\n }\n }\n isDefined(this.variableInflight) ? this.debouncedHandleLoading(options) : this.handleLoading(options);\n }\n }),\n\n this.app.subscribe('setup-cud-listener', param => {\n if (this.name !== param) {\n return;\n }\n this._isDependent = true;\n this.selectedItemChange$\n .pipe(debounceTime(250))\n .subscribe(this.triggerWMEvent.bind(this));\n })\n ];\n\n listenersToRemove.forEach( l => this.registerDestroyListener(l) );\n\n this.deleteoktext = this.appLocale.LABEL_OK;\n this.deletecanceltext = this.appLocale.LABEL_CANCEL;\n }\n\n ngAfterContentInit() {\n super.ngAfterContentInit();\n this.headerConfig = this.headerConfig.filter(this.filterEmptyValues.bind(this));\n remove(this.fieldDefs, f => f === undefined);\n const runModeInitialProperties = {\n showrowindex: 'showRowIndex',\n multiselect: 'multiselect',\n radioselect: 'showRadioColumn',\n filternullrecords: 'filterNullRecords',\n enablesort: 'enableSort',\n showheader: 'showHeader',\n enablecolumnselection: 'enableColumnSelection',\n shownewrow: 'showNewRow',\n gridfirstrowselect: 'selectFirstRow'\n };\n\n if (this._liveTableParent) {\n this.isPartOfLiveGrid = true;\n }\n\n if (this.readonlygrid || !this.editmode) {\n if (this.readonlygrid === 'true') {\n this.editmode = '';\n } else {\n if (this.isPartOfLiveGrid) {\n this.editmode = this.isPartOfLiveGrid.formlayout === 'inline' ? EDIT_MODE.FORM : EDIT_MODE.DIALOG;\n } else {\n this.editmode = this.readonlygrid ? EDIT_MODE.INLINE : '';\n }\n }\n }\n\n this.gridOptions.colDefs = this.fullFieldDefs;\n this.gridOptions.rowActions = this.rowActions;\n this.gridOptions.headerConfig = this.headerConfig;\n this.gridOptions.rowClass = this.rowclass;\n this.gridOptions.editmode = this.editmode;\n this.gridOptions.formPosition = this.formposition;\n this.gridOptions.filtermode = this.filtermode;\n this.gridOptions.filteronkeypress = this.filteronkeypress;\n this.gridOptions.searchLabel = this.searchlabel;\n this.gridOptions.isMobile = isMobile();\n this.gridOptions.name = this.name;\n this.gridOptions.securityUtils.pipeTransform = this.trustAsPipe;\n this.gridOptions.navigation = this.navigation;\n this.gridOptions.isdynamictable = this.isdynamictable;\n this.gridOptions.showviewlessbutton = this.showviewlessbutton;\n this.gridOptions.ondemandmessage = this.ondemandmessage;\n this.gridOptions.viewlessmessage = this.viewlessmessage;\n this.gridOptions.loadingdatamsg = this.loadingdatamsg;\n\n // When loadondemand property is enabled(deferload=\"true\") and show is true, only the column titles of the datatable are rendered, the data(body of the datatable) is not at all rendered.\n // Because the griddata is setting before the datatable dom is rendered but we are sending empty data to the datatable.\n if (!isEmpty(this.gridData)) {\n this.gridOptions.data = getClonedObject(this.gridData);\n }\n this.gridOptions.messages = {\n 'selectField': this.appLocale.MESSAGE_SELECT_FIELD\n };\n this.datagridElement = $(this._tableElement.nativeElement);\n\n this.gridElement = this.$element;\n this.$element.css({'position': 'relative'});\n\n forEach(runModeInitialProperties, (value, key) => {\n if (isDefined(this[key])) {\n this.gridOptions[value] = (this[key] === 'true' || this[key] === true);\n }\n });\n if (this.statehandler !== 'none') {\n this.gridOptions['selectFirstRow'] = false;\n }\n\n this.renderOperationColumns();\n this.gridOptions.colDefs = this.fieldDefs;\n\n this.datagridElement.datatable(this.gridOptions);\n this.callDataGridMethod('setStatus', 'loading', this.loadingdatamsg);\n // if(this.gridOptions.data.length || this.variableInflight) {\n // this.callDataGridMethod('setStatus', 'loading', this.loadingdatamsg);\n // } else {\n // this.callDataGridMethod('setStatus', 'nodata', this.nodatamessage);\n // }\n\n this.applyProps.forEach(args => this.callDataGridMethod(...args));\n\n if (this.editmode === EDIT_MODE.QUICK_EDIT) {\n this.documentClickBind = this._documentClickBind.bind(this);\n document.addEventListener('click', this.documentClickBind);\n }\n }\n private getConfiguredState() {\n const mode = this.statePersistence.computeMode(this.statehandler);\n return mode && mode.toLowerCase();\n }\n\n private handleStateParams(widgetState, options) {\n if (get(widgetState, 'selectedItem')) {\n this._selectedItemsExist = true;\n }\n options.options = options.options || {};\n if (get(widgetState, 'pagination')) {\n options.options.page = widgetState.pagination;\n if (get(widgetState, 'sort')) {\n this.sortStateHandler(widgetState);\n options.options.orderBy = get(widgetState, 'sort.field') + ' ' + get(widgetState, 'sort.direction');\n }\n if (get(widgetState, 'search')) {\n setTimeout( () => {\n this.searchStateHandler(widgetState);\n }, 500);\n options.options.filterFields = this.getFilterFields(widgetState.search);\n }\n } else {\n options.options.page = 1;\n if (get(widgetState, 'search')) {\n setTimeout( () => {\n this.searchStateHandler(widgetState);\n }, 500);\n options.options.filterFields = this.getFilterFields(widgetState.search);\n }\n if (get(widgetState, 'sort')) {\n this.sortStateHandler(widgetState);\n options.options.orderBy = get(widgetState, 'sort.field') + ' ' + get(widgetState, 'sort.direction');\n }\n }\n return options;\n }\n\n private triggerWMEvent(newVal) {\n if (this.editmode === 'dialog') {\n return;\n }\n $invokeWatchers(true);\n this.app.notify('wm-event', {eventName: 'selectedItemChange', widgetName: this.name, row: newVal, table: this});\n }\n\n private sortStateHandler(widgetState) {\n const $gridElement = this.datagridElement;\n const $sortIcon = $gridElement.find('th[data-col-field=\"' + get(widgetState, 'sort.field') + '\"] .sort-icon');\n if (get(widgetState, 'sort.direction') === 'asc' && $sortIcon.length) {\n $sortIcon.addClass('asc wi wi-long-arrow-up');\n } else if (get(widgetState, 'sort.direction') === 'desc' && $sortIcon.length) {\n $sortIcon.addClass('desc wi wi-long-arrow-down');\n }\n }\n\n private searchStateHandler(widgetState) {\n if (isArray(widgetState.search)) {\n forEach(widgetState.search, (filterObj) => {\n if (this.rowFilter[filterObj.field]) {\n this.rowFilter[filterObj.field].value = filterObj.value;\n this.rowFilter[filterObj.field].matchMode = filterObj.matchMode;\n this.rowFilter[filterObj.field].type = filterObj.type;\n if ($(this.rowFilterCompliedTl[filterObj.field]).length) {\n const val = filterObj.type === 'integer' ? parseInt(filterObj.value) : filterObj.value;\n $(this.rowFilterCompliedTl[filterObj.field]).find('input').val(filterObj.value);\n }\n }\n });\n } else {\n const $gridElement = this.datagridElement;\n $gridElement.find('[data-element=\"dgSearchText\"]').val(widgetState.search.value);\n $gridElement.find('[data-element=\"dgFilterValue\"]').val(widgetState.search.field);\n }\n }\n\n // removes empty values in headerConfig array.\n filterEmptyValues(item) {\n if (item.columns) {\n item.columns = item.columns.filter(this.filterEmptyValues.bind(this));\n }\n return item !== undefined;\n }\n // Compares the prevFilterCriteria Rules with the new rules\n compareFilterExpressions(prevFilters, newFilters) {\n return !!((prevFilters.length === newFilters.length) && (isEqual(prevFilters, newFilters)));\n }\n\n // Set the table lastActionPerformed to Filter Criteria and maintain the prevFilterExpression\n setLastActionToFilterCriteria() {\n this.prevFilterExpression = get(this.datasource, 'filterExpressions.rules') ? getClonedObject(this.datasource.filterExpressions.rules) : getClonedObject([].concat(this.datasource.dataBinding));\n this.gridOptions.setLastActionPerformed(this.gridOptions.ACTIONS.FILTER_CRITERIA);\n this.gridOptions.setIsSearchTrigerred(true);\n }\n\n // Set the table lastActionPerformed to Dataset update and set isDatasetUpdated to true\n // Fix for [WMS-22323]-this method is called when dataset is being updated\n setLastActionToDatasetUpdate() {\n this.gridOptions.setLastActionPerformed(this.gridOptions.ACTIONS.DATASET_UPDATE);\n // Fix for [WMS-23263]: reset currentPage to 1 as dataset is being changed\n this.gridOptions.setCurrentPage(1);\n this.gridOptions.setIsDatasetUpdated(true);\n }\n\n // Update the lastActionPerformed to Filter_Criteria, when there is change in the Variable filter criteria rules\n checkIfVarFiltersApplied() {\n if (!isEmpty(get(this.datasource, 'filterExpressions.rules')) || !isEmpty(get(this.datasource, 'dataBinding'))) {\n const currentFilterExpr = get(this.datasource, 'filterExpressions.rules') ? this.datasource.filterExpressions.rules : [].concat(this.datasource.dataBinding);\n const isEqual = this.compareFilterExpressions(this.prevFilterExpression, currentFilterExpr);\n if (!isEqual) {\n this.setLastActionToFilterCriteria();\n }\n }\n }\n\n watchVariableDataSet(newVal) {\n let result;\n // Check for Variable filters if applied\n if (this.gridOptions.isNavTypeScrollOrOndemand()) {\n this.checkIfVarFiltersApplied();\n }\n // State handling for static variables\n if (get(this.datasource, 'category') === 'wm.Variable' && this._pageLoad && this.getConfiguredState() !== 'none') {\n const widgetState = this.statePersistence.getWidgetState(this);\n this._pageLoad = false;\n if (get(widgetState, 'selectedItem')) {\n this._selectedItemsExist = true;\n } else {\n this.setDataGridOption('selectFirstRow', this.gridfirstrowselect);\n }\n if (get(widgetState, 'search')) {\n this.searchStateHandler(widgetState);\n this.searchSortHandler(widgetState.search, undefined, 'search', true);\n }\n if (get(widgetState, 'sort')) {\n this.searchSortHandler(widgetState.sort, undefined, 'sort', true);\n this.sortStateHandler(widgetState);\n }\n if (get(widgetState, 'pagination')) {\n this.dataNavigator.pageChanged({page: widgetState.pagination}, true);\n }\n }\n // After the setting the watch on navigator, dataset is triggered with undefined. In this case, return here.\n if (this.dataNavigatorWatched && isUndefined(newVal) && this.__fullData) {\n return;\n }\n // If variable is in loading state, show loading icon\n if (this.variableInflight && !this.infScroll) {\n this.callDataGridMethod('setStatus', 'loading', this.loadingdatamsg);\n }\n\n result = getValidJSON(newVal);\n\n // Converting newval to object if it is an Object that comes as a string \"{\"data\" : 1}\"\n if (result) {\n newVal = result;\n }\n\n const sortExp = this.getSortExpr();\n const sortExpArr = sortExp.split(' ');\n if (sortExp && sortExpArr.length) {\n this.sortInfo = {\n direction : sortExpArr[1],\n field: sortExpArr[0]\n\n };\n }\n\n /*Return if data is invalid.*/\n if (!this.isDataValid()) {\n return;\n }\n\n // If value is empty or in studio mode, dont enable the navigation\n if (newVal) {\n if (this.shownavigation && !this.dataNavigatorWatched) {\n this.enablePageNavigation();\n return;\n }\n } else {\n this.resetPageNavigation();\n // If the dataset is undefined or empty or table is bound to static variable then set variableInflight to false inorder to update the status\n if (newVal === '' || newVal === undefined || get(this.datasource, 'category') === 'wm.Variable') {\n this.variableInflight = false;\n }\n /*for run mode, disabling the loader and showing no data found message if dataset is not valid*/\n if (!this.variableInflight) {\n this.callDataGridMethod('setStatus', 'nodata', this.nodatamessage);\n }\n this.setDataGridOption('selectFirstRow', this.gridfirstrowselect);\n }\n\n if (!this.isNavigationEnabled() && newVal) {\n this.checkFiltersApplied(this.getSortExpr());\n }\n\n // @ts-ignore\n if (!isObject(newVal) || newVal === '' || (newVal && newVal.dataValue === '')) {\n if (!this.variableInflight) {\n // If variable has finished loading and resultSet is empty, ender empty data\n this.setGridData([]);\n }\n return;\n }\n if (newVal) {\n this.populateGridData(newVal);\n }\n }\n\n ngOnDestroy() {\n document.removeEventListener('click', this.documentClickBind);\n if (this.navigatorResultWatch) {\n this.navigatorResultWatch.unsubscribe();\n }\n if (this.navigatorMaxResultWatch) {\n this.navigatorMaxResultWatch.unsubscribe();\n }\n super.ngOnDestroy();\n }\n\n addRowIndex(row) {\n const rowData = getClonedObject(row);\n const rowIndex = indexOf(this.gridOptions.data, row);\n if (rowIndex < 0) {\n return row;\n }\n rowData.$index = rowIndex + 1;\n rowData.$isFirst = rowData.$index === 1;\n rowData.$isLast = this.gridData.length === rowData.$index;\n return rowData;\n }\n\n addEventsToContext(context) {\n context.addNewRow = () => this.addNewRow();\n context.deleteRow = () => this.deleteRow();\n context.editRow = () => this.editRow();\n }\n\n execute(operation, options) {\n if ([DataSource.Operation.IS_API_AWARE, DataSource.Operation.IS_PAGEABLE, DataSource.Operation.SUPPORTS_SERVER_FILTER].includes(operation)) {\n return false;\n }\n return this.datasource ? this.datasource.execute(operation, options) : {};\n }\n\n isNavigationEnabled() {\n return this.shownavigation && this.dataNavigator && this.dataNavigatorWatched;\n }\n\n getClonedRowObject(rowData) {\n const row = getClonedObject(rowData);\n row.getProperty = field => {\n return get(row, field);\n };\n row.$isFirst = row.$index === 1;\n row.$isLast = this.gridData.length === row.$index;\n delete row.$$index;\n delete row.$$pk;\n return row;\n }\n\n handleLoading(data) {\n this.variableInflight = data.active;\n // based on the active state and response toggling the 'loading data...' and 'no data found' messages.\n if (data.active) {\n this.callDataGridMethod('setStatus', 'loading', this.loadingdatamsg);\n } else {\n // If grid is in edit mode or grid has data, dont show the no data message\n if (!this.isGridEditMode && isEmpty(this.dataset)) {\n this.callDataGridMethod('setStatus', 'nodata', this.nodatamessage);\n } else {\n this.callDataGridMethod('setStatus', 'ready');\n }\n }\n }\n\n setDisabledOnField(operation, colDef, widgetType) {\n if (operation !== 'new' && colDef['primary-key'] && colDef.generator === 'assigned' && !colDef['related-entity-name'] && !colDef.period) {\n colDef[widgetType].disabled = true;\n }\n }\n\n resetFormControl(ctrl) {\n ctrl.markAsUntouched();\n ctrl.markAsPristine();\n }\n\n clearForm(newRow?) {\n const ctrls = this.ngform.controls;\n keys(this.ngform.controls).forEach(key => {\n // If new row, clear the controls in the new row. Else, clear the controls in edit row\n if (!key.endsWith('_filter') && ((key.endsWith('_new') && newRow) || (!key.endsWith('_new') && !newRow))) {\n ctrls[key].setValue('');\n this.resetFormControl(ctrls[key]);\n }\n });\n }\n\n showFieldBasedOnScreenType(field) {\n let showField;\n if (isMobile() && this.viewport.isMobileType) {\n showField = field.mobileDisplay;\n } else if (this.viewport.isTabletType) {\n showField = field.tabletDisplay;\n } else {\n showField = field.pcDisplay;\n }\n return showField;\n }\n\n /* Check whether it is non-empty row. */\n isEmptyRecord(record) {\n const properties = Object.keys(record);\n let data,\n isDisplayed;\n\n return properties.every((prop, index) => {\n data = record[prop];\n /* If fieldDefs are missing, show all columns in data. */\n isDisplayed = (this.fieldDefs.length && isDefined(this.fieldDefs[index]) && this.showFieldBasedOnScreenType(this.fieldDefs[index])) || true;\n /*Validating only the displayed fields*/\n if (isDisplayed) {\n return (data === null || data === undefined || data === '');\n }\n return true;\n });\n }\n\n /* Function to remove the empty data. */\n removeEmptyRecords(serviceData) {\n const allRecords = serviceData;\n let filteredData = [];\n if (allRecords && allRecords.length) {\n /*Comparing and pushing the non-empty data columns*/\n filteredData = allRecords.filter(record => {\n return record && !this.isEmptyRecord(record);\n });\n }\n return filteredData;\n }\n\n setGridData(serverData) {\n const data = this.filternullrecords ? this.removeEmptyRecords(serverData) : serverData;\n // fix for [WMS-24012] set variableinflight flag to false for static variables\n // If the table is bound to some widget and not bound to any variable (ex: Table1.selectedItem) then set variableInflight to false\n if (get(this.datasource, 'category') === 'wm.Variable' || get(this.datasource, 'category') === undefined) {\n this.variableInflight = false;\n }\n if (!this.variableInflight) {\n if (data && (data.length) === 0) {\n this.callDataGridMethod('setStatus', 'nodata', this.nodatamessage);\n } else {\n this.callDataGridMethod('setStatus', 'ready');\n }\n }\n this.gridData = data;\n }\n\n setDataGridOption(optionName, newVal, forceSet = false) {\n if (!this.datagridElement || !this.datagridElement.datatable || !this.datagridElement.datatable('instance')) {\n return;\n }\n const option = {};\n if (isDefined && (!isEqual(newVal, this.gridOptions[optionName]) || forceSet)) {\n option[optionName] = newVal;\n this.datagridElement.datatable('option', option);\n this.gridOptions[optionName] = newVal;\n }\n }\n\n callDataGridMethod(...args) {\n if (!this.datagridElement || !this.datagridElement.datatable('instance')) {\n this.applyProps.set(args[1], args);\n return; // If datagrid is not initiliazed or destroyed, return here\n }\n return this.datagridElement.datatable.apply(this.datagridElement, args);\n }\n\n renderOperationColumns() {\n let rowActionCol,\n insertPosition;\n\n const rowOperationsColumn = getRowOperationsColumn(),\n config = {\n 'name': rowOperationsColumn.field,\n 'field': rowOperationsColumn.field,\n 'isPredefined': true\n };\n // Return if no fieldDefs are present\n if (!this.fieldDefs.length) {\n return;\n }\n\n rowActionCol = find(this.fullFieldDefs, {'field': ROW_OPS_FIELD, type: 'custom'}); // Check if column is fetched from markup\n remove(this.fieldDefs, {type: 'custom', field: ROW_OPS_FIELD}); // Removing operations column\n remove(this.headerConfig, {field: rowOperationsColumn.field});\n\n /*Add the column for row operations only if at-least one operation has been enabled.*/\n if (this.rowActions.length) {\n if (rowActionCol) { // If column is present in markup, push the column or push the default column\n insertPosition = rowActionCol.rowactionsposition ? toNumber(rowActionCol.rowactionsposition) : this.fieldDefs.length;\n this.fieldDefs.splice(insertPosition, 0, rowActionCol);\n if (insertPosition === 0) {\n this.headerConfig.unshift(config);\n } else {\n this.headerConfig.push(config);\n }\n } else {\n this.fieldDefs.push(rowOperationsColumn);\n this.headerConfig.push(config);\n }\n }\n this.setDataGridOption('headerConfig', this.headerConfig);\n }\n\n enablePageNavigation() {\n if (this.dataset && this.binddataset && this.dataNavigator) {\n /*Check for sanity*/\n this.dataNavigatorWatched = true;\n\n if (this.navigatorResultWatch) {\n this.navigatorResultWatch.unsubscribe();\n }\n /*Register a watch on the \"result\" property of the \"dataNavigator\" so that the paginated data is displayed in the live-list.*/\n this.navigatorResultWatch = this.dataNavigator.resultEmitter.subscribe((newVal) => {\n /* Check for sanity. */\n if (isDefined(newVal)) {\n // Watch will not be triggered if dataset and new value are equal. So trigger the property change handler manually\n // This happens in case, if dataset is directly updated.\n if (isEqual(this.dataset, newVal)) {\n this.watchVariableDataSet(newVal);\n } else {\n if (isArray(newVal)) {\n this.widget.dataset = [].concat(newVal);\n } else if (isObject(newVal)) {\n this.widget.dataset = extend({}, newVal);\n } else {\n this.widget.dataset = newVal;\n }\n }\n } else {\n this.widget.dataset = undefined;\n }\n }, true);\n /*De-register the watch if it is exists */\n if (this.navigatorMaxResultWatch) {\n this.navigatorMaxResultWatch.unsubscribe();\n }\n /*Register a watch on the \"maxResults\" property of the \"dataNavigator\" so that the \"pageSize\" is displayed in the live-list.*/\n this.navigatorMaxResultWatch = this.dataNavigator.maxResultsEmitter.subscribe((newVal) => {\n this.pagesize = newVal;\n });\n // If dataset is a pageable object, data is present inside the content property\n this.__fullData = this.dataset;\n\n this.dataNavigator.widget.maxResults = this.pagesize || 5;\n this.dataNavigator.options = {\n maxResults: this.pagesize || 5\n };\n this.removePropertyBinding('dataset');\n this.dataNavigator.setBindDataSet(this.binddataset, this.viewParent, this.datasource, this.dataset, this.binddatasource, undefined, this.statehandler);\n }\n }\n\n resetPageNavigation() {\n /*Check for sanity*/\n if (this.dataNavigator) {\n this.dataNavigator.resetPageNavigation();\n }\n }\n\n isDataValid() {\n let error;\n const dataset = this.dataset || {};\n\n /*In case \"data\" contains \"error\" & \"errorMessage\", then display the error message in the grid.*/\n if (dataset.error) {\n error = dataset.error;\n }\n if (dataset.data && dataset.data.error) {\n if (dataset.data.errorMessage) {\n error = dataset.data.errorMessage;\n }\n }\n if (error) {\n this.setGridData([]);\n this.callDataGridMethod('setStatus', 'error', error);\n return false;\n }\n return true;\n }\n\n // Function to populate the grid with data.\n populateGridData(serviceData) {\n let data;\n serviceData = transformData(serviceData, this.name);\n // Apply filter and sort, if data is refreshed through Refresh data method\n if (!this.isNavigationEnabled() && this._isClientSearch) {\n data = getClonedObject(serviceData);\n data = this.getSearchResult(data, this.filterInfo);\n data = this.getSortResult(data, this.sortInfo);\n this.serverData = data;\n } else {\n this.serverData = serviceData;\n }\n // If fielddefs are not present, generate fielddefs from data\n // Removing fielddefs check because When loadondemand property is enabled(deferload=\"true\"), the dataset propertychangehanlder is triggered first before the dom is getting rendered.\n // So at that time fielddefs length is zero, due to this the columns are created dynamically.\n if (this.isdynamictable) {\n this.createGridColumns(this.serverData);\n } else {\n this.setGridData(this.serverData);\n }\n if (this.getConfiguredState() !== 'none' && this._selectedItemsExist && serviceData.length) {\n const widgetState = this.statePersistence.getWidgetState(this);\n let currentPageItems;\n if (get(widgetState, 'selectedItem')) {\n currentPageItems = widgetState.selectedItem.filter(val => {\n return val.page === this.dataNavigator.dn.currentPage;\n });\n this._selectedItemsExist = false;\n // if an item is already selected, don't trigger onSelect event for it again\n if (currentPageItems.length && this.selecteditem.length !== widgetState.selectedItem.length) {\n // don't reassign this.selecteditem if selected items already exist.\n if (isArray(this.selecteditem)) {\n currentPageItems.forEach((item) => {\n this.selectItem(item.index, undefined);\n });\n } else {\n this.selecteditem = currentPageItems.map(function(val) {return val.index; });\n }\n }\n }\n }\n }\n\n // Function to generate and compile the form fields from the metadata\n async generateDynamicColumns(columns) {\n this.fieldDefs = []; // empty the form fields\n // empty the filter field template refs.\n (this.filterTmpl as any)._results = [];\n\n if (isEmpty(columns)) {\n return;\n }\n\n let tmpl = '';\n columns.forEach(col => {\n let attrsTmpl = '';\n let customTmpl = '';\n forEach(col, (val, key) => {\n if (!isUndefined(val) && val !== '') {\n // If custom expression is present, keep it inside table column. Else, keep as attribute\n if (key === 'customExpression') {\n customTmpl = val;\n } else {\n attrsTmpl += ` ${key}=\"${val}\"`;\n }\n }\n });\n tmpl += `<wm-table-column ${attrsTmpl} tableName=\"${this.name}${(this as any).$attrs.get('table_reference')}\">${customTmpl}</wm-table-column>`;\n });\n this.dynamicTableRef.clear();\n if (!this._dynamicContext) {\n this._dynamicContext = Object.create(this.viewParent);\n this._dynamicContext[this.getAttr('wmTable')] = this;\n }\n this.noOfColumns = columns.length;\n const componentFactoryRef = await this.dynamicComponentProvider.getComponentFactoryRef(\n 'app-table-dynamic-' + this.widgetId,\n tmpl,\n {\n noCache: true,\n transpile: true\n });\n const component = this.dynamicTableRef.createComponent(componentFactoryRef, 0, this.inj);\n extendProto(component.instance, this._dynamicContext);\n this.$element.find('.dynamic-table-container')[0].appendChild(component.location.nativeElement);\n }\n\n prepareColDefs(data) {\n let defaultFieldDefs;\n let properties;\n let columnIndex = 0;\n let headerIndex = 0;\n\n this.fieldDefs = [];\n this.headerConfig = [];\n this.columns = {};\n /* if properties map is existed then fetch the column configuration for all nested levels using util function */\n properties = data;\n /*call utility function to prepare fieldDefs for grid against given data (A MAX OF 10 COLUMNS ONLY)*/\n defaultFieldDefs = prepareFieldDefs(properties);\n\n /*append additional properties*/\n forEach(defaultFieldDefs, columnDef => {\n columnDef.binding = columnDef.field;\n columnDef.caption = columnDef.displayName;\n columnDef.pcDisplay = true;\n columnDef.mobileDisplay = true;\n columnDef.tabletDisplay = true;\n columnDef.searchable = true;\n columnDef.showinfilter = true;\n columnDef.type = 'string';\n // Fix for [WMS-19668] and [WMS-19669]- Adding index and headerIndex for Dynamic DB columns.\n // Note: we don't have column groups for Dynamic DB\n columnDef.index = columnIndex;\n columnDef.headerIndex = headerIndex;\n columnIndex++;\n headerIndex++;\n });\n\n defaultFieldDefs.forEach(col => {\n this.columns[col.field] = col;\n });\n\n this.invokeEventCallback('beforedatarender', {$data: data, $columns: this.columns, data: data, columns: this.columns});\n\n defaultFieldDefs = [];\n // Apply the changes made by the user\n forEach(this.columns, val => {\n defaultFieldDefs.push(val);\n });\n\n this.generateDynamicColumns(defaultFieldDefs);\n }\n\n createGridColumns(data) {\n /* this call back function receives the data from the variable */\n /* check whether data is valid or not */\n const dataValid = data && !data.error;\n /*if the data is type json object, make it an array of the object*/\n if (dataValid && !isArray(data)) {\n data = [data];\n }\n /* if the data is empty, show nodatamessage */\n if (isEmpty(data)) {\n this.setGridData(data);\n return;\n }\n\n if (!dataValid) {\n return;\n }\n /* if new columns to be rendered, prepare default fieldDefs for the data provided*/\n this.prepareColDefs(data);\n\n this.serverData = data;\n this.setGridData(this.serverData);\n }\n\n getSortExpr() {\n let sortExp;\n let pagingOptions;\n if (this.datasource && this.datasource.execute(DataSource.Operation.IS_PAGEABLE)) {\n pagingOptions = this.datasource.execute(DataSource.Operation.GET_PAGING_OPTIONS);\n sortExp = isEmpty(pagingOptions) ? '' : getOrderByExpr(pagingOptions.sort);\n }\n return sortExp || '';\n }\n\n onPropertyChange(key: string, nv: any, ov?: any) {\n let enableNewRow;\n switch (key) {\n case 'datasource':\n // Fix for [WMS-23653] when startUpdate is false (request on page load property is unchecked),\n // then set status msg as \"No data found\"\n if (nv.startUpdate === false) {\n this.variableInflight = false;\n this.callDataGridMethod('setStatus', 'nodata', this.nodatamessage);\n }\n this.watchVariableDataSet(this.dataset);\n this.onDataSourceChange();\n break;\n case 'dataset':\n if (this.gridOptions.isNavTypeScrollOrOndemand() && this.gridOptions.getCurrentPage() === 1) {\n this.gridOptions.setIsNextPageData(false);\n }\n if (this.binddatasource && !this.datasource) {\n return;\n }\n // if table is inside list then table dataset will be set as \"item.XXX\" and there is no datasource.\n // So extracting datasource from the datset bound expression.\n if (this.parentList && !this.datasource && startsWith(this.binddataset, 'item')) {\n this.datasource = getDatasourceFromExpr(this.widget.$attrs.get('datasetboundexpr'), this);\n }\n if (this.gridOptions.isNavTypeScrollOrOndemand()) {\n if (this.gridOptions.isNextPageData) {\n // when fetching next page data\n this.gridOptions.setIsDataUpdatedByUser(false);\n } else {\n // when dataset is updated from script\n this.gridOptions.setIsDataUpdatedByUser(true);\n this.setLastActionToDatasetUpdate();\n this.gridOptions.setIsNextPageData(false);\n }\n }\n // for Static Variables with Retain State enabled, prevent Table from rendering more than once\n // Fix for [WMS-25284]: Render table that is inside list widget and bound to static Variable\n if (!(get(this.datasource, 'category') === 'wm.Variable' && this._pageLoad && this.getConfiguredState() !== 'none') || (this.parentList && startsWith(this.binddataset, 'item'))) {\n this.watchVariableDataSet(nv);\n }\n break;\n case 'filtermode':\n this.setDataGridOption('filtermode', nv);\n break;\n case 'searchlabel':\n this.setDataGridOption('searchLabel', nv);\n break;\n case 'navigation':\n if (nv === 'Advanced') { // Support for older projects where navigation type was advanced instead of clasic\n this.navigation = 'Classic';\n return;\n }\n if (nv !== 'None') {\n this.shownavigation = true;\n }\n this.setDataGridOption('navigation', this.navigation);\n this.onDemandLoad = nv === NAVIGATION_TYPE.ONDEMAND ? true : false;\n this.infScroll = nv === NAVIGATION_TYPE.SCROLL ? true : false;\n this.navControls = nv;\n break;\n case 'gridfirstrowselect':\n this.setDataGridOption('selectFirstRow', nv);\n break;\n case 'gridclass':\n this.callDataGridMethod('option', 'cssClassNames.grid', nv);\n break;\n case 'nodatamessage':\n this.callDataGridMethod('option', 'dataStates.nodata', nv);\n break;\n case 'loadingdatamsg':\n this.callDataGridMethod('option', 'dataStates.loading', nv);\n break;\n case 'loadingicon':\n this.callDataGridMethod('option', 'loadingicon', nv);\n break;\n case 'spacing':\n this.callDataGridMethod('option', 'spacing', nv);\n if (nv === 'condensed') {\n this.navigationSize = 'small';\n } else {\n this.navigationSize = '';\n }\n break;\n case 'exportformat':\n this.exportOptions = [];\n if (nv) {\n // Populate options for export drop down menu\n forEach(split(nv, ','), type => {\n this.exportOptions.push({\n label: type,\n icon: exportIconMapping[type]\n });\n });\n }\n break;\n case 'shownewrow':\n // Enable new row if shownew is true or addNewRow buton is present\n enableNewRow = nv || some(this.actions, act => includes(act.action, 'addNewRow()'));\n this.callDataGridMethod('option', 'actionsEnabled.new', enableNewRow);\n break;\n case 'pagesize':\n this.dataNavigator.options = {\n maxResults: nv\n };\n this.dataNavigator.widget.maxResults = nv;\n this.dataNavigator.maxResults = nv;\n break;\n case 'ondemandmessage':\n if (nv) {\n this.$element.find('.on-demand-datagrid > a').text(nv);\n }\n this.gridOptions.ondemandmessage = nv;\n break;\n case 'viewlessmessage':\n this.gridOptions.viewlessmessage = nv;\n break;\n case 'show':\n if (nv) {\n this.invokeEventCallback('show');\n } else {\n this.invokeEventCallback('hide');\n }\n default:\n super.onPropertyChange(key, nv, ov);\n }\n }\n\n onDataSourceChange() {\n this.fieldDefs.forEach(col => {\n triggerFn(col.onDataSourceChange && col.onDataSourceChange.bind(col));\n });\n }\n\n private clearActionRowVars() {\n this.actionRowIndex = undefined;\n this.actionRowPage = undefined;\n this.setDataGridOption('actionRowIndex', undefined);\n this.setDataGridOption('actionRowPage', undefined);\n }\n\n onStyleChange(key, nv, ov) {\n switch (key) {\n case 'width':\n this.callDataGridMethod('setGridDimensions', 'width', nv);\n break;\n case 'height':\n this.callDataGridMethod('setGridDimensions', 'height', nv);\n break;\n }\n\n super.onStyleChange(key, nv, ov);\n }\n\n populateActions() {\n this._actions.header = [];\n this._actions.footer = [];\n forEach(this.actions, (action) => {\n if (includes(action.position, 'header')) {\n this._actions.header.push(action);\n }\n if (includes(action.position, 'footer')) {\n this._actions.footer.push(action);\n }\n });\n }\n\n // this method will render the filter row.\n renderDynamicFilterColumn(filteTemRef) {\n // For dynamic table manually pushing the filtertemplateRef as templateRef will not be available prior.\n if (this.isdynamictable) {\n (this.filterTmpl as any)._results.push(filteTemRef);\n }\n }\n\n registerColumns(tableColumn, colIndex) {\n if (isMobile() && this.viewport.isMobileType) {\n if (!tableColumn.mobileDisplay) {\n return;\n }\n } else if (this.viewport.isTabletType) {\n if (!tableColumn.tabletDisplay) {\n return;\n }\n } else {\n if (!tableColumn.pcDisplay) {\n return;\n }\n }\n if (tableColumn['primary-key']) {\n this.primaryKey.push(tableColumn.field);\n }\n this.fieldDefs[colIndex] = tableColumn;\n const colCount = this.fieldDefs.length;\n this.fullFieldDefs.push(tableColumn);\n this.rowFilter[tableColumn.field] = {\n value: undefined\n };\n this.fieldDefs.forEach(col => {\n this.columns[col.field] = col;\n });\n // If dynamic datatable and last column, pass the columns to jquery datatable\n if (this.isdynamictable && colCount === this.noOfColumns) {\n this.renderOperationColumns();\n this.setDataGridOption('colDefs', this.fieldDefs);\n }\n }\n\n registerFormField(name, formField) {\n this.formfields[name] = formField;\n }\n\n registerActions(tableAction) {\n this.actions.push(tableAction);\n this.populateActions();\n }\n\n registerRow(tableRow, rowInstance) {\n this.rowDef = tableRow;\n this.rowInstance = rowInstance;\n this.callDataGridMethod('option', 'cssClassNames.rowExpandIcon', this.rowDef.expandicon);\n this.callDataGridMethod('option', 'cssClassNames.rowCollapseIcon', this.rowDef.collapseicon);\n this.gridOptions.rowExpansionEnabled = true;\n this.gridOptions.rowDef = this.rowDef;\n }\n\n registerRowActions(tableRowAction) {\n this.rowActions.push(tableRowAction);\n }\n\n selectItem(item, data) {\n /* server is not updating immediately, so set the server data to success callback data */\n if (data) {\n this.serverData = data;\n }\n if (isObject(item)) {\n item = omitBy(item, (value) => {\n return isArray(value) && isEmpty(value);\n });\n }\n this.callDataGridMethod('selectRow', item, true);\n }\n /* deselect the given item*/\n deselectItem(item) {\n this.callDataGridMethod('deselectRow', item);\n }\n\n onDataNavigatorDataSetChange(nv) {\n let data;\n this.__fullData = nv;\n this.checkFiltersApplied(this.getSortExpr());\n if (this._isClientSearch) {\n data = getClonedObject(this.__fullData);\n if (isObject(data) && !isArray(data)) {\n data = [data];\n }\n data = this.getSearchResult(data, this.filterInfo);\n data = this.getSortResult(data, this.sortInfo);\n return data;\n }\n return nv;\n }\n\n toggleMessage(show, type, msg, header?) {\n if (show && msg) {\n this.app.notifyApp(msg, type, header);\n }\n }\n\n export($item) {\n let filterFields;\n const sortOptions = isEmpty(this.sortInfo) ? '' : this.sortInfo.field + ' ' + this.sortInfo.direction;\n const columns = {};\n let isValid;\n let requestData;\n this.fieldDefs.forEach(fieldDef => {\n // Do not add the row operation actions column to the exported file.\n if (fieldDef.field === ROW_OPS_FIELD || !fieldDef.show) {\n return;\n }\n const option = {\n 'header': fieldDef.displayName\n };\n // If column has exportexpression, then send form the expression as required by backend.\n // otherwise send the field name.\n if (fieldDef.exportexpression) {\n (<any>option).expression = fieldDef.exportexpression;\n } else {\n (<any>option).field = fieldDef.field;\n }\n columns[fieldDef.field] = option;\n });\n filterFields = this.getFilterFields(this.filterInfo);\n requestData = {\n matchMode : 'anywhereignorecase',\n filterFields : filterFields,\n orderBy : sortOptions,\n exportType : $item.label,\n logicalOp : 'AND',\n exportSize : this.exportdatasize,\n columns : columns\n };\n isValid = this.invokeEventCallback('beforeexport', {$data: requestData});\n if (isValid === false) {\n return;\n }\n requestData.fields = values(requestData.columns);\n this.datasource.execute(DataSource.Operation.DOWNLOAD, {data: requestData});\n }\n\n expandRow(rowId) {\n this.callDataGridMethod('expandRow', rowId);\n }\n\n collapseRow(rowId) {\n this.callDataGridMethod('collapseRow', rowId);\n }\n\n private _documentClickBind(event) {\n const $target = event.target;\n // If click triggered from same grid or a dialog, do not save the row\n if (this.$element[0].contains($target) || event.target.doctype || isInputBodyWrapper($($target))) {\n return;\n }\n this.callDataGridMethod('saveRow');\n }\n\n private _redraw(forceRender) {\n if (forceRender) {\n this.datagridElement.datatable(this.gridOptions);\n } else {\n setTimeout(() => {\n this.callDataGridMethod('setColGroupWidths');\n this.callDataGridMethod('addOrRemoveScroll');\n });\n }\n }\n\n invokeActionEvent($event, expression: string) {\n const fn = $parseEvent(expression);\n fn(this.viewParent, Object.assign(this.context, {$event}));\n }\n\n // change and blur events are added from the template\n protected handleEvent(node: HTMLElement, eventName: string, callback: Function, locals: any) {\n if (eventName !== 'select') {\n super.handleEvent(this.nativeElement, eventName, callback, locals);\n }\n }\n\n triggerUploadEvent($event, eventName, fieldName, row) {\n const params: any = {$event, row};\n if (!this.columns[fieldName]) {\n return;\n }\n if (eventName === 'change') {\n params.newVal = $event.target.files;\n params.oldVal = this.columns[fieldName]._oldUploadVal;\n this.columns[fieldName]._oldUploadVal = params.newVal;\n }\n this.columns[fieldName].invokeEventCallback(eventName, params);\n }\n\n registerFormWidget() {}\n\n // Form control accessor methods. This will be used for table inside form\n writeValue() {}\n\n private _onChange: any = () => {};\n private _onTouched: any = () => {};\n\n registerOnChange(fn) {\n this._onChange = fn;\n }\n registerOnTouched(fn) {\n this._onTouched = fn;\n }\n\n ngOnDetach() {\n super.ngOnDetach();\n if (get(this.datasource, 'category') === 'wm.Variable' && this.getConfiguredState() !== 'none') {\n this._pageLoad = false;\n } else {\n this._pageLoad = true;\n }\n }\n}\n","import { Directive, Inject, Self } from '@angular/core';\n\nimport { $invokeWatchers, $appDigest, AbstractDialogService, App, DataSource, extractCurrentItemExpr, triggerFn } from '@wm/core';\nimport { refreshDataSource } from '@wm/components/base';\n\nimport { TableComponent } from './table.component';\nimport {last, map, parseInt, startsWith} from \"lodash-es\";\n\ndeclare const $;\n\nconst OPERATION = {\n 'NEW': 'new',\n 'EDIT': 'edit',\n 'DELETE': 'delete'\n};\n\n@Directive({\n selector: '[wmTableCUD]'\n})\nexport class TableCUDDirective {\n\n constructor(\n @Self() @Inject(TableComponent) private table,\n private dialogService: AbstractDialogService,\n private app: App\n ) {\n table.initiateSelectItem = this.initiateSelectItem.bind(this);\n table.updateVariable = this.updateVariable.bind(this);\n table.updateRecord = this.updateRecord.bind(this);\n table.deleteRecord = this.deleteRecord.bind(this);\n table.insertRecord = this.insertRecord.bind(this);\n table.editRow = this.editRow.bind(this);\n table.addNewRow = this.addNewRow.bind(this);\n table.addRow = this.addNewRow.bind(this);\n table.deleteRow = this.deleteRow.bind(this);\n table.onRecordDelete = this.onRecordDelete.bind(this);\n table.hideEditRow = this.hideEditRow.bind(this);\n table.saveRow = this.saveRow.bind(this);\n table.cancelRow = this.cancelRow.bind(this);\n }\n\n private selectItemOnSuccess(row, skipSelectItem, callBack) {\n /*$timeout is used so that by then $is.dataset has the updated value.\n * Selection of the item is done in the callback of page navigation so that the item that needs to be selected actually exists in the grid.*/\n /*Do not select the item if skip selection item is specified*/\n setTimeout(() => {\n if (!skipSelectItem) {\n this.table.selectItem(row, this.table.dataset);\n }\n triggerFn(callBack);\n }, 250);\n }\n\n initiateSelectItem(index, row, skipSelectItem?, isStaticVariable?, callBack?) {\n // In case of on demand and Infinite Scroll pagination, when new row is inserted show it in the last page and continue with current flow instead of navigating user to the last page\n if ((this.table.gridOptions.isNavTypeScrollOrOndemand() ) && !this.table.dataNavigator.isDisableNext && this.table.isNewRowInserted) {\n this.table.isNewRowInserted = false;\n return;\n }\n /*index === \"last\" indicates that an insert operation has been successfully performed and navigation to the last page is required.\n * Hence increment the \"dataSize\" by 1.*/\n if (index === 'last') {\n if (!isStaticVariable) {\n this.table.dataNavigator.dataSize += 1;\n }\n /*Update the data in the current page in the grid after insert/update operations.*/\n if (!this.table.isNavigationEnabled()) {\n index = 'current';\n }\n }\n /*Re-calculate the paging values like pageCount etc that could change due to change in the dataSize.*/\n this.table.dataNavigator.calculatePagingValues();\n /* updating pagination fulldata*/\n this.table.dataNavigator.__fullData = this.table.__fullData;\n this.table.dataNavigator.navigatePage(index, null, true, () => {\n if (this.table.isNavigationEnabled() || isStaticVariable) {\n this.selectItemOnSuccess(row, skipSelectItem, callBack);\n }\n if (this.table.editmode === 'quickedit' && !skipSelectItem) {\n // In case of quickeditmode, manually set active row to attach event handlers and focus the row\n this.table.callDataGridMethod('setActiveRow', row);\n }\n });\n }\n\n updateVariable(row?, callBack?) {\n const dataSource = this.table.datasource;\n if (!dataSource) {\n return;\n }\n\n dataSource.execute(DataSource.Operation.FETCH_DISTINCT_VALUES);\n\n if (!this.table.isNavigationEnabled()) {\n const sortInfo = this.table.sortInfo;\n const sortOptions = sortInfo && sortInfo.direction ? (sortInfo.field + ' ' + sortInfo.direction) : '';\n refreshDataSource(dataSource, {\n page: 1,\n filterFields: this.table.getFilterFields(this.table.filterInfo),\n orderBy: sortOptions,\n matchMode: 'anywhereignorecase'\n }).then(() => {\n $appDigest();\n this.selectItemOnSuccess(row, true, callBack);\n });\n }\n }\n\n private insertSuccessHandler(response, options) {\n /*Display appropriate error message in case of error.*/\n if (response.error) {\n this.table.invokeEventCallback('error', {$event: options.event, $operation: OPERATION.NEW, $data: response.error});\n if (!this.table.onError) {\n this.table.toggleMessage(true, 'error', this.table.errormessage || response.error);\n }\n triggerFn(options.error, response);\n } else {\n if (this.table.gridOptions.isNavTypeScrollOrOndemand()) {\n this.table.isNewRowInserted = true;\n }\n if (options.event) {\n const row = $(options.event.target).closest('tr');\n this.table.callDataGridMethod('hideRowEditMode', row);\n }\n if (!this.table.onRowinsert) {\n this.table.toggleMessage(true, 'success', this.table.insertmessage);\n }\n if (this.table.datasource.execute(DataSource.Operation.SUPPORTS_CRUD)) {\n this.table.initiateSelectItem(this.table.getNavigationTargetBySortInfo(), response, undefined, false, options.callBack);\n this.updateVariable(response, options.callBack);\n } else if (!this.table.datasource.execute(DataSource.Operation.IS_API_AWARE)) {\n this.table.initiateSelectItem(this.table.getNavigationTargetBySortInfo(), response, undefined, false, options.callBack);\n }\n triggerFn(options.success, response);\n this.table.invokeEventCallback('rowinsert', {$event: options.event, $data: response, row: response});\n }\n }\n\n\n generatePath(binddataset) {\n let path, index;\n let dataBoundExpr = this.table.widget.$attrs.get('datasetboundexpr');\n if (startsWith(binddataset, 'item') && dataBoundExpr) {\n if (startsWith(dataBoundExpr, 'Widgets.')) {\n dataBoundExpr = extractCurrentItemExpr(dataBoundExpr, this.table);\n }\n const parentListItems = this.table.$element.parents('.app-list-item');\n const indexArr = map(parentListItems, (item) => parseInt($(item).attr('listitemindex')));\n for (let i = indexArr.length - 1; i >= 0; i--) {\n dataBoundExpr = dataBoundExpr.replace('$i', indexArr[i]);\n }\n index = last(indexArr);\n path = dataBoundExpr.replace(/^Variables\\..*\\.dataSet([^.])*(\\.|$)/g, '');\n } else {\n // if we have dataset as \"Variables.staticVar1.dataSet[1].details\" then pass index as 1.\n const regEx = /^Variables\\..*\\.dataSet([\\[][0-9]])/g;\n if (regEx.test(binddataset)) {\n index = parseInt(binddataset.replace(/^Variables\\..*\\.dataSet([\\[])/g, ''));\n }\n path = binddataset.replace(/^Variables\\..*\\.dataSet([^.])*(\\.|$)/g, '');\n }\n return { path, index };\n }\n\n insertRecord(options) {\n const dataSource = this.table.datasource;\n if (!dataSource) {\n return;\n }\n const currentPageNum = dataSource.pagination && dataSource.pagination.number + 1;\n const dataObject = {\n row : options.row,\n skipNotification : true,\n period: options.period\n };\n if (dataSource.execute(DataSource.Operation.SUPPORTS_CRUD) || !dataSource.execute(DataSource.Operation.IS_API_AWARE) || dataSource.category === 'wm.CrudVariable') {\n if (!dataSource.execute(DataSource.Operation.IS_API_AWARE)) {\n const extraOptions = this.generatePath(this.table.binddataset);\n dataSource.execute(DataSource.Operation.ADD_ITEM, {item: options.row, path: extraOptions.path, parentIndex: extraOptions.index});\n this.insertSuccessHandler(options.row, options);\n return;\n }\n dataSource.execute(DataSource.Operation.INSERT_RECORD, dataObject).then(response => {\n this.insertSuccessHandler(response, options);\n if (dataSource.category === 'wm.CrudVariable') {\n dataSource.execute(DataSource.Operation.LIST_RECORDS, {\n 'skipToggleState': true,\n 'operation': 'list',\n 'page': currentPageNum\n });\n }\n }, error => {\n this.table.invokeEventCallback('error', {$event: options.event, $operation: OPERATION.NEW, $data: error});\n if (!this.table.onError) {\n this.table.toggleMessage(true, 'error', this.table.errormessage || error);\n }\n triggerFn(options.error, error);\n triggerFn(options.callBack, undefined, true);\n });\n } else {\n this.table.invokeEventCallback('rowinsert', {$event: options.event, row: options.row});\n }\n }\n\n private updateSuccessHandler(response, options) {\n /*Display appropriate error message in case of error.*/\n if (response.error) {\n this.table.invokeEventCallback('error', {$event: options.event, $operation: OPERATION.EDIT, $data: response.error});\n /*disable readonly and show the appropriate error*/\n if (!this.table.onError) {\n this.table.toggleMessage(true, 'error', this.table.errormessage || response.error);\n }\n triggerFn(options.error, response);\n } else {\n if (options.event) {\n const row = $(options.event.target).closest('tr');\n this.table.callDataGridMethod('hideRowEditMode', row);\n }\n if (!this.table.onRowupdate) {\n this.table.toggleMessage(true, 'success', this.table.updatemessage);\n }\n if (this.table.datasource.execute(DataSource.Operation.SUPPORTS_CRUD)) {\n this.table.initiateSelectItem('current', response, undefined, false, options.callBack);\n this.updateVariable(response, options.callBack);\n } else if (!this.table.datasource.execute(DataSource.Operation.IS_API_AWARE)) {\n this.table.initiateSelectItem('current', response, undefined, false, options.callBack);\n }\n triggerFn(options.success, response);\n this.table.invokeEventCallback('rowupdate', {$event: options.event, $data: response, row: response});\n }\n }\n\n updateRecord(options) {\n const dataSource = this.table.datasource;\n if (!dataSource) {\n return;\n }\n const currentPageNum = dataSource.pagination && dataSource.pagination.number + 1;\n const dataObject = {\n row : options.row,\n prevData : options.prevData,\n skipNotification : true,\n period : options.period\n };\n\n if (dataSource.execute(DataSource.Operation.SUPPORTS_CRUD) || !dataSource.execute(DataSource.Operation.IS_API_AWARE) || dataSource.category === 'wm.CrudVariable') {\n if (!dataSource.execute(DataSource.Operation.IS_API_AWARE)) {\n const extraOptions = this.generatePath(this.table.binddataset);\n dataSource.execute(DataSource.Operation.SET_ITEM, {prevItem: options.prevData, item: options.row, path: extraOptions.path, parentIndex: extraOptions.index});\n this.updateSuccessHandler(options.row, options);\n return;\n }\n dataSource.execute(DataSource.Operation.UPDATE_RECORD, dataObject).then(response => {\n this.updateSuccessHandler(response, options);\n if (dataSource.category === 'wm.CrudVariable') {\n dataSource.execute(DataSource.Operation.LIST_RECORDS, {\n 'skipToggleState': true,\n 'operation': 'list',\n 'page': currentPageNum\n });\n }\n }, error => {\n this.table.invokeEventCallback('error', {$event: options.event, $operation: OPERATION.EDIT, $data: error});\n if (!this.table.onError) {\n this.table.toggleMessage(true, 'error', this.table.errormessage || error);\n }\n triggerFn(options.error, error);\n triggerFn(options.callBack, undefined, true);\n });\n } else {\n this.table.invokeEventCallback('rowupdate', {$event: options.event, row: options.row});\n }\n }\n\n onRecordDelete(callBack?) {\n let index;\n /*Check for sanity*/\n if (this.table.dataNavigator) {\n this.table.dataNavigator.dataSize -= 1;\n this.table.dataNavigator.calculatePagingValues();\n /*If the current page does not contain any records due to deletion, then navigate to the previous page.*/\n index = this.table.dataNavigator.pageCount < this.table.dataNavigator.dn.currentPage ? 'prev' : undefined;\n /* updating pagination fulldata*/\n this.table.dataNavigator.__fullData = this.table.__fullData;\n this.table.dataNavigator.navigatePage(index, null, true, () => {\n setTimeout(() => {\n triggerFn(callBack);\n }, undefined, false);\n });\n }\n }\n\n private deleteSuccessHandler(row, response?, evt?, callBack?) {\n /* check the response whether the data successfully deleted or not , if any error occurred show the\n * corresponding error , other wise remove the row from grid */\n if (response && response.error) {\n if (!this.table.onError) {\n this.table.toggleMessage(true, 'error', this.table.errormessage || response.error);\n }\n return;\n }\n this.onRecordDelete(callBack);\n if (this.table.datasource.execute(DataSource.Operation.SUPPORTS_CRUD)) {\n this.updateVariable(row, callBack);\n }\n if (!this.table.onRowdelete) {\n this.table.toggleMessage(true, 'success', this.table.deletemessage);\n }\n // custom EventHandler for row deleted event\n this.table.invokeEventCallback('rowdelete', {$event: evt, $data: row, row});\n this.table.invokeEventCallback('rowdeleted', {$event: evt, $data: row, row});\n }\n\n private deleteFn(options) {\n const dataSource = this.table.datasource;\n let isLastPageElement, currentPageNum;\n if (!dataSource) {\n return;\n }\n // when delete operation is executed, turn on isRowDeleted flag to perform the next operations in table component\n if (this.table.onDemandLoad || this.table.infScroll) {\n this.table.isRowDeleted = true;\n }\n if (dataSource.category === 'wm.CrudVariable') {\n this.triggerWMEvent('resetEditMode');\n if (dataSource.pagination) {\n isLastPageElement = dataSource.pagination.last && dataSource.pagination.numberOfElements === 1;\n currentPageNum = isLastPageElement ? dataSource.pagination.number : dataSource.pagination.number + 1;\n }\n }\n if (dataSource.execute(DataSource.Operation.SUPPORTS_CRUD) || !dataSource.execute(DataSource.Operation.IS_API_AWARE) || this.table._isDependent || dataSource.category === 'wm.CrudVariable') {\n if (!dataSource.execute(DataSource.Operation.IS_API_AWARE)) {\n const extraOptions = this.generatePath(this.table.binddataset);\n dataSource.execute(DataSource.Operation.REMOVE_ITEM, {item: options.row, path: extraOptions.path, parentIndex: extraOptions.index});\n this.deleteSuccessHandler(options.row, undefined, options.evt, options.callBack);\n return;\n }\n dataSource.execute(DataSource.Operation.DELETE_RECORD, {\n row: options.row,\n skipNotification : true,\n period: options.period\n }).then(response => {\n this.deleteSuccessHandler(response, options.row, options.evt, options.callBack);\n if (dataSource.category === 'wm.CrudVariable') {\n //this.triggerWMEvent('rerender', dataSource);\n dataSource.execute(DataSource.Operation.LIST_RECORDS, {\n 'skipToggleState': true,\n 'operation': 'list',\n 'page': currentPageNum\n });\n }\n }, error => {\n // In case of deletion failure, turn isRowDeleted flag off to prevent executing code in table comp\n if (this.table.isRowDeleted) {\n this.table.isRowDeleted = false;\n }\n triggerFn(options.callBack, undefined, true);\n this.table.invokeEventCallback('error', {$event: options.evt, $operation: OPERATION.DELETE, $data: error});\n if (!this.table.onError) {\n this.table.toggleMessage(true, 'error', this.table.errormessage || error);\n }\n });\n } else {\n this.table.invokeEventCallback('rowdelete', {$event: options.evt, row: options.row});\n }\n triggerFn(options.cancelRowDeleteCallback);\n }\n\n deleteRecord(options) {\n if (!this.table.confirmdelete) {\n this.deleteFn(options);\n triggerFn(options.cancelRowDeleteCallback);\n return;\n }\n this.dialogService.showAppConfirmDialog({\n title: this.app.appLocale.MESSAGE_DELETE_RECORD || 'Delete Record',\n iconclass: 'wi wi-delete fa-lg',\n message: this.table.confirmdelete,\n oktext: this.table.deleteoktext,\n canceltext: this.table.deletecanceltext,\n onOk: () => {\n this.deleteFn(options);\n this.dialogService.closeAppConfirmDialog();\n },\n onCancel: () => {\n triggerFn(options.cancelRowDeleteCallback);\n this.dialogService.closeAppConfirmDialog();\n },\n onOpen: () => {\n // Focus the cancel button on open\n $('.cancel-action').focus();\n },\n onEscape: () => {\n triggerFn(options.cancelRowDeleteCallback);\n }\n });\n }\n\n editRow(evt?) {\n let row;\n if (this.table._isDependent) {\n this.triggerWMEvent('update');\n return;\n }\n if (evt && evt.target) {\n this.table.callDataGridMethod('toggleEditRow', evt, {'selectRow': true, action: 'edit'});\n } else {\n // For live form, call the update function with selected item\n if (this.table.editmode === 'form' || this.table.editmode === 'dialog') {\n row = evt || this.table.selectedItems[0];\n this.table.gridOptions.beforeRowUpdate(row);\n } else {\n // Wait for the selected item to get updated\n setTimeout(() => {\n row = this.table.datagridElement.find('tr.active');\n if (row.length) {\n this.table.callDataGridMethod('toggleEditRow', undefined, {$row: row, action: 'edit'});\n }\n });\n }\n }\n this.table._triggeredByUser = true;\n // Fix for [WMS-23263]: set 'isDataUpdatedByUser' flag to false since dataset is not being updated from script\n this.table.gridOptions.setIsDataUpdatedByUser(false);\n }\n\n addNewRow() {\n if (!this.table.isGridEditMode) { // If grid is already in edit mode, do not add new row\n this.table._triggeredByUser = true;\n // Fix for [WMS-23263]: set 'isDataUpdatedByUser' flag to false since dataset is not being updated from script\n this.table.gridOptions.setIsDataUpdatedByUser(false);\n this.table.callDataGridMethod('addNewRow');\n if (this.table._liveTableParent) {\n this.table._liveTableParent.addNewRow();\n } else if (this.table._isDependent) {\n this.triggerWMEvent('insert');\n //this.table.callDataGridMethod('addNewRow');\n }\n }\n }\n\n private triggerWMEvent(eventName, dataSource?) {\n $invokeWatchers(true);\n this.app.notify('wm-event', {eventName, widgetName: this.table.name, row: this.table.selecteditem, dataSource: dataSource});\n }\n\n deleteRow(evt) {\n let row;\n if (evt && evt.target) {\n this.table.callDataGridMethod('deleteRowAndUpdateSelectAll', evt);\n } else {\n // Wait for the selected item to get updated\n setTimeout(() => {\n row = evt || this.table.selectedItems[0];\n this.deleteRecord({row});\n });\n }\n this.table._triggeredByUser = true;\n // Fix for [WMS-23263]: set 'isDataUpdatedByUser' flag to false since dataset is not being updated from script\n this.table.gridOptions.setIsDataUpdatedByUser(false);\n }\n\n // Function to hide the edited row\n hideEditRow() {\n const $row = this.table.datagridElement.find('tr.row-editing');\n if ($row.length) {\n this.table.callDataGridMethod('hideRowEditMode', $row);\n }\n }\n\n // Function to save the row\n saveRow() {\n this.table.callDataGridMethod('saveRow');\n }\n\n // Function to cancel the edit\n cancelRow() {\n const $row = this.table.datagridElement.find('tr.row-editing');\n if ($row.length) {\n this.table.callDataGridMethod('cancelEdit', $row);\n }\n }\n}\n","import { Directive, Inject, Self } from '@angular/core';\n\nimport { $appDigest, DataSource, DataType, FormWidgetType, getClonedObject, isDefined, isNumberType, adjustContainerRightEdges } from '@wm/core';\nimport { getMatchModeMsgs, getMatchModeTypesMap, isDataSetWidget, refreshDataSource, unsupportedStatePersistenceTypes } from '@wm/components/base';\n\nimport { TableComponent } from './table.component';\nimport {\n endsWith,\n filter,\n find,\n forEach,\n get, head,\n includes, isArray, isEmpty,\n isEqual, isNull, isObject, orderBy, range, split,\n startsWith, toLower,\n toNumber,\n toString\n} from \"lodash-es\";\n\ndeclare const $;\ndeclare const moment;\n\nconst emptyMatchModes = ['null', 'empty', 'nullorempty', 'isnotnull', 'isnotempty'];\n\n// Get search value based on the time\nconst getSearchValue = (value, type) => {\n if (!isDefined(value) || value === '') {\n return undefined;\n }\n if (isNumberType(type)) {\n return toNumber(value);\n }\n if (type === DataType.DATETIME) {\n return moment(value).valueOf();\n }\n return toString(value).toLowerCase();\n};\n\n// Filter the data based on the search value and conditions\nconst getFilteredData = (data, searchObj, visibleCols = []) => {\n const searchVal = getSearchValue(searchObj.value, searchObj.type);\n let currentVal;\n // Return whole data if\n // - search value is undefined and matchmode is not an empty matchmode type\n // - search value is null and datatype is number. Null can not be compared with numeric values[WMS-19275].\n if ((!isDefined(searchVal) && !includes(emptyMatchModes, searchObj.matchMode)) || (isNumberType(searchObj.type) && isNull(searchObj.value))) {\n return data;\n }\n data = data.filter((obj) => {\n let isExists;\n if (searchObj.field) {\n currentVal = getSearchValue(get(obj, searchObj.field), searchObj.type);\n } else {\n currentVal = [];\n forEach(obj, (val, key) => {\n if ((includes(visibleCols, key))) {\n currentVal.push(val);\n } else {\n // WMS-22271 If the key is in nested key format (dot format)\n // Find all the indexes of the key in visiblecols and extract their values from obj\n const colIndex = filter(range(visibleCols.length), (i) => visibleCols[i].includes(key));\n forEach(colIndex, (index) => {\n // @ts-ignore\n const value = get(obj, visibleCols[index]);\n if (currentVal.indexOf(value) < 0) {\n currentVal.push(value);\n }\n });\n }\n });\n currentVal = currentVal.join(' ').toLowerCase(); // If field is not there, search on all the columns\n }\n switch (searchObj.matchMode) {\n case 'start':\n isExists = startsWith(currentVal, searchVal as string);\n break;\n case 'end':\n isExists = endsWith(currentVal, searchVal as string);\n break;\n case 'exact':\n isExists = isEqual(currentVal, searchVal);\n break;\n case 'notequals':\n isExists = !isEqual(currentVal, searchVal);\n break;\n case 'null':\n isExists = isNull(currentVal);\n break;\n case 'isnotnull':\n isExists = !isNull(currentVal);\n break;\n case 'empty':\n isExists = isEmpty(currentVal);\n break;\n case 'isnotempty':\n isExists = !isEmpty(currentVal);\n break;\n case 'nullorempty':\n isExists = isNull(currentVal) || isEmpty(currentVal);\n break;\n case 'lessthan':\n isExists = currentVal < searchVal;\n break;\n case 'lessthanequal':\n isExists = currentVal <= searchVal;\n break;\n case 'greaterthan':\n isExists = currentVal > searchVal;\n break;\n case 'greaterthanequal':\n isExists = currentVal >= searchVal;\n break;\n default:\n isExists = isNumberType(searchObj.type) ? isEqual(currentVal, searchVal) : includes(currentVal, searchVal);\n break;\n }\n return isExists;\n });\n return data;\n};\n\n// Set the filter fields when the search value is specified and field is not selected\nconst setAllFilterFields = function(filterFields, searchObj, visibleCols) {\n visibleCols.forEach(function(field) {\n filterFields[field] = {\n 'value': searchObj.value,\n 'type' : searchObj.value.type,\n 'logicalOp': 'OR'\n };\n if (searchObj.matchMode) {\n filterFields[field].matchMode = searchObj.matchMode;\n }\n });\n};\n\n// Set the filter fields as required by datasource\nconst setFilterFields = (filterFields, searchObj, visibleCols = []) => {\n const field = searchObj && searchObj.field;\n /*Set the filter options when a field/column has been selected.*/\n if (field) {\n filterFields[field] = {\n 'value' : searchObj.value,\n 'logicalOp' : 'AND'\n };\n if (searchObj.matchMode) {\n filterFields[field].matchMode = searchObj.matchMode;\n }\n } else {\n /*Set the filter options when a field/column hasn't been selected.*/\n setAllFilterFields(filterFields, searchObj, visibleCols);\n }\n};\n\n// Transform filter fields from array to object having field names as keys\nconst transformFilterField = (userFilters, filterField) => {\n if (filterField.field) {\n userFilters[filterField.field] = {\n value: filterField.value,\n matchMode: filterField.matchMode,\n type: filterField.type\n };\n }\n};\n\n// Build a filter Fields object\nconst addToFilterFields = (filterFields, searchObj) => {\n filterFields.push({\n field: (searchObj.key) ? searchObj.key : '',\n matchMode: searchObj.matchMode,\n type: searchObj.type,\n value: searchObj.value\n });\n};\n\n@Directive({\n selector: '[wmTableFilterSort]'\n})\nexport class TableFilterSortDirective {\n\n constructor(@Self() @Inject(TableComponent) private table) {\n table._searchSortHandler = this.searchSortHandler.bind(this);\n table.getSearchResult = this.getSearchResult.bind(this);\n table.getSortResult = this.getSortResult.bind(this);\n table.checkFiltersApplied = this.checkFiltersApplied.bind(this);\n table.getFilterFields = this.getFilterFields.bind(this);\n table.onRowFilterChange = this.onRowFilterChange.bind(this);\n table.onFilterConditionSelect = this.onFilterConditionSelect.bind(this);\n table.showClearIcon = this.showClearIcon.bind(this);\n table.clearRowFilter = this.clearRowFilter.bind(this);\n table.matchModeTypesMap = getMatchModeTypesMap();\n table.matchModeMsgs = getMatchModeMsgs(table.appLocale);\n table.emptyMatchModes = emptyMatchModes;\n table.getNavigationTargetBySortInfo = this.getNavigationTargetBySortInfo.bind(this);\n table.refreshData = this.refreshData.bind(this);\n table.clearFilter = this.clearFilter.bind(this);\n table.adjustContainer = this.adjustContainer.bind(this);\n }\n\n adjustContainer(fieldName) {\n setTimeout(() => {\n adjustContainerRightEdges($('bs-dropdown-container'), this.table.rowFilterCompliedTl[fieldName], this.table, $('bs-dropdown-container .dropdown-menu'));\n });\n }\n\n // Get first or last page based on sort info of primary key\n getNavigationTargetBySortInfo() {\n return this.table.sortInfo && this.table.sortInfo.direction === 'desc' &&\n includes(this.table.primaryKey, this.table.sortInfo.field) ? 'first' : 'last';\n }\n\n // Returns all the columns of the table wherein, showinfilter is set to true\n getTableVisibleCols() {\n const visibleCols = [];\n forEach(this.table.columns, (val, col) => {\n if (toLower(toString(val.showinfilter)) === 'true' && col !== 'rowOperations' && val.searchable) {\n visibleCols.push(col);\n }\n });\n return visibleCols;\n }\n\n // call the set filter fields function based on the field selected or not\n invokeSetFilterfieldBasedOnFieldval(searchObj, filterFields) {\n if (searchObj.field) {\n setFilterFields(filterFields, searchObj);\n } else if (!isEmpty(searchObj)) {\n const visibleCols = this.getTableVisibleCols();\n setFilterFields(filterFields, searchObj, visibleCols);\n }\n }\n\n // Get the filter fields as required by datasource\n getFilterFields(searchObj) {\n searchObj = searchObj || {};\n const filterFields = {};\n if (isArray(searchObj)) {\n forEach(searchObj, obj => {\n this.invokeSetFilterfieldBasedOnFieldval(obj, filterFields);\n });\n } else {\n this.invokeSetFilterfieldBasedOnFieldval(searchObj, filterFields);\n }\n return filterFields;\n }\n\n // Get the logical operator for the search filter\n getLogicalOperator(filterFields) {\n let operator = '';\n for (const field in filterFields) {\n operator = filterFields[field]['logicalOp'] || '';\n break;\n }\n return operator;\n }\n\n // Reset the sort based on sort returned by the call\n resetSortStatus(variableSort) {\n let gridSortString;\n if (!isEmpty(this.table.sortInfo) && this.table.datasource) {\n gridSortString = this.table.sortInfo.field + ' ' + this.table.sortInfo.direction;\n variableSort = this.table.datasource.execute(DataSource.Operation.GET_OPTIONS).orderBy || variableSort;\n if (variableSort) { // If multiple order by fields are present, compare with the first one\n variableSort = head(split(variableSort, ','));\n }\n if (gridSortString !== variableSort) {\n this.table.callDataGridMethod('resetSortIcons');\n this.table.sortInfo = {};\n this.table.setDataGridOption('sortInfo', {});\n }\n }\n }\n\n // Clear the all the filters applied\n clearFilter(skipFilter) {\n let $gridElement;\n this.table.filterInfo = {};\n if (this.table.filtermode === 'multicolumn') {\n this.table.fieldDefs.forEach(col => {\n if (col.resetFilter) {\n col.resetFilter();\n }\n });\n if (!skipFilter) {\n this.table.onRowFilterChange();\n }\n } else if (this.table.filtermode === 'search') {\n $gridElement = this.table.datagridElement;\n $gridElement.find('[data-element=\"dgSearchText\"]').val('');\n $gridElement.find('[data-element=\"dgFilterValue\"]').val('');\n if (!skipFilter) {\n $gridElement.find('.app-search-button').trigger('click');\n }\n }\n }\n\n // Check the filters applied and remove if dat does not contain any filters\n checkFiltersApplied(variableSort) {\n if (!this.table.datasource) {\n return;\n }\n if (this.table.datasource.execute(DataSource.Operation.SUPPORTS_SERVER_FILTER)) {\n if (isEmpty(this.table.datasource.execute(DataSource.Operation.GET_OPTIONS).filterFields)) {\n this.clearFilter(true);\n }\n this.resetSortStatus(variableSort);\n return;\n }\n if (this.table.datasource.execute(DataSource.Operation.IS_PAGEABLE)) {\n this.resetSortStatus(variableSort);\n }\n }\n\n // Returns data filtered using searchObj\n getSearchResult(data, searchObj) {\n const visibleCols = this.getTableVisibleCols();\n if (!searchObj) {\n return data;\n }\n if (isArray(searchObj)) {\n searchObj.forEach((obj) => {\n data = getFilteredData(data, obj, visibleCols);\n });\n } else {\n data = getFilteredData(data, searchObj, visibleCols);\n }\n return data;\n }\n\n // Returns data sorted using sortObj\n getSortResult(data, sortObj) {\n if (sortObj && sortObj.direction) {\n data = orderBy(data, sortObj.field, sortObj.direction);\n }\n return data;\n }\n\n // This method handles the client side sort and search\n private handleClientSideSortSearch(searchSortObj, e, type) {\n this.table._isClientSearch = true;\n\n let data;\n data = this.table.isNavigationEnabled() ? getClonedObject(this.table.__fullData) : getClonedObject(this.table.dataset);\n if (type === 'search') {\n this.table.filterInfo = searchSortObj;\n } else {\n this.table.sortInfo = searchSortObj;\n }\n if (isObject(data) && !isArray(data)) {\n data = [data];\n }\n /*Both the functions return same 'data' if arguments are undefined*/\n data = this.getSearchResult(data, this.table.filterInfo);\n data = this.getSortResult(data, this.table.sortInfo);\n this.table.serverData = data;\n\n if (type === 'sort') {\n // Calling 'onSort' event\n this.table.invokeEventCallback('sort', {$event: e, $data: {\n data: this.table.serverData,\n sortDirection: this.table.sortInfo.direction,\n colDef: this.table.columns[this.table.sortInfo.field]\n }});\n }\n\n if (this.table.isNavigationEnabled()) {\n // Reset the page number to 1\n this.table.dataNavigator.dn.currentPage = 1;\n this.table.dataNavigator.setPagingValues(data);\n } else {\n this.table.setGridData(this.table.serverData);\n }\n }\n\n // This method handles the search for pageable datasource\n private handleSinglePageSearch(searchObj) {\n this.table._isPageSearch = true;\n\n let data = getClonedObject(this.table.gridData);\n const $rows = this.table.datagridElement.find('tbody tr.app-datagrid-row');\n this.table.filterInfo = searchObj;\n data = this.getSearchResult(data, searchObj);\n // Compared the filtered data and original data, to show or hide the rows\n forEach(this.table.gridData, (value, index) => {\n const $row = $($rows[index]);\n if (find(data, obj => isEqual(obj, value))) {\n $row.show();\n } else {\n $row.hide();\n }\n });\n if (data && data.length) {\n this.table.callDataGridMethod('setStatus', 'ready');\n // Select the first row after the search for single select\n if (this.table.gridfirstrowselect && !this.table.multiselect) {\n this.table.callDataGridMethod('selectFirstRow', true, true);\n }\n } else {\n this.table.callDataGridMethod('setStatus', 'nodata', this.table.nodatamessage);\n this.table.selecteditem = undefined;\n }\n this.table.callDataGridMethod('updateSelectAllCheckboxState');\n }\n\n // This method handles the search for server side variables\n private handleServerSideSearch(searchObj) {\n this.table.filterInfo = searchObj;\n\n if (!this.table.datasource) {\n return;\n }\n\n const sortInfo = this.table.sortInfo;\n const sortOptions = sortInfo && sortInfo.direction ? (sortInfo.field + ' ' + sortInfo.direction) : '';\n const filterFields = this.getFilterFields(searchObj);\n const logicalOp = this.getLogicalOperator(filterFields);\n refreshDataSource(this.table.datasource, {\n page: 1,\n filterFields : filterFields,\n orderBy : sortOptions,\n condition : logicalOp\n }).then(() => {\n $appDigest();\n }, () => {\n this.table.toggleMessage(true, 'error', this.table.nodatamessage);\n });\n }\n\n // This method handles the sort for server side variables\n private handleSeverSideSort(sortObj, e, statePersistenceTriggered?) {\n // Update the sort info for passing to datagrid\n this.table.gridOptions.sortInfo.field = sortObj.field;\n this.table.gridOptions.sortInfo.direction = sortObj.direction;\n this.table.sortInfo = getClonedObject(sortObj);\n\n const sortOptions = sortObj && sortObj.direction ? (sortObj.field + ' ' + sortObj.direction) : '';\n const filterFields = this.getFilterFields(this.table.filterInfo);\n const condition = this.getLogicalOperator(filterFields);\n if (!statePersistenceTriggered && this.table.getConfiguredState() !== 'none') {\n this.table.statePersistence.removeWidgetState(this.table, 'pagination');\n }\n\n refreshDataSource(this.table.datasource, {\n page : 1,\n filterFields : filterFields,\n orderBy : sortOptions,\n condition : condition\n }).then((response) => {\n $appDigest();\n const data = (response && response.data) ? response.data : response;\n this.table.invokeEventCallback('sort', {$event: e, $data: {\n data,\n sortDirection: sortObj.direction,\n colDef: this.table.columns[sortObj.field]\n\n }\n });\n });\n }\n\n private searchHandler(searchSortObj, e, type, statePersistenceTriggered?) {\n let obj;\n if (isArray(searchSortObj)) {\n obj = searchSortObj.filter(function(searchObject) {\n return (searchObject.matchMode !== undefined && searchObject.value !== undefined) || (searchObject.value !== undefined && searchObject.field === '');\n });\n } else {\n obj = {field: searchSortObj.field, value: searchSortObj.value, type: searchSortObj.type};\n }\n if (this.table.getConfiguredState() !== 'none' && unsupportedStatePersistenceTypes.indexOf(this.table.navigation) < 0) {\n if ((isArray(searchSortObj) && obj.length) || (searchSortObj.value)) {\n this.table.statePersistence.removeWidgetState(this.table, 'search');\n this.table.statePersistence.setWidgetState(this.table, {search: obj});\n } else {\n this.table.statePersistence.removeWidgetState(this.table, 'search');\n }\n if (!statePersistenceTriggered) {\n this.table.statePersistence.removeWidgetState(this.table, 'pagination');\n this.table.statePersistence.removeWidgetState(this.table, 'selectedItem');\n }\n } else {\n console.warn('Retain State handling on Widget ' + this.table.name + ' is not supported for current pagination type.');\n }\n let filterFields = getClonedObject(searchSortObj);\n const dataSource = this.table.datasource;\n if (!dataSource && !this.table.dataset) {\n return;\n }\n let output;\n const userFilters = {};\n // Transform filter fields from array to object having field names as keys\n if (isArray(filterFields)) {\n filterFields.forEach(filterField => {\n transformFilterField(userFilters, filterField);\n });\n } else {\n transformFilterField(userFilters, filterFields);\n }\n output = this.table.invokeEventCallback('beforefilter', {$event: e, $data: userFilters, columns: userFilters});\n // If callback returns false, don't trigger the filter call\n if (output === false) {\n return;\n }\n filterFields = [];\n // if the field is not selected in search filter dropdown, building the filter fields object\n if (isEmpty(userFilters) && !isEmpty(obj)) {\n if (isArray(obj)) {\n forEach(obj, searchObj => {\n addToFilterFields(filterFields, searchObj);\n });\n } else {\n addToFilterFields(filterFields, obj);\n }\n } else {\n // Transform back the filter fields from object to array\n forEach(userFilters, (val, key) => {\n // @ts-ignore\n filterFields.push({field: key, matchMode: val.matchMode, type: val.type, value: val.value});\n });\n }\n if (dataSource && dataSource.execute(DataSource.Operation.SUPPORTS_SERVER_FILTER)) {\n this.handleServerSideSearch(filterFields);\n return;\n }\n if (dataSource && dataSource.execute(DataSource.Operation.IS_API_AWARE) && dataSource.execute(DataSource.Operation.IS_PAGEABLE)) {\n this.handleSinglePageSearch(filterFields);\n } else {\n this.handleClientSideSortSearch(filterFields, e, type);\n }\n }\n\n private sortHandler(searchSortObj, e, type, statePersistenceTriggered?) {\n const dataSource = this.table.datasource;\n if (!dataSource && !this.table.dataset) {\n return;\n }\n if (!statePersistenceTriggered && this.table.getConfiguredState() !== 'none' && unsupportedStatePersistenceTypes.indexOf(this.table.navigation) < 0) {\n const obj = {direction: searchSortObj.direction, field: searchSortObj.field};\n if (searchSortObj.direction) {\n this.table.statePersistence.setWidgetState(this.table, {sort: obj});\n } else {\n this.table.statePersistence.removeWidgetState(this.table, 'sort');\n }\n this.table.statePersistence.removeWidgetState(this.table, 'selectedItem');\n } else {\n console.warn('Retain State handling on Widget ' + this.table.name + ' is not supported for current pagination type.');\n }\n\n // WMS-22387: For server side pagination, execute client side sorting\n if (dataSource && dataSource.execute(DataSource.Operation.IS_SORTABLE)) {\n this.handleSeverSideSort(searchSortObj, e, statePersistenceTriggered);\n } else {\n this.handleClientSideSortSearch(searchSortObj, e, type);\n }\n }\n // set the 'lastAction' performed on the table to 'search_or_sort'\n setLastActionPerformedToSearchSort() {\n this.table.gridOptions.setLastActionPerformed(this.table.gridOptions.ACTIONS.SEARCH_OR_SORT);\n this.table.gridOptions.setIsSearchTrigerred(true);\n }\n\n // This method is triggered by jquery table\n searchSortHandler(searchSortObj, e, type, statePersistenceTriggered?) {\n const event_type = e ? e.type : '';\n if (event_type === 'change' && this.table.filtermode !== 'multicolumn') {\n e.stopPropagation();\n } else {\n this.setLastActionPerformedToSearchSort();\n if (type === 'search') {\n this.searchHandler(searchSortObj, e, type, statePersistenceTriggered);\n } else {\n this.sortHandler(searchSortObj, e, type, statePersistenceTriggered);\n }\n }\n }\n\n // Method to show/hide clear icon in multi column filter\n showClearIcon(fieldName) {\n const value = this.table.rowFilter[fieldName] && this.table.rowFilter[fieldName].value;\n return isDefined(value) && value !== '' && value !== null;\n }\n\n // Method clear the filter value in multi column filter\n clearRowFilter(fieldName) {\n if (this.table.rowFilter && this.table.rowFilter[fieldName]) {\n this.table.columns[fieldName].resetFilter();\n this.onRowFilterChange(fieldName);\n }\n }\n\n // This method is triggered on select of condition in multi column filter\n onFilterConditionSelect(fieldName, condition) {\n this.table.rowFilter[fieldName] = this.table.rowFilter[fieldName] || {};\n this.table.rowFilter[fieldName].matchMode = condition;\n // For empty match modes, clear off the value and call filter\n if (includes(this.table.emptyMatchModes, condition)) {\n this.table.columns[fieldName].resetFilter();\n this.table.onRowFilterChange();\n } else {\n // If value is present, call the filter. Else, focus on the field\n if (isDefined(this.table.rowFilter[fieldName].value) && this.table.rowFilter[fieldName].value !== '') {\n this.table.onRowFilterChange();\n } else {\n setTimeout(() => {\n this.table.columns[fieldName].filterInstance.focus();\n });\n }\n }\n }\n\n // Method to get the updated values when filter on field is changed for multicolumn filter\n private getFilterOnFieldValues(filterDef) {\n if (!this.table.datasource || !this.table.datasource.execute(DataSource.Operation.SUPPORTS_DISTINCT_API)) {\n return;\n }\n\n const fieldName = filterDef.field;\n const formFields = this.table.fullFieldDefs;\n const filterOnFields = filter(formFields, {'filteronfilter': fieldName});\n const newVal = get(this.table.rowFilter, [fieldName, 'value']);\n\n // Loop over the fields for which the current field is filter on field\n forEach(filterOnFields, filterField => {\n const filterOn = filterField.filteronfilter;\n const filterKey = filterField.field;\n const filterFields = {};\n const filterWidget = filterField.filterwidget;\n\n if (!isDataSetWidget(filterWidget) || filterOn === filterKey || filterField.isFilterDataSetBound) {\n return;\n }\n\n filterFields[filterOn] = (isDefined(newVal) && newVal !== '' && newVal !== null) ? {'value' : newVal} : {};\n\n if (filterWidget === FormWidgetType.AUTOCOMPLETE && filterField.filterInstance.dataoptions) {\n filterField.filterInstance.dataoptions.filterFields = filterFields;\n } else {\n this.table.datasource.execute(DataSource.Operation.GET_DISTINCT_DATA_BY_FIELDS, {\n 'fields' : filterKey,\n 'filterFields' : filterFields\n }).then(data => {\n filterField.filterdataset = data.data;\n });\n }\n });\n }\n\n // This method is triggered on value change in multi column filter\n onRowFilterChange(fieldName) {\n const searchObj = [];\n const field = find(this.table.fullFieldDefs, {'field': fieldName});\n // Convert row filters to a search object and call search handler\n forEach(this.table.rowFilter, (value, key) => {\n if ((isDefined(value.value) && value.value !== '') || includes(this.table.emptyMatchModes, value.matchMode)) {\n if (field && key === field.field) {\n value.type = value.type || field.type;\n value.matchMode = value.matchMode || get(this.table.matchModeTypesMap[value.type], 0);\n }\n searchObj.push({\n field: key,\n value: value.value,\n matchMode: value.matchMode,\n type: value.type\n });\n }\n });\n this.table.gridOptions.searchHandler(searchObj, undefined, 'search');\n\n // If field is passed, update any filter on field values if present\n if (field) {\n this.getFilterOnFieldValues(field);\n }\n }\n\n refreshData(isSamePage) {\n if (!this.table.datasource) {\n return;\n }\n const page = isSamePage ? this.table.dataNavigator.dn.currentPage : 1;\n const sortInfo = this.table.sortInfo;\n const sortOptions = sortInfo && sortInfo.direction ? (sortInfo.field + ' ' + sortInfo.direction) : '';\n const filterFields = this.getFilterFields(this.table.filterInfo);\n const logicalOp = this.getLogicalOperator(filterFields);\n refreshDataSource(this.table.datasource, {\n page: page,\n filterFields : filterFields,\n orderBy : sortOptions,\n condition : logicalOp\n });\n }\n}\n","import { PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-table-action',\n new Map(\n [\n ['accessroles', PROP_STRING],\n ['action', PROP_STRING],\n ['caption', PROP_STRING],\n ['class', PROP_STRING],\n ['conditionalclass', PROP_ANY],\n ['conditionalstyle', PROP_ANY],\n ['disabled', {value: false, ...PROP_BOOLEAN}],\n ['display-name', PROP_STRING],\n ['hyperlink', PROP_STRING],\n ['icon', PROP_STRING],\n ['iconclass', PROP_STRING],\n ['key', PROP_STRING],\n ['position', {value: 'footer', ...PROP_STRING}],\n ['shortcutkey', PROP_STRING],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['tabindex', {value: 0, ...PROP_NUMBER}],\n ['title', PROP_STRING],\n ['target', PROP_STRING],\n ['widget-type', {value: 'button', ...PROP_STRING}]\n ]\n )\n );\n};\n","import {Directive, Inject, Injector, OnInit, Optional} from '@angular/core';\n\nimport { BaseComponent, provideAsWidgetRef } from '@wm/components/base';\n\nimport { registerProps } from './table-action.props';\nimport { TableComponent } from '../table.component';\nimport {isUndefined} from \"lodash-es\";\n\nconst WIDGET_CONFIG = {widgetType: 'wm-table-action', hostClass: ''};\n\n@Directive({\n selector: '[wmTableAction]',\n providers: [\n provideAsWidgetRef(TableActionDirective)\n ]\n})\nexport class TableActionDirective extends BaseComponent implements OnInit {\n static initializeProps = registerProps();\n\n accessroles;\n action;\n caption;\n class;\n disabled;\n displayName;\n icon;\n iconclass;\n position;\n shortcutkey;\n show;\n tabindex;\n title;\n key;\n hyperlink;\n target;\n buttonDef;\n conditionalclass;\n conditionalstyle;\n\n private _propsInitialized: boolean;\n\n constructor(inj: Injector, @Optional() public table: TableComponent, @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any) {\n super(inj, WIDGET_CONFIG, explicitContext);\n }\n\n populateAction() {\n this.buttonDef = {\n key: this.key,\n displayName: this['display-name'] || this.caption || '',\n show: this.show,\n class: this.class || '',\n iconclass: this.iconclass || '',\n title: isUndefined(this.title) ? (this['display-name'] || '') : this.title,\n action: this.action,\n accessroles: this.accessroles,\n shortcutkey: this.shortcutkey,\n disabled: this.disabled,\n tabindex: this.tabindex,\n icon: this.icon,\n position: this.position,\n widgetType: this['widget-type'],\n hyperlink: this.hyperlink,\n target: this.target || '',\n conditionalclass: this.conditionalclass || '',\n conditionalstyle: this.conditionalstyle || {}\n };\n this._propsInitialized = true;\n }\n\n ngOnInit() {\n super.ngOnInit();\n this.populateAction();\n this.table.registerActions(this.buttonDef);\n }\n\n onPropertyChange(key, nv) {\n if (!this._propsInitialized) {\n return;\n }\n\n if (key === 'display-name') {\n this.buttonDef.displayName = nv;\n } else {\n this.buttonDef[key] = nv;\n }\n }\n}\n","import { PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-table-column',\n new Map(\n [\n ['accessroles', PROP_STRING],\n ['autoclose', {value: 'outsideClick', ...PROP_STRING}],\n ['backgroundcolor', PROP_STRING],\n ['binding', PROP_STRING],\n ['caption', PROP_STRING],\n ['checkedvalue', PROP_STRING],\n ['col-class', PROP_STRING],\n ['collapsible', PROP_BOOLEAN],\n ['col-ng-class', PROP_STRING],\n ['currencypattern', PROP_STRING],\n ['customExpression', PROP_BOOLEAN], // Internal property to check if column has custom expression\n ['dataentrymode', {value: 'default', ...PROP_STRING}],\n ['datafield', PROP_STRING],\n ['dataoptions', PROP_ANY],\n ['dataset', PROP_ANY],\n ['datasource', PROP_STRING],\n ['dateformat', PROP_STRING],\n ['datepattern', PROP_STRING],\n ['debouncetime', {value: 250, ...PROP_NUMBER}],\n ['defaultvalue', PROP_STRING],\n ['disabled', PROP_BOOLEAN],\n ['displayfield', PROP_STRING],\n ['displaylabel', PROP_STRING],\n ['editdatepattern', PROP_STRING],\n ['outputformat', PROP_STRING],\n ['edit-widget-type', PROP_STRING],\n ['showineditmode', PROP_BOOLEAN],\n ['editinputtype', PROP_STRING],\n ['exportexpression', PROP_STRING],\n ['filterdataset', PROP_STRING],\n ['filterdatafield', PROP_STRING],\n ['filterdisplayfield', PROP_STRING],\n ['filterdisplaylabel', PROP_STRING],\n ['filterexpressions', {value: '{}', ...PROP_STRING}],\n ['filtersearchkey', PROP_STRING],\n ['filter-on', PROP_STRING],\n ['filteronfilter', PROP_STRING],\n ['filterplaceholder', PROP_STRING],\n ['filterwidget', PROP_STRING],\n ['filterinputtype', PROP_STRING],\n ['formatpattern', PROP_STRING],\n ['custompipeformat', PROP_STRING],\n ['fractionsize', PROP_STRING],\n ['generator', PROP_STRING],\n ['groupby', PROP_STRING],\n ['limit', PROP_NUMBER],\n ['match', PROP_STRING],\n ['matchmode', PROP_STRING],\n ['maxchars', PROP_NUMBER],\n ['maxvalue', PROP_NUMBER],\n ['step', PROP_NUMBER],\n ['mobiledisplay', {value: true, ...PROP_BOOLEAN}],\n ['minvalue', PROP_NUMBER],\n ['maxdate', PROP_STRING],\n ['mindate', PROP_STRING],\n ['excludedays', PROP_STRING],\n ['excludedates', PROP_STRING],\n ['maxtime', PROP_STRING],\n ['mintime', PROP_STRING],\n ['pcdisplay', {value: true, ...PROP_BOOLEAN}],\n ['period', PROP_BOOLEAN],\n ['placeholder', PROP_STRING],\n ['prefix', PROP_STRING],\n ['primary-key', PROP_BOOLEAN],\n ['readonly', PROP_BOOLEAN],\n ['regexp', PROP_ANY],\n ['related-entity-name', PROP_STRING],\n ['required', PROP_BOOLEAN],\n ['rowactionsposition', PROP_STRING],\n ['searchkey', PROP_STRING],\n ['searchable', {value: true, ...PROP_BOOLEAN}],\n ['showinfilter', {value: false, ...PROP_BOOLEAN}],\n ['suffix', PROP_STRING],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['showcount', PROP_BOOLEAN],\n ['showdropdownon', {value: 'default', ...PROP_STRING}],\n ['sortable', {value: true, ...PROP_BOOLEAN}],\n ['tabletdisplay', {value: true, ...PROP_BOOLEAN}],\n ['textalignment', {value: 'left', ...PROP_STRING}],\n ['textcolor', PROP_STRING],\n ['type', {value: 'string', ...PROP_STRING}],\n ['uncheckedvalue', PROP_STRING],\n ['validationmessage', PROP_STRING],\n ['widget-type', PROP_STRING],\n ['width', PROP_STRING],\n ]\n )\n );\n};\n","import { PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-table-column-group',\n new Map(\n [\n ['backgroundcolor', PROP_STRING],\n ['caption', PROP_STRING],\n ['col-class', PROP_STRING],\n ['name', PROP_STRING],\n ['textalignment', {value: 'center', ...PROP_STRING}]\n ]\n )\n );\n};\n","import {Directive, Inject, Injector, OnInit, Optional, SkipSelf} from '@angular/core';\n\nimport { BaseComponent, provideAsWidgetRef, setHeaderConfigForTable} from '@wm/components/base';\nimport { registerProps } from './table-column-group.props';\nimport { TableComponent } from '../table.component';\n\nconst WIDGET_CONFIG = {widgetType: 'wm-table-column-group', hostClass: ''};\n\n@Directive({\n selector: '[wmTableColumnGroup]',\n providers: [\n provideAsWidgetRef(TableColumnGroupDirective)\n ]\n})\nexport class TableColumnGroupDirective extends BaseComponent implements OnInit {\n static initializeProps = registerProps();\n\n accessroles;\n backgroundcolor;\n caption;\n colClass;\n name;\n textalignment;\n config: any = {};\n\n constructor(\n inj: Injector,\n @SkipSelf() @Optional() public group: TableColumnGroupDirective,\n @Optional() public table: TableComponent,\n @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any\n ) {\n super(inj, WIDGET_CONFIG, explicitContext);\n }\n\n populateConfig() {\n this.config = {\n field: this.name,\n displayName: this.caption || '',\n columns: [],\n isGroup: true,\n accessroles: this.accessroles,\n textAlignment: this.textalignment || 'center',\n backgroundColor: this.backgroundcolor,\n class: this['col-class']\n };\n }\n\n onPropertyChange(key, nv, ov?) {\n if (key === 'caption') {\n this.config.displayName = nv || '';\n this.table.callDataGridMethod('setColumnProp', this.config.field, 'displayName', nv, true);\n } else {\n super.onPropertyChange(key, nv, ov);\n }\n }\n\n ngOnInit() {\n super.ngOnInit();\n this.populateConfig();\n // when group is inside another group (i.e. sub-level column-group) then consider the col index and not header index.\n const headerIndex = parseInt(this.getAttr('headerIndex'), 10);\n const colIndex = parseInt(this.getAttr('index'), 10);\n const fieldName = this.group && this.group.name;\n setHeaderConfigForTable(this.table.headerConfig, this.config, fieldName, fieldName ? colIndex : headerIndex);\n }\n}\n","import {\n AfterContentInit,\n AfterViewInit,\n Attribute,\n ContentChild,\n ContentChildren,\n TemplateRef,\n Directive,\n Injector,\n OnInit,\n Optional,\n Inject\n} from '@angular/core';\n\nimport {\n $watch,\n AppDefaults,\n DataSource,\n DataType,\n debounce,\n FormWidgetType,\n getDisplayDateTimeFormat,\n isDateTimeType,\n isDefined\n} from '@wm/core';\nimport { applyFilterOnField, BaseFieldValidations, EDIT_MODE, fetchRelatedFieldData, getDataTableFilterWidget, getDefaultValue, getDistinctFieldProperties, getDistinctValues, getDistinctValuesForField, getEditModeWidget, getWatchIdentifier, isDataSetWidget, provideAsWidgetRef, setHeaderConfigForTable, BaseComponent } from '@wm/components/base';\nimport { registerProps } from './table-column.props';\nimport { TableComponent } from '../table.component';\nimport { TableColumnGroupDirective } from '../table-column-group/table-column-group.directive';\nimport { debounceTime } from 'rxjs/operators';\nimport {cloneDeep, forEach, head, includes, last, map, max, mean, min, round, split, sum} from \"lodash-es\";\n\nconst WIDGET_CONFIG = {widgetType: 'wm-table-column', hostClass: ''};\n\nlet inlineWidgetProps = ['datafield', 'displayfield', 'placeholder', 'searchkey', 'matchmode', 'displaylabel', 'groupby', 'match', 'dateformat', 'showcount', 'collapsible',\n 'checkedvalue', 'uncheckedvalue', 'showdropdownon', 'dataentrymode', 'autoclose', 'dataset', 'outputformat'];\nconst validationProps = ['maxchars', 'regexp', 'minvalue', 'maxvalue', 'step', 'required', 'mindate', 'maxdate',\n 'excludedates', 'excludedays', 'mintime', 'maxtime'];\ninlineWidgetProps = [...inlineWidgetProps, ...validationProps];\n\nclass FieldDef {\n widget;\n\n constructor(widget) {\n this.widget = widget;\n }\n\n focus() {\n this.widget.focus();\n }\n\n setProperty(prop, newval) {\n // Get the scope of the current editable widget and set the value\n prop = prop === 'value' ? 'datavalue' : prop;\n this.widget[prop] = newval;\n }\n\n getProperty(prop) {\n prop = prop === 'value' ? 'datavalue' : prop;\n return this.widget[prop];\n }\n}\n\n@Directive({\n selector: '[wmTableColumn]',\n providers: [\n provideAsWidgetRef(TableColumnDirective)\n ]\n})\nexport class TableColumnDirective extends BaseComponent implements OnInit, AfterContentInit, AfterViewInit {\n static initializeProps = registerProps();\n\n @ContentChildren('filterWidget', { descendants: true }) _filterInstances;\n @ContentChildren('inlineWidget', { descendants: true }) _inlineInstances;\n @ContentChildren('inlineWidgetNew', { descendants: true }) _inlineInstancesNew;\n @ContentChild('customExprTmpl') customExprTmpl;\n @ContentChild('inlineWidgetTmpl') inlineWidthTempRef;\n\n private _propsInitialized: boolean;\n private _filterDataSet;\n private _isRowFilter;\n private _isInlineEditable;\n private _isNewEditableRow;\n\n key;\n filterInstance;\n inlineInstance;\n inlineInstanceNew;\n\n backgroundcolor;\n binding;\n caption;\n dataset;\n defaultvalue;\n editWidgetType;\n filterwidget;\n field;\n formatpattern;\n custompipeformat;\n generator;\n limit;\n mobiledisplay;\n pcdisplay;\n tabletdisplay;\n readonly;\n required;\n maxchars;\n minvalue;\n maxvalue;\n regexp;\n searchable;\n showinfilter;\n show;\n sortable;\n textalignment;\n textcolor;\n type;\n width;\n datepattern;\n editdatepattern;\n filterdatafield;\n filterdisplayfield;\n filterdisplaylabel;\n filtersearchkey;\n filterplaceholder;\n datafield;\n displayfield;\n displayName;\n pcDisplay;\n mobileDisplay;\n tabletDisplay;\n textAlignment;\n backgroundColor;\n textColor;\n primaryKey;\n relatedEntityName;\n style;\n class;\n ngclass;\n filterOn;\n filterControl;\n isDataSetBound;\n isFilterDataSetBound;\n showPendingSpinner;\n showPendingSpinnerNew;\n validationmessage;\n activeControlType;\n private _dataoptions: any;\n private _datasource: any;\n private notifyForFields: any;\n private fieldValidations;\n private fieldValidations_new;\n\n private syncValidators = [];\n private asyncValidators = [];\n private observeOnFields = [];\n\n @ContentChild('filterTmpl') filterTemplateRef: TemplateRef<any>;\n\n constructor(\n inj: Injector,\n private appDefaults: AppDefaults,\n @Optional() public table: TableComponent,\n @Optional() public group: TableColumnGroupDirective,\n @Attribute('filterdataset.bind') public bindfilterdataset,\n @Attribute('dataset.bind') public binddataset,\n @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any\n ) {\n super(inj, WIDGET_CONFIG, explicitContext);\n\n this.notifyForFields = [];\n }\n\n get dataoptions() {\n return this._dataoptions;\n }\n\n set dataoptions(options) {\n this._dataoptions = options;\n }\n\n get datasource() {\n return this._datasource;\n }\n\n set datasource(ds) {\n this._datasource = ds;\n }\n\n ngOnInit() {\n super.ngOnInit();\n\n // Set the default values and register with table\n this.populateFieldDef();\n // when column is inside a group then consider the col index and not header index.\n const colIndex = parseInt(this.getAttr('index'), 10);\n const headerIndex = parseInt(this.getAttr('headerIndex'), 10);\n const fieldName = this.group && this.group.name;\n // Register column with header config to create group structure\n setHeaderConfigForTable(this.table.headerConfig, {\n field: this.field,\n displayName: this.displayName\n }, fieldName, fieldName ? colIndex : headerIndex);\n\n this.table.registerColumns(this.widget, colIndex);\n\n this._isRowFilter = this.table.filtermode === 'multicolumn' && this.searchable;\n this._isInlineEditable = !this.readonly && (this.table.editmode !== EDIT_MODE.DIALOG && this.table.editmode !== EDIT_MODE.FORM);\n this._isNewEditableRow = this._isInlineEditable && this.table.editmode === EDIT_MODE.QUICK_EDIT && this.table.shownewrow;\n this.setUpControls();\n\n this._propsInitialized = true;\n\n // Inline control status change subscriber\n if (this.getFormControl()) {\n const onStatusChangeSubscription = this.getFormControl().statusChanges\n .pipe(debounceTime(100))\n .subscribe(status => this.onStatusChange(status, 'inlineInstance'));\n this.registerDestroyListener(() => onStatusChangeSubscription.unsubscribe());\n // Instantiate custom validators class for inline edit form control\n this.fieldValidations = new BaseFieldValidations(this, this['inlineInstance'], this.editWidgetType, this.getFormControl(), this.table, 'inlineInstance');\n }\n\n // Quick edit new row control status change subscriber\n if (this._checkNewEditableRowControl()) {\n const onStatusChangeSubscription_new = this.getFormControl('_new').statusChanges\n .pipe(debounceTime(100))\n .subscribe(status => this.onStatusChange(status, 'inlineInstanceNew'));\n this.registerDestroyListener(() => onStatusChangeSubscription_new.unsubscribe());\n // Instantiate custom validators class for Quick edit newrow form control\n this.fieldValidations_new = new BaseFieldValidations(this, this['inlineInstanceNew'], this.editWidgetType, this.getFormControl('_new'), this.table, 'inlineInstanceNew');\n }\n }\n\n ngAfterContentInit() {\n if (this._isRowFilter) {\n // Listen on the inner row filter widget and setup the widget\n const s1 = this._filterInstances.changes.subscribe((val) => {\n this.filterInstance = val.first && val.first.widget;\n this.setUpFilterWidget();\n });\n this.registerDestroyListener(() => s1.unsubscribe());\n }\n\n if (this._isInlineEditable) {\n const s2 = this._inlineInstances.changes.subscribe((val) => {\n // Listen on the inner inline widget and setup the widget\n this.inlineInstance = val.first && val.first.widget;\n this.fieldValidations.formwidget = val.first;\n this.table.registerFormField(this.binding, new FieldDef(this.inlineInstance));\n this.setUpInlineWidget('inlineInstance');\n });\n this.registerDestroyListener(() => s2.unsubscribe());\n\n if (this._isNewEditableRow) {\n const s3 = this._inlineInstancesNew.changes.subscribe((val) => {\n // Listen on the inner inline widget and setup the widget\n this.inlineInstanceNew = val.first && val.first.widget;\n this.fieldValidations_new.formwidget = val.first;\n this.setUpInlineWidget('inlineInstanceNew');\n });\n this.registerDestroyListener(() => s3.unsubscribe());\n }\n }\n this.registerReadyStateListener(() => {\n this.key = this.field || this.binding;\n });\n super.ngAfterContentInit();\n if ((this as any).table.isdynamictable) {\n (this.table.inlineWidgetTmpl as any)._results.push(this.inlineWidthTempRef);\n }\n }\n\n ngAfterViewInit() {\n // manually listing the table column templateRef as templateRef will not be available prior.\n if (this.filterTemplateRef) {\n this.table.renderDynamicFilterColumn(this.filterTemplateRef);\n }\n }\n\n // Apply default|sync|async|prop validators for inline form control\n applyValidations() {\n if (!this.getFormControl()) {\n return;\n }\n if (this.syncValidators.length > 0) {\n this.fieldValidations.setValidators(this.syncValidators);\n }\n this.fieldValidations.setUpValidators();\n if (this.asyncValidators.length > 0) {\n this.fieldValidations.setAsyncValidators(this.asyncValidators);\n }\n if (this.observeOnFields.length > 0) {\n this.fieldValidations.observeOn(this.observeOnFields, 'columns');\n }\n }\n\n // Remove validators for the inline widget and set form to untouched\n removeValidations() {\n this.table.ngform.markAsUntouched();\n const control = this.getFormControl();\n if (!control) {\n return;\n }\n control.clearValidators();\n control.clearAsyncValidators();\n control.updateValueAndValidity();\n }\n\n // Apply default|sync|async|prop validators for QuickEdit new row form control\n applyNewRowValidations() {\n if (!this._checkNewEditableRowControl()) {\n return;\n }\n if (this.syncValidators.length > 0) {\n this.fieldValidations_new.setValidators(this.syncValidators);\n }\n this.fieldValidations_new.setUpValidators();\n if (this.asyncValidators.length > 0) {\n this.fieldValidations_new.setAsyncValidators(this.asyncValidators);\n }\n if (this.observeOnFields.length > 0) {\n this.fieldValidations_new.observeOn(this.observeOnFields, 'columns');\n }\n }\n\n // Remove validators for the QuickEdit new row widget and set form to untouched\n removeNewRowValidations() {\n this.table.ngform.markAsUntouched();\n if (!this._checkNewEditableRowControl()) {\n return;\n }\n const control = this.getFormControl('_new');\n control.clearValidators();\n control.clearAsyncValidators();\n control.updateValueAndValidity();\n }\n\n addFormControl(suffix?: string) {\n const ctrlName = suffix ? (this.binding + suffix) : this.binding;\n this.table.ngform.addControl(ctrlName, this.table.fb.control(''));\n }\n\n getFormControl(suffix?: string) {\n const ctrlName = suffix ? (this.binding + suffix) : this.binding;\n return this.table.ngform.controls[ctrlName];\n }\n\n private _checkNewEditableRowControl() {\n return this._isNewEditableRow && this.getFormControl('_new');\n }\n\n // Setup the inline edit and filter widget\n setUpControls() {\n if (this._isInlineEditable) {\n if (this.editWidgetType === FormWidgetType.UPLOAD) {\n return;\n }\n this.addFormControl();\n const control = this.getFormControl();\n if (control) {\n const onValueChangeSubscription = control.valueChanges\n .pipe(debounceTime(200))\n .subscribe(value => this.onValueChange(value, 'inlineInstance'));\n this.registerDestroyListener(() => onValueChangeSubscription.unsubscribe());\n }\n\n if (this._isNewEditableRow) {\n this.addFormControl('_new');\n const newControl = this.getFormControl('_new');\n if (newControl) {\n const onNewValueChangeSubscription = newControl.valueChanges\n .pipe(debounceTime(200))\n .subscribe(value => this.onValueChange(value, 'inlineInstanceNew'));\n this.registerDestroyListener(() => onNewValueChangeSubscription.unsubscribe());\n }\n }\n }\n\n if (this._isRowFilter) {\n this.addFormControl('_filter');\n this.filterControl = this.getFormControl('_filter');\n if (this.filterControl) {\n const onFilterValueSubscription = this.filterControl.valueChanges.subscribe(this.onFilterValueChange.bind(this));\n this.registerDestroyListener(() => onFilterValueSubscription.unsubscribe());\n }\n }\n }\n\n // Reset the row filter value\n resetFilter() {\n if (this.filterControl) {\n this.filterControl.setValue('');\n }\n if (this.filterwidget === FormWidgetType.AUTOCOMPLETE) {\n this.filterInstance.query = '';\n this.filterInstance.queryModel = '';\n }\n }\n\n // On field value change, propagate event to parent form\n onFilterValueChange(val) {\n this.table.rowFilter[this.field].value = val;\n }\n\n // Get of the active from control\n get datavalue() {\n return this[this.activeControlType] && this[this.activeControlType].datavalue;\n }\n\n set datavalue(val) {\n const control = this.getFormControl(this.activeControlType === 'inlineInstanceNew' ? '_new' : undefined);\n if (!control) {\n return;\n }\n if (control && this.editWidgetType !== FormWidgetType.UPLOAD) {\n control.setValue(val);\n }\n }\n\n get value() {\n return this.datavalue;\n }\n\n set value(val) {\n this.datavalue = val;\n }\n\n // On field value change, apply cascading filter and set validation message\n onValueChange(val, widget) {\n if (val !== null) {\n applyFilterOnField(this.table.datasource, this.widget, this.table.fieldDefs, val, {\n widget: 'edit-widget-type'\n });\n }\n if (this.table.ngform.touched) {\n this.activeControlType = widget;\n if (widget === 'inlineInstance') {\n this.notifyChanges();\n this.fieldValidations.setCustomValidationMessage();\n } else if (this._isNewEditableRow) {\n this.notifyChanges('_new');\n this.fieldValidations_new.setCustomValidationMessage();\n }\n }\n }\n\n loadFilterData() {\n // If filterdataset is not bound, get the data implicitly\n if (this._isRowFilter && isDataSetWidget(this.filterwidget) && !this.bindfilterdataset) {\n // For live variable, get the data using distinct API\n if (this.table.datasource.execute(DataSource.Operation.SUPPORTS_DISTINCT_API)) {\n // check for related entity columns\n if (this.relatedEntityName) {\n this.widget['is-related'] = true;\n this.widget['lookup-type'] = this.relatedEntityName;\n this.widget['lookup-field'] = last(split(this.field, '.'));\n }\n if (this.filterwidget === FormWidgetType.AUTOCOMPLETE) {\n this.filterInstance.dataoptions = getDistinctFieldProperties(this.table.datasource, this);\n this.filterInstance.datasource = this.table.datasource;\n } else {\n getDistinctValues(this.table.datasource, this.widget, 'filterwidget').then((res: any) => {\n this._filterDataSet = res.data;\n this.setFilterWidgetDataSet();\n });\n }\n } else {\n // For other datasources, get the data from datasource bound to table\n //[Todo-CSP]: watch fn should already be generated from table dataset.bind expr\n this.registerDestroyListener(\n $watch(\n this.table.binddataset,\n this.viewParent,\n {},\n nv => this.widget.filterdataset = nv,\n getWatchIdentifier(this.widgetId, 'filterdataset')\n )\n );\n }\n }\n }\n\n loadInlineWidgetData() {\n // If dataset is not bound, get the data implicitly\n if (isDataSetWidget(this['edit-widget-type']) && !this.binddataset && !this.readonly) {\n const dataSource = this.table.datasource;\n if (this['related-entity-name'] && this['primary-key']) {\n // Fetch the data for the related fields\n this.isDataSetBound = true;\n const bindings = split(this.binding, '.');\n this.showPendingSpinner = true;\n fetchRelatedFieldData(dataSource, this.widget, {\n relatedField: head(bindings),\n datafield: last(bindings),\n widget: 'edit-widget-type'\n });\n } else if (dataSource.execute(DataSource.Operation.SUPPORTS_DISTINCT_API)) {\n getDistinctValuesForField(dataSource, this.widget, {\n widget: 'edit-widget-type'\n });\n }\n }\n }\n\n // On table datasource change, get the data for row filters\n onDataSourceChange() {\n this.loadFilterData();\n if (this.table.editmode === EDIT_MODE.QUICK_EDIT) {\n this.loadInlineWidgetData();\n }\n }\n\n // Set the data on the row filter widget\n setFilterWidgetDataSet() {\n if (this.filterInstance) {\n this.filterInstance.dataset = this._filterDataSet;\n }\n }\n\n // Set the props on the row filter widget\n setUpFilterWidget() {\n this.filterInstance.registerReadyStateListener(() => {\n if (isDataSetWidget(this.filterwidget)) {\n // if binding is department.deptId then field will be deptId\n const field = last(this.binding.split('.'));\n this.filterInstance.dataset = this._filterDataSet;\n this.filterInstance.datafield = this.filterdatafield || field;\n this.filterInstance.displayfield = this.filterdisplayfield || field;\n if (this.filterwidget === FormWidgetType.AUTOCOMPLETE) {\n this.filterInstance.displaylabel = this.filterdisplaylabel || field;\n this.filterInstance.searchkey = this.filtersearchkey || field;\n }\n }\n if (this.filterwidget === FormWidgetType.TIME) {\n this.filterInstance.timepattern = this.appDefaults.timeFormat || 'hh:mm:ss a';\n }\n this.filterInstance.placeholder = this.filterplaceholder || '';\n });\n }\n\n // Notifies all the dependent validation controls incase of any changes\n notifyChanges(quickEdit?) {\n forEach(this.notifyForFields, field => {\n if (quickEdit && this._isNewEditableRow) {\n field.fieldValidations_new.validate();\n } else {\n field.fieldValidations.validate();\n }\n });\n }\n\n // Watches control for dependent validation changes\n observeOn(fields) {\n this.observeOnFields = cloneDeep(fields);\n }\n\n // Sets the default validators inline and quickedit new row using props\n setUpValidators() {\n this.fieldValidations.setUpValidators();\n if (this._checkNewEditableRowControl()) {\n this.fieldValidations_new.setUpValidators();\n }\n }\n\n // Sets the Async validators on the inline and quickedit new row form control\n setAsyncValidators(validators) {\n this.asyncValidators = cloneDeep(validators);\n }\n\n // Sets the default/custom validators on the inline and quickedit new row form control\n setValidators(validators) {\n this.syncValidators = cloneDeep(validators);\n }\n\n boundFn(fn) {\n return fn();\n }\n\n // Shows spinner for async validators based on status\n onStatusChange(status, type) {\n this['showPendingSpinner' + (type === 'inlineInstance' ? '' : 'New')] = (status === 'PENDING');\n }\n\n /* Summary Row Logic start */\n setSummaryRowData(data) {\n const newData = (data instanceof Array) ? data : [data];\n this._invokeSummaryRowData(newData);\n }\n\n private _invokeSummaryRowData(data) {\n forEach(data, (item, index) => {\n const content = item;\n if (content instanceof Promise) {\n content.then(res => {\n this.table.callDataGridMethod('setSummaryRowDef', this.key, res, index, true);\n });\n } else if (content.value && content.value instanceof Promise) {\n const contentData = content;\n content.value.then(res => {\n contentData.value = res;\n this.table.callDataGridMethod('setSummaryRowDef', this.key, contentData, index, true);\n });\n }\n this.table.callDataGridMethod('setSummaryRowDef', this.key, content, index);\n });\n }\n private _getColumnData() {\n return map(this.table.dataset, this.binding);\n }\n\n public aggregate = {\n sum: () => {\n return sum(this._getColumnData());\n },\n average: (precision: number = 2) => {\n return round(mean(this._getColumnData()), precision);\n },\n count: () => {\n return this._getColumnData().length;\n },\n minimum: () => {\n return min(this._getColumnData());\n },\n maximum: () => {\n return max(this._getColumnData());\n },\n percent: (value, precision: number = 2) => {\n return round((sum(this._getColumnData()) / value) * 100, precision);\n }\n };\n /* Summary Row Logic end */\n\n // Set the props on the inline edit widget\n setInlineWidgetProp(widget, prop, nv) {\n if (prop === 'datepattern' && this.editWidgetType === FormWidgetType.TIME) {\n prop = 'timepattern';\n }\n if (this[widget] && isDefined(nv)) {\n this[widget][prop] = nv;\n }\n }\n\n // Initialize the inline edit widget\n setUpInlineWidget(widget) {\n this[widget].registerReadyStateListener(() => {\n if (isDataSetWidget(this['edit-widget-type'])) {\n this[widget].dataset = this.dataset;\n }\n inlineWidgetProps.forEach(key => {\n this.setInlineWidgetProp(widget, key, this[key]);\n });\n this[widget].datasource = this._datasource;\n this[widget].dataoptions = this._dataoptions;\n this.setInlineWidgetProp(widget, 'datepattern', this.editdatepattern);\n });\n }\n\n getStyleDef() {\n return `width: ${this.width || ''}; background-color: ${this.backgroundcolor || ''}; color: ${this.textcolor || ''};`;\n }\n\n populateFieldDef() {\n this.width = this.width === 'px' ? '' : (this.width || '');\n this.field = this.binding;\n this.displayName = this.caption || '';\n this.pcDisplay = this.pcdisplay;\n this.mobileDisplay = this.mobiledisplay;\n this.tabletDisplay = this.tabletdisplay;\n this.textAlignment = this.textalignment;\n this.backgroundColor = this.backgroundcolor;\n this.textColor = this.textcolor;\n this.primaryKey = this['primary-key'];\n this.relatedEntityName = this['related-entity-name'];\n this.style = this.getStyleDef();\n this.class = this['col-class'];\n this.ngclass = this['col-ng-class'];\n this.formatpattern = this.formatpattern === 'toNumber' ? 'numberToString' : this.formatpattern;\n this.searchable = (this.type === 'blob' || this.type === 'clob') ? false : this.searchable;\n this.showinfilter = (this.nativeElement.hasAttribute('showinfilter') && !((this as any).table && (this as any).table.isdynamictable)) ? this.nativeElement.getAttribute('showinfilter') : (this.show);\n this.limit = this.limit ? +this.limit : undefined;\n this.editWidgetType = this['edit-widget-type'] = this['edit-widget-type'] || getEditModeWidget(this);\n this.filterOn = this['filter-on'];\n this.readonly = isDefined(this.getAttr('readonly')) ? this.getAttr('readonly') === 'true' : (this['related-entity-name'] ? !this['primary-key'] : includes(['identity', 'uniqueid', 'sequence'], this.generator));\n this.filterwidget = this.filterwidget || getDataTableFilterWidget(this.type || 'string');\n this.isFilterDataSetBound = !!this.bindfilterdataset;\n this.defaultvalue = getDefaultValue(this.defaultvalue, this.type, this.editWidgetType);\n\n // For date time data types, if date pattern is not specified, set the app format or default format\n if (isDateTimeType(this.type) && this.formatpattern === 'toDate' && !this.datepattern) {\n const defaultFormat = getDisplayDateTimeFormat(this.type);\n if (this.type === DataType.DATE) {\n this.datepattern = this.appDefaults.dateFormat || defaultFormat;\n } else if (this.type === DataType.TIME) {\n this.datepattern = this.appDefaults.timeFormat || defaultFormat;\n } else if (this.type === DataType.TIMESTAMP || this.type === DataType.DATETIME) {\n this.datepattern = this.appDefaults.dateTimeFormat || defaultFormat;\n }\n }\n }\n\n onPropertyChange(key, nv, ov) {\n if (!this._propsInitialized) {\n return;\n }\n switch (key) {\n case 'caption':\n this.displayName = nv || '';\n this.setProperty('displayName', this.displayName);\n // Fix for [WMS-25934]: update the headerConfig list when there is change in display name\n // when column is inside a group then consider the col index and not header index.\n const fieldName = this.group && this.group.name;\n const index: number = fieldName ? parseInt(this.getAttr('index'), 10) : parseInt(this.getAttr('headerIndex'), 10);\n // Register column with header config to create group structure\n setHeaderConfigForTable(this.table.headerConfig, {\n field: this.field,\n displayName: this.displayName\n }, fieldName, index);\n break;\n case 'defaultvalue':\n this.defaultvalue = getDefaultValue(this.defaultvalue, this.type, this.editWidgetType);\n break;\n case 'show':\n this.table.redraw(true);\n this.showinfilter = this.nativeElement.hasAttribute('showinfilter') ? this.nativeElement.getAttribute('showinfilter') : nv;\n break;\n case 'filterdataset':\n this._filterDataSet = nv;\n this.setFilterWidgetDataSet();\n break;\n case 'editdatepattern':\n this.setInlineWidgetProp('inlineInstance', 'datepattern', nv);\n this.setInlineWidgetProp('inlineInstanceNew', 'datepattern', nv);\n break;\n case 'showinfilter':\n this.showinfilter = nv;\n break;\n default:\n if (inlineWidgetProps.includes(key)) {\n this.setInlineWidgetProp('inlineInstance', key, nv);\n this.setInlineWidgetProp('inlineInstanceNew', key, nv);\n }\n break;\n }\n\n super.onPropertyChange(key, nv, ov);\n }\n\n setProperty(property, nv) {\n this[property] = nv;\n switch (property) {\n case 'displayName':\n this.table.callDataGridMethod('setColumnProp', this.field, property, nv);\n break;\n default:\n this.table.redraw(true);\n }\n }\n}\n","import { PROP_ANY, PROP_BOOLEAN, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-table-row',\n new Map(\n [\n ['class', PROP_STRING],\n ['closeothers', {value: true, ...PROP_BOOLEAN}],\n ['content', PROP_STRING],\n ['columnwidth', {value: '30px', ...PROP_STRING}],\n ['collapseicon', PROP_STRING],\n ['expandicon', PROP_STRING],\n ['height', PROP_STRING],\n ['position', {value: '0', ...PROP_STRING}]\n ]\n )\n );\n};\n","import {Directive, Inject, Injector, OnInit, Optional, SkipSelf} from '@angular/core';\n\nimport { BaseComponent, provideAsWidgetRef } from '@wm/components/base';\n\nimport { registerProps } from './table-row.props';\nimport { TableComponent } from '../table.component';\n\nconst WIDGET_CONFIG = {widgetType: 'wm-table-row', hostClass: ''};\n\n@Directive({\n selector: '[wmTableRow]',\n providers: [\n provideAsWidgetRef(TableRowDirective)\n ]\n})\nexport class TableRowDirective extends BaseComponent implements OnInit {\n static initializeProps = registerProps();\n\n config;\n columnwidth;\n closeothers;\n content;\n expandicon;\n collapseicon;\n height;\n position;\n\n constructor(\n inj: Injector,\n @Optional() @SkipSelf() public table: TableComponent, @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any) {\n super(inj, WIDGET_CONFIG, explicitContext);\n }\n\n populateConfig() {\n this.config = {\n closeothers: this.closeothers,\n content: this.content,\n columnwidth: this.columnwidth,\n expandicon: this.expandicon,\n collapseicon: this.collapseicon,\n height: this.height,\n position: this.position\n };\n }\n\n ngOnInit() {\n super.ngOnInit();\n this.populateConfig();\n this.table.registerRow(this.config, this);\n }\n\n onPropertyChange(key: string, nv: any) {\n if (key === 'content' && this.config) {\n this.config.content = this.content;\n }\n }\n}\n","import { PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-table-row-action',\n new Map(\n [\n ['accessroles', PROP_STRING],\n ['action', PROP_STRING],\n ['caption', PROP_STRING],\n ['class ', {value: 'btn-secondary', ...PROP_STRING}],\n ['disabled', {value: false, ...PROP_BOOLEAN}],\n ['display-name', PROP_STRING],\n ['hyperlink', PROP_STRING],\n ['iconclass', PROP_STRING],\n ['key', PROP_STRING],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['tabindex', {value: 0, ...PROP_NUMBER}],\n ['target', PROP_STRING],\n ['title', PROP_STRING],\n ['widget-type', {value: 'button', ...PROP_STRING}]\n ]\n )\n );\n};\n","import { Directive, Inject, Injector, OnInit, Optional, Self } from '@angular/core';\n\nimport { BaseComponent, Context, provideAsWidgetRef } from '@wm/components/base';\n\nimport { registerProps } from './table-row-action.props';\nimport { TableComponent } from '../table.component';\nimport {isUndefined} from \"lodash-es\";\n\nconst WIDGET_CONFIG = {widgetType: 'wm-table-row-action', hostClass: ''};\n\n@Directive({\n selector: '[wmTableRowAction]',\n providers: [\n provideAsWidgetRef(TableRowActionDirective),\n {provide: Context, useFactory: () => { return {} }, multi: true}\n ]\n})\nexport class TableRowActionDirective extends BaseComponent implements OnInit {\n static initializeProps = registerProps();\n\n accessroles;\n action;\n caption;\n class;\n disabled;\n displayName;\n iconclass;\n key;\n show;\n tabindex;\n title;\n buttonDef;\n hyperlink;\n target;\n conditionalclass;\n conditionalstyle;\n\n constructor(\n inj: Injector,\n @Optional() public table: TableComponent,\n @Self() @Inject(Context) contexts: Array<any>,\n @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any\n ) {\n super(inj, WIDGET_CONFIG, explicitContext);\n\n contexts[0].editRow = (evt) => this.table.editRow(evt);\n contexts[0].deleteRow = (evt) => this.table.deleteRow(evt);\n contexts[0].addNewRow = (evt) => this.table.addNewRow(evt);\n }\n\n getTitle() {\n return isUndefined(this.title) ? (this['display-name'] || '') : this.title;\n }\n\n populateAction() {\n this.buttonDef = {\n key: this.key,\n displayName: this['display-name'] || this.caption || '',\n show: this.show,\n class: this.class || '',\n iconclass: this.iconclass || '',\n title: this.getTitle(),\n action: this.action,\n accessroles: this.accessroles,\n disabled: this.disabled,\n tabindex: this.tabindex ? +this.tabindex : undefined,\n widgetType: this['widget-type'] || 'button',\n hyperlink: this.hyperlink,\n target: this.target || '',\n conditionalclass: this.conditionalclass || '',\n conditionalstyle: this.conditionalstyle || {}\n };\n }\n\n ngOnInit() {\n super.ngOnInit();\n this.populateAction();\n this.table.registerRowActions(this.buttonDef);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\n\nimport { TooltipModule } from 'ngx-bootstrap/tooltip';\nimport { BsDropdownModule } from 'ngx-bootstrap/dropdown';\n\nimport { WmComponentsModule } from '@wm/components/base';\nimport { BasicModule } from '@wm/components/basic';\nimport { InputModule } from '@wm/components/input';\nimport { MenuModule } from '@wm/components/navigation/menu';\nimport { ListModule } from '@wm/components/data/list';\nimport { PaginationModule } from '@wm/components/data/pagination';\n\nimport { TableComponent } from './table.component';\nimport { TableCUDDirective } from './table-cud.directive';\nimport { TableFilterSortDirective } from './table-filter.directive';\nimport { TableActionDirective } from './table-action/table-action.directive';\nimport { TableColumnDirective } from './table-column/table-column.directive';\nimport { TableColumnGroupDirective } from './table-column-group/table-column-group.directive';\nimport { TableRowDirective } from './table-row/table-row.directive';\nimport { TableRowActionDirective } from './table-row-action/table-row-action.directive';\n\nconst components = [\n TableComponent,\n TableCUDDirective,\n TableFilterSortDirective,\n TableActionDirective,\n TableColumnDirective,\n TableColumnGroupDirective,\n TableRowDirective,\n TableRowActionDirective\n];\n\n@NgModule({\n imports: [\n BasicModule,\n BsDropdownModule,\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n InputModule,\n ListModule,\n MenuModule,\n PaginationModule,\n TooltipModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class TableModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["registerProps","WIDGET_CONFIG","parseInt","i1","i2.TableComponent","i3.TableColumnGroupDirective","i1.TableComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAEO,MAAMA,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QAChB,aAAa;AACb,QAAA,kBAAkB,aAtBtB,cAAc;QACd,iBAAiB;QACjB,wBAAwB;QACxB,oBAAoB;QACpB,oBAAoB;QACpB,yBAAyB;QACzB,iBAAiB;QACjB,uBAAuB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;AC/B3B;;AAEG;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/data/table/src/table.props.ts","../../../../../projects/components/widgets/data/table/src/table.component.html","../../../../../projects/components/widgets/data/table/src/table.component.ts","../../../../../projects/components/widgets/data/table/src/table-cud.directive.ts","../../../../../projects/components/widgets/data/table/src/table-filter.directive.ts","../../../../../projects/components/widgets/data/table/src/table-action/table-action.props.ts","../../../../../projects/components/widgets/data/table/src/table-action/table-action.directive.ts","../../../../../projects/components/widgets/data/table/src/table-column/table-column.props.ts","../../../../../projects/components/widgets/data/table/src/table-column-group/table-column-group.props.ts","../../../../../projects/components/widgets/data/table/src/table-column-group/table-column-group.directive.ts","../../../../../projects/components/widgets/data/table/src/table-column/table-column.directive.ts","../../../../../projects/components/widgets/data/table/src/table-row/table-row.props.ts","../../../../../projects/components/widgets/data/table/src/table-row/table-row.directive.ts","../../../../../projects/components/widgets/data/table/src/table-row-action/table-row-action.props.ts","../../../../../projects/components/widgets/data/table/src/table-row-action/table-row-action.directive.ts","../../../../../projects/components/widgets/data/table/src/table.module.ts","../../../../../projects/components/widgets/data/table/src/index.ts"],"sourcesContent":["import { PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-table',\n new Map(\n [\n ['boundarylinks', {value: false, ...PROP_BOOLEAN}],\n ['class', PROP_STRING],\n ['confirmdelete', {value: 'Are you sure you want to delete this?', ...PROP_STRING}],\n ['datasource', PROP_STRING],\n ['dataset', PROP_ANY],\n ['deletecanceltext', PROP_STRING],\n ['deleteoktext', PROP_STRING],\n ['deletemessage', {value: 'Record deleted successfully', ...PROP_STRING}],\n ['directionlinks', {value: true, ...PROP_BOOLEAN}],\n ['editmode', PROP_STRING],\n ['errorstyle', {value: 'hover', ...PROP_STRING}],\n ['enablecolumnselection', {value: false, ...PROP_BOOLEAN}],\n ['enablesort', {value: true, ...PROP_BOOLEAN}],\n ['errormessage', PROP_STRING],\n ['exportformat', PROP_STRING],\n ['exportdatasize', {value: 100, ...PROP_NUMBER}],\n ['filtermode', PROP_STRING],\n ['filteronkeypress', {value: false, ...PROP_BOOLEAN}],\n ['filternullrecords', {value: true, ...PROP_BOOLEAN}],\n ['forceellipses', {value: true, ...PROP_BOOLEAN}],\n ['formposition', PROP_STRING],\n ['gridclass', {value: 'table-hover', ...PROP_STRING}],\n ['gridfirstrowselect', PROP_BOOLEAN],\n ['iconclass', PROP_STRING],\n ['insertmessage', {value: 'Record added successfully', ...PROP_STRING}],\n ['isdynamictable', PROP_BOOLEAN], // internal property to determine dynamic table\n ['isrowexpansionenabled', PROP_BOOLEAN],\n ['loadingdatamsg', {value: 'Loading...', ...PROP_STRING}],\n ['loadingicon', {value: 'fa fa-circle-o-notch fa-spin', ...PROP_STRING}],\n ['maxsize', {value: 5, ...PROP_NUMBER}],\n ['multiselect', PROP_BOOLEAN],\n ['name', PROP_STRING],\n ['navigation', {value: 'Basic', ...PROP_STRING}],\n ['navigationalign', {value: 'left', ...PROP_STRING}],\n ['nodatamessage', {value: 'No data found.', ...PROP_STRING}],\n ['ondemandmessage', {value: 'Load More', ...PROP_STRING}],\n ['showviewlessbutton', {value: false, ...PROP_BOOLEAN}],\n ['viewlessmessage', {value: 'View Less', ...PROP_STRING}],\n ['pagesize', PROP_NUMBER],\n ['radioselect', PROP_BOOLEAN],\n ['rowclass', PROP_STRING],\n ['rowngclass', PROP_STRING],\n ['searchlabel', {value: 'Search', ...PROP_STRING}],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['showheader', {value: true, ...PROP_BOOLEAN}],\n ['shownewrow', {value: true, ...PROP_BOOLEAN}],\n ['showrecordcount', PROP_BOOLEAN],\n ['showrowindex', PROP_BOOLEAN],\n ['spacing', {value: 'normal', ...PROP_STRING}],\n ['statehandler', {value: 'none', ...PROP_STRING}],\n ['subheading', PROP_STRING],\n ['tabindex', {value: 0, ...PROP_NUMBER}],\n ['title', PROP_STRING],\n ['updatemessage', {value: 'Record updated successfully', ...PROP_STRING}]\n ]\n )\n );\n};\n","<div class=\"panel-heading\" *ngIf=\"title || subheading || iconclass || exportOptions.length || _actions.header.length\">\n <h3 class=\"panel-title\">\n <div class=\"pull-left\">\n <i class=\"app-icon panel-icon {{iconclass}}\" *ngIf=\"iconclass\"></i>\n </div>\n <div class=\"pull-left\">\n <div class=\"heading\" [innerHTML]=\"title\"></div>\n <div class=\"description\" [innerHTML]=\"subheading\"></div>\n </div>\n <div class=\"panel-actions app-datagrid-actions\" *ngIf=\"exportOptions.length || _actions.header.length\">\n <ng-container *ngFor=\"let btn of _actions.header; let index = index;\"\n [ngTemplateOutlet]=\"btn.widgetType === 'button' ? buttonRef : anchorRef\"\n [ngTemplateOutletContext]=\"{btn:btn}\"\n [ngTemplateOutletInjector]=\"createCustomInjector('actions_header_' + index, {btn:btn})\">\n </ng-container>\n <div wmMenu dropdown caption.bind=\"appLocale.LABEL_EXPORT\" *ngIf=\"exportOptions.length\" autoclose=\"always\" attr.name=\"{{name}}-export\"\n dataset.bind=\"exportOptions\" select.event=\"export($item)\" menuposition=\"down,left\"></div>\n </div>\n </h3>\n</div>\n<div class=\"app-datagrid\" #datagridElement></div>\n\n<div class=\"panel-footer clearfix\" [hidden]=\"!_actions.footer.length && (!shownavigation || (onDemandLoad && dataNavigator.isDisableNext) || dataNavigator?.dataSize <= pagesize)\">\n <div class=\"app-datagrid-paginator\" [hidden]=\"(!dataNavigator?.dataSize && !dataNavigator.datasource?.pagination?.next) || !shownavigation || (onDemandLoad && dataNavigator.isDisableNext) || dataNavigator?.dataSize <= pagesize\">\n <nav wmPagination show.bind=\"shownavigation\" navigationalign.bind=\"navigationalign\"\n navigationsize.bind=\"navigationSize\"\n navigation.bind=\"navControls\" showrecordcount.bind=\"showrecordcount\" maxsize.bind=\"maxsize\"\n boundarylinks.bind=\"boundarylinks\"\n forceellipses.bind=\"forceellipses\" directionlinks.bind=\"directionlinks\"></nav>\n </div>\n <div class=\"app-datagrid-actions\" *ngIf=\"_actions.footer.length\">\n <ng-container *ngFor=\"let btn of _actions.footer; let index = index;\"\n [ngTemplateOutlet]=\"btn.widgetType === 'button' ? buttonRef : anchorRef\"\n [ngTemplateOutletContext]=\"{btn:btn}\"\n [ngTemplateOutletInjector]=\"createCustomInjector('actions_footer_' + index, {btn:btn})\">\n </ng-container>\n </div>\n</div>\n\n<ng-template #buttonRef let-btn=\"btn\">\n <button wmButton caption.bind=\"btn.displayName\" show.bind=\"btn.show\" class.bind=\"btn.class\" iconclass.bind=\"btn.iconclass\" (click)=\"invokeActionEvent($event, btn.action)\"\n [ngClass]=\"{'btn-sm': spacing === 'condensed', 'disabled-new': btn.key === 'addNewRow' && (isGridEditMode || isLoading)}\"\n type=\"button\" shortcutkey.bind=\"btn.shortcutkey\" tabindex.bind=\"btn.tabindex\" hint.bind=\"btn.title\" [attr.aria-label]=\"btn.displayName\" disabled.bind=\"btn.disabled\" conditionalclass.bind=\"btn.conditionalclass\" conditionalstyle.bind=\"btn.conditionalstyle\"></button>\n</ng-template>\n\n<ng-template #anchorRef let-btn=\"btn\">\n <a wmAnchor caption.bind=\"btn.displayName\" show.bind=\"btn.show\" class.bind=\"btn.class\" iconclass.bind=\"btn.iconclass\" (click)=\"invokeActionEvent($event, btn.action)\"\n [ngClass]=\"{'btn-sm': spacing === 'condensed', 'disabled-new': btn.key === 'addNewRow' && (isGridEditMode || isLoading)}\"\n shortcutkey.bind=\"btn.shortcutkey\" tabindex.bind=\"btn.tabindex\" hint.bind=\"btn.title\"\n hyperlink.bind=\"btn.hyperlink\" target.bind=\"btn.target\" conditionalclass.bind=\"btn.conditionalclass\" conditionalstyle.bind=\"btn.conditionalstyle\"></a>\n</ng-template>\n\n<div hidden>\n <ng-container #multiColumnFilterView></ng-container>\n\n <ng-container #inlineEditView></ng-container>\n\n <ng-container #inlineEditNewView></ng-container>\n\n <ng-container #rowActionsView></ng-container>\n\n <ng-container #rowExpansionActionView></ng-container>\n\n <ng-container #customExprView></ng-container>\n\n <ng-container #dynamicTable></ng-container>\n\n <ng-container #rowDetailView></ng-container>\n\n <div class=\"dynamic-table-container\"></div>\n</div>\n","import {\n AfterContentInit,\n Attribute,\n Component,\n ContentChild,\n ContentChildren,\n ElementRef,\n HostListener, Inject,\n Injector,\n NgZone,\n OnDestroy,\n Optional,\n QueryList,\n TemplateRef,\n ViewChild,\n ViewContainerRef\n} from '@angular/core';\nimport {ControlValueAccessor, FormBuilder, FormGroup, NG_VALUE_ACCESSOR} from '@angular/forms';\nimport {\n $appDigest,\n $invokeWatchers,\n $parseEvent,\n $unwatch,\n $watch,\n App,\n closePopover,\n DataSource,\n DynamicComponentRefProvider,\n extendProto,\n getClonedObject,\n getDatasourceFromExpr,\n getValidJSON,\n isDataSourceEqual,\n isDefined,\n isMobile,\n PaginationService,\n StatePersistence,\n triggerFn,\n Viewport\n} from '@wm/core';\n\nimport {Observable, Subject} from 'rxjs';\nimport {\n DEBOUNCE_TIMES,\n EDIT_MODE,\n extractDataSourceName,\n getConditionalClasses,\n getOrderByExpr,\n getRowOperationsColumn,\n NAVIGATION_TYPE,\n prepareFieldDefs,\n provideAs,\n provideAsWidgetRef,\n StylableComponent,\n styler,\n transformData,\n TrustAsPipe,\n unsupportedStatePersistenceTypes\n} from '@wm/components/base';\nimport {PaginationComponent} from '@wm/components/data/pagination';\n\nimport {ListComponent} from '@wm/components/data/list';\nimport {registerProps} from './table.props';\nimport {debounceTime} from 'rxjs/operators';\nimport {\n debounce,\n extend, find,\n findIndex, floor, forEach,\n get, includes, indexOf, isArray, isEmpty,\n isEqual,\n isNaN, isObject,\n isUndefined, keys, omitBy,\n pullAllWith,\n remove,\n set,\n some, split, startsWith, toNumber, values\n} from \"lodash-es\";\n\ndeclare const $;\n\nconst DEFAULT_CLS = 'app-grid app-panel panel';\nconst WIDGET_CONFIG = {widgetType: 'wm-table', hostClass: DEFAULT_CLS};\n\nconst exportIconMapping = {\n EXCEL: 'fa fa-file-excel-o',\n CSV: 'fa fa-file-text-o'\n};\n\nconst ROW_OPS_FIELD = 'rowOperations';\n\nconst noop = () => {};\n\nconst isInputBodyWrapper = target => {\n const classes = ['.dropdown-menu', '.uib-typeahead-match', '.modal-dialog', '.toast'];\n let isInput = false;\n classes.forEach(cls => {\n if (target.closest(cls).length) {\n isInput = true;\n return false;\n }\n });\n const attrs = ['bsdatepickerdaydecorator'];\n if (!isInput) {\n attrs.forEach(attr => {\n if (target[0].hasAttribute(attr)) {\n isInput = true;\n return false;\n }\n });\n }\n return isInput;\n};\n\n@Component({\n selector: '[wmTable]',\n templateUrl: './table.component.html',\n providers: [\n provideAs(TableComponent, NG_VALUE_ACCESSOR, true),\n provideAsWidgetRef(TableComponent)\n ]\n})\nexport class TableComponent extends StylableComponent implements AfterContentInit, OnDestroy, ControlValueAccessor {\n static initializeProps = registerProps();\n @ViewChild(PaginationComponent, {static: true}) dataNavigator;\n\n @ViewChild('datagridElement', {static: true}) private _tableElement: ElementRef;\n\n @ContentChildren('rowActionTmpl', { descendants: true }) rowActionTmpl: QueryList<any>;\n @ViewChild('rowActionsView', { static: true, read: ViewContainerRef }) rowActionsViewRef: ViewContainerRef;\n\n @ContentChildren('filterTmpl', {descendants: true}) filterTmpl: QueryList<any>;\n @ViewChild('multiColumnFilterView', { static: true, read: ViewContainerRef }) filterViewRef: ViewContainerRef;\n\n @ContentChildren('inlineWidgetTmpl', {descendants: true}) inlineWidgetTmpl: QueryList<any>;\n @ViewChild('inlineEditView', { static: true, read: ViewContainerRef }) inlineEditViewRef: ViewContainerRef;\n\n @ContentChildren('inlineWidgetTmplNew', {descendants: true}) inlineWidgetNewTmpl: QueryList<any>;\n @ViewChild('inlineEditNewView', { static: true, read: ViewContainerRef }) inlineEditNewViewRef: ViewContainerRef;\n\n @ContentChildren('customExprTmpl', {descendants: true}) customExprTmpl: QueryList<any>;\n @ViewChild('customExprView', { static: true, read: ViewContainerRef }) customExprViewRef: ViewContainerRef;\n\n @ContentChildren('rowExpansionActionTmpl', { descendants: true }) rowExpansionActionTmpl: QueryList<any>;\n @ContentChild('rowExpansionTmpl') rowExpansionTmpl: TemplateRef<any>;\n @ViewChild('rowDetailView', { static: true, read: ViewContainerRef }) rowDetailViewRef: ViewContainerRef;\n @ViewChild('rowExpansionActionView', { static: true, read: ViewContainerRef }) rowExpansionActionViewRef: ViewContainerRef;\n\n @ViewChild('dynamicTable', { static: true, read: ViewContainerRef }) dynamicTableRef: ViewContainerRef;\n\n private rowActionsCompiledTl: any = {};\n private rowFilterCompliedTl: any = {};\n private inlineCompliedTl: any = {};\n private inlineNewCompliedTl: any = {};\n private customExprCompiledTl: any = {};\n private customExprCompiledSummaryTl: any = {};\n private rowDefInstances = {};\n private rowDefMap = {};\n private rowExpansionActionTl: any = {};\n\n columns = {};\n formfields = {};\n datagridElement;\n datasource;\n editmode;\n enablecolumnselection;\n enablesort = true;\n filtermode;\n filteronkeypress;\n searchlabel;\n formposition;\n gridclass;\n gridfirstrowselect;\n iconclass;\n ondemandmessage;\n viewlessmessage;\n showviewlessbutton = false;\n _triggeredByUser;\n isGridEditMode;\n loadingdatamsg;\n multiselect;\n name;\n _isDependent;\n navigation;\n navigationSize;\n navigationalign;\n nodatamessage;\n pagesize;\n prevData;\n primaryKey = [];\n radioselect;\n rowclass;\n rowngclass;\n selectedItems = [];\n showheader;\n showrecordcount;\n showrowindex;\n subheading;\n title;\n shownewrow;\n deleteoktext;\n deletecanceltext;\n onError;\n onRowinsert;\n onRowupdate;\n onRowdelete;\n statehandler;\n selectedItemChange = new Subject();\n selectedItemChange$: Observable<any> = this.selectedItemChange.asObservable();\n\n actions = [];\n _actions = {\n 'header': [],\n 'footer': []\n };\n exportOptions = [];\n exportdatasize;\n formWidgets;\n headerConfig = [];\n items = [];\n navControls;\n rowActions = [];\n selectedColumns;\n shownavigation = false;\n showFirstRow = false;\n dataset;\n _liveTableParent;\n isPartOfLiveGrid;\n gridElement;\n isNewRowInserted;\n isMobile;\n isLoading;\n isRowDeleted;\n documentClickBind = noop;\n actionRowIndex;\n actionRowPage;\n prevFilterExpression: any = [];\n fieldDefs = [];\n rowDef: any = {};\n rowInstance: any = {};\n\n private fullFieldDefs = [];\n private __fullData;\n private dataNavigatorWatched;\n private navigatorResultWatch;\n private navigatorMaxResultWatch;\n private filterInfo;\n private sortInfo;\n private serverData;\n private filternullrecords;\n private variableInflight = true;\n private isdynamictable;\n private _dynamicContext;\n private noOfColumns;\n public onDemandLoad;\n public infScroll;\n private isDataLoading;\n private currentPage;\n private applyProps = new Map();\n\n redraw = debounce(this._redraw, 150);\n debouncedHandleLoading = debounce(this.handleLoading, 350);\n\n // Filter and Sort Methods\n rowFilter: any = {};\n matchModeTypesMap;\n matchModeMsgs;\n emptyMatchModes;\n _searchSortHandler = noop;\n searchSortHandler = (...args) => { this._searchSortHandler.apply(this, args); };\n _isPageSearch;\n _isClientSearch;\n checkFiltersApplied: Function;\n getSearchResult: Function;\n getSortResult: Function;\n getFilterFields: Function;\n onRowFilterChange = noop;\n onFilterConditionSelect = noop;\n showClearIcon = noop;\n clearRowFilter = noop;\n adjustContainer = noop;\n getNavigationTargetBySortInfo: Function;\n refreshData: Function;\n clearFilter: Function;\n\n // Inline Edit\n ngform: FormGroup;\n updateVariable: Function;\n updateRecord: Function;\n deleteRecord: Function;\n insertRecord: Function;\n editRow: Function;\n addNewRow: Function;\n addRow: Function;\n deleteRow: Function;\n onRecordDelete: Function;\n initiateSelectItem: Function;\n hideEditRow: Function;\n saveRow: Function;\n cancelRow: Function;\n private _pageLoad = true;\n\n public gridOptions = {\n data: [],\n colDefs: [],\n startRowIndex: 1,\n mode: '',\n sortInfo: {\n field: '',\n direction: ''\n },\n filtermode: '',\n filteronkeypress: false,\n searchLabel: '',\n rowActions: [],\n headerConfig: [],\n rowClass: '',\n editmode: '',\n formPosition: '',\n isMobile: false,\n rowExpansionEnabled: false,\n rowDef: {\n position: '0'\n },\n name: '',\n messages: {\n selectField: 'Select Field'\n },\n securityUtils: {\n pipeTransform : {}\n },\n navigation: '',\n isdynamictable: '',\n deletedRowIndex: -1,\n lastActionPerformed: 'scroll',\n isSearchTrigerred: false,\n isDatasetUpdated: false,\n isDataUpdatedByUser: false,\n showviewlessbutton: false,\n ondemandmessage: '',\n viewlessmessage: '',\n loadingdatamsg: '',\n isNextPageData: undefined,\n ACTIONS: {\n 'DELETE': 'delete',\n 'EDIT': 'edit',\n 'SEARCH_OR_SORT': 'search_or_sort',\n 'DEFAULT': 'scroll',\n 'FILTER_CRITERIA' : 'filter',\n 'DATASET_UPDATE': 'dataset_update'\n },\n actionRowIndex: undefined,\n actionRowPage: undefined,\n isLastPage : false,\n // get the current page number\n getCurrentPage: () => {\n return get(this.dataNavigator, 'dn.currentPage') || 1;\n },\n // set the page number\n setCurrentPage: (pageNum) => {\n set(this.dataNavigator, 'dn.currentPage', pageNum || 1);\n },\n getDataSource: () => {\n return this.datasource;\n },\n // get the page limit\n getPageSize: () => {\n return this.pagesize;\n },\n\n getPageCount : () =>{\n return this.dataNavigator.pageCount;\n },\n enableNavigation: () => {\n this.dataNavigator.widget.isDisableNext = false;\n this.dataNavigator.widget.isDisableLast = false;\n this.gridOptions.mode = 'viewless';\n },\n // set the deleted row index\n setDeletedRowIndex: (id) => {\n this.setDataGridOption('deletedRowIndex', id);\n },\n // sets the last action performed like edit, delete etc.\n setLastActionPerformed: (action) => {\n this.setDataGridOption('lastActionPerformed', action || this.gridOptions.lastActionPerformed);\n },\n isNavTypeScrollOrOndemand: () => {\n return this.gridOptions.navigation === 'Scroll' || this.gridOptions.navigation === 'On-Demand';\n },\n setIsSearchTrigerred: (value) => {\n this.setDataGridOption('isSearchTrigerred', value);\n },\n setIsDatasetUpdated: (value) => {\n this.setDataGridOption('isDatasetUpdated', value);\n },\n // Fix for [WMS-23263]: 'isNextPageData' flag is set to true -> if user fetching the next page data by clicking onLoad more or scroll\n setIsNextPageData: (value) => {\n this.setDataGridOption('isNextPageData', value);\n },\n // Fix for [WMS-23263]: 'isDataUpdatedByUser' flag is set to true -> if user changes the dataset from script\n setIsDataUpdatedByUser: (value) => {\n this.setDataGridOption('isDataUpdatedByUser', value);\n },\n onDataRender: () => {\n this.ngZone.run(() => {\n if (this.gridData.length) {\n this.invokeEventCallback('datarender', {$data: this.gridData, data: this.gridData});\n }\n // select rows selected in previous pages. (Not finding intersection of data and selecteditems as it will be heavy)\n if (!this.multiselect) {\n this.items.length = 0;\n }\n if(!this.infScroll && !this.onDemandLoad) {\n this.callDataGridMethod('selectRows', this.items);\n }\n this.selectedItems = this.callDataGridMethod('getSelectedRows');\n if(this.selectedItems.length) {\n this.selectedItemChange.next(this.selectedItems);\n }\n // On render, apply the filters set for query service variable\n if (this._isPageSearch && this.filterInfo) {\n this.searchSortHandler(this.filterInfo, undefined, 'search');\n }\n });\n },\n onRowSelect: (row, e) => {\n this.ngZone.run(() => {\n this.selectedItems = this.callDataGridMethod('getSelectedRows');\n if (this.selectedItems.length) {\n this.selectedItemChange.next(this.selectedItems);\n }\n const rowData = this.addRowIndex(row);\n if (this.selectedItems.length && rowData.$index && this.getConfiguredState() !== 'none' && this.dataNavigator && unsupportedStatePersistenceTypes.indexOf(this.navigation) < 0) {\n const obj = {page: this.dataNavigator.dn.currentPage, index: rowData.$index - 1};\n const widgetState = this.statePersistence.getWidgetState(this);\n if (get(widgetState, 'selectedItem') && this.multiselect) {\n if (!some(widgetState.selectedItem, obj)) {\n widgetState.selectedItem.push(obj);\n }\n this.statePersistence.setWidgetState(this, {'selectedItem': widgetState.selectedItem});\n } else {\n this.statePersistence.setWidgetState(this, {'selectedItem': [obj]});\n }\n } else {\n console.warn('Retain State handling on Widget ' + this.name + ' is not supported for current pagination type.');\n }\n this.invokeEventCallback('rowselect', {$data: rowData, $event: e, row: rowData});\n });\n },\n // assigns the items on capture phase of the click handler.\n assignSelectedItems: (row, e, rowInfo) => {\n this.ngZone.run(() => {\n /*\n * in case of single select, update the items with out changing the reference.\n * for multi select, keep old selected items in tact\n */\n if (this.multiselect) {\n //Fix for [WMS-25110]: Add row to items list only if the row is selected\n if (findIndex(this.items, row) === -1 && (rowInfo?._selected === undefined || rowInfo?._selected == true || (this.gridfirstrowselect && rowInfo?.rowId == 0 && !this.showFirstRow))) {\n this.items.push(row);\n if (rowInfo?.rowId == 0) {\n this.showFirstRow = true;\n }\n }\n } else {\n this.items.length = 0;\n this.items.push(row);\n }\n });\n },\n onRowDblClick: (row, e) => {\n const rowData = this.addRowIndex(row);\n this.invokeEventCallback('rowdblclick', {$data: rowData, $event: e, row: rowData});\n },\n onRowDeselect: (row, e) => {\n if (this.multiselect) {\n this.ngZone.run(() => {\n this.items = pullAllWith(this.items, [row], isEqual);\n this.selectedItems = this.callDataGridMethod('getSelectedRows');\n this.invokeEventCallback('rowdeselect', {$data: row, $event: e, row});\n const rowData = this.addRowIndex(row);\n if (this.getConfiguredState() !== 'none' && unsupportedStatePersistenceTypes.indexOf(this.navigation) < 0) {\n const obj = {page: this.dataNavigator.dn.currentPage, index: rowData.$index - 1};\n const widgetState = this.statePersistence.getWidgetState(this);\n if (get(widgetState, 'selectedItem')) {\n remove(widgetState.selectedItem, function (selectedItem) {\n return isEqual(selectedItem, obj);\n });\n this.statePersistence.removeWidgetState(this, 'selectedItem');\n if (widgetState.selectedItem.length > 0) {\n this.statePersistence.setWidgetState(this, {'selectedItem': widgetState.selectedItem});\n }\n }\n } else {\n console.warn('Retain State handling on Widget ' + this.name + ' is not supported for current pagination type.');\n }\n });\n }\n },\n\n callOnRowDeselectEvent: (row, e) => {\n this.items = this.selectedItems = this.callDataGridMethod('getSelectedRows');\n this.invokeEventCallback('rowdeselect', {$data: row, $event: e, row});\n },\n callOnRowClickEvent: (row, e) => {\n // WMS-18774: If we invoke navigation action variable on rowclick callback, the navigation is triggering outside angular zone so adding ngZone.run\n this.ngZone.run(() => {\n // Call row click only if click is triggered by user\n if (e && e.hasOwnProperty('originalEvent')) {\n const rowData = this.addRowIndex(row);\n this.invokeEventCallback('rowclick', {$data: rowData, $event: e, row: rowData});\n }\n });\n },\n closePopover: closePopover,\n onColumnSelect: (col, e) => {\n this.selectedColumns = this.callDataGridMethod('getSelectedColumns');\n this.invokeEventCallback('columnselect', {$data: col, $event: e});\n },\n onColumnDeselect: (col, e) => {\n this.selectedColumns = this.callDataGridMethod('getSelectedColumns');\n this.invokeEventCallback('columndeselect', {$data: col, $event: e});\n },\n onHeaderClick: (col, e) => {\n // if onSort function is registered invoke it when the column header is clicked\n this.invokeEventCallback('headerclick', {$event: e, $data: col, column: col});\n },\n onRowDelete: (row, cancelRowDeleteCallback, e, callBack, options) => {\n this.ngZone.run(() => {\n this.deleteRecord(extend({}, options, {\n row,\n 'cancelRowDeleteCallback': cancelRowDeleteCallback,\n 'evt': e,\n 'callBack': callBack\n }));\n });\n },\n onRowInsert: (row, e, callBack, options) => {\n this.insertRecord(extend({}, options, {row, event: e, 'callBack': callBack}));\n },\n beforeRowUpdate: (row, eventName?) => {\n if (this._liveTableParent) {\n this._liveTableParent.updateRow(row, eventName);\n }\n this.prevData = getClonedObject(row);\n },\n afterRowUpdate: (row, e, callBack, options) => {\n this.updateRecord(extend({}, options, {row, 'prevData': this.prevData, 'event': e, 'callBack': callBack}));\n },\n onBeforeRowUpdate: (row, e, options) => {\n return this.invokeEventCallback('beforerowupdate', {$event: e, $data: row, row, options: options});\n },\n onBeforeRowInsert: (row, e, options) => {\n return this.invokeEventCallback('beforerowinsert', {$event: e, $data: row, row, options: options});\n },\n onBeforeRowDelete: (row, e, options) => {\n const rowData = this.addRowIndex(row);\n return this.invokeEventCallback('beforerowdelete', {$event: e, row: rowData, options: options});\n },\n onFormRender: ($row, e, operation, alwaysNewRow) => {\n const widget = alwaysNewRow ? 'inlineInstanceNew' : 'inlineInstance';\n setTimeout(() => {\n this.formWidgets = {};\n this.fieldDefs.forEach(col => {\n if (col[widget]) {\n this.formWidgets[col.field] = col[widget];\n // Adding formwidgets to the context for inlineinstance widget when fieldDefs were ready\n if (col[widget].context) {\n col[widget].context.formWidgets = this.formWidgets;\n }\n this.setDisabledOnField(operation, col, widget);\n }\n });\n this.invokeEventCallback('formrender', {$event: e, formWidgets: this.formWidgets, $operation: operation});\n }, 250);\n },\n onBeforeFormRender: (row, e, operation) => {\n return this.invokeEventCallback('beforeformrender', {$event: e, row, $operation: operation});\n },\n registerRowNgClassWatcher: (rowData, index) => {\n if (!this.rowngclass) {\n return;\n }\n const row = this.getClonedRowObject(rowData);\n const watchName = `${this.widgetId}_rowNgClass_${index}`;\n $unwatch(watchName);\n //[Todo-CSP]: generate watcher expr in page if rowngclass attr is present for table\n this.registerDestroyListener($watch(this.rowngclass, this.viewParent, {row}, (nv, ov) => {\n this.callDataGridMethod('applyRowNgClass', getConditionalClasses(nv, ov), index);\n }, watchName));\n },\n registerColNgClassWatcher: (rowData, colDef, rowIndex, colIndex) => {\n if (!colDef['col-ng-class']) {\n return;\n }\n const row = this.getClonedRowObject(rowData);\n const watchName = `${this.widgetId}_colNgClass_${rowIndex}_${colIndex}`;\n $unwatch(watchName);\n //[Todo-CSP]: generate watcher expr in page if col-ng-class attr is present for table\n this.registerDestroyListener($watch(colDef['col-ng-class'], this.viewParent, {row}, (nv, ov) => {\n this.callDataGridMethod('applyColNgClass', getConditionalClasses(nv, ov), rowIndex, colIndex);\n }, watchName));\n },\n clearCustomExpression: () => {\n this.customExprViewRef.clear();\n this.customExprCompiledTl = {};\n this.customExprCompiledSummaryTl = {};\n },\n clearRowDetailExpression: () => {\n this.rowDetailViewRef.clear();\n this.rowDefMap = {};\n this.rowDefInstances = {};\n },\n generateCustomExpressions: (rowData, index, summaryRow?) => {\n const row = this.getClonedRowObject(rowData);\n const compileTemplate = (tmpl) => {\n if (!tmpl) {\n return;\n }\n const colDef = {};\n const context = {\n row,\n colDef\n };\n this.addEventsToContext(context);\n const customExprView = this.customExprViewRef.createEmbeddedView(tmpl, context);\n const rootNode = customExprView.rootNodes[0];\n const fieldName = rootNode.getAttribute('data-col-identifier');\n extend(colDef, this.columns[fieldName]);\n if (!summaryRow) {\n this.customExprCompiledTl[fieldName + index] = rootNode;\n } else {\n this.customExprCompiledSummaryTl[fieldName + index] = rootNode;\n }\n };\n if (this.isdynamictable) {\n this.fieldDefs.forEach(col => {\n compileTemplate(col.customExprTmpl);\n });\n return;\n }\n // For all the columns inside the table, generate the custom expression\n this.customExprTmpl.forEach(compileTemplate.bind(this));\n },\n generateRowExpansionCell: (rowData, index) => {\n const row = this.getClonedRowObject(rowData);\n // For all the columns inside the table, generate the inline widget\n this.rowExpansionActionTmpl.forEach((tmpl) => {\n this.rowExpansionActionTl[index] = this.rowExpansionActionViewRef.createEmbeddedView(tmpl, {row}).rootNodes;\n });\n },\n getRowExpansionAction: (index) => {\n return this.rowExpansionActionTl[index];\n },\n generateRowDetailView: ($event, rowData, rowId, $target, $overlay, callback) => {\n const row = this.getClonedRowObject(rowData);\n const rowDef = getClonedObject(this.rowDef);\n if (this.rowInstance.invokeEventCallback('beforerowexpand', {$event, $data: rowDef, row}) === false) {\n return;\n }\n if (!rowDef.content) {\n return;\n }\n // Expand the row detail\n callback();\n // Row is already rendered. Return here\n if (this.rowDefMap[rowId] && this.rowDefMap[rowId].content === rowDef.content) {\n this.rowInstance.invokeEventCallback('rowexpand', {$event, row, $data: this.rowDefInstances[rowId]});\n return;\n }\n this.rowDefMap[rowId] = rowDef;\n $target.empty();\n $target.hide();\n $overlay.show();\n const context = {\n row,\n rowDef,\n containerLoad: (widget) => {\n setTimeout(() => {\n $overlay.hide();\n $target.show();\n this.rowDefInstances[rowId] = widget;\n this.rowInstance.invokeEventCallback('rowexpand', {$event, row, $data: widget});\n }, 500);\n }};\n const rootNode = this.rowDetailViewRef.createEmbeddedView(this.rowExpansionTmpl, context).rootNodes[0];\n $target[0].appendChild(rootNode);\n $appDigest();\n },\n onBeforeRowCollapse: ($event, row, rowId) => {\n return this.rowInstance.invokeEventCallback('beforerowcollapse', {$event, row, $data: this.rowDefInstances[rowId]});\n },\n onRowCollapse: ($event, row) => {\n this.rowInstance.invokeEventCallback('rowcollapse', {$event, row});\n },\n getCustomExpression: (fieldName, index, summaryRow?) => {\n let customExpression;\n if (!summaryRow) {\n customExpression = this.customExprCompiledTl[fieldName + index];\n } else {\n customExpression = this.customExprCompiledSummaryTl[fieldName + index];\n }\n return customExpression || '';\n },\n clearRowActions: () => {\n this.rowActionsViewRef.clear();\n this.rowActionsCompiledTl = {};\n this.rowExpansionActionViewRef.clear();\n this.rowExpansionActionTl = {};\n },\n generateRowActions: (rowData, index) => {\n const row = this.getClonedRowObject(rowData);\n this.rowActionsCompiledTl[index] = [];\n // For all the columns inside the table, generate the inline widget\n this.rowActionTmpl.forEach((tmpl) => {\n this.rowActionsCompiledTl[index].push(...this.rowActionsViewRef.createEmbeddedView(tmpl, {row}).rootNodes);\n });\n },\n getRowAction: (index) => {\n return this.rowActionsCompiledTl[index];\n },\n generateInlineEditRow: (rowData, alwaysNewRow) => {\n const row = this.getClonedRowObject(rowData);\n if (alwaysNewRow) {\n // Clear the view container ref\n this.inlineEditNewViewRef.clear();\n this.inlineNewCompliedTl = {};\n // For all the columns inside the table, generate the inline widget\n this.inlineWidgetNewTmpl.forEach(tmpl => {\n let fieldName;\n const context = {\n row,\n getControl: () => {\n return this.ngform.controls[fieldName + '_new'] || {};\n },\n getValidationMessage: () => {\n return this.columns[fieldName] && this.columns[fieldName].validationmessage;\n },\n getPendingSpinnerStatusNew: () => {\n return this.columns[fieldName] && this.columns[fieldName].showPendingSpinnerNew;\n }\n };\n const rootNode = this.inlineEditNewViewRef.createEmbeddedView(tmpl, context).rootNodes[0];\n fieldName = rootNode.getAttribute('data-col-identifier');\n this.inlineNewCompliedTl[fieldName] = rootNode;\n });\n this.clearForm(true);\n return;\n }\n // Clear the view container ref\n this.inlineEditViewRef.clear();\n this.inlineCompliedTl = {};\n this.clearForm();\n // For all the columns inside the table, generate the inline widget\n this.inlineWidgetTmpl.forEach(tmpl => {\n let fieldName;\n const context = {\n row,\n getControl: () => {\n return this.ngform.controls[fieldName] || {};\n },\n getValidationMessage: () => {\n return this.columns[fieldName] && this.columns[fieldName].validationmessage;\n },\n getPendingSpinnerStatus: () => {\n return this.columns[fieldName] && this.columns[fieldName].showPendingSpinner;\n }\n };\n const rootNode = this.inlineEditViewRef.createEmbeddedView(tmpl, context).rootNodes[0];\n fieldName = rootNode.getAttribute('data-col-identifier');\n this.inlineCompliedTl[fieldName] = rootNode;\n });\n },\n getInlineEditWidget: (fieldName, value, alwaysNewRow) => {\n if (alwaysNewRow) {\n this.gridOptions.setFieldValue(fieldName + '_new', value);\n return this.inlineNewCompliedTl[fieldName];\n }\n this.gridOptions.setFieldValue(fieldName, value);\n return this.inlineCompliedTl[fieldName];\n },\n setFieldValue: (fieldName, value) => {\n const control = this.ngform.controls && this.ngform.controls[fieldName];\n if (control) {\n control.setValue(value);\n }\n },\n getFieldValue: fieldName => {\n const control = this.ngform.controls && this.ngform.controls[fieldName];\n return control && control.value;\n },\n\n // function to add load more button to table\n addLoadMoreBtn: () => {\n this.callDataGridMethod('addLoadMoreBtn', this.ondemandmessage, this.loadingdatamsg, ($event) => {\n this.gridOptions.setIsNextPageData(true);\n this.gridOptions.setIsDataUpdatedByUser(false);\n if (this.gridOptions.mode === 'viewless') {\n this.dataNavigator.navigatePage('first', $event, true);\n this.gridOptions.mode = '';\n } else {\n this.dataNavigator.navigatePage('next', $event);\n this.isDataLoading = true;\n }\n }, this.infScroll);\n },\n // function to bind scroll event\n bindScrollEvt: () => {\n if (this._gridData && this._gridData.length && this.infScroll) {\n // smoothscroll events will be binded.\n // Added timeout as the table html is rendered at runtime\n setTimeout(() => {\n this.paginationService.bindScrollEvt(this, 'tbody', DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME);\n }, 0);\n }\n },\n generateFilterRow: () => {\n // Clear the view container ref\n this.filterViewRef.clear();\n this.rowFilterCompliedTl = {};\n // For all the columns inside the table, generate the compiled filter template\n this.filterTmpl.forEach((tmpl) => {\n const rootNode = this.filterViewRef.createEmbeddedView(tmpl, {\n changeFn: this.onRowFilterChange.bind(this),\n isDisabled: (fieldName) => {\n return this.emptyMatchModes.indexOf(this.rowFilter[fieldName] && this.rowFilter[fieldName].matchMode) > -1;\n }\n }).rootNodes[0];\n this.rowFilterCompliedTl[rootNode.getAttribute('data-col-identifier')] = rootNode;\n });\n },\n getFilterWidget: (fieldName) => {\n // Move the generated filter template to the filter row\n return this.rowFilterCompliedTl[fieldName];\n },\n setGridEditMode: (val) => {\n this.ngZone.run(() => {\n this.isGridEditMode = val;\n $appDigest();\n });\n },\n setGridState: (val) => {\n this.isLoading = val === 'loading';\n },\n /*\n set actionRowIndex and actionRowPage values\n actionRowIndex will have the row index in the dataset on which edit/delete operation is being performed\n actionRowPage will have page number in which the action row index is present\n */\n setActionRowIndex: (val) => {\n if (this.gridOptions.isNavTypeScrollOrOndemand()) {\n this.actionRowIndex = parseInt(val);\n this.setDataGridOption('actionRowIndex', this.actionRowIndex);\n if (!isNaN(this.actionRowIndex)) {\n this.actionRowPage = Math.floor(this.actionRowIndex / this.pagesize) + 1;\n this.setDataGridOption('actionRowPage', this.actionRowPage || this.gridOptions.actionRowPage);\n }\n }\n },\n clearActionRowIndex: () => {\n if (!this.isRowDeleted && (this.infScroll || this.onDemandLoad)) {\n this.clearActionRowVars();\n }\n },\n noChangesDetected: () => {\n this.toggleMessage(true, 'info', 'No Changes Detected', '');\n },\n // Function to redraw the widgets on resize of columns\n redrawWidgets: () => {\n this.fieldDefs.forEach(col => {\n triggerFn(col.inlineInstance && col.inlineInstance.redraw);\n triggerFn(col.inlineInstanceNew && col.inlineInstanceNew.redraw);\n triggerFn(col.filterInstance && col.filterInstance.redraw);\n });\n },\n searchHandler: this.searchSortHandler.bind(this),\n sortHandler: this.searchSortHandler.bind(this),\n timeoutCall: (fn, delay) => {\n setTimeout(fn, delay);\n },\n runInNgZone: fn => {\n this.ngZone.run(fn);\n },\n safeApply: () => {\n $appDigest();\n },\n setTouched: (name) => {\n const ctrl = this.ngform.controls[name];\n if (ctrl) {\n ctrl.markAsTouched();\n }\n },\n clearForm: this.clearForm.bind(this),\n callLoadInlineWidgetData: () => {\n this.fullFieldDefs.forEach(col => {\n if (isUndefined(col.isDataSetBound)) {\n triggerFn(col.loadInlineWidgetData && col.loadInlineWidgetData.bind(col));\n }\n });\n },\n // Function to apply validators to Inline form controls\n applyValidations: (col, alwaysNewRow) => {\n if (alwaysNewRow) {\n triggerFn(col.applyNewRowValidations && col.applyNewRowValidations.bind(col));\n } else {\n triggerFn(col.applyValidations && col.applyValidations.bind(col));\n }\n },\n // Function to remove validators and set form state to untouched for inline form control\n removeValidations: (alwaysNewRow) => {\n this.fullFieldDefs.forEach(col => {\n if (!col.readonly && col.binding !== 'rowOperations') {\n if (alwaysNewRow) {\n triggerFn(col.removeNewRowValidations && col.removeNewRowValidations.bind(col));\n } else {\n triggerFn(col.removeValidations && col.removeValidations.bind(col));\n }\n }\n });\n }\n };\n\n private _gridData;\n private _selectedItemsExist = false;\n set gridData(newValue) {\n this.isDataLoading = false;\n // Fix for [WMS-24012]: hide no datafound msg when variableInflight is true and dataset is empty\n if (this.variableInflight && isEmpty(newValue)) {\n return;\n }\n this.variableInflight = false;\n // Fix for [WMS-24108]: Change the status to ready or nodata found when variableInflight is false(after getting the data)\n if (newValue && (newValue.length) === 0) {\n this.callDataGridMethod('setStatus', 'nodata', this.nodatamessage);\n } else {\n this.callDataGridMethod('setStatus', 'ready');\n }\n if (this.gridOptions.isNavTypeScrollOrOndemand()) {\n // update the _gridData field with the next set of items and modify the current page\n [this._gridData, this.currentPage] = this.paginationService.updateFieldsOnPagination(this, newValue);\n\n // When edit action is performed on previous page, update the _gridData field with the modified row data\n if (this.gridOptions.lastActionPerformed === this.gridOptions.ACTIONS.EDIT) {\n const rowIndex = floor(this.actionRowIndex % this.pagesize);\n this._gridData.splice(this.actionRowIndex, 1 , newValue[rowIndex]);\n }\n this.setDataGridOption('isLastPage', !!(this.dataNavigator.isDisableNext));\n // In case of on demand pagination, create the load more button only once and show the button until next page is not disabled\n if (!this.$element.find('.on-demand-datagrid').length && !this.dataNavigator.isDisableNext && this.onDemandLoad) {\n this.gridOptions.addLoadMoreBtn();\n } else if ((this._gridData && this._gridData.length) && (this.dataNavigator.isDisableNext || !this.isDataLoading)) {\n // when the next page is disabled or when the data is not loading remove the loading/load more button accordingly\n this.callDataGridMethod('hideLoadingIndicator', this.dataNavigator.isDisableNext, this.infScroll);\n }\n } else {\n this._gridData = newValue;\n }\n let startRowIndex = 0;\n let gridOptions;\n\n this._onChange(this._gridData);\n this._onTouched();\n\n if (isDefined(newValue)) {\n this.gridOptions.bindScrollEvt();\n\n /*Setting the serial no's only when show navigation is enabled and data navigator is compiled\n and its current page is set properly*/\n if (this.isNavigationEnabled() && this.dataNavigator.dn.currentPage) {\n startRowIndex = ((this.dataNavigator.dn.currentPage - 1) * (this.dataNavigator.maxResults || 1)) + 1;\n this.setDataGridOption('startRowIndex', startRowIndex);\n }\n /* If colDefs are available, but not already set on the datagrid, then set them.\n * This will happen while switching from markup to design tab. */\n gridOptions = this.callDataGridMethod('getOptions');\n\n if (!gridOptions) {\n return;\n }\n\n if (!gridOptions.colDefs.length && this.fieldDefs.length) {\n this.setDataGridOption('colDefs', getClonedObject(this.fieldDefs));\n }\n // If data and colDefs are present, call on before data render event\n if (!this.isdynamictable && !isEmpty(newValue) && gridOptions.colDefs.length) {\n this.invokeEventCallback('beforedatarender', {$data: this._gridData, $columns: this.columns, data: this._gridData, columns: this.columns});\n }\n this.setDataGridOption('data', getClonedObject(this._gridData));\n }\n }\n\n get gridData() {\n return this._gridData || [];\n }\n\n get selecteditem() {\n if (this.multiselect) {\n return getClonedObject(this.items);\n }\n if (isEmpty(this.items)) {\n return {};\n }\n return getClonedObject(this.items[0]);\n }\n\n set selecteditem(val) {\n // Select the rows in the table based on the new selected items passed\n this.items.length = 0;\n this.callDataGridMethod('selectRows', val);\n }\n\n @HostListener('keypress', ['$event']) onKeyPress ($event: any) {\n if ($event.which === 13) {\n this.invokeEventCallback('enterkeypress', {$event, $data: this.gridData});\n }\n }\n\n constructor(\n public inj: Injector,\n public fb: FormBuilder,\n private app: App,\n private dynamicComponentProvider: DynamicComponentRefProvider,\n private statePersistence: StatePersistence,\n private paginationService: PaginationService,\n private viewport: Viewport,\n @Optional() public parentList: ListComponent,\n @Attribute('dataset.bind') public binddataset,\n @Attribute('datasource.bind') public binddatasource,\n @Attribute('readonlygrid') public readonlygrid,\n private ngZone: NgZone,\n private trustAsPipe: TrustAsPipe,\n @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any\n ) {\n super(inj, WIDGET_CONFIG, explicitContext);\n styler(this.nativeElement, this);\n\n this.ngform = fb.group({});\n this.addEventsToContext(this.context);\n const listenersToRemove = [\n // Updates pagination, filter, sort etc options for service and crud variables\n this.app.subscribe('check-state-persistence-options', options => {\n let dataSourceName = get(this.datasource, 'name');\n // in Prefabs, this.datasource is not resolved at the time of variable invocation, so additional check is required.\n if (!dataSourceName) {\n dataSourceName = extractDataSourceName(this.binddatasource);\n }\n if (get(options, 'variable.name') !== dataSourceName) {\n return;\n }\n if (this._pageLoad && this.getConfiguredState() !== 'none') {\n this._pageLoad = false;\n const widgetState = this.statePersistence.getWidgetState(this);\n if (widgetState) {\n options = this.handleStateParams(widgetState, options);\n } else {\n this.setDataGridOption('selectFirstRow', this.gridfirstrowselect);\n }\n }\n }),\n\n // Show loading status based on the variable life cycle\n this.app.subscribe('toggle-variable-state', options => {\n if (this.datasource && this.datasource.execute(DataSource.Operation.IS_API_AWARE) && isDataSourceEqual(options.variable, this.datasource)) {\n if (this._pageLoad && this.getConfiguredState() !== 'none') {\n this._pageLoad = false;\n const widgetState = this.statePersistence.getWidgetState(this);\n if (widgetState) {\n options = this.handleStateParams(widgetState, options);\n } else {\n this.setDataGridOption('selectFirstRow', this.gridfirstrowselect);\n }\n }\n isDefined(this.variableInflight) ? this.debouncedHandleLoading(options) : this.handleLoading(options);\n }\n }),\n\n this.app.subscribe('setup-cud-listener', param => {\n if (this.name !== param) {\n return;\n }\n this._isDependent = true;\n this.selectedItemChange$\n .pipe(debounceTime(250))\n .subscribe(this.triggerWMEvent.bind(this));\n })\n ];\n\n listenersToRemove.forEach( l => this.registerDestroyListener(l) );\n\n this.deleteoktext = this.appLocale.LABEL_OK;\n this.deletecanceltext = this.appLocale.LABEL_CANCEL;\n }\n\n ngAfterContentInit() {\n super.ngAfterContentInit();\n this.headerConfig = this.headerConfig.filter(this.filterEmptyValues.bind(this));\n remove(this.fieldDefs, f => f === undefined);\n const runModeInitialProperties = {\n showrowindex: 'showRowIndex',\n multiselect: 'multiselect',\n radioselect: 'showRadioColumn',\n filternullrecords: 'filterNullRecords',\n enablesort: 'enableSort',\n showheader: 'showHeader',\n enablecolumnselection: 'enableColumnSelection',\n shownewrow: 'showNewRow',\n gridfirstrowselect: 'selectFirstRow'\n };\n\n if (this._liveTableParent) {\n this.isPartOfLiveGrid = true;\n }\n\n if (this.readonlygrid || !this.editmode) {\n if (this.readonlygrid === 'true') {\n this.editmode = '';\n } else {\n if (this.isPartOfLiveGrid) {\n this.editmode = this.isPartOfLiveGrid.formlayout === 'inline' ? EDIT_MODE.FORM : EDIT_MODE.DIALOG;\n } else {\n this.editmode = this.readonlygrid ? EDIT_MODE.INLINE : '';\n }\n }\n }\n\n this.gridOptions.colDefs = this.fullFieldDefs;\n this.gridOptions.rowActions = this.rowActions;\n this.gridOptions.headerConfig = this.headerConfig;\n this.gridOptions.rowClass = this.rowclass;\n this.gridOptions.editmode = this.editmode;\n this.gridOptions.formPosition = this.formposition;\n this.gridOptions.filtermode = this.filtermode;\n this.gridOptions.filteronkeypress = this.filteronkeypress;\n this.gridOptions.searchLabel = this.searchlabel;\n this.gridOptions.isMobile = isMobile();\n this.gridOptions.name = this.name;\n this.gridOptions.securityUtils.pipeTransform = this.trustAsPipe;\n this.gridOptions.navigation = this.navigation;\n this.gridOptions.isdynamictable = this.isdynamictable;\n this.gridOptions.showviewlessbutton = this.showviewlessbutton;\n this.gridOptions.ondemandmessage = this.ondemandmessage;\n this.gridOptions.viewlessmessage = this.viewlessmessage;\n this.gridOptions.loadingdatamsg = this.loadingdatamsg;\n\n // When loadondemand property is enabled(deferload=\"true\") and show is true, only the column titles of the datatable are rendered, the data(body of the datatable) is not at all rendered.\n // Because the griddata is setting before the datatable dom is rendered but we are sending empty data to the datatable.\n if (!isEmpty(this.gridData)) {\n this.gridOptions.data = getClonedObject(this.gridData);\n }\n this.gridOptions.messages = {\n 'selectField': this.appLocale.MESSAGE_SELECT_FIELD\n };\n this.datagridElement = $(this._tableElement.nativeElement);\n\n this.gridElement = this.$element;\n this.$element.css({'position': 'relative'});\n\n forEach(runModeInitialProperties, (value, key) => {\n if (isDefined(this[key])) {\n this.gridOptions[value] = (this[key] === 'true' || this[key] === true);\n }\n });\n if (this.statehandler !== 'none') {\n this.gridOptions['selectFirstRow'] = false;\n }\n\n this.renderOperationColumns();\n this.gridOptions.colDefs = this.fieldDefs;\n\n this.datagridElement.datatable(this.gridOptions);\n this.callDataGridMethod('setStatus', 'loading', this.loadingdatamsg);\n // if(this.gridOptions.data.length || this.variableInflight) {\n // this.callDataGridMethod('setStatus', 'loading', this.loadingdatamsg);\n // } else {\n // this.callDataGridMethod('setStatus', 'nodata', this.nodatamessage);\n // }\n\n this.applyProps.forEach(args => this.callDataGridMethod(...args));\n\n if (this.editmode === EDIT_MODE.QUICK_EDIT) {\n this.documentClickBind = this._documentClickBind.bind(this);\n document.addEventListener('click', this.documentClickBind);\n }\n }\n private getConfiguredState() {\n const mode = this.statePersistence.computeMode(this.statehandler);\n return mode && mode.toLowerCase();\n }\n\n private handleStateParams(widgetState, options) {\n if (get(widgetState, 'selectedItem')) {\n this._selectedItemsExist = true;\n }\n options.options = options.options || {};\n if (get(widgetState, 'pagination')) {\n options.options.page = widgetState.pagination;\n if (get(widgetState, 'sort')) {\n this.sortStateHandler(widgetState);\n options.options.orderBy = get(widgetState, 'sort.field') + ' ' + get(widgetState, 'sort.direction');\n }\n if (get(widgetState, 'search')) {\n setTimeout( () => {\n this.searchStateHandler(widgetState);\n }, 500);\n options.options.filterFields = this.getFilterFields(widgetState.search);\n }\n } else {\n options.options.page = 1;\n if (get(widgetState, 'search')) {\n setTimeout( () => {\n this.searchStateHandler(widgetState);\n }, 500);\n options.options.filterFields = this.getFilterFields(widgetState.search);\n }\n if (get(widgetState, 'sort')) {\n this.sortStateHandler(widgetState);\n options.options.orderBy = get(widgetState, 'sort.field') + ' ' + get(widgetState, 'sort.direction');\n }\n }\n return options;\n }\n\n private triggerWMEvent(newVal) {\n if (this.editmode === 'dialog') {\n return;\n }\n $invokeWatchers(true);\n this.app.notify('wm-event', {eventName: 'selectedItemChange', widgetName: this.name, row: newVal, table: this});\n }\n\n private sortStateHandler(widgetState) {\n const $gridElement = this.datagridElement;\n const $sortIcon = $gridElement.find('th[data-col-field=\"' + get(widgetState, 'sort.field') + '\"] .sort-icon');\n if (get(widgetState, 'sort.direction') === 'asc' && $sortIcon.length) {\n $sortIcon.addClass('asc wi wi-long-arrow-up');\n } else if (get(widgetState, 'sort.direction') === 'desc' && $sortIcon.length) {\n $sortIcon.addClass('desc wi wi-long-arrow-down');\n }\n }\n\n private searchStateHandler(widgetState) {\n if (isArray(widgetState.search)) {\n forEach(widgetState.search, (filterObj) => {\n if (this.rowFilter[filterObj.field]) {\n this.rowFilter[filterObj.field].value = filterObj.value;\n this.rowFilter[filterObj.field].matchMode = filterObj.matchMode;\n this.rowFilter[filterObj.field].type = filterObj.type;\n if ($(this.rowFilterCompliedTl[filterObj.field]).length) {\n const val = filterObj.type === 'integer' ? parseInt(filterObj.value) : filterObj.value;\n $(this.rowFilterCompliedTl[filterObj.field]).find('input').val(filterObj.value);\n }\n }\n });\n } else {\n const $gridElement = this.datagridElement;\n $gridElement.find('[data-element=\"dgSearchText\"]').val(widgetState.search.value);\n $gridElement.find('[data-element=\"dgFilterValue\"]').val(widgetState.search.field);\n }\n }\n\n // removes empty values in headerConfig array.\n filterEmptyValues(item) {\n if (item.columns) {\n item.columns = item.columns.filter(this.filterEmptyValues.bind(this));\n }\n return item !== undefined;\n }\n // Compares the prevFilterCriteria Rules with the new rules\n compareFilterExpressions(prevFilters, newFilters) {\n return !!((prevFilters.length === newFilters.length) && (isEqual(prevFilters, newFilters)));\n }\n\n // Set the table lastActionPerformed to Filter Criteria and maintain the prevFilterExpression\n setLastActionToFilterCriteria() {\n this.prevFilterExpression = get(this.datasource, 'filterExpressions.rules') ? getClonedObject(this.datasource.filterExpressions.rules) : getClonedObject([].concat(this.datasource.dataBinding));\n this.gridOptions.setLastActionPerformed(this.gridOptions.ACTIONS.FILTER_CRITERIA);\n this.gridOptions.setIsSearchTrigerred(true);\n }\n\n // Set the table lastActionPerformed to Dataset update and set isDatasetUpdated to true\n // Fix for [WMS-22323]-this method is called when dataset is being updated\n setLastActionToDatasetUpdate() {\n this.gridOptions.setLastActionPerformed(this.gridOptions.ACTIONS.DATASET_UPDATE);\n // Fix for [WMS-23263]: reset currentPage to 1 as dataset is being changed\n this.gridOptions.setCurrentPage(1);\n this.gridOptions.setIsDatasetUpdated(true);\n }\n\n // Update the lastActionPerformed to Filter_Criteria, when there is change in the Variable filter criteria rules\n checkIfVarFiltersApplied() {\n if (!isEmpty(get(this.datasource, 'filterExpressions.rules')) || !isEmpty(get(this.datasource, 'dataBinding'))) {\n const currentFilterExpr = get(this.datasource, 'filterExpressions.rules') ? this.datasource.filterExpressions.rules : [].concat(this.datasource.dataBinding);\n const isEqual = this.compareFilterExpressions(this.prevFilterExpression, currentFilterExpr);\n if (!isEqual) {\n this.setLastActionToFilterCriteria();\n }\n }\n }\n\n watchVariableDataSet(newVal) {\n let result;\n // Check for Variable filters if applied\n if (this.gridOptions.isNavTypeScrollOrOndemand()) {\n this.checkIfVarFiltersApplied();\n }\n // State handling for static variables\n if (get(this.datasource, 'category') === 'wm.Variable' && this._pageLoad && this.getConfiguredState() !== 'none') {\n const widgetState = this.statePersistence.getWidgetState(this);\n this._pageLoad = false;\n if (get(widgetState, 'selectedItem')) {\n this._selectedItemsExist = true;\n } else {\n this.setDataGridOption('selectFirstRow', this.gridfirstrowselect);\n }\n if (get(widgetState, 'search')) {\n this.searchStateHandler(widgetState);\n this.searchSortHandler(widgetState.search, undefined, 'search', true);\n }\n if (get(widgetState, 'sort')) {\n this.searchSortHandler(widgetState.sort, undefined, 'sort', true);\n this.sortStateHandler(widgetState);\n }\n if (get(widgetState, 'pagination')) {\n this.dataNavigator.pageChanged({page: widgetState.pagination}, true);\n }\n }\n // After the setting the watch on navigator, dataset is triggered with undefined. In this case, return here.\n if (this.dataNavigatorWatched && isUndefined(newVal) && this.__fullData) {\n return;\n }\n // If variable is in loading state, show loading icon\n if (this.variableInflight && !this.infScroll) {\n this.callDataGridMethod('setStatus', 'loading', this.loadingdatamsg);\n }\n\n result = getValidJSON(newVal);\n\n // Converting newval to object if it is an Object that comes as a string \"{\"data\" : 1}\"\n if (result) {\n newVal = result;\n }\n\n const sortExp = this.getSortExpr();\n const sortExpArr = sortExp.split(' ');\n if (sortExp && sortExpArr.length) {\n this.sortInfo = {\n direction : sortExpArr[1],\n field: sortExpArr[0]\n\n };\n }\n\n /*Return if data is invalid.*/\n if (!this.isDataValid()) {\n return;\n }\n\n // If value is empty or in studio mode, dont enable the navigation\n if (newVal) {\n if (this.shownavigation && !this.dataNavigatorWatched) {\n this.enablePageNavigation();\n return;\n }\n } else {\n this.resetPageNavigation();\n // If the dataset is undefined or empty or table is bound to static variable then set variableInflight to false inorder to update the status\n if (newVal === '' || newVal === undefined || get(this.datasource, 'category') === 'wm.Variable') {\n this.variableInflight = false;\n }\n /*for run mode, disabling the loader and showing no data found message if dataset is not valid*/\n if (!this.variableInflight) {\n this.callDataGridMethod('setStatus', 'nodata', this.nodatamessage);\n }\n this.setDataGridOption('selectFirstRow', this.gridfirstrowselect);\n }\n\n if (!this.isNavigationEnabled() && newVal) {\n this.checkFiltersApplied(this.getSortExpr());\n }\n\n // @ts-ignore\n if (!isObject(newVal) || newVal === '' || (newVal && newVal.dataValue === '')) {\n if (!this.variableInflight) {\n // If variable has finished loading and resultSet is empty, ender empty data\n this.setGridData([]);\n }\n return;\n }\n if (newVal) {\n this.populateGridData(newVal);\n }\n }\n\n ngOnDestroy() {\n document.removeEventListener('click', this.documentClickBind);\n if (this.navigatorResultWatch) {\n this.navigatorResultWatch.unsubscribe();\n }\n if (this.navigatorMaxResultWatch) {\n this.navigatorMaxResultWatch.unsubscribe();\n }\n super.ngOnDestroy();\n }\n\n addRowIndex(row) {\n const rowData = getClonedObject(row);\n const rowIndex = indexOf(this.gridOptions.data, row);\n if (rowIndex < 0) {\n return row;\n }\n rowData.$index = rowIndex + 1;\n rowData.$isFirst = rowData.$index === 1;\n rowData.$isLast = this.gridData.length === rowData.$index;\n return rowData;\n }\n\n addEventsToContext(context) {\n context.addNewRow = () => this.addNewRow();\n context.deleteRow = () => this.deleteRow();\n context.editRow = () => this.editRow();\n }\n\n execute(operation, options) {\n if ([DataSource.Operation.IS_API_AWARE, DataSource.Operation.IS_PAGEABLE, DataSource.Operation.SUPPORTS_SERVER_FILTER].includes(operation)) {\n return false;\n }\n return this.datasource ? this.datasource.execute(operation, options) : {};\n }\n\n isNavigationEnabled() {\n return this.shownavigation && this.dataNavigator && this.dataNavigatorWatched;\n }\n\n getClonedRowObject(rowData) {\n const row = getClonedObject(rowData);\n row.getProperty = field => {\n return get(row, field);\n };\n row.$isFirst = row.$index === 1;\n row.$isLast = this.gridData.length === row.$index;\n delete row.$$index;\n delete row.$$pk;\n return row;\n }\n\n handleLoading(data) {\n this.variableInflight = data.active;\n // based on the active state and response toggling the 'loading data...' and 'no data found' messages.\n if (data.active) {\n this.callDataGridMethod('setStatus', 'loading', this.loadingdatamsg);\n } else {\n // If grid is in edit mode or grid has data, dont show the no data message\n if (!this.isGridEditMode && isEmpty(this.dataset)) {\n this.callDataGridMethod('setStatus', 'nodata', this.nodatamessage);\n } else {\n this.callDataGridMethod('setStatus', 'ready');\n }\n }\n }\n\n setDisabledOnField(operation, colDef, widgetType) {\n if (operation !== 'new' && colDef['primary-key'] && colDef.generator === 'assigned' && !colDef['related-entity-name'] && !colDef.period) {\n colDef[widgetType].disabled = true;\n }\n }\n\n resetFormControl(ctrl) {\n ctrl.markAsUntouched();\n ctrl.markAsPristine();\n }\n\n clearForm(newRow?) {\n const ctrls = this.ngform.controls;\n keys(this.ngform.controls).forEach(key => {\n // If new row, clear the controls in the new row. Else, clear the controls in edit row\n if (!key.endsWith('_filter') && ((key.endsWith('_new') && newRow) || (!key.endsWith('_new') && !newRow))) {\n ctrls[key].setValue('');\n this.resetFormControl(ctrls[key]);\n }\n });\n }\n\n showFieldBasedOnScreenType(field) {\n let showField;\n if (isMobile() && this.viewport.isMobileType) {\n showField = field.mobileDisplay;\n } else if (this.viewport.isTabletType) {\n showField = field.tabletDisplay;\n } else {\n showField = field.pcDisplay;\n }\n return showField;\n }\n\n /* Check whether it is non-empty row. */\n isEmptyRecord(record) {\n const properties = Object.keys(record);\n let data,\n isDisplayed;\n\n return properties.every((prop, index) => {\n data = record[prop];\n /* If fieldDefs are missing, show all columns in data. */\n isDisplayed = (this.fieldDefs.length && isDefined(this.fieldDefs[index]) && this.showFieldBasedOnScreenType(this.fieldDefs[index])) || true;\n /*Validating only the displayed fields*/\n if (isDisplayed) {\n return (data === null || data === undefined || data === '');\n }\n return true;\n });\n }\n\n /* Function to remove the empty data. */\n removeEmptyRecords(serviceData) {\n const allRecords = serviceData;\n let filteredData = [];\n if (allRecords && allRecords.length) {\n /*Comparing and pushing the non-empty data columns*/\n filteredData = allRecords.filter(record => {\n return record && !this.isEmptyRecord(record);\n });\n }\n return filteredData;\n }\n\n setGridData(serverData) {\n const data = this.filternullrecords ? this.removeEmptyRecords(serverData) : serverData;\n // fix for [WMS-24012] set variableinflight flag to false for static variables\n // If the table is bound to some widget and not bound to any variable (ex: Table1.selectedItem) then set variableInflight to false\n if (get(this.datasource, 'category') === 'wm.Variable' || get(this.datasource, 'category') === undefined) {\n this.variableInflight = false;\n }\n if (!this.variableInflight) {\n if (data && (data.length) === 0) {\n this.callDataGridMethod('setStatus', 'nodata', this.nodatamessage);\n } else {\n this.callDataGridMethod('setStatus', 'ready');\n }\n }\n this.gridData = data;\n }\n\n setDataGridOption(optionName, newVal, forceSet = false) {\n if (!this.datagridElement || !this.datagridElement.datatable || !this.datagridElement.datatable('instance')) {\n return;\n }\n const option = {};\n if (isDefined && (!isEqual(newVal, this.gridOptions[optionName]) || forceSet)) {\n option[optionName] = newVal;\n this.datagridElement.datatable('option', option);\n this.gridOptions[optionName] = newVal;\n }\n }\n\n callDataGridMethod(...args) {\n if (!this.datagridElement || !this.datagridElement.datatable('instance')) {\n this.applyProps.set(args[1], args);\n return; // If datagrid is not initiliazed or destroyed, return here\n }\n return this.datagridElement.datatable.apply(this.datagridElement, args);\n }\n\n renderOperationColumns() {\n let rowActionCol,\n insertPosition;\n\n const rowOperationsColumn = getRowOperationsColumn(),\n config = {\n 'name': rowOperationsColumn.field,\n 'field': rowOperationsColumn.field,\n 'isPredefined': true\n };\n // Return if no fieldDefs are present\n if (!this.fieldDefs.length) {\n return;\n }\n\n rowActionCol = find(this.fullFieldDefs, {'field': ROW_OPS_FIELD, type: 'custom'}); // Check if column is fetched from markup\n remove(this.fieldDefs, {type: 'custom', field: ROW_OPS_FIELD}); // Removing operations column\n remove(this.headerConfig, {field: rowOperationsColumn.field});\n\n /*Add the column for row operations only if at-least one operation has been enabled.*/\n if (this.rowActions.length) {\n if (rowActionCol) { // If column is present in markup, push the column or push the default column\n insertPosition = rowActionCol.rowactionsposition ? toNumber(rowActionCol.rowactionsposition) : this.fieldDefs.length;\n this.fieldDefs.splice(insertPosition, 0, rowActionCol);\n if (insertPosition === 0) {\n this.headerConfig.unshift(config);\n } else {\n this.headerConfig.push(config);\n }\n } else {\n this.fieldDefs.push(rowOperationsColumn);\n this.headerConfig.push(config);\n }\n }\n this.setDataGridOption('headerConfig', this.headerConfig);\n }\n\n enablePageNavigation() {\n if (this.dataset && this.binddataset && this.dataNavigator) {\n /*Check for sanity*/\n this.dataNavigatorWatched = true;\n\n if (this.navigatorResultWatch) {\n this.navigatorResultWatch.unsubscribe();\n }\n /*Register a watch on the \"result\" property of the \"dataNavigator\" so that the paginated data is displayed in the live-list.*/\n this.navigatorResultWatch = this.dataNavigator.resultEmitter.subscribe((newVal) => {\n /* Check for sanity. */\n if (isDefined(newVal)) {\n // Watch will not be triggered if dataset and new value are equal. So trigger the property change handler manually\n // This happens in case, if dataset is directly updated.\n if (isEqual(this.dataset, newVal)) {\n this.watchVariableDataSet(newVal);\n } else {\n if (isArray(newVal)) {\n this.widget.dataset = [].concat(newVal);\n } else if (isObject(newVal)) {\n this.widget.dataset = extend({}, newVal);\n } else {\n this.widget.dataset = newVal;\n }\n }\n } else {\n this.widget.dataset = undefined;\n }\n }, true);\n /*De-register the watch if it is exists */\n if (this.navigatorMaxResultWatch) {\n this.navigatorMaxResultWatch.unsubscribe();\n }\n /*Register a watch on the \"maxResults\" property of the \"dataNavigator\" so that the \"pageSize\" is displayed in the live-list.*/\n this.navigatorMaxResultWatch = this.dataNavigator.maxResultsEmitter.subscribe((newVal) => {\n this.pagesize = newVal;\n });\n // If dataset is a pageable object, data is present inside the content property\n this.__fullData = this.dataset;\n\n this.dataNavigator.widget.maxResults = this.pagesize || 5;\n this.dataNavigator.options = {\n maxResults: this.pagesize || 5\n };\n this.removePropertyBinding('dataset');\n this.dataNavigator.setBindDataSet(this.binddataset, this.viewParent, this.datasource, this.dataset, this.binddatasource, undefined, this.statehandler);\n }\n }\n\n resetPageNavigation() {\n /*Check for sanity*/\n if (this.dataNavigator) {\n this.dataNavigator.resetPageNavigation();\n }\n }\n\n isDataValid() {\n let error;\n const dataset = this.dataset || {};\n\n /*In case \"data\" contains \"error\" & \"errorMessage\", then display the error message in the grid.*/\n if (dataset.error) {\n error = dataset.error;\n }\n if (dataset.data && dataset.data.error) {\n if (dataset.data.errorMessage) {\n error = dataset.data.errorMessage;\n }\n }\n if (error) {\n this.setGridData([]);\n this.callDataGridMethod('setStatus', 'error', error);\n return false;\n }\n return true;\n }\n\n // Function to populate the grid with data.\n populateGridData(serviceData) {\n let data;\n serviceData = transformData(serviceData, this.name);\n // Apply filter and sort, if data is refreshed through Refresh data method\n if (!this.isNavigationEnabled() && this._isClientSearch) {\n data = getClonedObject(serviceData);\n data = this.getSearchResult(data, this.filterInfo);\n data = this.getSortResult(data, this.sortInfo);\n this.serverData = data;\n } else {\n this.serverData = serviceData;\n }\n // If fielddefs are not present, generate fielddefs from data\n // Removing fielddefs check because When loadondemand property is enabled(deferload=\"true\"), the dataset propertychangehanlder is triggered first before the dom is getting rendered.\n // So at that time fielddefs length is zero, due to this the columns are created dynamically.\n if (this.isdynamictable) {\n this.createGridColumns(this.serverData);\n } else {\n this.setGridData(this.serverData);\n }\n if (this.getConfiguredState() !== 'none' && this._selectedItemsExist && serviceData.length) {\n const widgetState = this.statePersistence.getWidgetState(this);\n let currentPageItems;\n if (get(widgetState, 'selectedItem')) {\n currentPageItems = widgetState.selectedItem.filter(val => {\n return val.page === this.dataNavigator.dn.currentPage;\n });\n this._selectedItemsExist = false;\n // if an item is already selected, don't trigger onSelect event for it again\n if (currentPageItems.length && this.selecteditem.length !== widgetState.selectedItem.length) {\n // don't reassign this.selecteditem if selected items already exist.\n if (isArray(this.selecteditem)) {\n currentPageItems.forEach((item) => {\n this.selectItem(item.index, undefined);\n });\n } else {\n this.selecteditem = currentPageItems.map(function(val) {return val.index; });\n }\n }\n }\n }\n }\n\n // Function to generate and compile the form fields from the metadata\n async generateDynamicColumns(columns) {\n this.fieldDefs = []; // empty the form fields\n // empty the filter field template refs.\n (this.filterTmpl as any)._results = [];\n\n if (isEmpty(columns)) {\n return;\n }\n\n let tmpl = '';\n columns.forEach(col => {\n let attrsTmpl = '';\n let customTmpl = '';\n forEach(col, (val, key) => {\n if (!isUndefined(val) && val !== '') {\n // If custom expression is present, keep it inside table column. Else, keep as attribute\n if (key === 'customExpression') {\n customTmpl = val;\n } else {\n attrsTmpl += ` ${key}=\"${val}\"`;\n }\n }\n });\n tmpl += `<wm-table-column ${attrsTmpl} tableName=\"${this.name}${(this as any).$attrs.get('table_reference')}\">${customTmpl}</wm-table-column>`;\n });\n this.dynamicTableRef.clear();\n if (!this._dynamicContext) {\n this._dynamicContext = Object.create(this.viewParent);\n this._dynamicContext[this.getAttr('wmTable')] = this;\n }\n this.noOfColumns = columns.length;\n const componentFactoryRef = await this.dynamicComponentProvider.getComponentFactoryRef(\n 'app-table-dynamic-' + this.widgetId,\n tmpl,\n {\n noCache: true,\n transpile: true\n });\n const component = this.dynamicTableRef.createComponent(componentFactoryRef, 0, this.inj);\n extendProto(component.instance, this._dynamicContext);\n this.$element.find('.dynamic-table-container')[0].appendChild(component.location.nativeElement);\n }\n\n prepareColDefs(data) {\n let defaultFieldDefs;\n let properties;\n let columnIndex = 0;\n let headerIndex = 0;\n\n this.fieldDefs = [];\n this.headerConfig = [];\n this.columns = {};\n /* if properties map is existed then fetch the column configuration for all nested levels using util function */\n properties = data;\n /*call utility function to prepare fieldDefs for grid against given data (A MAX OF 10 COLUMNS ONLY)*/\n defaultFieldDefs = prepareFieldDefs(properties);\n\n /*append additional properties*/\n forEach(defaultFieldDefs, columnDef => {\n columnDef.binding = columnDef.field;\n columnDef.caption = columnDef.displayName;\n columnDef.pcDisplay = true;\n columnDef.mobileDisplay = true;\n columnDef.tabletDisplay = true;\n columnDef.searchable = true;\n columnDef.showinfilter = true;\n columnDef.type = 'string';\n // Fix for [WMS-19668] and [WMS-19669]- Adding index and headerIndex for Dynamic DB columns.\n // Note: we don't have column groups for Dynamic DB\n columnDef.index = columnIndex;\n columnDef.headerIndex = headerIndex;\n columnIndex++;\n headerIndex++;\n });\n\n defaultFieldDefs.forEach(col => {\n this.columns[col.field] = col;\n });\n\n this.invokeEventCallback('beforedatarender', {$data: data, $columns: this.columns, data: data, columns: this.columns});\n\n defaultFieldDefs = [];\n // Apply the changes made by the user\n forEach(this.columns, val => {\n defaultFieldDefs.push(val);\n });\n\n this.generateDynamicColumns(defaultFieldDefs);\n }\n\n createGridColumns(data) {\n /* this call back function receives the data from the variable */\n /* check whether data is valid or not */\n const dataValid = data && !data.error;\n /*if the data is type json object, make it an array of the object*/\n if (dataValid && !isArray(data)) {\n data = [data];\n }\n /* if the data is empty, show nodatamessage */\n if (isEmpty(data)) {\n this.setGridData(data);\n return;\n }\n\n if (!dataValid) {\n return;\n }\n /* if new columns to be rendered, prepare default fieldDefs for the data provided*/\n this.prepareColDefs(data);\n\n this.serverData = data;\n this.setGridData(this.serverData);\n }\n\n getSortExpr() {\n let sortExp;\n let pagingOptions;\n if (this.datasource && this.datasource.execute(DataSource.Operation.IS_PAGEABLE)) {\n pagingOptions = this.datasource.execute(DataSource.Operation.GET_PAGING_OPTIONS);\n sortExp = isEmpty(pagingOptions) ? '' : getOrderByExpr(pagingOptions.sort);\n }\n return sortExp || '';\n }\n\n onPropertyChange(key: string, nv: any, ov?: any) {\n let enableNewRow;\n switch (key) {\n case 'datasource':\n // Fix for [WMS-23653] when startUpdate is false (request on page load property is unchecked),\n // then set status msg as \"No data found\"\n if (nv.startUpdate === false) {\n this.variableInflight = false;\n this.callDataGridMethod('setStatus', 'nodata', this.nodatamessage);\n }\n this.watchVariableDataSet(this.dataset);\n this.onDataSourceChange();\n break;\n case 'dataset':\n if (this.gridOptions.isNavTypeScrollOrOndemand() && this.gridOptions.getCurrentPage() === 1) {\n this.gridOptions.setIsNextPageData(false);\n }\n if (this.binddatasource && !this.datasource) {\n return;\n }\n // if table is inside list then table dataset will be set as \"item.XXX\" and there is no datasource.\n // So extracting datasource from the datset bound expression.\n if (this.parentList && !this.datasource && startsWith(this.binddataset, 'item')) {\n this.datasource = getDatasourceFromExpr(this.widget.$attrs.get('datasetboundexpr'), this);\n }\n if (this.gridOptions.isNavTypeScrollOrOndemand()) {\n if (this.gridOptions.isNextPageData) {\n // when fetching next page data\n this.gridOptions.setIsDataUpdatedByUser(false);\n } else {\n // when dataset is updated from script\n this.gridOptions.setIsDataUpdatedByUser(true);\n this.setLastActionToDatasetUpdate();\n this.gridOptions.setIsNextPageData(false);\n }\n }\n // for Static Variables with Retain State enabled, prevent Table from rendering more than once\n // Fix for [WMS-25284]: Render table that is inside list widget and bound to static Variable\n if (!(get(this.datasource, 'category') === 'wm.Variable' && this._pageLoad && this.getConfiguredState() !== 'none') || (this.parentList && startsWith(this.binddataset, 'item'))) {\n this.watchVariableDataSet(nv);\n }\n break;\n case 'filtermode':\n this.setDataGridOption('filtermode', nv);\n break;\n case 'searchlabel':\n this.setDataGridOption('searchLabel', nv);\n break;\n case 'navigation':\n if (nv === 'Advanced') { // Support for older projects where navigation type was advanced instead of clasic\n this.navigation = 'Classic';\n return;\n }\n if (nv !== 'None') {\n this.shownavigation = true;\n }\n this.setDataGridOption('navigation', this.navigation);\n this.onDemandLoad = nv === NAVIGATION_TYPE.ONDEMAND ? true : false;\n this.infScroll = nv === NAVIGATION_TYPE.SCROLL ? true : false;\n this.navControls = nv;\n break;\n case 'gridfirstrowselect':\n this.setDataGridOption('selectFirstRow', nv);\n break;\n case 'gridclass':\n this.callDataGridMethod('option', 'cssClassNames.grid', nv);\n break;\n case 'nodatamessage':\n this.callDataGridMethod('option', 'dataStates.nodata', nv);\n break;\n case 'loadingdatamsg':\n this.callDataGridMethod('option', 'dataStates.loading', nv);\n break;\n case 'loadingicon':\n this.callDataGridMethod('option', 'loadingicon', nv);\n break;\n case 'spacing':\n this.callDataGridMethod('option', 'spacing', nv);\n if (nv === 'condensed') {\n this.navigationSize = 'small';\n } else {\n this.navigationSize = '';\n }\n break;\n case 'exportformat':\n this.exportOptions = [];\n if (nv) {\n // Populate options for export drop down menu\n forEach(split(nv, ','), type => {\n this.exportOptions.push({\n label: type,\n icon: exportIconMapping[type]\n });\n });\n }\n break;\n case 'shownewrow':\n // Enable new row if shownew is true or addNewRow buton is present\n enableNewRow = nv || some(this.actions, act => includes(act.action, 'addNewRow()'));\n this.callDataGridMethod('option', 'actionsEnabled.new', enableNewRow);\n break;\n case 'pagesize':\n this.dataNavigator.options = {\n maxResults: nv\n };\n this.dataNavigator.widget.maxResults = nv;\n this.dataNavigator.maxResults = nv;\n break;\n case 'ondemandmessage':\n if (nv) {\n this.$element.find('.on-demand-datagrid > a').text(nv);\n }\n this.gridOptions.ondemandmessage = nv;\n break;\n case 'viewlessmessage':\n this.gridOptions.viewlessmessage = nv;\n break;\n case 'show':\n if (nv) {\n this.invokeEventCallback('show');\n } else {\n this.invokeEventCallback('hide');\n }\n default:\n super.onPropertyChange(key, nv, ov);\n }\n }\n\n onDataSourceChange() {\n this.fieldDefs.forEach(col => {\n triggerFn(col.onDataSourceChange && col.onDataSourceChange.bind(col));\n });\n }\n\n private clearActionRowVars() {\n this.actionRowIndex = undefined;\n this.actionRowPage = undefined;\n this.setDataGridOption('actionRowIndex', undefined);\n this.setDataGridOption('actionRowPage', undefined);\n }\n\n onStyleChange(key, nv, ov) {\n switch (key) {\n case 'width':\n this.callDataGridMethod('setGridDimensions', 'width', nv);\n break;\n case 'height':\n this.callDataGridMethod('setGridDimensions', 'height', nv);\n break;\n }\n\n super.onStyleChange(key, nv, ov);\n }\n\n populateActions() {\n this._actions.header = [];\n this._actions.footer = [];\n forEach(this.actions, (action) => {\n if (includes(action.position, 'header')) {\n this._actions.header.push(action);\n }\n if (includes(action.position, 'footer')) {\n this._actions.footer.push(action);\n }\n });\n }\n\n // this method will render the filter row.\n renderDynamicFilterColumn(filteTemRef) {\n // For dynamic table manually pushing the filtertemplateRef as templateRef will not be available prior.\n if (this.isdynamictable) {\n (this.filterTmpl as any)._results.push(filteTemRef);\n }\n }\n\n registerColumns(tableColumn, colIndex) {\n if (isMobile() && this.viewport.isMobileType) {\n if (!tableColumn.mobileDisplay) {\n return;\n }\n } else if (this.viewport.isTabletType) {\n if (!tableColumn.tabletDisplay) {\n return;\n }\n } else {\n if (!tableColumn.pcDisplay) {\n return;\n }\n }\n if (tableColumn['primary-key']) {\n this.primaryKey.push(tableColumn.field);\n }\n this.fieldDefs[colIndex] = tableColumn;\n const colCount = this.fieldDefs.length;\n this.fullFieldDefs.push(tableColumn);\n this.rowFilter[tableColumn.field] = {\n value: undefined\n };\n this.fieldDefs.forEach(col => {\n this.columns[col.field] = col;\n });\n // If dynamic datatable and last column, pass the columns to jquery datatable\n if (this.isdynamictable && colCount === this.noOfColumns) {\n this.renderOperationColumns();\n this.setDataGridOption('colDefs', this.fieldDefs);\n }\n }\n\n registerFormField(name, formField) {\n this.formfields[name] = formField;\n }\n\n registerActions(tableAction) {\n this.actions.push(tableAction);\n this.populateActions();\n }\n\n registerRow(tableRow, rowInstance) {\n this.rowDef = tableRow;\n this.rowInstance = rowInstance;\n this.callDataGridMethod('option', 'cssClassNames.rowExpandIcon', this.rowDef.expandicon);\n this.callDataGridMethod('option', 'cssClassNames.rowCollapseIcon', this.rowDef.collapseicon);\n this.gridOptions.rowExpansionEnabled = true;\n this.gridOptions.rowDef = this.rowDef;\n }\n\n registerRowActions(tableRowAction) {\n this.rowActions.push(tableRowAction);\n }\n\n selectItem(item, data) {\n /* server is not updating immediately, so set the server data to success callback data */\n if (data) {\n this.serverData = data;\n }\n if (isObject(item)) {\n item = omitBy(item, (value) => {\n return isArray(value) && isEmpty(value);\n });\n }\n this.callDataGridMethod('selectRow', item, true);\n }\n /* deselect the given item*/\n deselectItem(item) {\n this.callDataGridMethod('deselectRow', item);\n }\n\n onDataNavigatorDataSetChange(nv) {\n let data;\n this.__fullData = nv;\n this.checkFiltersApplied(this.getSortExpr());\n if (this._isClientSearch) {\n data = getClonedObject(this.__fullData);\n if (isObject(data) && !isArray(data)) {\n data = [data];\n }\n data = this.getSearchResult(data, this.filterInfo);\n data = this.getSortResult(data, this.sortInfo);\n return data;\n }\n return nv;\n }\n\n toggleMessage(show, type, msg, header?) {\n if (show && msg) {\n this.app.notifyApp(msg, type, header);\n }\n }\n\n export($item) {\n let filterFields;\n const sortOptions = isEmpty(this.sortInfo) ? '' : this.sortInfo.field + ' ' + this.sortInfo.direction;\n const columns = {};\n let isValid;\n let requestData;\n this.fieldDefs.forEach(fieldDef => {\n // Do not add the row operation actions column to the exported file.\n if (fieldDef.field === ROW_OPS_FIELD || !fieldDef.show) {\n return;\n }\n const option = {\n 'header': fieldDef.displayName\n };\n // If column has exportexpression, then send form the expression as required by backend.\n // otherwise send the field name.\n if (fieldDef.exportexpression) {\n (<any>option).expression = fieldDef.exportexpression;\n } else {\n (<any>option).field = fieldDef.field;\n }\n columns[fieldDef.field] = option;\n });\n filterFields = this.getFilterFields(this.filterInfo);\n requestData = {\n matchMode : 'anywhereignorecase',\n filterFields : filterFields,\n orderBy : sortOptions,\n exportType : $item.label,\n logicalOp : 'AND',\n exportSize : this.exportdatasize,\n columns : columns\n };\n isValid = this.invokeEventCallback('beforeexport', {$data: requestData});\n if (isValid === false) {\n return;\n }\n requestData.fields = values(requestData.columns);\n this.datasource.execute(DataSource.Operation.DOWNLOAD, {data: requestData});\n }\n\n expandRow(rowId) {\n this.callDataGridMethod('expandRow', rowId);\n }\n\n collapseRow(rowId) {\n this.callDataGridMethod('collapseRow', rowId);\n }\n\n private _documentClickBind(event) {\n const $target = event.target;\n // If click triggered from same grid or a dialog, do not save the row\n if (this.$element[0].contains($target) || event.target.doctype || isInputBodyWrapper($($target))) {\n return;\n }\n this.callDataGridMethod('saveRow');\n }\n\n private _redraw(forceRender) {\n if (forceRender) {\n this.datagridElement.datatable(this.gridOptions);\n } else {\n setTimeout(() => {\n this.callDataGridMethod('setColGroupWidths');\n this.callDataGridMethod('addOrRemoveScroll');\n });\n }\n }\n\n invokeActionEvent($event, expression: string) {\n const fn = $parseEvent(expression);\n fn(this.viewParent, Object.assign(this.context, {$event}));\n }\n\n // change and blur events are added from the template\n protected handleEvent(node: HTMLElement, eventName: string, callback: Function, locals: any) {\n if (eventName !== 'select') {\n super.handleEvent(this.nativeElement, eventName, callback, locals);\n }\n }\n\n triggerUploadEvent($event, eventName, fieldName, row) {\n const params: any = {$event, row};\n if (!this.columns[fieldName]) {\n return;\n }\n if (eventName === 'change') {\n params.newVal = $event.target.files;\n params.oldVal = this.columns[fieldName]._oldUploadVal;\n this.columns[fieldName]._oldUploadVal = params.newVal;\n }\n this.columns[fieldName].invokeEventCallback(eventName, params);\n }\n\n registerFormWidget() {}\n\n // Form control accessor methods. This will be used for table inside form\n writeValue() {}\n\n private _onChange: any = () => {};\n private _onTouched: any = () => {};\n\n registerOnChange(fn) {\n this._onChange = fn;\n }\n registerOnTouched(fn) {\n this._onTouched = fn;\n }\n\n ngOnDetach() {\n super.ngOnDetach();\n if (get(this.datasource, 'category') === 'wm.Variable' && this.getConfiguredState() !== 'none') {\n this._pageLoad = false;\n } else {\n this._pageLoad = true;\n }\n }\n}\n","import { Directive, Inject, Self } from '@angular/core';\n\nimport { $invokeWatchers, $appDigest, AbstractDialogService, App, DataSource, extractCurrentItemExpr, triggerFn } from '@wm/core';\nimport { refreshDataSource } from '@wm/components/base';\n\nimport { TableComponent } from './table.component';\nimport {last, map, parseInt, startsWith} from \"lodash-es\";\n\ndeclare const $;\n\nconst OPERATION = {\n 'NEW': 'new',\n 'EDIT': 'edit',\n 'DELETE': 'delete'\n};\n\n@Directive({\n selector: '[wmTableCUD]'\n})\nexport class TableCUDDirective {\n\n constructor(\n @Self() @Inject(TableComponent) private table,\n private dialogService: AbstractDialogService,\n private app: App\n ) {\n table.initiateSelectItem = this.initiateSelectItem.bind(this);\n table.updateVariable = this.updateVariable.bind(this);\n table.updateRecord = this.updateRecord.bind(this);\n table.deleteRecord = this.deleteRecord.bind(this);\n table.insertRecord = this.insertRecord.bind(this);\n table.editRow = this.editRow.bind(this);\n table.addNewRow = this.addNewRow.bind(this);\n table.addRow = this.addNewRow.bind(this);\n table.deleteRow = this.deleteRow.bind(this);\n table.onRecordDelete = this.onRecordDelete.bind(this);\n table.hideEditRow = this.hideEditRow.bind(this);\n table.saveRow = this.saveRow.bind(this);\n table.cancelRow = this.cancelRow.bind(this);\n }\n\n private selectItemOnSuccess(row, skipSelectItem, callBack) {\n /*$timeout is used so that by then $is.dataset has the updated value.\n * Selection of the item is done in the callback of page navigation so that the item that needs to be selected actually exists in the grid.*/\n /*Do not select the item if skip selection item is specified*/\n setTimeout(() => {\n if (!skipSelectItem) {\n this.table.selectItem(row, this.table.dataset);\n }\n triggerFn(callBack);\n }, 250);\n }\n\n initiateSelectItem(index, row, skipSelectItem?, isStaticVariable?, callBack?) {\n // In case of on demand and Infinite Scroll pagination, when new row is inserted show it in the last page and continue with current flow instead of navigating user to the last page\n if ((this.table.gridOptions.isNavTypeScrollOrOndemand() ) && !this.table.dataNavigator.isDisableNext && this.table.isNewRowInserted) {\n this.table.isNewRowInserted = false;\n return;\n }\n /*index === \"last\" indicates that an insert operation has been successfully performed and navigation to the last page is required.\n * Hence increment the \"dataSize\" by 1.*/\n if (index === 'last') {\n if (!isStaticVariable) {\n this.table.dataNavigator.dataSize += 1;\n }\n /*Update the data in the current page in the grid after insert/update operations.*/\n if (!this.table.isNavigationEnabled()) {\n index = 'current';\n }\n }\n /*Re-calculate the paging values like pageCount etc that could change due to change in the dataSize.*/\n this.table.dataNavigator.calculatePagingValues();\n /* updating pagination fulldata*/\n this.table.dataNavigator.__fullData = this.table.__fullData;\n this.table.dataNavigator.navigatePage(index, null, true, () => {\n if (this.table.isNavigationEnabled() || isStaticVariable) {\n this.selectItemOnSuccess(row, skipSelectItem, callBack);\n }\n if (this.table.editmode === 'quickedit' && !skipSelectItem) {\n // In case of quickeditmode, manually set active row to attach event handlers and focus the row\n this.table.callDataGridMethod('setActiveRow', row);\n }\n });\n }\n\n updateVariable(row?, callBack?) {\n const dataSource = this.table.datasource;\n if (!dataSource) {\n return;\n }\n\n dataSource.execute(DataSource.Operation.FETCH_DISTINCT_VALUES);\n\n if (!this.table.isNavigationEnabled()) {\n const sortInfo = this.table.sortInfo;\n const sortOptions = sortInfo && sortInfo.direction ? (sortInfo.field + ' ' + sortInfo.direction) : '';\n refreshDataSource(dataSource, {\n page: 1,\n filterFields: this.table.getFilterFields(this.table.filterInfo),\n orderBy: sortOptions,\n matchMode: 'anywhereignorecase'\n }).then(() => {\n $appDigest();\n this.selectItemOnSuccess(row, true, callBack);\n });\n }\n }\n\n private insertSuccessHandler(response, options) {\n /*Display appropriate error message in case of error.*/\n if (response.error) {\n this.table.invokeEventCallback('error', {$event: options.event, $operation: OPERATION.NEW, $data: response.error});\n if (!this.table.onError) {\n this.table.toggleMessage(true, 'error', this.table.errormessage || response.error);\n }\n triggerFn(options.error, response);\n } else {\n if (this.table.gridOptions.isNavTypeScrollOrOndemand()) {\n this.table.isNewRowInserted = true;\n }\n if (options.event) {\n const row = $(options.event.target).closest('tr');\n this.table.callDataGridMethod('hideRowEditMode', row);\n }\n if (!this.table.onRowinsert) {\n this.table.toggleMessage(true, 'success', this.table.insertmessage);\n }\n if (this.table.datasource.execute(DataSource.Operation.SUPPORTS_CRUD)) {\n this.table.initiateSelectItem(this.table.getNavigationTargetBySortInfo(), response, undefined, false, options.callBack);\n this.updateVariable(response, options.callBack);\n } else if (!this.table.datasource.execute(DataSource.Operation.IS_API_AWARE)) {\n this.table.initiateSelectItem(this.table.getNavigationTargetBySortInfo(), response, undefined, false, options.callBack);\n }\n triggerFn(options.success, response);\n this.table.invokeEventCallback('rowinsert', {$event: options.event, $data: response, row: response});\n }\n }\n\n\n generatePath(binddataset) {\n let path, index;\n let dataBoundExpr = this.table.widget.$attrs.get('datasetboundexpr');\n if (startsWith(binddataset, 'item') && dataBoundExpr) {\n if (startsWith(dataBoundExpr, 'Widgets.')) {\n dataBoundExpr = extractCurrentItemExpr(dataBoundExpr, this.table);\n }\n const parentListItems = this.table.$element.parents('.app-list-item');\n const indexArr = map(parentListItems, (item) => parseInt($(item).attr('listitemindex')));\n for (let i = indexArr.length - 1; i >= 0; i--) {\n dataBoundExpr = dataBoundExpr.replace('$i', indexArr[i]);\n }\n index = last(indexArr);\n path = dataBoundExpr.replace(/^Variables\\..*\\.dataSet([^.])*(\\.|$)/g, '');\n } else {\n // if we have dataset as \"Variables.staticVar1.dataSet[1].details\" then pass index as 1.\n const regEx = /^Variables\\..*\\.dataSet([\\[][0-9]])/g;\n if (regEx.test(binddataset)) {\n index = parseInt(binddataset.replace(/^Variables\\..*\\.dataSet([\\[])/g, ''));\n }\n path = binddataset.replace(/^Variables\\..*\\.dataSet([^.])*(\\.|$)/g, '');\n }\n return { path, index };\n }\n\n insertRecord(options) {\n const dataSource = this.table.datasource;\n if (!dataSource) {\n return;\n }\n const currentPageNum = dataSource.pagination && dataSource.pagination.number + 1;\n const dataObject = {\n row : options.row,\n skipNotification : true,\n period: options.period\n };\n if (dataSource.execute(DataSource.Operation.SUPPORTS_CRUD) || !dataSource.execute(DataSource.Operation.IS_API_AWARE) || dataSource.category === 'wm.CrudVariable') {\n if (!dataSource.execute(DataSource.Operation.IS_API_AWARE)) {\n const extraOptions = this.generatePath(this.table.binddataset);\n dataSource.execute(DataSource.Operation.ADD_ITEM, {item: options.row, path: extraOptions.path, parentIndex: extraOptions.index});\n this.insertSuccessHandler(options.row, options);\n return;\n }\n dataSource.execute(DataSource.Operation.INSERT_RECORD, dataObject).then(response => {\n this.insertSuccessHandler(response, options);\n if (dataSource.category === 'wm.CrudVariable') {\n dataSource.execute(DataSource.Operation.LIST_RECORDS, {\n 'skipToggleState': true,\n 'operation': 'list',\n 'page': currentPageNum\n });\n }\n }, error => {\n this.table.invokeEventCallback('error', {$event: options.event, $operation: OPERATION.NEW, $data: error});\n if (!this.table.onError) {\n this.table.toggleMessage(true, 'error', this.table.errormessage || error);\n }\n triggerFn(options.error, error);\n triggerFn(options.callBack, undefined, true);\n });\n } else {\n this.table.invokeEventCallback('rowinsert', {$event: options.event, row: options.row});\n }\n }\n\n private updateSuccessHandler(response, options) {\n /*Display appropriate error message in case of error.*/\n if (response.error) {\n this.table.invokeEventCallback('error', {$event: options.event, $operation: OPERATION.EDIT, $data: response.error});\n /*disable readonly and show the appropriate error*/\n if (!this.table.onError) {\n this.table.toggleMessage(true, 'error', this.table.errormessage || response.error);\n }\n triggerFn(options.error, response);\n } else {\n if (options.event) {\n const row = $(options.event.target).closest('tr');\n this.table.callDataGridMethod('hideRowEditMode', row);\n }\n if (!this.table.onRowupdate) {\n this.table.toggleMessage(true, 'success', this.table.updatemessage);\n }\n if (this.table.datasource.execute(DataSource.Operation.SUPPORTS_CRUD)) {\n this.table.initiateSelectItem('current', response, undefined, false, options.callBack);\n this.updateVariable(response, options.callBack);\n } else if (!this.table.datasource.execute(DataSource.Operation.IS_API_AWARE)) {\n this.table.initiateSelectItem('current', response, undefined, false, options.callBack);\n }\n triggerFn(options.success, response);\n this.table.invokeEventCallback('rowupdate', {$event: options.event, $data: response, row: response});\n }\n }\n\n updateRecord(options) {\n const dataSource = this.table.datasource;\n if (!dataSource) {\n return;\n }\n const currentPageNum = dataSource.pagination && dataSource.pagination.number + 1;\n const dataObject = {\n row : options.row,\n prevData : options.prevData,\n skipNotification : true,\n period : options.period\n };\n\n if (dataSource.execute(DataSource.Operation.SUPPORTS_CRUD) || !dataSource.execute(DataSource.Operation.IS_API_AWARE) || dataSource.category === 'wm.CrudVariable') {\n if (!dataSource.execute(DataSource.Operation.IS_API_AWARE)) {\n const extraOptions = this.generatePath(this.table.binddataset);\n dataSource.execute(DataSource.Operation.SET_ITEM, {prevItem: options.prevData, item: options.row, path: extraOptions.path, parentIndex: extraOptions.index});\n this.updateSuccessHandler(options.row, options);\n return;\n }\n dataSource.execute(DataSource.Operation.UPDATE_RECORD, dataObject).then(response => {\n this.updateSuccessHandler(response, options);\n if (dataSource.category === 'wm.CrudVariable') {\n dataSource.execute(DataSource.Operation.LIST_RECORDS, {\n 'skipToggleState': true,\n 'operation': 'list',\n 'page': currentPageNum\n });\n }\n }, error => {\n this.table.invokeEventCallback('error', {$event: options.event, $operation: OPERATION.EDIT, $data: error});\n if (!this.table.onError) {\n this.table.toggleMessage(true, 'error', this.table.errormessage || error);\n }\n triggerFn(options.error, error);\n triggerFn(options.callBack, undefined, true);\n });\n } else {\n this.table.invokeEventCallback('rowupdate', {$event: options.event, row: options.row});\n }\n }\n\n onRecordDelete(callBack?) {\n let index;\n /*Check for sanity*/\n if (this.table.dataNavigator) {\n this.table.dataNavigator.dataSize -= 1;\n this.table.dataNavigator.calculatePagingValues();\n /*If the current page does not contain any records due to deletion, then navigate to the previous page.*/\n index = this.table.dataNavigator.pageCount < this.table.dataNavigator.dn.currentPage ? 'prev' : undefined;\n /* updating pagination fulldata*/\n this.table.dataNavigator.__fullData = this.table.__fullData;\n this.table.dataNavigator.navigatePage(index, null, true, () => {\n setTimeout(() => {\n triggerFn(callBack);\n }, undefined, false);\n });\n }\n }\n\n private deleteSuccessHandler(row, response?, evt?, callBack?) {\n /* check the response whether the data successfully deleted or not , if any error occurred show the\n * corresponding error , other wise remove the row from grid */\n if (response && response.error) {\n if (!this.table.onError) {\n this.table.toggleMessage(true, 'error', this.table.errormessage || response.error);\n }\n return;\n }\n this.onRecordDelete(callBack);\n if (this.table.datasource.execute(DataSource.Operation.SUPPORTS_CRUD)) {\n this.updateVariable(row, callBack);\n }\n if (!this.table.onRowdelete) {\n this.table.toggleMessage(true, 'success', this.table.deletemessage);\n }\n // custom EventHandler for row deleted event\n this.table.invokeEventCallback('rowdelete', {$event: evt, $data: row, row});\n this.table.invokeEventCallback('rowdeleted', {$event: evt, $data: row, row});\n }\n\n private deleteFn(options) {\n const dataSource = this.table.datasource;\n let isLastPageElement, currentPageNum;\n if (!dataSource) {\n return;\n }\n // when delete operation is executed, turn on isRowDeleted flag to perform the next operations in table component\n if (this.table.onDemandLoad || this.table.infScroll) {\n this.table.isRowDeleted = true;\n }\n if (dataSource.category === 'wm.CrudVariable') {\n this.triggerWMEvent('resetEditMode');\n if (dataSource.pagination) {\n isLastPageElement = dataSource.pagination.last && dataSource.pagination.numberOfElements === 1;\n currentPageNum = isLastPageElement ? dataSource.pagination.number : dataSource.pagination.number + 1;\n }\n }\n if (dataSource.execute(DataSource.Operation.SUPPORTS_CRUD) || !dataSource.execute(DataSource.Operation.IS_API_AWARE) || this.table._isDependent || dataSource.category === 'wm.CrudVariable') {\n if (!dataSource.execute(DataSource.Operation.IS_API_AWARE)) {\n const extraOptions = this.generatePath(this.table.binddataset);\n dataSource.execute(DataSource.Operation.REMOVE_ITEM, {item: options.row, path: extraOptions.path, parentIndex: extraOptions.index});\n this.deleteSuccessHandler(options.row, undefined, options.evt, options.callBack);\n return;\n }\n dataSource.execute(DataSource.Operation.DELETE_RECORD, {\n row: options.row,\n skipNotification : true,\n period: options.period\n }).then(response => {\n this.deleteSuccessHandler(response, options.row, options.evt, options.callBack);\n if (dataSource.category === 'wm.CrudVariable') {\n //this.triggerWMEvent('rerender', dataSource);\n dataSource.execute(DataSource.Operation.LIST_RECORDS, {\n 'skipToggleState': true,\n 'operation': 'list',\n 'page': currentPageNum\n });\n }\n }, error => {\n // In case of deletion failure, turn isRowDeleted flag off to prevent executing code in table comp\n if (this.table.isRowDeleted) {\n this.table.isRowDeleted = false;\n }\n triggerFn(options.callBack, undefined, true);\n this.table.invokeEventCallback('error', {$event: options.evt, $operation: OPERATION.DELETE, $data: error});\n if (!this.table.onError) {\n this.table.toggleMessage(true, 'error', this.table.errormessage || error);\n }\n });\n } else {\n this.table.invokeEventCallback('rowdelete', {$event: options.evt, row: options.row});\n }\n triggerFn(options.cancelRowDeleteCallback);\n }\n\n deleteRecord(options) {\n if (!this.table.confirmdelete) {\n this.deleteFn(options);\n triggerFn(options.cancelRowDeleteCallback);\n return;\n }\n this.dialogService.showAppConfirmDialog({\n title: this.app.appLocale.MESSAGE_DELETE_RECORD || 'Delete Record',\n iconclass: 'wi wi-delete fa-lg',\n message: this.table.confirmdelete,\n oktext: this.table.deleteoktext,\n canceltext: this.table.deletecanceltext,\n onOk: () => {\n this.deleteFn(options);\n this.dialogService.closeAppConfirmDialog();\n },\n onCancel: () => {\n triggerFn(options.cancelRowDeleteCallback);\n this.dialogService.closeAppConfirmDialog();\n },\n onOpen: () => {\n // Focus the cancel button on open\n $('.cancel-action').focus();\n },\n onEscape: () => {\n triggerFn(options.cancelRowDeleteCallback);\n }\n });\n }\n\n editRow(evt?) {\n let row;\n if (this.table._isDependent) {\n this.triggerWMEvent('update');\n return;\n }\n if (evt && evt.target) {\n this.table.callDataGridMethod('toggleEditRow', evt, {'selectRow': true, action: 'edit'});\n } else {\n // For live form, call the update function with selected item\n if (this.table.editmode === 'form' || this.table.editmode === 'dialog') {\n row = evt || this.table.selectedItems[0];\n this.table.gridOptions.beforeRowUpdate(row);\n } else {\n // Wait for the selected item to get updated\n setTimeout(() => {\n row = this.table.datagridElement.find('tr.active');\n if (row.length) {\n this.table.callDataGridMethod('toggleEditRow', undefined, {$row: row, action: 'edit'});\n }\n });\n }\n }\n this.table._triggeredByUser = true;\n // Fix for [WMS-23263]: set 'isDataUpdatedByUser' flag to false since dataset is not being updated from script\n this.table.gridOptions.setIsDataUpdatedByUser(false);\n }\n\n addNewRow() {\n if (!this.table.isGridEditMode) { // If grid is already in edit mode, do not add new row\n this.table._triggeredByUser = true;\n // Fix for [WMS-23263]: set 'isDataUpdatedByUser' flag to false since dataset is not being updated from script\n this.table.gridOptions.setIsDataUpdatedByUser(false);\n this.table.callDataGridMethod('addNewRow');\n if (this.table._liveTableParent) {\n this.table._liveTableParent.addNewRow();\n } else if (this.table._isDependent) {\n this.triggerWMEvent('insert');\n //this.table.callDataGridMethod('addNewRow');\n }\n }\n }\n\n private triggerWMEvent(eventName, dataSource?) {\n $invokeWatchers(true);\n this.app.notify('wm-event', {eventName, widgetName: this.table.name, row: this.table.selecteditem, dataSource: dataSource});\n }\n\n deleteRow(evt) {\n let row;\n if (evt && evt.target) {\n this.table.callDataGridMethod('deleteRowAndUpdateSelectAll', evt);\n } else {\n // Wait for the selected item to get updated\n setTimeout(() => {\n row = evt || this.table.selectedItems[0];\n this.deleteRecord({row});\n });\n }\n this.table._triggeredByUser = true;\n // Fix for [WMS-23263]: set 'isDataUpdatedByUser' flag to false since dataset is not being updated from script\n this.table.gridOptions.setIsDataUpdatedByUser(false);\n }\n\n // Function to hide the edited row\n hideEditRow() {\n const $row = this.table.datagridElement.find('tr.row-editing');\n if ($row.length) {\n this.table.callDataGridMethod('hideRowEditMode', $row);\n }\n }\n\n // Function to save the row\n saveRow() {\n this.table.callDataGridMethod('saveRow');\n }\n\n // Function to cancel the edit\n cancelRow() {\n const $row = this.table.datagridElement.find('tr.row-editing');\n if ($row.length) {\n this.table.callDataGridMethod('cancelEdit', $row);\n }\n }\n}\n","import { Directive, Inject, Self } from '@angular/core';\n\nimport { $appDigest, DataSource, DataType, FormWidgetType, getClonedObject, isDefined, isNumberType, adjustContainerRightEdges } from '@wm/core';\nimport { getMatchModeMsgs, getMatchModeTypesMap, isDataSetWidget, refreshDataSource, unsupportedStatePersistenceTypes } from '@wm/components/base';\n\nimport { TableComponent } from './table.component';\nimport {\n endsWith,\n filter,\n find,\n forEach,\n get, head,\n includes, isArray, isEmpty,\n isEqual, isNull, isObject, orderBy, range, split,\n startsWith, toLower,\n toNumber,\n toString\n} from \"lodash-es\";\n\ndeclare const $;\ndeclare const moment;\n\nconst emptyMatchModes = ['null', 'empty', 'nullorempty', 'isnotnull', 'isnotempty'];\n\n// Get search value based on the time\nconst getSearchValue = (value, type) => {\n if (!isDefined(value) || value === '') {\n return undefined;\n }\n if (isNumberType(type)) {\n return toNumber(value);\n }\n if (type === DataType.DATETIME) {\n return moment(value).valueOf();\n }\n return toString(value).toLowerCase();\n};\n\n// Filter the data based on the search value and conditions\nconst getFilteredData = (data, searchObj, visibleCols = []) => {\n const searchVal = getSearchValue(searchObj.value, searchObj.type);\n let currentVal;\n // Return whole data if\n // - search value is undefined and matchmode is not an empty matchmode type\n // - search value is null and datatype is number. Null can not be compared with numeric values[WMS-19275].\n if ((!isDefined(searchVal) && !includes(emptyMatchModes, searchObj.matchMode)) || (isNumberType(searchObj.type) && isNull(searchObj.value))) {\n return data;\n }\n data = data.filter((obj) => {\n let isExists;\n if (searchObj.field) {\n currentVal = getSearchValue(get(obj, searchObj.field), searchObj.type);\n } else {\n currentVal = [];\n forEach(obj, (val, key) => {\n if ((includes(visibleCols, key))) {\n currentVal.push(val);\n } else {\n // WMS-22271 If the key is in nested key format (dot format)\n // Find all the indexes of the key in visiblecols and extract their values from obj\n const colIndex = filter(range(visibleCols.length), (i) => visibleCols[i].includes(key));\n forEach(colIndex, (index) => {\n // @ts-ignore\n const value = get(obj, visibleCols[index]);\n if (currentVal.indexOf(value) < 0) {\n currentVal.push(value);\n }\n });\n }\n });\n currentVal = currentVal.join(' ').toLowerCase(); // If field is not there, search on all the columns\n }\n switch (searchObj.matchMode) {\n case 'start':\n isExists = startsWith(currentVal, searchVal as string);\n break;\n case 'end':\n isExists = endsWith(currentVal, searchVal as string);\n break;\n case 'exact':\n isExists = isEqual(currentVal, searchVal);\n break;\n case 'notequals':\n isExists = !isEqual(currentVal, searchVal);\n break;\n case 'null':\n isExists = isNull(currentVal);\n break;\n case 'isnotnull':\n isExists = !isNull(currentVal);\n break;\n case 'empty':\n isExists = isEmpty(currentVal);\n break;\n case 'isnotempty':\n isExists = !isEmpty(currentVal);\n break;\n case 'nullorempty':\n isExists = isNull(currentVal) || isEmpty(currentVal);\n break;\n case 'lessthan':\n isExists = currentVal < searchVal;\n break;\n case 'lessthanequal':\n isExists = currentVal <= searchVal;\n break;\n case 'greaterthan':\n isExists = currentVal > searchVal;\n break;\n case 'greaterthanequal':\n isExists = currentVal >= searchVal;\n break;\n default:\n isExists = isNumberType(searchObj.type) ? isEqual(currentVal, searchVal) : includes(currentVal, searchVal);\n break;\n }\n return isExists;\n });\n return data;\n};\n\n// Set the filter fields when the search value is specified and field is not selected\nconst setAllFilterFields = function(filterFields, searchObj, visibleCols) {\n visibleCols.forEach(function(field) {\n filterFields[field] = {\n 'value': searchObj.value,\n 'type' : searchObj.value.type,\n 'logicalOp': 'OR'\n };\n if (searchObj.matchMode) {\n filterFields[field].matchMode = searchObj.matchMode;\n }\n });\n};\n\n// Set the filter fields as required by datasource\nconst setFilterFields = (filterFields, searchObj, visibleCols = []) => {\n const field = searchObj && searchObj.field;\n /*Set the filter options when a field/column has been selected.*/\n if (field) {\n filterFields[field] = {\n 'value' : searchObj.value,\n 'logicalOp' : 'AND'\n };\n if (searchObj.matchMode) {\n filterFields[field].matchMode = searchObj.matchMode;\n }\n } else {\n /*Set the filter options when a field/column hasn't been selected.*/\n setAllFilterFields(filterFields, searchObj, visibleCols);\n }\n};\n\n// Transform filter fields from array to object having field names as keys\nconst transformFilterField = (userFilters, filterField) => {\n if (filterField.field) {\n userFilters[filterField.field] = {\n value: filterField.value,\n matchMode: filterField.matchMode,\n type: filterField.type\n };\n }\n};\n\n// Build a filter Fields object\nconst addToFilterFields = (filterFields, searchObj) => {\n filterFields.push({\n field: (searchObj.key) ? searchObj.key : '',\n matchMode: searchObj.matchMode,\n type: searchObj.type,\n value: searchObj.value\n });\n};\n\n@Directive({\n selector: '[wmTableFilterSort]'\n})\nexport class TableFilterSortDirective {\n\n constructor(@Self() @Inject(TableComponent) private table) {\n table._searchSortHandler = this.searchSortHandler.bind(this);\n table.getSearchResult = this.getSearchResult.bind(this);\n table.getSortResult = this.getSortResult.bind(this);\n table.checkFiltersApplied = this.checkFiltersApplied.bind(this);\n table.getFilterFields = this.getFilterFields.bind(this);\n table.onRowFilterChange = this.onRowFilterChange.bind(this);\n table.onFilterConditionSelect = this.onFilterConditionSelect.bind(this);\n table.showClearIcon = this.showClearIcon.bind(this);\n table.clearRowFilter = this.clearRowFilter.bind(this);\n table.matchModeTypesMap = getMatchModeTypesMap();\n table.matchModeMsgs = getMatchModeMsgs(table.appLocale);\n table.emptyMatchModes = emptyMatchModes;\n table.getNavigationTargetBySortInfo = this.getNavigationTargetBySortInfo.bind(this);\n table.refreshData = this.refreshData.bind(this);\n table.clearFilter = this.clearFilter.bind(this);\n table.adjustContainer = this.adjustContainer.bind(this);\n }\n\n adjustContainer(fieldName) {\n setTimeout(() => {\n adjustContainerRightEdges($('bs-dropdown-container'), this.table.rowFilterCompliedTl[fieldName], this.table, $('bs-dropdown-container .dropdown-menu'));\n });\n }\n\n // Get first or last page based on sort info of primary key\n getNavigationTargetBySortInfo() {\n return this.table.sortInfo && this.table.sortInfo.direction === 'desc' &&\n includes(this.table.primaryKey, this.table.sortInfo.field) ? 'first' : 'last';\n }\n\n // Returns all the columns of the table wherein, showinfilter is set to true\n getTableVisibleCols() {\n const visibleCols = [];\n forEach(this.table.columns, (val, col) => {\n if (toLower(toString(val.showinfilter)) === 'true' && col !== 'rowOperations' && val.searchable) {\n visibleCols.push(col);\n }\n });\n return visibleCols;\n }\n\n // call the set filter fields function based on the field selected or not\n invokeSetFilterfieldBasedOnFieldval(searchObj, filterFields) {\n if (searchObj.field) {\n setFilterFields(filterFields, searchObj);\n } else if (!isEmpty(searchObj)) {\n const visibleCols = this.getTableVisibleCols();\n setFilterFields(filterFields, searchObj, visibleCols);\n }\n }\n\n // Get the filter fields as required by datasource\n getFilterFields(searchObj) {\n searchObj = searchObj || {};\n const filterFields = {};\n if (isArray(searchObj)) {\n forEach(searchObj, obj => {\n this.invokeSetFilterfieldBasedOnFieldval(obj, filterFields);\n });\n } else {\n this.invokeSetFilterfieldBasedOnFieldval(searchObj, filterFields);\n }\n return filterFields;\n }\n\n // Get the logical operator for the search filter\n getLogicalOperator(filterFields) {\n let operator = '';\n for (const field in filterFields) {\n operator = filterFields[field]['logicalOp'] || '';\n break;\n }\n return operator;\n }\n\n // Reset the sort based on sort returned by the call\n resetSortStatus(variableSort) {\n let gridSortString;\n if (!isEmpty(this.table.sortInfo) && this.table.datasource) {\n gridSortString = this.table.sortInfo.field + ' ' + this.table.sortInfo.direction;\n variableSort = this.table.datasource.execute(DataSource.Operation.GET_OPTIONS).orderBy || variableSort;\n if (variableSort) { // If multiple order by fields are present, compare with the first one\n variableSort = head(split(variableSort, ','));\n }\n if (gridSortString !== variableSort) {\n this.table.callDataGridMethod('resetSortIcons');\n this.table.sortInfo = {};\n this.table.setDataGridOption('sortInfo', {});\n }\n }\n }\n\n // Clear the all the filters applied\n clearFilter(skipFilter) {\n let $gridElement;\n this.table.filterInfo = {};\n if (this.table.filtermode === 'multicolumn') {\n this.table.fieldDefs.forEach(col => {\n if (col.resetFilter) {\n col.resetFilter();\n }\n });\n if (!skipFilter) {\n this.table.onRowFilterChange();\n }\n } else if (this.table.filtermode === 'search') {\n $gridElement = this.table.datagridElement;\n $gridElement.find('[data-element=\"dgSearchText\"]').val('');\n $gridElement.find('[data-element=\"dgFilterValue\"]').val('');\n if (!skipFilter) {\n $gridElement.find('.app-search-button').trigger('click');\n }\n }\n }\n\n // Check the filters applied and remove if dat does not contain any filters\n checkFiltersApplied(variableSort) {\n if (!this.table.datasource) {\n return;\n }\n if (this.table.datasource.execute(DataSource.Operation.SUPPORTS_SERVER_FILTER)) {\n if (isEmpty(this.table.datasource.execute(DataSource.Operation.GET_OPTIONS).filterFields)) {\n this.clearFilter(true);\n }\n this.resetSortStatus(variableSort);\n return;\n }\n if (this.table.datasource.execute(DataSource.Operation.IS_PAGEABLE)) {\n this.resetSortStatus(variableSort);\n }\n }\n\n // Returns data filtered using searchObj\n getSearchResult(data, searchObj) {\n const visibleCols = this.getTableVisibleCols();\n if (!searchObj) {\n return data;\n }\n if (isArray(searchObj)) {\n searchObj.forEach((obj) => {\n data = getFilteredData(data, obj, visibleCols);\n });\n } else {\n data = getFilteredData(data, searchObj, visibleCols);\n }\n return data;\n }\n\n // Returns data sorted using sortObj\n getSortResult(data, sortObj) {\n if (sortObj && sortObj.direction) {\n data = orderBy(data, sortObj.field, sortObj.direction);\n }\n return data;\n }\n\n // This method handles the client side sort and search\n private handleClientSideSortSearch(searchSortObj, e, type) {\n this.table._isClientSearch = true;\n\n let data;\n data = this.table.isNavigationEnabled() ? getClonedObject(this.table.__fullData) : getClonedObject(this.table.dataset);\n if (type === 'search') {\n this.table.filterInfo = searchSortObj;\n } else {\n this.table.sortInfo = searchSortObj;\n }\n if (isObject(data) && !isArray(data)) {\n data = [data];\n }\n /*Both the functions return same 'data' if arguments are undefined*/\n data = this.getSearchResult(data, this.table.filterInfo);\n data = this.getSortResult(data, this.table.sortInfo);\n this.table.serverData = data;\n\n if (type === 'sort') {\n // Calling 'onSort' event\n this.table.invokeEventCallback('sort', {$event: e, $data: {\n data: this.table.serverData,\n sortDirection: this.table.sortInfo.direction,\n colDef: this.table.columns[this.table.sortInfo.field]\n }});\n }\n\n if (this.table.isNavigationEnabled()) {\n // Reset the page number to 1\n this.table.dataNavigator.dn.currentPage = 1;\n this.table.dataNavigator.setPagingValues(data);\n } else {\n this.table.setGridData(this.table.serverData);\n }\n }\n\n // This method handles the search for pageable datasource\n private handleSinglePageSearch(searchObj) {\n this.table._isPageSearch = true;\n\n let data = getClonedObject(this.table.gridData);\n const $rows = this.table.datagridElement.find('tbody tr.app-datagrid-row');\n this.table.filterInfo = searchObj;\n data = this.getSearchResult(data, searchObj);\n // Compared the filtered data and original data, to show or hide the rows\n forEach(this.table.gridData, (value, index) => {\n const $row = $($rows[index]);\n if (find(data, obj => isEqual(obj, value))) {\n $row.show();\n } else {\n $row.hide();\n }\n });\n if (data && data.length) {\n this.table.callDataGridMethod('setStatus', 'ready');\n // Select the first row after the search for single select\n if (this.table.gridfirstrowselect && !this.table.multiselect) {\n this.table.callDataGridMethod('selectFirstRow', true, true);\n }\n } else {\n this.table.callDataGridMethod('setStatus', 'nodata', this.table.nodatamessage);\n this.table.selecteditem = undefined;\n }\n this.table.callDataGridMethod('updateSelectAllCheckboxState');\n }\n\n // This method handles the search for server side variables\n private handleServerSideSearch(searchObj) {\n this.table.filterInfo = searchObj;\n\n if (!this.table.datasource) {\n return;\n }\n\n const sortInfo = this.table.sortInfo;\n const sortOptions = sortInfo && sortInfo.direction ? (sortInfo.field + ' ' + sortInfo.direction) : '';\n const filterFields = this.getFilterFields(searchObj);\n const logicalOp = this.getLogicalOperator(filterFields);\n refreshDataSource(this.table.datasource, {\n page: 1,\n filterFields : filterFields,\n orderBy : sortOptions,\n condition : logicalOp\n }).then(() => {\n $appDigest();\n }, () => {\n this.table.toggleMessage(true, 'error', this.table.nodatamessage);\n });\n }\n\n // This method handles the sort for server side variables\n private handleSeverSideSort(sortObj, e, statePersistenceTriggered?) {\n // Update the sort info for passing to datagrid\n this.table.gridOptions.sortInfo.field = sortObj.field;\n this.table.gridOptions.sortInfo.direction = sortObj.direction;\n this.table.sortInfo = getClonedObject(sortObj);\n\n const sortOptions = sortObj && sortObj.direction ? (sortObj.field + ' ' + sortObj.direction) : '';\n const filterFields = this.getFilterFields(this.table.filterInfo);\n const condition = this.getLogicalOperator(filterFields);\n if (!statePersistenceTriggered && this.table.getConfiguredState() !== 'none') {\n this.table.statePersistence.removeWidgetState(this.table, 'pagination');\n }\n\n refreshDataSource(this.table.datasource, {\n page : 1,\n filterFields : filterFields,\n orderBy : sortOptions,\n condition : condition\n }).then((response) => {\n $appDigest();\n const data = (response && response.data) ? response.data : response;\n this.table.invokeEventCallback('sort', {$event: e, $data: {\n data,\n sortDirection: sortObj.direction,\n colDef: this.table.columns[sortObj.field]\n\n }\n });\n });\n }\n\n private searchHandler(searchSortObj, e, type, statePersistenceTriggered?) {\n let obj;\n if (isArray(searchSortObj)) {\n obj = searchSortObj.filter(function(searchObject) {\n return (searchObject.matchMode !== undefined && searchObject.value !== undefined) || (searchObject.value !== undefined && searchObject.field === '');\n });\n } else {\n obj = {field: searchSortObj.field, value: searchSortObj.value, type: searchSortObj.type};\n }\n if (this.table.getConfiguredState() !== 'none' && unsupportedStatePersistenceTypes.indexOf(this.table.navigation) < 0) {\n if ((isArray(searchSortObj) && obj.length) || (searchSortObj.value)) {\n this.table.statePersistence.removeWidgetState(this.table, 'search');\n this.table.statePersistence.setWidgetState(this.table, {search: obj});\n } else {\n this.table.statePersistence.removeWidgetState(this.table, 'search');\n }\n if (!statePersistenceTriggered) {\n this.table.statePersistence.removeWidgetState(this.table, 'pagination');\n this.table.statePersistence.removeWidgetState(this.table, 'selectedItem');\n }\n } else {\n console.warn('Retain State handling on Widget ' + this.table.name + ' is not supported for current pagination type.');\n }\n let filterFields = getClonedObject(searchSortObj);\n const dataSource = this.table.datasource;\n if (!dataSource && !this.table.dataset) {\n return;\n }\n let output;\n const userFilters = {};\n // Transform filter fields from array to object having field names as keys\n if (isArray(filterFields)) {\n filterFields.forEach(filterField => {\n transformFilterField(userFilters, filterField);\n });\n } else {\n transformFilterField(userFilters, filterFields);\n }\n output = this.table.invokeEventCallback('beforefilter', {$event: e, $data: userFilters, columns: userFilters});\n // If callback returns false, don't trigger the filter call\n if (output === false) {\n return;\n }\n filterFields = [];\n // if the field is not selected in search filter dropdown, building the filter fields object\n if (isEmpty(userFilters) && !isEmpty(obj)) {\n if (isArray(obj)) {\n forEach(obj, searchObj => {\n addToFilterFields(filterFields, searchObj);\n });\n } else {\n addToFilterFields(filterFields, obj);\n }\n } else {\n // Transform back the filter fields from object to array\n forEach(userFilters, (val, key) => {\n // @ts-ignore\n filterFields.push({field: key, matchMode: val.matchMode, type: val.type, value: val.value});\n });\n }\n if (dataSource && dataSource.execute(DataSource.Operation.SUPPORTS_SERVER_FILTER)) {\n this.handleServerSideSearch(filterFields);\n return;\n }\n if (dataSource && dataSource.execute(DataSource.Operation.IS_API_AWARE) && dataSource.execute(DataSource.Operation.IS_PAGEABLE)) {\n this.handleSinglePageSearch(filterFields);\n } else {\n this.handleClientSideSortSearch(filterFields, e, type);\n }\n }\n\n private sortHandler(searchSortObj, e, type, statePersistenceTriggered?) {\n const dataSource = this.table.datasource;\n if (!dataSource && !this.table.dataset) {\n return;\n }\n if (!statePersistenceTriggered && this.table.getConfiguredState() !== 'none' && unsupportedStatePersistenceTypes.indexOf(this.table.navigation) < 0) {\n const obj = {direction: searchSortObj.direction, field: searchSortObj.field};\n if (searchSortObj.direction) {\n this.table.statePersistence.setWidgetState(this.table, {sort: obj});\n } else {\n this.table.statePersistence.removeWidgetState(this.table, 'sort');\n }\n this.table.statePersistence.removeWidgetState(this.table, 'selectedItem');\n } else {\n console.warn('Retain State handling on Widget ' + this.table.name + ' is not supported for current pagination type.');\n }\n\n // WMS-22387: For server side pagination, execute client side sorting\n if (dataSource && dataSource.execute(DataSource.Operation.IS_SORTABLE)) {\n this.handleSeverSideSort(searchSortObj, e, statePersistenceTriggered);\n } else {\n this.handleClientSideSortSearch(searchSortObj, e, type);\n }\n }\n // set the 'lastAction' performed on the table to 'search_or_sort'\n setLastActionPerformedToSearchSort() {\n this.table.gridOptions.setLastActionPerformed(this.table.gridOptions.ACTIONS.SEARCH_OR_SORT);\n this.table.gridOptions.setIsSearchTrigerred(true);\n }\n\n // This method is triggered by jquery table\n searchSortHandler(searchSortObj, e, type, statePersistenceTriggered?) {\n const event_type = e ? e.type : '';\n if (event_type === 'change' && this.table.filtermode !== 'multicolumn') {\n e.stopPropagation();\n } else {\n this.setLastActionPerformedToSearchSort();\n if (type === 'search') {\n this.searchHandler(searchSortObj, e, type, statePersistenceTriggered);\n } else {\n this.sortHandler(searchSortObj, e, type, statePersistenceTriggered);\n }\n }\n }\n\n // Method to show/hide clear icon in multi column filter\n showClearIcon(fieldName) {\n const value = this.table.rowFilter[fieldName] && this.table.rowFilter[fieldName].value;\n return isDefined(value) && value !== '' && value !== null;\n }\n\n // Method clear the filter value in multi column filter\n clearRowFilter(fieldName) {\n if (this.table.rowFilter && this.table.rowFilter[fieldName]) {\n this.table.columns[fieldName].resetFilter();\n this.onRowFilterChange(fieldName);\n }\n }\n\n // This method is triggered on select of condition in multi column filter\n onFilterConditionSelect(fieldName, condition) {\n this.table.rowFilter[fieldName] = this.table.rowFilter[fieldName] || {};\n this.table.rowFilter[fieldName].matchMode = condition;\n // For empty match modes, clear off the value and call filter\n if (includes(this.table.emptyMatchModes, condition)) {\n this.table.columns[fieldName].resetFilter();\n this.table.onRowFilterChange();\n } else {\n // If value is present, call the filter. Else, focus on the field\n if (isDefined(this.table.rowFilter[fieldName].value) && this.table.rowFilter[fieldName].value !== '') {\n this.table.onRowFilterChange();\n } else {\n setTimeout(() => {\n this.table.columns[fieldName].filterInstance.focus();\n });\n }\n }\n }\n\n // Method to get the updated values when filter on field is changed for multicolumn filter\n private getFilterOnFieldValues(filterDef) {\n if (!this.table.datasource || !this.table.datasource.execute(DataSource.Operation.SUPPORTS_DISTINCT_API)) {\n return;\n }\n\n const fieldName = filterDef.field;\n const formFields = this.table.fullFieldDefs;\n const filterOnFields = filter(formFields, {'filteronfilter': fieldName});\n const newVal = get(this.table.rowFilter, [fieldName, 'value']);\n\n // Loop over the fields for which the current field is filter on field\n forEach(filterOnFields, filterField => {\n const filterOn = filterField.filteronfilter;\n const filterKey = filterField.field;\n const filterFields = {};\n const filterWidget = filterField.filterwidget;\n\n if (!isDataSetWidget(filterWidget) || filterOn === filterKey || filterField.isFilterDataSetBound) {\n return;\n }\n\n filterFields[filterOn] = (isDefined(newVal) && newVal !== '' && newVal !== null) ? {'value' : newVal} : {};\n\n if (filterWidget === FormWidgetType.AUTOCOMPLETE && filterField.filterInstance.dataoptions) {\n filterField.filterInstance.dataoptions.filterFields = filterFields;\n } else {\n this.table.datasource.execute(DataSource.Operation.GET_DISTINCT_DATA_BY_FIELDS, {\n 'fields' : filterKey,\n 'filterFields' : filterFields\n }).then(data => {\n filterField.filterdataset = data.data;\n });\n }\n });\n }\n\n // This method is triggered on value change in multi column filter\n onRowFilterChange(fieldName) {\n const searchObj = [];\n const field = find(this.table.fullFieldDefs, {'field': fieldName});\n // Convert row filters to a search object and call search handler\n forEach(this.table.rowFilter, (value, key) => {\n if ((isDefined(value.value) && value.value !== '') || includes(this.table.emptyMatchModes, value.matchMode)) {\n if (field && key === field.field) {\n value.type = value.type || field.type;\n value.matchMode = value.matchMode || get(this.table.matchModeTypesMap[value.type], 0);\n }\n searchObj.push({\n field: key,\n value: value.value,\n matchMode: value.matchMode,\n type: value.type\n });\n }\n });\n this.table.gridOptions.searchHandler(searchObj, undefined, 'search');\n\n // If field is passed, update any filter on field values if present\n if (field) {\n this.getFilterOnFieldValues(field);\n }\n }\n\n refreshData(isSamePage) {\n if (!this.table.datasource) {\n return;\n }\n const page = isSamePage ? this.table.dataNavigator.dn.currentPage : 1;\n const sortInfo = this.table.sortInfo;\n const sortOptions = sortInfo && sortInfo.direction ? (sortInfo.field + ' ' + sortInfo.direction) : '';\n const filterFields = this.getFilterFields(this.table.filterInfo);\n const logicalOp = this.getLogicalOperator(filterFields);\n refreshDataSource(this.table.datasource, {\n page: page,\n filterFields : filterFields,\n orderBy : sortOptions,\n condition : logicalOp\n });\n }\n}\n","import { PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-table-action',\n new Map(\n [\n ['accessroles', PROP_STRING],\n ['action', PROP_STRING],\n ['caption', PROP_STRING],\n ['class', PROP_STRING],\n ['conditionalclass', PROP_ANY],\n ['conditionalstyle', PROP_ANY],\n ['disabled', {value: false, ...PROP_BOOLEAN}],\n ['display-name', PROP_STRING],\n ['hyperlink', PROP_STRING],\n ['icon', PROP_STRING],\n ['iconclass', PROP_STRING],\n ['key', PROP_STRING],\n ['position', {value: 'footer', ...PROP_STRING}],\n ['shortcutkey', PROP_STRING],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['tabindex', {value: 0, ...PROP_NUMBER}],\n ['title', PROP_STRING],\n ['target', PROP_STRING],\n ['widget-type', {value: 'button', ...PROP_STRING}]\n ]\n )\n );\n};\n","import {Directive, Inject, Injector, OnInit, Optional} from '@angular/core';\n\nimport { BaseComponent, provideAsWidgetRef } from '@wm/components/base';\n\nimport { registerProps } from './table-action.props';\nimport { TableComponent } from '../table.component';\nimport {isUndefined} from \"lodash-es\";\n\nconst WIDGET_CONFIG = {widgetType: 'wm-table-action', hostClass: ''};\n\n@Directive({\n selector: '[wmTableAction]',\n providers: [\n provideAsWidgetRef(TableActionDirective)\n ]\n})\nexport class TableActionDirective extends BaseComponent implements OnInit {\n static initializeProps = registerProps();\n\n accessroles;\n action;\n caption;\n class;\n disabled;\n displayName;\n icon;\n iconclass;\n position;\n shortcutkey;\n show;\n tabindex;\n title;\n key;\n hyperlink;\n target;\n buttonDef;\n conditionalclass;\n conditionalstyle;\n\n private _propsInitialized: boolean;\n\n constructor(inj: Injector, @Optional() public table: TableComponent, @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any) {\n super(inj, WIDGET_CONFIG, explicitContext);\n }\n\n populateAction() {\n this.buttonDef = {\n key: this.key,\n displayName: this['display-name'] || this.caption || '',\n show: this.show,\n class: this.class || '',\n iconclass: this.iconclass || '',\n title: isUndefined(this.title) ? (this['display-name'] || '') : this.title,\n action: this.action,\n accessroles: this.accessroles,\n shortcutkey: this.shortcutkey,\n disabled: this.disabled,\n tabindex: this.tabindex,\n icon: this.icon,\n position: this.position,\n widgetType: this['widget-type'],\n hyperlink: this.hyperlink,\n target: this.target || '',\n conditionalclass: this.conditionalclass || '',\n conditionalstyle: this.conditionalstyle || {}\n };\n this._propsInitialized = true;\n }\n\n ngOnInit() {\n super.ngOnInit();\n this.populateAction();\n this.table.registerActions(this.buttonDef);\n }\n\n onPropertyChange(key, nv) {\n if (!this._propsInitialized) {\n return;\n }\n\n if (key === 'display-name') {\n this.buttonDef.displayName = nv;\n } else {\n this.buttonDef[key] = nv;\n }\n }\n}\n","import { PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-table-column',\n new Map(\n [\n ['accessroles', PROP_STRING],\n ['autoclose', {value: 'outsideClick', ...PROP_STRING}],\n ['backgroundcolor', PROP_STRING],\n ['binding', PROP_STRING],\n ['caption', PROP_STRING],\n ['checkedvalue', PROP_STRING],\n ['col-class', PROP_STRING],\n ['collapsible', PROP_BOOLEAN],\n ['col-ng-class', PROP_STRING],\n ['currencypattern', PROP_STRING],\n ['customExpression', PROP_BOOLEAN], // Internal property to check if column has custom expression\n ['dataentrymode', {value: 'default', ...PROP_STRING}],\n ['datafield', PROP_STRING],\n ['dataoptions', PROP_ANY],\n ['dataset', PROP_ANY],\n ['datasource', PROP_STRING],\n ['dateformat', PROP_STRING],\n ['datepattern', PROP_STRING],\n ['debouncetime', {value: 250, ...PROP_NUMBER}],\n ['defaultvalue', PROP_STRING],\n ['disabled', PROP_BOOLEAN],\n ['displayfield', PROP_STRING],\n ['displaylabel', PROP_STRING],\n ['editdatepattern', PROP_STRING],\n ['outputformat', PROP_STRING],\n ['edit-widget-type', PROP_STRING],\n ['showineditmode', PROP_BOOLEAN],\n ['editinputtype', PROP_STRING],\n ['exportexpression', PROP_STRING],\n ['filterdataset', PROP_STRING],\n ['filterdatafield', PROP_STRING],\n ['filterdisplayfield', PROP_STRING],\n ['filterdisplaylabel', PROP_STRING],\n ['filterexpressions', {value: '{}', ...PROP_STRING}],\n ['filtersearchkey', PROP_STRING],\n ['filter-on', PROP_STRING],\n ['filteronfilter', PROP_STRING],\n ['filterplaceholder', PROP_STRING],\n ['filterwidget', PROP_STRING],\n ['filterinputtype', PROP_STRING],\n ['formatpattern', PROP_STRING],\n ['custompipeformat', PROP_STRING],\n ['fractionsize', PROP_STRING],\n ['generator', PROP_STRING],\n ['groupby', PROP_STRING],\n ['limit', PROP_NUMBER],\n ['match', PROP_STRING],\n ['matchmode', PROP_STRING],\n ['maxchars', PROP_NUMBER],\n ['maxvalue', PROP_NUMBER],\n ['step', PROP_NUMBER],\n ['mobiledisplay', {value: true, ...PROP_BOOLEAN}],\n ['minvalue', PROP_NUMBER],\n ['maxdate', PROP_STRING],\n ['mindate', PROP_STRING],\n ['excludedays', PROP_STRING],\n ['excludedates', PROP_STRING],\n ['maxtime', PROP_STRING],\n ['mintime', PROP_STRING],\n ['pcdisplay', {value: true, ...PROP_BOOLEAN}],\n ['period', PROP_BOOLEAN],\n ['placeholder', PROP_STRING],\n ['prefix', PROP_STRING],\n ['primary-key', PROP_BOOLEAN],\n ['readonly', PROP_BOOLEAN],\n ['regexp', PROP_ANY],\n ['related-entity-name', PROP_STRING],\n ['required', PROP_BOOLEAN],\n ['rowactionsposition', PROP_STRING],\n ['searchkey', PROP_STRING],\n ['searchable', {value: true, ...PROP_BOOLEAN}],\n ['showinfilter', {value: false, ...PROP_BOOLEAN}],\n ['suffix', PROP_STRING],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['showcount', PROP_BOOLEAN],\n ['showdropdownon', {value: 'default', ...PROP_STRING}],\n ['sortable', {value: true, ...PROP_BOOLEAN}],\n ['tabletdisplay', {value: true, ...PROP_BOOLEAN}],\n ['textalignment', {value: 'left', ...PROP_STRING}],\n ['textcolor', PROP_STRING],\n ['type', {value: 'string', ...PROP_STRING}],\n ['uncheckedvalue', PROP_STRING],\n ['validationmessage', PROP_STRING],\n ['widget-type', PROP_STRING],\n ['width', PROP_STRING],\n ]\n )\n );\n};\n","import { PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-table-column-group',\n new Map(\n [\n ['backgroundcolor', PROP_STRING],\n ['caption', PROP_STRING],\n ['col-class', PROP_STRING],\n ['name', PROP_STRING],\n ['textalignment', {value: 'center', ...PROP_STRING}]\n ]\n )\n );\n};\n","import {Directive, Inject, Injector, OnInit, Optional, SkipSelf} from '@angular/core';\n\nimport { BaseComponent, provideAsWidgetRef, setHeaderConfigForTable} from '@wm/components/base';\nimport { registerProps } from './table-column-group.props';\nimport { TableComponent } from '../table.component';\n\nconst WIDGET_CONFIG = {widgetType: 'wm-table-column-group', hostClass: ''};\n\n@Directive({\n selector: '[wmTableColumnGroup]',\n providers: [\n provideAsWidgetRef(TableColumnGroupDirective)\n ]\n})\nexport class TableColumnGroupDirective extends BaseComponent implements OnInit {\n static initializeProps = registerProps();\n\n accessroles;\n backgroundcolor;\n caption;\n colClass;\n name;\n textalignment;\n config: any = {};\n\n constructor(\n inj: Injector,\n @SkipSelf() @Optional() public group: TableColumnGroupDirective,\n @Optional() public table: TableComponent,\n @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any\n ) {\n super(inj, WIDGET_CONFIG, explicitContext);\n }\n\n populateConfig() {\n this.config = {\n field: this.name,\n displayName: this.caption || '',\n columns: [],\n isGroup: true,\n accessroles: this.accessroles,\n textAlignment: this.textalignment || 'center',\n backgroundColor: this.backgroundcolor,\n class: this['col-class']\n };\n }\n\n onPropertyChange(key, nv, ov?) {\n if (key === 'caption') {\n this.config.displayName = nv || '';\n this.table.callDataGridMethod('setColumnProp', this.config.field, 'displayName', nv, true);\n } else {\n super.onPropertyChange(key, nv, ov);\n }\n }\n\n ngOnInit() {\n super.ngOnInit();\n this.populateConfig();\n // when group is inside another group (i.e. sub-level column-group) then consider the col index and not header index.\n const headerIndex = parseInt(this.getAttr('headerIndex'), 10);\n const colIndex = parseInt(this.getAttr('index'), 10);\n const fieldName = this.group && this.group.name;\n setHeaderConfigForTable(this.table.headerConfig, this.config, fieldName, fieldName ? colIndex : headerIndex);\n }\n}\n","import {\n AfterContentInit,\n AfterViewInit,\n Attribute,\n ContentChild,\n ContentChildren,\n TemplateRef,\n Directive,\n Injector,\n OnInit,\n Optional,\n Inject\n} from '@angular/core';\n\nimport {\n $watch,\n AppDefaults,\n DataSource,\n DataType,\n debounce,\n FormWidgetType,\n getDisplayDateTimeFormat,\n isDateTimeType,\n isDefined\n} from '@wm/core';\nimport { applyFilterOnField, BaseFieldValidations, EDIT_MODE, fetchRelatedFieldData, getDataTableFilterWidget, getDefaultValue, getDistinctFieldProperties, getDistinctValues, getDistinctValuesForField, getEditModeWidget, getWatchIdentifier, isDataSetWidget, provideAsWidgetRef, setHeaderConfigForTable, BaseComponent } from '@wm/components/base';\nimport { registerProps } from './table-column.props';\nimport { TableComponent } from '../table.component';\nimport { TableColumnGroupDirective } from '../table-column-group/table-column-group.directive';\nimport { debounceTime } from 'rxjs/operators';\nimport {cloneDeep, forEach, head, includes, last, map, max, mean, min, round, split, sum} from \"lodash-es\";\n\nconst WIDGET_CONFIG = {widgetType: 'wm-table-column', hostClass: ''};\n\nlet inlineWidgetProps = ['datafield', 'displayfield', 'placeholder', 'searchkey', 'matchmode', 'displaylabel', 'groupby', 'match', 'dateformat', 'showcount', 'collapsible',\n 'checkedvalue', 'uncheckedvalue', 'showdropdownon', 'dataentrymode', 'autoclose', 'dataset', 'outputformat'];\nconst validationProps = ['maxchars', 'regexp', 'minvalue', 'maxvalue', 'step', 'required', 'mindate', 'maxdate',\n 'excludedates', 'excludedays', 'mintime', 'maxtime'];\ninlineWidgetProps = [...inlineWidgetProps, ...validationProps];\n\nclass FieldDef {\n widget;\n\n constructor(widget) {\n this.widget = widget;\n }\n\n focus() {\n this.widget.focus();\n }\n\n setProperty(prop, newval) {\n // Get the scope of the current editable widget and set the value\n prop = prop === 'value' ? 'datavalue' : prop;\n this.widget[prop] = newval;\n }\n\n getProperty(prop) {\n prop = prop === 'value' ? 'datavalue' : prop;\n return this.widget[prop];\n }\n}\n\n@Directive({\n selector: '[wmTableColumn]',\n providers: [\n provideAsWidgetRef(TableColumnDirective)\n ]\n})\nexport class TableColumnDirective extends BaseComponent implements OnInit, AfterContentInit, AfterViewInit {\n static initializeProps = registerProps();\n\n @ContentChildren('filterWidget', { descendants: true }) _filterInstances;\n @ContentChildren('inlineWidget', { descendants: true }) _inlineInstances;\n @ContentChildren('inlineWidgetNew', { descendants: true }) _inlineInstancesNew;\n @ContentChild('customExprTmpl') customExprTmpl;\n @ContentChild('inlineWidgetTmpl') inlineWidthTempRef;\n\n private _propsInitialized: boolean;\n private _filterDataSet;\n private _isRowFilter;\n private _isInlineEditable;\n private _isNewEditableRow;\n\n key;\n filterInstance;\n inlineInstance;\n inlineInstanceNew;\n\n backgroundcolor;\n binding;\n caption;\n dataset;\n defaultvalue;\n editWidgetType;\n filterwidget;\n field;\n formatpattern;\n custompipeformat;\n generator;\n limit;\n mobiledisplay;\n pcdisplay;\n tabletdisplay;\n readonly;\n required;\n maxchars;\n minvalue;\n maxvalue;\n regexp;\n searchable;\n showinfilter;\n show;\n sortable;\n textalignment;\n textcolor;\n type;\n width;\n datepattern;\n editdatepattern;\n filterdatafield;\n filterdisplayfield;\n filterdisplaylabel;\n filtersearchkey;\n filterplaceholder;\n datafield;\n displayfield;\n displayName;\n pcDisplay;\n mobileDisplay;\n tabletDisplay;\n textAlignment;\n backgroundColor;\n textColor;\n primaryKey;\n relatedEntityName;\n style;\n class;\n ngclass;\n filterOn;\n filterControl;\n isDataSetBound;\n isFilterDataSetBound;\n showPendingSpinner;\n showPendingSpinnerNew;\n validationmessage;\n activeControlType;\n private _dataoptions: any;\n private _datasource: any;\n private notifyForFields: any;\n private fieldValidations;\n private fieldValidations_new;\n\n private syncValidators = [];\n private asyncValidators = [];\n private observeOnFields = [];\n\n @ContentChild('filterTmpl') filterTemplateRef: TemplateRef<any>;\n\n constructor(\n inj: Injector,\n private appDefaults: AppDefaults,\n @Optional() public table: TableComponent,\n @Optional() public group: TableColumnGroupDirective,\n @Attribute('filterdataset.bind') public bindfilterdataset,\n @Attribute('dataset.bind') public binddataset,\n @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any\n ) {\n super(inj, WIDGET_CONFIG, explicitContext);\n\n this.notifyForFields = [];\n }\n\n get dataoptions() {\n return this._dataoptions;\n }\n\n set dataoptions(options) {\n this._dataoptions = options;\n }\n\n get datasource() {\n return this._datasource;\n }\n\n set datasource(ds) {\n this._datasource = ds;\n }\n\n ngOnInit() {\n super.ngOnInit();\n\n // Set the default values and register with table\n this.populateFieldDef();\n // when column is inside a group then consider the col index and not header index.\n const colIndex = parseInt(this.getAttr('index'), 10);\n const headerIndex = parseInt(this.getAttr('headerIndex'), 10);\n const fieldName = this.group && this.group.name;\n // Register column with header config to create group structure\n setHeaderConfigForTable(this.table.headerConfig, {\n field: this.field,\n displayName: this.displayName\n }, fieldName, fieldName ? colIndex : headerIndex);\n\n this.table.registerColumns(this.widget, colIndex);\n\n this._isRowFilter = this.table.filtermode === 'multicolumn' && this.searchable;\n this._isInlineEditable = !this.readonly && (this.table.editmode !== EDIT_MODE.DIALOG && this.table.editmode !== EDIT_MODE.FORM);\n this._isNewEditableRow = this._isInlineEditable && this.table.editmode === EDIT_MODE.QUICK_EDIT && this.table.shownewrow;\n this.setUpControls();\n\n this._propsInitialized = true;\n\n // Inline control status change subscriber\n if (this.getFormControl()) {\n const onStatusChangeSubscription = this.getFormControl().statusChanges\n .pipe(debounceTime(100))\n .subscribe(status => this.onStatusChange(status, 'inlineInstance'));\n this.registerDestroyListener(() => onStatusChangeSubscription.unsubscribe());\n // Instantiate custom validators class for inline edit form control\n this.fieldValidations = new BaseFieldValidations(this, this['inlineInstance'], this.editWidgetType, this.getFormControl(), this.table, 'inlineInstance');\n }\n\n // Quick edit new row control status change subscriber\n if (this._checkNewEditableRowControl()) {\n const onStatusChangeSubscription_new = this.getFormControl('_new').statusChanges\n .pipe(debounceTime(100))\n .subscribe(status => this.onStatusChange(status, 'inlineInstanceNew'));\n this.registerDestroyListener(() => onStatusChangeSubscription_new.unsubscribe());\n // Instantiate custom validators class for Quick edit newrow form control\n this.fieldValidations_new = new BaseFieldValidations(this, this['inlineInstanceNew'], this.editWidgetType, this.getFormControl('_new'), this.table, 'inlineInstanceNew');\n }\n }\n\n ngAfterContentInit() {\n if (this._isRowFilter) {\n // Listen on the inner row filter widget and setup the widget\n const s1 = this._filterInstances.changes.subscribe((val) => {\n this.filterInstance = val.first && val.first.widget;\n this.setUpFilterWidget();\n });\n this.registerDestroyListener(() => s1.unsubscribe());\n }\n\n if (this._isInlineEditable) {\n const s2 = this._inlineInstances.changes.subscribe((val) => {\n // Listen on the inner inline widget and setup the widget\n this.inlineInstance = val.first && val.first.widget;\n this.fieldValidations.formwidget = val.first;\n this.table.registerFormField(this.binding, new FieldDef(this.inlineInstance));\n this.setUpInlineWidget('inlineInstance');\n });\n this.registerDestroyListener(() => s2.unsubscribe());\n\n if (this._isNewEditableRow) {\n const s3 = this._inlineInstancesNew.changes.subscribe((val) => {\n // Listen on the inner inline widget and setup the widget\n this.inlineInstanceNew = val.first && val.first.widget;\n this.fieldValidations_new.formwidget = val.first;\n this.setUpInlineWidget('inlineInstanceNew');\n });\n this.registerDestroyListener(() => s3.unsubscribe());\n }\n }\n this.registerReadyStateListener(() => {\n this.key = this.field || this.binding;\n });\n super.ngAfterContentInit();\n if ((this as any).table.isdynamictable) {\n (this.table.inlineWidgetTmpl as any)._results.push(this.inlineWidthTempRef);\n }\n }\n\n ngAfterViewInit() {\n // manually listing the table column templateRef as templateRef will not be available prior.\n if (this.filterTemplateRef) {\n this.table.renderDynamicFilterColumn(this.filterTemplateRef);\n }\n }\n\n // Apply default|sync|async|prop validators for inline form control\n applyValidations() {\n if (!this.getFormControl()) {\n return;\n }\n if (this.syncValidators.length > 0) {\n this.fieldValidations.setValidators(this.syncValidators);\n }\n this.fieldValidations.setUpValidators();\n if (this.asyncValidators.length > 0) {\n this.fieldValidations.setAsyncValidators(this.asyncValidators);\n }\n if (this.observeOnFields.length > 0) {\n this.fieldValidations.observeOn(this.observeOnFields, 'columns');\n }\n }\n\n // Remove validators for the inline widget and set form to untouched\n removeValidations() {\n this.table.ngform.markAsUntouched();\n const control = this.getFormControl();\n if (!control) {\n return;\n }\n control.clearValidators();\n control.clearAsyncValidators();\n control.updateValueAndValidity();\n }\n\n // Apply default|sync|async|prop validators for QuickEdit new row form control\n applyNewRowValidations() {\n if (!this._checkNewEditableRowControl()) {\n return;\n }\n if (this.syncValidators.length > 0) {\n this.fieldValidations_new.setValidators(this.syncValidators);\n }\n this.fieldValidations_new.setUpValidators();\n if (this.asyncValidators.length > 0) {\n this.fieldValidations_new.setAsyncValidators(this.asyncValidators);\n }\n if (this.observeOnFields.length > 0) {\n this.fieldValidations_new.observeOn(this.observeOnFields, 'columns');\n }\n }\n\n // Remove validators for the QuickEdit new row widget and set form to untouched\n removeNewRowValidations() {\n this.table.ngform.markAsUntouched();\n if (!this._checkNewEditableRowControl()) {\n return;\n }\n const control = this.getFormControl('_new');\n control.clearValidators();\n control.clearAsyncValidators();\n control.updateValueAndValidity();\n }\n\n addFormControl(suffix?: string) {\n const ctrlName = suffix ? (this.binding + suffix) : this.binding;\n this.table.ngform.addControl(ctrlName, this.table.fb.control(''));\n }\n\n getFormControl(suffix?: string) {\n const ctrlName = suffix ? (this.binding + suffix) : this.binding;\n return this.table.ngform.controls[ctrlName];\n }\n\n private _checkNewEditableRowControl() {\n return this._isNewEditableRow && this.getFormControl('_new');\n }\n\n // Setup the inline edit and filter widget\n setUpControls() {\n if (this._isInlineEditable) {\n if (this.editWidgetType === FormWidgetType.UPLOAD) {\n return;\n }\n this.addFormControl();\n const control = this.getFormControl();\n if (control) {\n const onValueChangeSubscription = control.valueChanges\n .pipe(debounceTime(200))\n .subscribe(value => this.onValueChange(value, 'inlineInstance'));\n this.registerDestroyListener(() => onValueChangeSubscription.unsubscribe());\n }\n\n if (this._isNewEditableRow) {\n this.addFormControl('_new');\n const newControl = this.getFormControl('_new');\n if (newControl) {\n const onNewValueChangeSubscription = newControl.valueChanges\n .pipe(debounceTime(200))\n .subscribe(value => this.onValueChange(value, 'inlineInstanceNew'));\n this.registerDestroyListener(() => onNewValueChangeSubscription.unsubscribe());\n }\n }\n }\n\n if (this._isRowFilter) {\n this.addFormControl('_filter');\n this.filterControl = this.getFormControl('_filter');\n if (this.filterControl) {\n const onFilterValueSubscription = this.filterControl.valueChanges.subscribe(this.onFilterValueChange.bind(this));\n this.registerDestroyListener(() => onFilterValueSubscription.unsubscribe());\n }\n }\n }\n\n // Reset the row filter value\n resetFilter() {\n if (this.filterControl) {\n this.filterControl.setValue('');\n }\n if (this.filterwidget === FormWidgetType.AUTOCOMPLETE) {\n this.filterInstance.query = '';\n this.filterInstance.queryModel = '';\n }\n }\n\n // On field value change, propagate event to parent form\n onFilterValueChange(val) {\n this.table.rowFilter[this.field].value = val;\n }\n\n // Get of the active from control\n get datavalue() {\n return this[this.activeControlType] && this[this.activeControlType].datavalue;\n }\n\n set datavalue(val) {\n const control = this.getFormControl(this.activeControlType === 'inlineInstanceNew' ? '_new' : undefined);\n if (!control) {\n return;\n }\n if (control && this.editWidgetType !== FormWidgetType.UPLOAD) {\n control.setValue(val);\n }\n }\n\n get value() {\n return this.datavalue;\n }\n\n set value(val) {\n this.datavalue = val;\n }\n\n // On field value change, apply cascading filter and set validation message\n onValueChange(val, widget) {\n if (val !== null) {\n applyFilterOnField(this.table.datasource, this.widget, this.table.fieldDefs, val, {\n widget: 'edit-widget-type'\n });\n }\n if (this.table.ngform.touched) {\n this.activeControlType = widget;\n if (widget === 'inlineInstance') {\n this.notifyChanges();\n this.fieldValidations.setCustomValidationMessage();\n } else if (this._isNewEditableRow) {\n this.notifyChanges('_new');\n this.fieldValidations_new.setCustomValidationMessage();\n }\n }\n }\n\n loadFilterData() {\n // If filterdataset is not bound, get the data implicitly\n if (this._isRowFilter && isDataSetWidget(this.filterwidget) && !this.bindfilterdataset) {\n // For live variable, get the data using distinct API\n if (this.table.datasource.execute(DataSource.Operation.SUPPORTS_DISTINCT_API)) {\n // check for related entity columns\n if (this.relatedEntityName) {\n this.widget['is-related'] = true;\n this.widget['lookup-type'] = this.relatedEntityName;\n this.widget['lookup-field'] = last(split(this.field, '.'));\n }\n if (this.filterwidget === FormWidgetType.AUTOCOMPLETE) {\n this.filterInstance.dataoptions = getDistinctFieldProperties(this.table.datasource, this);\n this.filterInstance.datasource = this.table.datasource;\n } else {\n getDistinctValues(this.table.datasource, this.widget, 'filterwidget').then((res: any) => {\n this._filterDataSet = res.data;\n this.setFilterWidgetDataSet();\n });\n }\n } else {\n // For other datasources, get the data from datasource bound to table\n //[Todo-CSP]: watch fn should already be generated from table dataset.bind expr\n this.registerDestroyListener(\n $watch(\n this.table.binddataset,\n this.viewParent,\n {},\n nv => this.widget.filterdataset = nv,\n getWatchIdentifier(this.widgetId, 'filterdataset')\n )\n );\n }\n }\n }\n\n loadInlineWidgetData() {\n // If dataset is not bound, get the data implicitly\n if (isDataSetWidget(this['edit-widget-type']) && !this.binddataset && !this.readonly) {\n const dataSource = this.table.datasource;\n if (this['related-entity-name'] && this['primary-key']) {\n // Fetch the data for the related fields\n this.isDataSetBound = true;\n const bindings = split(this.binding, '.');\n this.showPendingSpinner = true;\n fetchRelatedFieldData(dataSource, this.widget, {\n relatedField: head(bindings),\n datafield: last(bindings),\n widget: 'edit-widget-type'\n });\n } else if (dataSource.execute(DataSource.Operation.SUPPORTS_DISTINCT_API)) {\n getDistinctValuesForField(dataSource, this.widget, {\n widget: 'edit-widget-type'\n });\n }\n }\n }\n\n // On table datasource change, get the data for row filters\n onDataSourceChange() {\n this.loadFilterData();\n if (this.table.editmode === EDIT_MODE.QUICK_EDIT) {\n this.loadInlineWidgetData();\n }\n }\n\n // Set the data on the row filter widget\n setFilterWidgetDataSet() {\n if (this.filterInstance) {\n this.filterInstance.dataset = this._filterDataSet;\n }\n }\n\n // Set the props on the row filter widget\n setUpFilterWidget() {\n this.filterInstance.registerReadyStateListener(() => {\n if (isDataSetWidget(this.filterwidget)) {\n // if binding is department.deptId then field will be deptId\n const field = last(this.binding.split('.'));\n this.filterInstance.dataset = this._filterDataSet;\n this.filterInstance.datafield = this.filterdatafield || field;\n this.filterInstance.displayfield = this.filterdisplayfield || field;\n if (this.filterwidget === FormWidgetType.AUTOCOMPLETE) {\n this.filterInstance.displaylabel = this.filterdisplaylabel || field;\n this.filterInstance.searchkey = this.filtersearchkey || field;\n }\n }\n if (this.filterwidget === FormWidgetType.TIME) {\n this.filterInstance.timepattern = this.appDefaults.timeFormat || 'hh:mm:ss a';\n }\n this.filterInstance.placeholder = this.filterplaceholder || '';\n });\n }\n\n // Notifies all the dependent validation controls incase of any changes\n notifyChanges(quickEdit?) {\n forEach(this.notifyForFields, field => {\n if (quickEdit && this._isNewEditableRow) {\n field.fieldValidations_new.validate();\n } else {\n field.fieldValidations.validate();\n }\n });\n }\n\n // Watches control for dependent validation changes\n observeOn(fields) {\n this.observeOnFields = cloneDeep(fields);\n }\n\n // Sets the default validators inline and quickedit new row using props\n setUpValidators() {\n this.fieldValidations.setUpValidators();\n if (this._checkNewEditableRowControl()) {\n this.fieldValidations_new.setUpValidators();\n }\n }\n\n // Sets the Async validators on the inline and quickedit new row form control\n setAsyncValidators(validators) {\n this.asyncValidators = cloneDeep(validators);\n }\n\n // Sets the default/custom validators on the inline and quickedit new row form control\n setValidators(validators) {\n this.syncValidators = cloneDeep(validators);\n }\n\n boundFn(fn) {\n return fn();\n }\n\n // Shows spinner for async validators based on status\n onStatusChange(status, type) {\n this['showPendingSpinner' + (type === 'inlineInstance' ? '' : 'New')] = (status === 'PENDING');\n }\n\n /* Summary Row Logic start */\n setSummaryRowData(data) {\n const newData = (data instanceof Array) ? data : [data];\n this._invokeSummaryRowData(newData);\n }\n\n private _invokeSummaryRowData(data) {\n forEach(data, (item, index) => {\n const content = item;\n if (content instanceof Promise) {\n content.then(res => {\n this.table.callDataGridMethod('setSummaryRowDef', this.key, res, index, true);\n });\n } else if (content.value && content.value instanceof Promise) {\n const contentData = content;\n content.value.then(res => {\n contentData.value = res;\n this.table.callDataGridMethod('setSummaryRowDef', this.key, contentData, index, true);\n });\n }\n this.table.callDataGridMethod('setSummaryRowDef', this.key, content, index);\n });\n }\n private _getColumnData() {\n return map(this.table.dataset, this.binding);\n }\n\n public aggregate = {\n sum: () => {\n return sum(this._getColumnData());\n },\n average: (precision: number = 2) => {\n return round(mean(this._getColumnData()), precision);\n },\n count: () => {\n return this._getColumnData().length;\n },\n minimum: () => {\n return min(this._getColumnData());\n },\n maximum: () => {\n return max(this._getColumnData());\n },\n percent: (value, precision: number = 2) => {\n return round((sum(this._getColumnData()) / value) * 100, precision);\n }\n };\n /* Summary Row Logic end */\n\n // Set the props on the inline edit widget\n setInlineWidgetProp(widget, prop, nv) {\n if (prop === 'datepattern' && this.editWidgetType === FormWidgetType.TIME) {\n prop = 'timepattern';\n }\n if (this[widget] && isDefined(nv)) {\n this[widget][prop] = nv;\n }\n }\n\n // Initialize the inline edit widget\n setUpInlineWidget(widget) {\n this[widget].registerReadyStateListener(() => {\n if (isDataSetWidget(this['edit-widget-type'])) {\n this[widget].dataset = this.dataset;\n }\n inlineWidgetProps.forEach(key => {\n this.setInlineWidgetProp(widget, key, this[key]);\n });\n this[widget].datasource = this._datasource;\n this[widget].dataoptions = this._dataoptions;\n this.setInlineWidgetProp(widget, 'datepattern', this.editdatepattern);\n });\n }\n\n getStyleDef() {\n return `width: ${this.width || ''}; background-color: ${this.backgroundcolor || ''}; color: ${this.textcolor || ''};`;\n }\n\n populateFieldDef() {\n this.width = this.width === 'px' ? '' : (this.width || '');\n this.field = this.binding;\n this.displayName = this.caption || '';\n this.pcDisplay = this.pcdisplay;\n this.mobileDisplay = this.mobiledisplay;\n this.tabletDisplay = this.tabletdisplay;\n this.textAlignment = this.textalignment;\n this.backgroundColor = this.backgroundcolor;\n this.textColor = this.textcolor;\n this.primaryKey = this['primary-key'];\n this.relatedEntityName = this['related-entity-name'];\n this.style = this.getStyleDef();\n this.class = this['col-class'];\n this.ngclass = this['col-ng-class'];\n this.formatpattern = this.formatpattern === 'toNumber' ? 'numberToString' : this.formatpattern;\n this.searchable = (this.type === 'blob' || this.type === 'clob') ? false : this.searchable;\n this.showinfilter = (this.nativeElement.hasAttribute('showinfilter') && !((this as any).table && (this as any).table.isdynamictable)) ? this.nativeElement.getAttribute('showinfilter') : (this.show);\n this.limit = this.limit ? +this.limit : undefined;\n this.editWidgetType = this['edit-widget-type'] = this['edit-widget-type'] || getEditModeWidget(this);\n this.filterOn = this['filter-on'];\n this.readonly = isDefined(this.getAttr('readonly')) ? this.getAttr('readonly') === 'true' : (this['related-entity-name'] ? !this['primary-key'] : includes(['identity', 'uniqueid', 'sequence'], this.generator));\n this.filterwidget = this.filterwidget || getDataTableFilterWidget(this.type || 'string');\n this.isFilterDataSetBound = !!this.bindfilterdataset;\n this.defaultvalue = getDefaultValue(this.defaultvalue, this.type, this.editWidgetType);\n\n // For date time data types, if date pattern is not specified, set the app format or default format\n if (isDateTimeType(this.type) && this.formatpattern === 'toDate' && !this.datepattern) {\n const defaultFormat = getDisplayDateTimeFormat(this.type);\n if (this.type === DataType.DATE) {\n this.datepattern = this.appDefaults.dateFormat || defaultFormat;\n } else if (this.type === DataType.TIME) {\n this.datepattern = this.appDefaults.timeFormat || defaultFormat;\n } else if (this.type === DataType.TIMESTAMP || this.type === DataType.DATETIME) {\n this.datepattern = this.appDefaults.dateTimeFormat || defaultFormat;\n }\n }\n }\n\n onPropertyChange(key, nv, ov) {\n if (!this._propsInitialized) {\n return;\n }\n switch (key) {\n case 'caption':\n this.displayName = nv || '';\n this.setProperty('displayName', this.displayName);\n // Fix for [WMS-25934]: update the headerConfig list when there is change in display name\n // when column is inside a group then consider the col index and not header index.\n const fieldName = this.group && this.group.name;\n const index: number = fieldName ? parseInt(this.getAttr('index'), 10) : parseInt(this.getAttr('headerIndex'), 10);\n // Register column with header config to create group structure\n setHeaderConfigForTable(this.table.headerConfig, {\n field: this.field,\n displayName: this.displayName\n }, fieldName, index);\n break;\n case 'defaultvalue':\n this.defaultvalue = getDefaultValue(this.defaultvalue, this.type, this.editWidgetType);\n break;\n case 'show':\n this.table.redraw(true);\n this.showinfilter = this.nativeElement.hasAttribute('showinfilter') ? this.nativeElement.getAttribute('showinfilter') : nv;\n break;\n case 'filterdataset':\n this._filterDataSet = nv;\n this.setFilterWidgetDataSet();\n break;\n case 'editdatepattern':\n this.setInlineWidgetProp('inlineInstance', 'datepattern', nv);\n this.setInlineWidgetProp('inlineInstanceNew', 'datepattern', nv);\n break;\n case 'showinfilter':\n this.showinfilter = nv;\n break;\n default:\n if (inlineWidgetProps.includes(key)) {\n this.setInlineWidgetProp('inlineInstance', key, nv);\n this.setInlineWidgetProp('inlineInstanceNew', key, nv);\n }\n break;\n }\n\n super.onPropertyChange(key, nv, ov);\n }\n\n setProperty(property, nv) {\n this[property] = nv;\n switch (property) {\n case 'displayName':\n this.table.callDataGridMethod('setColumnProp', this.field, property, nv);\n break;\n default:\n this.table.redraw(true);\n }\n }\n}\n","import { PROP_ANY, PROP_BOOLEAN, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-table-row',\n new Map(\n [\n ['class', PROP_STRING],\n ['closeothers', {value: true, ...PROP_BOOLEAN}],\n ['content', PROP_STRING],\n ['columnwidth', {value: '50px', ...PROP_STRING}],\n ['collapseicon', PROP_STRING],\n ['expandicon', PROP_STRING],\n ['height', PROP_STRING],\n ['position', {value: '0', ...PROP_STRING}]\n ]\n )\n );\n};\n","import {Directive, Inject, Injector, OnInit, Optional, SkipSelf} from '@angular/core';\n\nimport { BaseComponent, provideAsWidgetRef } from '@wm/components/base';\n\nimport { registerProps } from './table-row.props';\nimport { TableComponent } from '../table.component';\n\nconst WIDGET_CONFIG = {widgetType: 'wm-table-row', hostClass: ''};\n\n@Directive({\n selector: '[wmTableRow]',\n providers: [\n provideAsWidgetRef(TableRowDirective)\n ]\n})\nexport class TableRowDirective extends BaseComponent implements OnInit {\n static initializeProps = registerProps();\n\n config;\n columnwidth;\n closeothers;\n content;\n expandicon;\n collapseicon;\n height;\n position;\n\n constructor(\n inj: Injector,\n @Optional() @SkipSelf() public table: TableComponent, @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any) {\n super(inj, WIDGET_CONFIG, explicitContext);\n }\n\n populateConfig() {\n this.config = {\n closeothers: this.closeothers,\n content: this.content,\n columnwidth: this.columnwidth,\n expandicon: this.expandicon,\n collapseicon: this.collapseicon,\n height: this.height,\n position: this.position\n };\n }\n\n ngOnInit() {\n super.ngOnInit();\n this.populateConfig();\n this.table.registerRow(this.config, this);\n }\n\n onPropertyChange(key: string, nv: any) {\n if (key === 'content' && this.config) {\n this.config.content = this.content;\n }\n }\n}\n","import { PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-table-row-action',\n new Map(\n [\n ['accessroles', PROP_STRING],\n ['action', PROP_STRING],\n ['caption', PROP_STRING],\n ['class ', {value: 'btn-secondary', ...PROP_STRING}],\n ['disabled', {value: false, ...PROP_BOOLEAN}],\n ['display-name', PROP_STRING],\n ['hyperlink', PROP_STRING],\n ['iconclass', PROP_STRING],\n ['key', PROP_STRING],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['tabindex', {value: 0, ...PROP_NUMBER}],\n ['target', PROP_STRING],\n ['title', PROP_STRING],\n ['widget-type', {value: 'button', ...PROP_STRING}]\n ]\n )\n );\n};\n","import { Directive, Inject, Injector, OnInit, Optional, Self } from '@angular/core';\n\nimport { BaseComponent, Context, provideAsWidgetRef } from '@wm/components/base';\n\nimport { registerProps } from './table-row-action.props';\nimport { TableComponent } from '../table.component';\nimport {isUndefined} from \"lodash-es\";\n\nconst WIDGET_CONFIG = {widgetType: 'wm-table-row-action', hostClass: ''};\n\n@Directive({\n selector: '[wmTableRowAction]',\n providers: [\n provideAsWidgetRef(TableRowActionDirective),\n {provide: Context, useFactory: () => { return {} }, multi: true}\n ]\n})\nexport class TableRowActionDirective extends BaseComponent implements OnInit {\n static initializeProps = registerProps();\n\n accessroles;\n action;\n caption;\n class;\n disabled;\n displayName;\n iconclass;\n key;\n show;\n tabindex;\n title;\n buttonDef;\n hyperlink;\n target;\n conditionalclass;\n conditionalstyle;\n\n constructor(\n inj: Injector,\n @Optional() public table: TableComponent,\n @Self() @Inject(Context) contexts: Array<any>,\n @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any\n ) {\n super(inj, WIDGET_CONFIG, explicitContext);\n\n contexts[0].editRow = (evt) => this.table.editRow(evt);\n contexts[0].deleteRow = (evt) => this.table.deleteRow(evt);\n contexts[0].addNewRow = (evt) => this.table.addNewRow(evt);\n }\n\n getTitle() {\n return isUndefined(this.title) ? (this['display-name'] || '') : this.title;\n }\n\n populateAction() {\n this.buttonDef = {\n key: this.key,\n displayName: this['display-name'] || this.caption || '',\n show: this.show,\n class: this.class || '',\n iconclass: this.iconclass || '',\n title: this.getTitle(),\n action: this.action,\n accessroles: this.accessroles,\n disabled: this.disabled,\n tabindex: this.tabindex ? +this.tabindex : undefined,\n widgetType: this['widget-type'] || 'button',\n hyperlink: this.hyperlink,\n target: this.target || '',\n conditionalclass: this.conditionalclass || '',\n conditionalstyle: this.conditionalstyle || {}\n };\n }\n\n ngOnInit() {\n super.ngOnInit();\n this.populateAction();\n this.table.registerRowActions(this.buttonDef);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\n\nimport { TooltipModule } from 'ngx-bootstrap/tooltip';\nimport { BsDropdownModule } from 'ngx-bootstrap/dropdown';\n\nimport { WmComponentsModule } from '@wm/components/base';\nimport { BasicModule } from '@wm/components/basic';\nimport { InputModule } from '@wm/components/input';\nimport { MenuModule } from '@wm/components/navigation/menu';\nimport { ListModule } from '@wm/components/data/list';\nimport { PaginationModule } from '@wm/components/data/pagination';\n\nimport { TableComponent } from './table.component';\nimport { TableCUDDirective } from './table-cud.directive';\nimport { TableFilterSortDirective } from './table-filter.directive';\nimport { TableActionDirective } from './table-action/table-action.directive';\nimport { TableColumnDirective } from './table-column/table-column.directive';\nimport { TableColumnGroupDirective } from './table-column-group/table-column-group.directive';\nimport { TableRowDirective } from './table-row/table-row.directive';\nimport { TableRowActionDirective } from './table-row-action/table-row-action.directive';\n\nconst components = [\n TableComponent,\n TableCUDDirective,\n TableFilterSortDirective,\n TableActionDirective,\n TableColumnDirective,\n TableColumnGroupDirective,\n TableRowDirective,\n TableRowActionDirective\n];\n\n@NgModule({\n imports: [\n BasicModule,\n BsDropdownModule,\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n InputModule,\n ListModule,\n MenuModule,\n PaginationModule,\n TooltipModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class TableModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["registerProps","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