@firestitch/list 9.12.0 → 9.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/firestitch-list.umd.js +2 -1
- package/bundles/firestitch-list.umd.js.map +1 -1
- package/bundles/firestitch-list.umd.min.js +1 -1
- package/bundles/firestitch-list.umd.min.js.map +1 -1
- package/esm2015/app/models/row-action.model.js +3 -2
- package/esm5/app/models/row-action.model.js +3 -2
- package/fesm2015/firestitch-list.js +2 -1
- package/fesm2015/firestitch-list.js.map +1 -1
- package/fesm5/firestitch-list.js +2 -1
- package/fesm5/firestitch-list.js.map +1 -1
- package/package.json +1 -1
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
|
|
13
13
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
14
14
|
and limitations under the License.
|
|
15
|
-
***************************************************************************** */var A=function(t,e){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function P(t,e){function i(){this.constructor=t}A(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var O=function(){return(O=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function D(t,e,i,n){var o,s=arguments.length,r=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(r=(s<3?o(r):s>3?o(e,i,r):o(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r}function k(t,e){return function(i,n){e(i,n,t)}}function F(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function I(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function $(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,o,s=i.call(t),r=[];try{for(;(void 0===e||e-- >0)&&!(n=s.next()).done;)r.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return r}function E(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat($(arguments[e]));return t}var j,T=function(t){function e(e){void 0===e&&(e={});var i=t.call(this)||this;return i.className=[],i.classesArray=[],i.classesString="",i._fromJSON(e),i}return P(e,t),e.prototype.updateClasesArray=function(){this.classesArray=[].concat(this.className,this.align),this.classesString=[].concat(this.className,this.align).join(" ")},e.prototype.mergeAlignByPriority=function(t,e){var i=this.align;void 0===i&&(i=t&&void 0!==t.align?t.align:e&&void 0!==e.align?e.align:"left"),this.align=i},e.prototype.mergeClassByPriority=function(t,e){var i=[];Array.isArray(this.className)?i=i.concat(this.className):w.isString(this.className)&&i.push(this.className),t&&void 0!==t.className?this.mergeAnythingIntoArray(i,t.className):e&&void 0!==e.className&&this.mergeAnythingIntoArray(i,e.className),this.className=i},e.prototype.mergeAnythingIntoArray=function(t,e){w.isString(e)?t.push(e):Array.isArray(e)&&t.push.apply(t,E(e))},D([S.Alias(),F("design:type",Object)],e.prototype,"colspan",void 0),D([S.Alias(),F("design:type",String)],e.prototype,"align",void 0),D([S.Alias(),F("design:type",Object)],e.prototype,"className",void 0),e}(S.Model);(j=t.SortingDirection||(t.SortingDirection={})).asc="asc",j.desc="desc";var L,M=["title","sortable","align","class"],B=function(i){function n(t,e){void 0===t&&(t={}),void 0===e&&(e=!1);var n=i.call(this)||this;return n.headerConfigs=new T,n.groupCellConfigs=new T,n.cellConfigs=new T,n.footerConfigs=new T,n.headerColspanned=!1,n.groupCellColspanned=!1,n.cellColspanned=!1,n.footerColspanned=!1,n._ordered=!1,n._fromJSON(t),n.colStyles=new T(t),n.mergeWithColumnDefaults(e),n}return P(n,i),Object.defineProperty(n.prototype,"direction",{get:function(){return this.sortingDirection===t.SortingDirection.asc?"asc":"desc"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fullNameDirection",{get:function(){return this.sortingDirection===t.SortingDirection.asc?"Ascending":"Descending"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"ordered",{get:function(){return this._ordered},set:function(e){this._ordered=e,e&&!this.sortingDirection&&(this.sortingDirection=t.SortingDirection.asc)},enumerable:!0,configurable:!0}),n.prototype._fromJSON=function(t){i.prototype._fromJSON.call(this,t),this.sortableDefault&&(this.sortable=!0)},n.prototype.mergeWithColumnDefaults=function(t){var e=this;w.isObject(t)||(t={}),M.forEach((function(i){switch(i){case"title":e.title=e.title||t.title;break;case"sortable":w.isBoolean(t.sortable)&&void 0===e.sortable&&(e.sortable=t.sortable);break;case"class":e.headerConfigs.mergeClassByPriority(e.colStyles,t.header),e.groupCellConfigs.mergeClassByPriority(e.colStyles,t.cell),e.cellConfigs.mergeClassByPriority(e.colStyles,t.cell),e.footerConfigs.mergeClassByPriority(e.colStyles,t.footer);break;case"align":e.headerConfigs.mergeAlignByPriority(e.colStyles,t.header),e.groupCellConfigs.mergeAlignByPriority(e.colStyles,t.cell),e.cellConfigs.mergeAlignByPriority(e.colStyles,t.cell),e.footerConfigs.mergeAlignByPriority(e.colStyles,t.footer)}})),this.headerConfigs.updateClasesArray(),this.groupCellConfigs.updateClasesArray(),this.cellConfigs.updateClasesArray(),this.footerConfigs.updateClasesArray()},n.prototype.changeDirection=function(){this.sortingDirection===t.SortingDirection.asc?this.sortingDirection=t.SortingDirection.desc:this.sortingDirection=t.SortingDirection.asc},D([S.Alias(),F("design:type",String)],n.prototype,"title",void 0),D([S.Alias(),F("design:type",String)],n.prototype,"name",void 0),D([S.Alias(),F("design:type",Boolean)],n.prototype,"show",void 0),D([S.Alias(),F("design:type",Boolean)],n.prototype,"customize",void 0),D([S.Alias(),F("design:type",String)],n.prototype,"width",void 0),D([S.Alias(),F("design:type",Boolean)],n.prototype,"sortable",void 0),D([S.Alias(),F("design:type",Boolean)],n.prototype,"sortableDefault",void 0),D([S.Alias(),F("design:type",e.TemplateRef)],n.prototype,"headerTemplate",void 0),D([S.Alias(),F("design:type",e.TemplateRef)],n.prototype,"groupCellTemplate",void 0),D([S.Alias(),F("design:type",e.TemplateRef)],n.prototype,"cellTemplate",void 0),D([S.Alias(),F("design:type",e.TemplateRef)],n.prototype,"footerTemplate",void 0),D([S.Alias(),F("design:type",e.TemplateRef)],n.prototype,"expandTrigger",void 0),D([S.Alias(),F("design:type",e.TemplateRef)],n.prototype,"superTriger",void 0),D([S.Alias("headerConfigs",T),F("design:type",T)],n.prototype,"headerConfigs",void 0),D([S.Alias("groupCellConfigs",T),F("design:type",T)],n.prototype,"groupCellConfigs",void 0),D([S.Alias("cellConfigs",T),F("design:type",T)],n.prototype,"cellConfigs",void 0),D([S.Alias("footerConfigs",T),F("design:type",T)],n.prototype,"footerConfigs",void 0),D([S.Alias("direction"),F("design:type",String)],n.prototype,"sortingDirection",void 0),n}(S.Model);(L=t.ActionType||(t.ActionType={})).Basic="basic",L.Raised="raised",L.Icon="icon",L.Fab="fab",L.MiniFab="mini-fab";var N,U=function(e){function i(t){void 0===t&&(t={});var i=e.call(this)||this;return i.label="",i.classArray=[],i.isShown=!0,i._isGroup=!1,i._fromJSON(t),Array.isArray(i.rowActions)&&(i._isGroup=!0),i}return P(i,e),Object.defineProperty(i.prototype,"isGroup",{get:function(){return this._isGroup},enumerable:!0,configurable:!0}),i.prototype._fromJSON=function(i){var n=this;e.prototype._fromJSON.call(this,i),void 0===i.type&&(this.type=t.ActionType.Basic),void 0===this.menu&&(this.menu=!0);var o=i.click;this.click=function(t,e,i,s){return void 0===s&&(s=null),n.clickEvent(t,e,i,s,o)},this._linkFn=i.link,i.file&&(i.file.select&&(this.fileUploadFn=function(t,e,n){i.file.select(t,e,n)}),this.fileUploadErrorFn=i.file.error,this.fileMultiple=i.file.multiple),"function"==typeof i.label?(this._labelFn=i.label,this.label=""):this.label=i.label,this.className&&(this.classArray=this.className.split(" ").reduce((function(t,e){return t.push(e),t}),[]))},i.prototype.checkShowStatus=function(t,e){this.isGroup?(this.rowActions.forEach((function(i){i.checkShowStatus(t,e)})),this.isShown=this.rowActions.some((function(t){return t.isShown}))):this.show&&(this.isShown=this.show(t,e))},i.prototype.updateLink=function(t){this.isShown&&(this.isGroup?this.rowActions.forEach((function(e){e.updateLink(t)})):this._linkFn&&(this.routerLink=this._linkFn(t),this.routerLink&&!this.routerLink.target&&(this.routerLink.target=null)))},i.prototype.updateLabel=function(t){this.isShown&&(this.isGroup?this.rowActions.forEach((function(e){e.updateLabel(t)})):this._labelFn&&(this.label=this._labelFn(t)))},i.prototype.clickEvent=function(t,e,i,n,o){if(e.stopPropagation(),n&&n.closeMenu(),o)return o(t,e,i)},D([S.Alias(),F("design:type",String)],i.prototype,"icon",void 0),D([S.Alias(),F("design:type",Boolean)],i.prototype,"menu",void 0),D([S.Alias(),F("design:type",Object)],i.prototype,"remove",void 0),D([S.Alias(),F("design:type",String)],i.prototype,"className",void 0),D([S.Alias(),F("design:type",String)],i.prototype,"type",void 0),D([S.Alias(),F("design:type",Function)],i.prototype,"show",void 0),D([S.Alias(),F("design:type",Boolean)],i.prototype,"restore",void 0),D([S.Alias("rowActions",i),F("design:type",Array)],i.prototype,"rowActions",void 0),i}(S.Model),q=function(){function t(){this.visibleColumns=[],this._theadClass="",this._isConfigured=!1,this._loadFnConfigured=!1,this._changeFnConfigured=!1,this._columnsFetched=!1,this._hasHeader=!1,this._hasFooter=!1,this._columns=[],this._destroy$=new b.Subject}return Object.defineProperty(t.prototype,"columns",{get:function(){return this._columns.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnsForDialog",{get:function(){var t=this,e=!!this._customizeFieldTitleFn,i=!!this._customizeFieldDisabledFn,n=!!this._columnTooltipFn;return this._columns.filter((function(t){return t.customize&&!!t.name})).map((function(o){var s=e?t._customizeFieldTitleFn(o.name,o.title):o.name,r=!!i&&t._customizeFieldDisabledFn(o.name),l=n?t._columnTooltipFn(o.name,o.show,r):void 0;return{template:o.headerTemplate,name:o.name,show:o.show,title:s,disabled:r,tooltip:l}}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnsFetched",{get:function(){return this._columnsFetched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasHeader",{get:function(){return this._hasHeader},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasFooter",{get:function(){return this._hasFooter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"theadClass",{get:function(){return this._theadClass},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"configured",{get:function(){return this._isConfigured},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"loadFnConfigured",{get:function(){return this._loadFnConfigured},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"changeFnConfigured",{get:function(){return this._changeFnConfigured},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"changeFn",{get:function(){return this._changeFn},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleColumnsNames",{get:function(){return this.visibleColumns.map((function(t){return t.name})).filter((function(t){return!!t}))},enumerable:!0,configurable:!0}),t.prototype.setDefaults=function(t){this._defaultConfigs=t},t.prototype.initConfig=function(t){t&&(t.load&&(this._loadFn=t.load,this._loadFnConfigured=!0),t.change&&(this._changeFn=t.change,this._changeFnConfigured=!0),t.title&&(this._customizeFieldTitleFn=t.title),t.disabled&&(this._customizeFieldDisabledFn=t.disabled),t.tooltip&&(this._columnTooltipFn=t.tooltip),this._isConfigured=!0)},t.prototype.initializeColumns=function(t){var e=this;this._columns=[],t.forEach((function(t){var i=new B(t,e._defaultConfigs);(i.headerTemplate||i.title)&&(e._hasHeader=!0),i.footerTemplate&&(e._hasFooter=!0),e._columns.push(i)})),this._theadClass=this.hasHeader?"has-header":"",this._updateColspans("headerConfigs","headerColspanned"),this._updateColspans("groupCellConfigs","groupCellColspanned"),this._updateColspans("cellConfigs","cellColspanned"),this._updateColspans("footerConfigs","footerColspanned"),this.updateVisibleColumns()},t.prototype.loadRemoteColumnConfigs=function(){var t=this;return this._loadFn().pipe(v.takeUntil(this._destroy$),v.tap((function(e){t._columnsFetched=!0,t.updateVisibilityForCols(e)})))},t.prototype.updateVisibleColumns=function(){this.visibleColumns=this._columns.filter((function(t){return t.show}))||[]},t.prototype.updateVisibilityForCols=function(t){var e=this;t.forEach((function(t){var i=e._columns.find((function(e){return e.name===t.name}));i&&(i.show=t.show)})),this.updateVisibleColumns()},t.prototype.destroy=function(){this._destroy$.next(),this._destroy$.complete(),this._columns=void 0,this.visibleColumns=void 0,this._defaultConfigs=void 0,this._loadFn=void 0,this._changeFn=void 0},t.prototype._updateColspans=function(t,e){var i=this;this._columns.forEach((function(n,o){if(void 0!==n[t].colspan){var s=o+ +n[t].colspan;if(!w.isNumber(s))return;i._columns[o][e]=!1;for(var r=o+1;r<s;r++)i._columns[r]&&(i._columns[r][e]=!0)}}))},t}();!function(t){t[t.Default=0]="Default",t[t.LimitChanged=1]="LimitChanged"}(N||(N={}));var V,G,z=function(){function t(){this._actions=[],this._destroy$=new b.Subject}return Object.defineProperty(t.prototype,"destroy$",{get:function(){return this._destroy$.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"actions",{get:function(){return this._actions},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasActions",{get:function(){return this._actions.length>0},enumerable:!0,configurable:!0}),t.prototype.setFilterRef=function(t){this._filterRef=t},t.prototype.setActions=function(t){this.clearActions(),this._actions=t,this._reorderAction&&this._actions.unshift(this._reorderAction)},t.prototype.addReorderAction=function(t){var e=this,i=t.click;this._actions.unshift(t),t.click=function(){e._filterRef.updateActions([e._doneAction]),e._filterRef.hideKeywordField(),e._filterRef.hideFiltersBtn(),i(null)},this._reorderAction=t},t.prototype.addReorderDoneAction=function(t){var e=this;this._doneAction=t;var i=t.click;this._doneAction.click=function(){e._filterRef.updateActions(e._actions),e._filterRef.showKeywordField(),e._filterRef.showFiltersBtn(),i(null)}},t.prototype.clearActions=function(){this._actions=[],this._destroy$.next()},t.prototype.updateDisabledState=function(){this._filterRef.updateDisabledState()},t}();(V=t.FsListState||(t.FsListState={}))[V.Idle=0]="Idle",V[V.Load=1]="Load",V[V.Reload=2]="Reload",V[V.Filter=3]="Filter",V[V.Sort=4]="Sort",V[V.PageChange=5]="PageChange",V[V.LoadMore=6]="LoadMore",(G=t.RowType||(t.RowType={}))[G.Simple=0]="Simple",G[G.Group=1]="Group",G[G.Child=2]="Child";var H,W=function(){function e(e,i){void 0===e&&(e={}),void 0===i&&(i=t.RowType.Simple),this.readyToSwap=!0,this._data={},this._data=e,this._rowType=i}return Object.defineProperty(e.prototype,"data",{get:function(){return this._data},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._rowType},enumerable:!0,configurable:!0}),e.prototype.getReorderData=function(){return{type:this._rowType,data:this.data,parent:null}},e}(),Q=function(e){function i(i,n){void 0===i&&(i={}),void 0===n&&(n=!1);var o=e.call(this,i,t.RowType.Group)||this;return o.children=[],o._expanded=new b.BehaviorSubject(!1),n&&o._expanded.next(n),o}return P(i,e),Object.defineProperty(i.prototype,"isGroup",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"expanded",{get:function(){return this._expanded.getValue()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"expanded$",{get:function(){return this._expanded.asObservable()},enumerable:!0,configurable:!0}),i.prototype.updateChildrenIndexes=function(){this.children.forEach((function(t,e){t.index=e}))},i.prototype.updateChildrenVisibility=function(){var t=this;this.children.forEach((function(e){e.visible=t.expanded}))},i.prototype.toggleRowExpandStatus=function(){this._expanded.next(!this.expanded),this.updateChildrenVisibility()},i.prototype.destroy=function(){this.children.forEach((function(t){return t.destroy()})),this._expanded.complete()},i}(W),J=function(e){function i(i,n){void 0===i&&(i={}),void 0===n&&(n=null);var o=e.call(this,i,t.RowType.Child)||this;return o.visible=!0,o._parent=n,o.parent&&(o.visible=o._parent.expanded,o.index=o.parent.children.length),o}return P(i,e),Object.defineProperty(i.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isChild",{get:function(){return!0},enumerable:!0,configurable:!0}),i.prototype.getReorderData=function(){return{type:this._rowType,data:this.data,parent:this.parent.getReorderData()}},i.prototype.destroy=function(){},i}(W),K=function(e){function i(i){return void 0===i&&(i={}),e.call(this,i,t.RowType.Simple)||this}return P(i,e),i.prototype.destroy=function(){},i}(W),Y=function(){function e(e,i,n){void 0===e&&(e={}),void 0===i&&(i=t.RowType.Simple);var o=void 0===n?{}:n,s=o.parent,r=o.initialExpand;switch(i){case t.RowType.Simple:this._row=new K(e);break;case t.RowType.Group:this._row=new Q(e,r);break;case t.RowType.Child:this._row=new J(e,s)}}return Object.defineProperty(e.prototype,"index",{get:function(){return this._row.index},set:function(t){this._row.index=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readyToSwap",{get:function(){return this._row.readyToSwap},set:function(t){this._row.readyToSwap=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._row.visible},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._row.data},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._row.type},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isGroup",{get:function(){return this._row instanceof Q},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isChild",{get:function(){return this._row instanceof J},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._row.parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._row.children},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expanded",{get:function(){return this._row.expanded},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expanded$",{get:function(){return this._row.expanded$},enumerable:!0,configurable:!0}),e.prototype.updateChildrenIndexes=function(){this._row.updateChildrenIndexes()},e.prototype.toggleRowExpandStatus=function(){this._row.toggleRowExpandStatus()},e.prototype.getReorderData=function(){return this._row.getReorderData()},e.prototype.destroy=function(){this._row.destroy()},e}(),X=function(){function e(){this._visibleRows$=new b.BehaviorSubject([]),this._rowsRemoved$=new b.Subject,this._remoteRowsChange$=new b.Subject,this._store=new Map,this._rowsStack=[],this._initialExpand=!0,this._groupEnabled=!1,this._hasData=!1,this._destroy$=new b.Subject}return Object.defineProperty(e.prototype,"visibleRows$",{get:function(){return this._visibleRows$},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visibleRows",{get:function(){return this._visibleRows$.getValue()},set:function(t){this._visibleRows$.next(t),this._hasData=this.visibleRows.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visibleRowsData",{get:function(){return this.visibleRows.map((function(t){return t.data}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rowsStack",{get:function(){return this._rowsStack.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"groupEnabled",{get:function(){return this._groupEnabled},set:function(t){this._groupEnabled=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"remoteRowsChange$",{get:function(){return this._remoteRowsChange$.pipe(v.takeUntil(this._destroy$))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rowsRemoved$",{get:function(){return this._rowsRemoved$.pipe(v.takeUntil(this._destroy$))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasData",{get:function(){return this._hasData},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"operation",{get:function(){return this._operation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visibleRowsCount",{get:function(){return this.visibleRows.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasGroups",{get:function(){return this._compareByFn&&this._groupByFn},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"reorderData",{get:function(){return this._rowsStack.map((function(t){return t.getReorderData()}))},enumerable:!0,configurable:!0}),e.prototype.setGroupConfig=function(t){var e;t&&(this._groupByFn=t.groupBy,this._compareByFn=t.compareBy,this._initialExpand=null==(e=t.initialExpand)||e,this._groupEnabled=void 0===t.enabled||t.enabled)},e.prototype.setAdditionalConfigs=function(t){this._infinityScrollEnabled=t.scrollable,this._loadMoreEnabled=t.loadMoreEnabled},e.prototype.setRowsFromResponse=function(e){if(this._infinityScrollEnabled){switch(this._operation){case t.FsListState.Filter:case t.FsListState.Reload:case t.FsListState.Sort:this._updateRowsStack(e);break;default:this._extendRowsStack(e)}this._remoteRowsChange$.next()}else this._operation===t.FsListState.LoadMore||this._operation===t.FsListState.PageChange&&this._loadMoreEnabled?this._extendRowsStack(e):this._updateRowsStack(e);this._operation=t.FsListState.Idle,this._updateVisibleRows()},e.prototype.setOperation=function(t){this._operation=t},e.prototype.clearRows=function(){this.visibleRows=[]},e.prototype.replaceData=function(e,i){var n=this._rowsStack.findIndex((function(t){return i(t.data,e)}));return n>-1&&(this._rowsStack[n]=new Y(e,t.RowType.Simple,{initialExpand:this._initialExpand}),this._updateVisibleRows(),!0)},e.prototype.updateData=function(t,e){var i=this;if(Array.isArray(t)){var n=!1;return t.forEach((function(t){i.updateRow(t,e)&&(n=!0)})),this._updateVisibleRows(),n}var o=this.updateRow(t,e);return this._updateVisibleRows(),o},e.prototype.removeData=function(t){var e=this,i=[],n=function(t,e){return t===e};return Array.isArray(t)?t.forEach((function(t){i.push.apply(i,E(e.removeRow(t,n)))})):w.isFunction(t)?i.push.apply(i,E(this.removeRow(null,t))):w.isObject(t)&&i.push.apply(i,E(this.removeRow(t,n))),i.length>0&&(this._updateVisibleRows(),this._rowsRemoved$.next(i)),!!i.length},e.prototype.swapRows=function(t,e){var i,n=this._rowsStack,o=n.indexOf(t),s=n.indexOf(e);i=n[o],n[o]=n[s],n[s]=i,this._rowsStack=E(n)},e.prototype.destroy=function(){this._destroyRowsStack(),this._store.clear(),this._destroy$.next(),this._destroy$.complete()},e.prototype.toggleRowGroup=function(t){this.visibleRows.find((function(e){return e.data===t})).toggleRowExpandStatus(),this._updateVisibleRows()},e.prototype._updateRowsStack=function(e){var i=this;this._destroyRowsStack(),this.groupEnabled?(this._store.clear(),this._rowsStack=E(this.groupRowsBy(e))):(e=e.map((function(e){return new Y(e,t.RowType.Simple,{initialExpand:i._initialExpand})})),this._rowsStack=E(e))},e.prototype._extendRowsStack=function(e){var i=this;this.groupEnabled?this._rowsStack=E(this.groupRowsBy(e)):(e=e.map((function(e){return new Y(e,t.RowType.Simple,{initialExpand:i._initialExpand})})),this._rowsStack=E(this._rowsStack,e))},e.prototype._destroyRowsStack=function(){this._rowsStack.forEach((function(t){return t.destroy()}))},e.prototype._updateVisibleRows=function(){this.visibleRows=this._rowsStack.filter((function(t){return!t.isChild||t.visible}))},e.prototype.updateRow=function(t,e){void 0===e&&(e=function(t,e){return t===e});var i=this._rowsStack.findIndex((function(i){return e(i.data,t)}));if(-1!==i){var n=this._rowsStack[i],o=Object.assign({},n.data,t);return this._rowsStack[i]=new Y(o,n.type,{parent:n.parent,initialExpand:n.expanded}),!0}return!1},e.prototype.removeRow=function(t,e){var i=this._rowsStack,n=[];return i.forEach((function(o,s){if(e(o.data,t)){var r=i.splice(s,1);n.push(r)}})),n},e.prototype.groupRowsBy=function(t){var e=this;if(!this._groupByFn||!this._compareByFn)return t;var i=0;return t.forEach((function(t){var n=e._groupByFn(t),o=e._compareByFn(n);if(e._store.has(o)){s=e._store.get(o),r=new J(t,s);s.children.push(r)}else{var s;(s=new Q(n,e._initialExpand)).index=i,i++;var r=new J(t,s);e._store.set(o,s),s.children.push(r)}})),Array.from(this._store.values()).reduce((function(t,e){return e.isGroup?t.push.apply(t,E([e],e.children)):t.push(e),t}),[])},e}();(H=t.PaginationStrategy||(t.PaginationStrategy={})).Page="page",H.Offset="offset",H.None="none";var Z,tt=function(e){function i(){var i=e.call(this)||this;return i.limit=25,i.manual=!1,i.page=1,i.offset=0,i.displayed=0,i._pages$=new b.BehaviorSubject(0),i._strategy=t.PaginationStrategy.None,i._removedRows=0,i._pageChanged$=new b.Subject,i._pageReset$=new b.Subject,i._onDestroy$=new b.Subject,i._loadMoreEnabled=!1,i._infinityScrollEnabled=!1,i._loadMoreText="Load More",i._limits=[10,25,50,100,200],i}return P(i,e),Object.defineProperty(i.prototype,"pages",{get:function(){return this._pages$.getValue()},set:function(t){this._pages$.next(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pages$",{get:function(){return this._pages$.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pageChanged$",{get:function(){return this._pageChanged$.pipe(v.takeUntil(this._onDestroy$))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pageReset$",{get:function(){return this._pageReset$.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"enabled",{get:function(){return!this.hasNoneStrategy},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"limits",{get:function(){return this._limits},set:function(t){this._limits=t,this.limits.length>0&&-1===this.limits.indexOf(this.limit)?this.limit=this.limits[0]:0===this.limits.length&&(this.limit=this.records)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"query",{get:function(){switch(this.strategy){case t.PaginationStrategy.Page:return this.queryPageStrategy;case t.PaginationStrategy.Offset:return this.queryOffsetStrategy}return{}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"queryPageStrategy",{get:function(){return this.hasNoneStrategy?{}:{page:this.page||1,limit:this.limit||10}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"queryOffsetStrategy",{get:function(){var t=this.page-1||0,e=this.limit||5;return{offset:t*e,limit:e}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"loadDeletedOffsetQuery",{get:function(){var t=this.limit*this.page,e=Math.min(this.records,t);return{offset:Math.max(0,e-this._removedRows),limit:this._removedRows}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"initialized",{get:function(){return!!this.pages},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strategy",{get:function(){return this._strategy},set:function(e){this._strategy=void 0===e?t.PaginationStrategy.Page:e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hasPageStrategy",{get:function(){return this.strategy===t.PaginationStrategy.Page},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hasOffsetStrategy",{get:function(){return this.strategy===t.PaginationStrategy.Offset},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hasNoneStrategy",{get:function(){return this.strategy===t.PaginationStrategy.None},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hasPrevPage",{get:function(){switch(this.strategy){case t.PaginationStrategy.Page:return this._hasPrevPagePageStrategy;case t.PaginationStrategy.Offset:return this._hasPrevPageOffsetStrategy}return!1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hasNextPage",{get:function(){switch(this.strategy){case t.PaginationStrategy.Page:return this._hasNextPagePageStrategy;case t.PaginationStrategy.Offset:return this._hasNextPageOffsetStrategy}return!1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"loadMoreEnabled",{get:function(){return this._loadMoreEnabled},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"loadMoreText",{get:function(){return this._loadMoreText},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"infinityScrollEnabled",{get:function(){return this._infinityScrollEnabled},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"statusLabel",{get:function(){var t=(this.page-1)*this.limit;return t+1+"-"+Math.min(this.records,t+this.limit)},enumerable:!0,configurable:!0}),i.prototype._fromJSON=function(t){e.prototype._fromJSON.call(this,t),t.limit||(this.limit=25)},i.prototype.initWithConfig=function(t,e,i){void 0===i&&(i=!1),t&&(t.limits&&(this.limits=t.limits),t.limit&&(this.limit=t.limit),e&&this.setLoadMore(e),this._infinityScrollEnabled=i,this.strategy=t.strategy)},Object.defineProperty(i.prototype,"_hasPrevPagePageStrategy",{get:function(){return this.page>1&&this.pages>1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_hasPrevPageOffsetStrategy",{get:function(){return this.offset>=this.limit&&this.records>1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_hasNextPagePageStrategy",{get:function(){return this.page<this.pages&&this.pages>1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_hasNextPageOffsetStrategy",{get:function(){return this.offset+this.limit<this.records&&this.records>1},enumerable:!0,configurable:!0}),i.prototype.updatePaging=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=!1),i?(this.records=t.records,this.records<this.displayed&&(this.displayed=this.records),this._removedRows=0):(this._fromJSON(t),this.displayed=e),this.updateTotalPages()},i.prototype.setLoadMore=function(t){this._loadMoreEnabled=!!t,this._loadMoreEnabled&&w.isObject(t)&&t.label&&(this._loadMoreText=t.label)},i.prototype.getVisibleRecords=function(){return this.displayed},i.prototype.setLimit=function(t){this.limit=t,this.resetPaging(),this._pageChanged$.next({type:N.LimitChanged,payload:t})},i.prototype.isActive=function(t){return t===this.page},i.prototype.goToPage=function(t){t>=1&&this.page!==t&&(this.page=t,this.updateOffset(),this._pageChanged$.next({type:N.Default,payload:t}))},i.prototype.resetPaging=function(){this.page=1,this.offset=0},i.prototype.goNext=function(){this.hasNextPage&&(this.page++,this.updateOffset(),this._pageChanged$.next({type:N.Default,payload:this.page}))},i.prototype.goFirst=function(){this.page>1&&(this.page=1,this.updateOffset(),this._pageChanged$.next({type:N.Default,payload:this.page}))},i.prototype.goPrev=function(){this.page>1&&(this.page--,this.updateOffset(),this._pageChanged$.next({type:N.Default,payload:this.page}))},i.prototype.goLast=function(){this.page<this.pages&&(this.page=this.pages,this.updateOffset(),this._pageChanged$.next({type:N.Default,payload:this.page}))},i.prototype.removeRows=function(t){this._removedRows+=t},i.prototype.updatePagination=function(){this.updateTotalPages()},i.prototype.destroy=function(){this._onDestroy$.next(),this._onDestroy$.complete()},i.prototype.updateOffset=function(){this.offset=this.limit*(this.page-1)},i.prototype.updateTotalPages=function(){this.pages=Math.ceil(this.records/this.limit)},D([S.Alias(),F("design:type",Object)],i.prototype,"limit",void 0),D([S.Alias(),F("design:type",Number)],i.prototype,"records",void 0),D([S.Alias(),F("design:type",Object)],i.prototype,"manual",void 0),D([S.Alias("pages"),F("design:type",Number),F("design:paramtypes",[Number])],i.prototype,"pages",null),i}(S.Model);(Z=t.SelectionChangeType||(t.SelectionChangeType={})).AllVisibleSelectionChange="AllVisibleSelectionChange",Z.RowSelectionChange="RowSelectionChange",Z.SelectedAll="SelectedAll";var et,it,nt=function(){function e(t,e,i){void 0===t&&(t={}),this._trackBy=e,this._selectionDialog=i,this.actions=[],this.selectAll=!0,this.selectedRows=new Map,this.selectedGroups=new Map,this._selectionDialogRef=null,this._selectionChange=new b.Subject,this._selectedAllVisible=!1,this._selectedAll=!1,this._selectedRecords=0,this._visibleRecordsCount=0,this._totalRecordsCount=0,this._destroy$=new b.Subject,this.actions=t.actions?E(t.actions):[],this.actionSelectedFn=t.actionSelected,this.allSelectedFn=t.allSelected,this.cancelledFn=t.cancelled,this.selectionChangedFn=t.selectionChanged,this.selectAll=t.selectAll}return Object.defineProperty(e.prototype,"selectedAll",{get:function(){return this._selectedAll},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectionChange$",{get:function(){return this._selectionChange.pipe(v.takeUntil(this._destroy$))},enumerable:!0,configurable:!0}),e.prototype.setRowsCallback=function(t){this._getRows=t},e.prototype.rowSelectionChange=function(t,e){t&&(e?(this._selectRow(t),this.openDialog()):(this._selectedAll&&(this._selectedAll=!1),this._deselectRow(t))),this._updateSelectionRefSelected(),this._updateSelectedVisibleStatus()},e.prototype.selectAllVisibleRows=function(t){var e=this;this.openDialog(),this._selectedAllVisible=t,this._selectedRecords=0;var i=this._getRows();t?i.forEach((function(t){var i=e._rowIdentifier(t.data);t.isGroup?e._setNumberOfSelectedChildrenInGroup(i,t.children.length):(e.selectedRows.set(i,t.data),e._selectedRecords++)})):(i.forEach((function(t){var i=e._rowIdentifier(t.data);t.isGroup?e._setNumberOfSelectedChildrenInGroup(i,0):e.selectedRows.delete(i)})),this._selectedAll=!1,this._selectedRecords=0),this._visibleRowsSelectionChanged(),this._updateSelectionRefSelected()},e.prototype.isRowSelected=function(t){return this.selectedRows.has(this._rowIdentifier(t))||this.selectedGroups.has(this._rowIdentifier(t))||this.selectedAll},e.prototype.isGroupSelected=function(t){var e,i=this._rowIdentifier(t.data);return this.selectedGroups.has(i)&&(null===(e=t.children)||void 0===e?void 0:e.length)>this.selectedGroups.get(i)?"indeterminate":this.selectedGroups.has(i)||this.selectedAll},e.prototype.openDialog=function(){this._selectionDialogRef||(this._selectionDialogRef=this._selectionDialog.open({selectAll:this.selectAll,allCount:this._totalRecordsCount,actions:E(this.actions)}),this._subscribeToSelection())},e.prototype.updateVisibleRecordsCount=function(t){this._visibleRecordsCount=t},e.prototype.updateTotalRecordsCount=function(t){this._totalRecordsCount=t,this._selectionDialogRef&&this._selectionDialogRef.updateAllCount(this._totalRecordsCount)},e.prototype.pageChanged=function(t){var e=this;this._selectedAll?t||this._resetSelection():(this._selectedRecords=0,this._getRows().map((function(t){return t.data})).forEach((function(t){var i=e._rowIdentifier(t);e.selectedRows.has(i)&&e._selectedRecords++})),this._updateSelectionRefSelected(),this._updateSelectedVisibleStatus())},e.prototype.removeRow=function(t){this.selectedRows.delete(this._rowIdentifier(t)),this._updateSelectionRefSelected(),this._updateSelectionRefSelectedAll()},e.prototype.selectedRowsIntersection=function(t){var e=this,i=t.map((function(t){return e._rowIdentifier(t)}));this.selectedRows.forEach((function(t,n){-1===i.indexOf(n)&&e.removeRow(t)}))},e.prototype.updateConfig=function(t){var e=t.actions,i=t.actionSelected,n=t.allSelected,o=t.cancelled,s=t.selectionChanged,r=t.selectAll;this.actions=e?E(e):this.actions,this.actionSelectedFn=null!=i?i:this.actionSelectedFn,this.allSelectedFn=null!=n?n:this.allSelectedFn,this.cancelledFn=null!=o?o:this.cancelledFn,this.selectionChangedFn=null!=s?s:this.selectionChangedFn,this.selectAll=null!=r?r:this.selectAll},e.prototype.resetActions=function(){var t;null===(t=this._selectionDialogRef)||void 0===t||t.resetActions()},e.prototype.closeSelectionDialog=function(){var t;null===(t=this._selectionDialogRef)||void 0===t||t.close()},e.prototype.destroy=function(){this._resetSelection(),this.actions=null,this.actionSelectedFn=null,this.allSelectedFn=null,this.cancelledFn=null,this.closeSelectionDialog(),this._selectionDialogRef=null,this._destroy$.next(),this._destroy$.complete(),this._selectionChange.complete()},e.prototype._subscribeToSelection=function(){var t=this;this._selectionDialogRef.actionSelected$().pipe(v.takeUntil(this._destroy$)).subscribe((function(e){t._onActionActions(e)})),this._selectionDialogRef.cancelled$().pipe(v.takeUntil(this._destroy$)).subscribe((function(){return t._onCancelActions()})),this._selectionDialogRef.allSelected$().pipe(v.takeUntil(this._destroy$)).subscribe((function(e){t._onSelectAllActions(e)}))},e.prototype._onActionActions=function(t){var e=this;if(this.actionSelectedFn){var i=this.actionSelectedFn(O({selected:Array.from(this.selectedRows.values()).map((function(t){return O({},t)}))},t));i instanceof b.Observable&&i.pipe(v.take(1),v.takeUntil(this._destroy$)).subscribe({next:function(){e.closeSelectionDialog(),e.selectAllVisibleRows(!1)},error:function(){}})}},e.prototype._onCancelActions=function(){this.selectAllVisibleRows(!1),this.cancelledFn&&this.cancelledFn(),this._selectionDialogRef=null},e.prototype._onSelectAllActions=function(e){this._selectedAll=e,this.selectAllVisibleRows(e),this._selectionDialogRef.updateSelected(this._totalRecordsCount),this._selectionChangeEvent(t.SelectionChangeType.SelectedAll,this._selectedAll),this._updateSelectionRefSelectedAll(),this.allSelectedFn&&this.allSelectedFn(e)},e.prototype._selectionChangedActions=function(){var t=this;if(0!==this.selectedRows.size){if(this.selectionChangedFn){var e=this.selectionChangedFn(Array.from(this.selectedRows.values()),this.selectedAll,this._selectionDialogRef);e&&(e instanceof b.Observable?e.pipe(v.take(1),v.takeUntil(this._destroy$)).subscribe({next:function(e){t._selectionDialogRef.updateActions(e)}}):Array.isArray(e)&&this._selectionDialogRef.updateActions(e))}}else this._selectionDialogRef.updateActions([])},e.prototype._updateSelectionRefSelected=function(){this._selectionDialogRef&&(this._selectionDialogRef.updateSelected(this.selectedRows.size),0===this.selectedRows.size&&this._selectionDialogRef.close(),this._selectionChangedActions())},e.prototype._updateSelectionRefSelectedAll=function(){this._selectionDialogRef&&this._selectionDialogRef.updateSelectedAllStatus(this._selectedAll)},e.prototype._updateSelectedVisibleStatus=function(){this._selectedAllVisible=0!==this._selectedRecords&&this._selectedRecords===this._visibleRecordsCount,this._selectionChangeEvent(t.SelectionChangeType.RowSelectionChange,this._selectedAllVisible)},e.prototype._visibleRowsSelectionChanged=function(){this._selectionChangeEvent(t.SelectionChangeType.AllVisibleSelectionChange,this._selectedAllVisible)},e.prototype._selectionChangeEvent=function(t,e){this._selectionChange.next({type:t,payload:e})},e.prototype._rowIdentifier=function(t){var e=w.get(t,this._trackBy,void 0);return void 0===e&&console.warn("Selection can not recognize track by field for row. Please check if you had configured trackBy function."),e},e.prototype._selectRow=function(t){var e=this,i=this._rowIdentifier(t.data);t.isGroup?t.children.forEach((function(t){e._selectRow(t)})):(t.isChild&&this._selectChildRow(t),this.selectedRows.set(i,t.data),this._selectedRecords++)},e.prototype._deselectRow=function(t){var e=this,i=this._rowIdentifier(t.data);t.isGroup?(this.selectedGroups.delete(i),t.children.forEach((function(t){e._deselectRow(t)}))):(t.isChild&&this.selectedRows.has(i)&&this._deselectChildRow(t),this.selectedRows.delete(i),this._selectedRecords--)},e.prototype._selectChildRow=function(t){var e=this._rowIdentifier(t.parent.data),i=this.selectedGroups.get(e)||0;this._setNumberOfSelectedChildrenInGroup(e,i+1)},e.prototype._deselectChildRow=function(t){var e=this._rowIdentifier(t.parent.data),i=this.selectedGroups.get(e)||0;i>1?this._setNumberOfSelectedChildrenInGroup(e,i-1):this._setNumberOfSelectedChildrenInGroup(e,0)},e.prototype._setNumberOfSelectedChildrenInGroup=function(t,e){0!==e?this.selectedGroups.set(t,e):this.selectedGroups.delete(t)},e.prototype._resetSelection=function(){this._selectedAll=!1,this._selectedAllVisible=!1,this._visibleRecordsCount=0,this._selectedRecords=0,this.selectedRows.clear(),this._updateSelectionRefSelected(),this._updateSelectionRefSelectedAll(),this._visibleRowsSelectionChanged()},e}(),ot=function(){function e(){this.sortingColumns=[],this.fakeSortingColumns=[],this._initialized=new b.BehaviorSubject(!1),this._sortingChanged$=new b.Subject,this._onDestroy=new b.Subject}return Object.defineProperty(e.prototype,"sortingChanged$",{get:function(){return this._sortingChanged$.pipe(v.takeUntil(this._onDestroy))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"initialized$",{get:function(){return this._initialized.pipe(v.takeUntil(this._onDestroy))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.sortingColumn?{value:this.sortingColumn.name,direction:this.sortingColumn.direction}:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"initialization",{get:function(){return!this._initialized.getValue()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDefined",{get:function(){return!!this.sortingColumn},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_initialization",{set:function(t){this._initialized.next(!t)},enumerable:!0,configurable:!0}),e.prototype.addSortableColumn=function(t){this.sortingColumns.push(t)},e.prototype.clearSortableColumns=function(){this.sortingColumns=[]},e.prototype.sortDirection=function(t){this.sortingColumn&&this.sortingColumn.sortingDirection!==t&&(this._setSortingDirection(t),this._notifySortChanged())},e.prototype.sortBy=function(t){t.sortable&&(this._setSortingColumn(t),this._notifySortChanged())},e.prototype.sortByColumnWithName=function(t){var e=this.getColumn(t);e&&(this._setSortingColumn(e),this._notifySortChanged())},e.prototype.initFakeColumns=function(t){var e=this;t.forEach((function(t){var i=new B({title:t.name,name:t.value,sortable:!0,direction:t.direction});e.fakeSortingColumns.push(i)}))},e.prototype.initialSortBy=function(e){if(this._initialization=!0,!e)return this._trySortByDefaultSortableColumn(),this.sortingColumn||this.sortByFirstSortbale(),void(this._initialization=!1);if(this.getColumn(e.value)){this.sortByColumnWithName(e.value);var i=void 0===e.direction||"asc"===e.direction?t.SortingDirection.asc:t.SortingDirection.desc;this._setSortingDirection(i)}else this.sortByFirstSortbale(),console.warn('\n Not possible to do initial sort by "'+e.value+'" column.\n Column with name "'+e.value+'" does not exists.\n Check your lister configuration.\n ');this._initialization=!1},e.prototype.sortByFirstSortbale=function(){var e=this.sortingColumns.find((function(t){return t.sortable}));e&&(this.sortBy(e),this.sortDirection(t.SortingDirection.asc))},e.prototype.getColumn=function(t){return this.sortingColumns.find((function(e){return e.name===t&&e.sortable}))||this.fakeSortingColumns.find((function(e){return e.name===t&&e.sortable}))},e.prototype.destroy=function(){this._onDestroy.next(),this._onDestroy.complete()},e.prototype._setSortingColumn=function(t){if(!t.sortable)return!1;t.ordered?t.changeDirection():(E(this.fakeSortingColumns,this.sortingColumns).filter((function(t){return t.ordered})).forEach((function(t){return t.ordered=!1})),t.ordered=!0),this.sortingColumn=t},e.prototype._setSortingDirection=function(t){this.sortingColumn.sortingDirection=t},e.prototype._notifySortChanged=function(){this.initialization||this._sortingChanged$.next({sortBy:this.sortingColumn.name,sortDirection:this.sortingColumn.direction})},e.prototype._trySortByDefaultSortableColumn=function(){var t=this.sortingColumns.find((function(t){return t.sortableDefault}));t&&this.sortByColumnWithName(t.name)},e}(),st=function(){function t(t,e,i,n,o,s){this._router=t,this._route=e,this._persistance=i,this._paginator=n,this._sorting=o,this._queryParamsEnabled=s,this._externalParams={page:null,limit:null,sortName:null,sortDirection:null},this._destroy$=new b.Subject,this.initialize()}return Object.defineProperty(t.prototype,"externalSorting",{get:function(){return this._enabled&&this._sortName&&this._sortDirection?{value:this._sortName,direction:this._sortDirection}:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_enabled",{get:function(){return this._queryParamsEnabled||this._persistance.enabled},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_page",{get:function(){return this._externalParams.page},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_limit",{get:function(){return this._externalParams.limit},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_sortName",{get:function(){return this._externalParams.sortName},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_sortDirection",{get:function(){return this._externalParams.sortDirection},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){this._persistance.enabled&&(this._restorePaginationParams(this._persistance.getDataFromScope("paging")),this._restoreSortingParams(this._persistance.getDataFromScope("sorting"))),this._queryParamsEnabled&&(this._restorePaginationParams(this._route.snapshot.queryParams),this._restoreSortingParams(this._route.snapshot.queryParams)),this._paginator.enabled&&!this._paginator.infinityScrollEnabled&&(this._limit&&this._paginator.setLimit(this._limit),this._page&&this._paginator.goToPage(this._page)),this._updatePaginationParams(this._paginator.queryPageStrategy),this._listenPaginatorChanges(),this._listenSortingChanges()},t.prototype.clearSortingParams=function(){this._updateSortingParams(null,null)},t.prototype.destroy=function(){this._destroy$.next(),this._destroy$.complete()},t.prototype._restorePaginationParams=function(t){var e,i;(null===(e=t)||void 0===e?void 0:e.page)&&(this._externalParams.page=+t.page),(null===(i=t)||void 0===i?void 0:i.limit)&&(this._externalParams.limit=+t.limit)},t.prototype._restoreSortingParams=function(t){var e,i;(null===(e=t)||void 0===e?void 0:e.sortName)&&(this._externalParams.sortName=t.sortName),(null===(i=t)||void 0===i?void 0:i.sortDirection)&&(this._externalParams.sortDirection=t.sortDirection)},t.prototype._listenPaginatorChanges=function(){var t=this;b.merge(this._paginator.pageChanged$,this._paginator.pages$,this._paginator.pageReset$).pipe(v.takeUntil(this._destroy$)).subscribe((function(){t._updatePaginationParams(t._paginator.queryPageStrategy)}))},t.prototype._listenSortingChanges=function(){var t=this;b.merge(this._sorting.initialized$,this._sorting.sortingChanged$).pipe(v.takeUntil(this._destroy$)).subscribe((function(){var e=t._sorting.value;e?t._updateSortingParams(e.value,e.direction):t.clearSortingParams()}))},t.prototype._updateSortingParams=function(t,e){var i=this;this._queryParamsEnabled&&setTimeout((function(){i._router.navigate([],{replaceUrl:!0,relativeTo:i._route,queryParams:{sortName:t,sortDirection:e},queryParamsHandling:"merge"}).then((function(){}))})),this._persistance.enabled&&(t&&e?this._persistance.saveDataToScope("sorting",{sortName:t,sortDirection:e}):this._persistance.saveDataToScope("sorting",null))},t.prototype._updatePaginationParams=function(t){var e=this;this._queryParamsEnabled&&setTimeout((function(){e._router.navigate([],{replaceUrl:!0,relativeTo:e._route,queryParams:t,queryParamsHandling:"merge"}).then((function(){}))})),this._persistance.enabled&&this._persistance.saveDataToScope("paging",t)},t}(),rt=function(e){function i(i,n,o,s,r,l,a,c){void 0===n&&(n={});var d=e.call(this)||this;return d.el=i,d.config=n,d.fsScroll=o,d.selectionDialog=s,d.router=r,d.route=l,d.persistance=a,d.inDialog=c,d.filters=[],d.scrollable=!1,d.initialized$=new b.BehaviorSubject(!1),d.loading$=new b.BehaviorSubject(!1),d.paging=new tt,d.columns=new q,d.actions=new z,d.dataController=new X,d.sorting=new ot,d.filterConfig=null,d.fetch$=new b.Subject,d.fetchComplete$=new b.Subject,d.filtersReady$=new b.Subject,d.status=!0,d.chips=!1,d.filterInput=!0,d.queryParam=!1,d.restoreMode=!1,d.initialFetch=!0,d.emptyStateEnabled=!1,d.onDestroy$=new b.Subject,d._filtersQuery=new b.BehaviorSubject(null),d._fromJSON(n),d.initialize(n),d._headerConfig=new T(n.header),d._groupCellConfig=new T(n.cell),d._cellConfig=new T(n.cell),d._footerConfig=new T(n.footer),d.initialized$.next(!0),d.subscribe(),d.initialFetch&&(d.dataController.setOperation(t.FsListState.Load),d.fetch$.next()),d}return P(i,e),Object.defineProperty(i.prototype,"hasSavedFilters",{get:function(){return!!this.filterConfig.savedFilters},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"filtersQuery",{get:function(){return this._filtersQuery.getValue()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"filtersQuery$",{get:function(){return this._filtersQuery.asObservable()},enumerable:!0,configurable:!0}),i.prototype.fetchRemote=function(t){var e={state:this.dataController.operation},i=this.fetchFn(t,e);return i instanceof Promise?b.from(i):i},i.prototype.tranformTemplatesToColumns=function(t){var e=this,i={header:this._headerConfig,groupCell:this._groupCellConfig,cell:this._cellConfig,footer:this._footerConfig};this.columns.setDefaults(i),this.columns.initializeColumns(t),this.sorting.clearSortableColumns(),this.columns.columns.filter((function(t){return t.sortable&&t.show})).forEach((function(t){e.sorting.addSortableColumn(t)}));var n=this.externalParams.externalSorting,o=n||this.config.sort;this.sorting.initialSortBy(o),n&&!this.sorting.isDefined&&(this.externalParams.clearSortingParams(),console.warn("Not able to restore persisted sorting params.",n)),this.initFilters(),this.initInfinityScroll()},i.prototype.reload=function(){this.loading$.next(!0),this.dataController.setOperation(t.FsListState.Reload),this.fsScrollInstance?(this.paging.resetPaging(),this.dataController.clearRows(),this.fsScrollInstance.reload()):this.fetch$.next()},i.prototype.subscribe=function(){var e=this;this.paging.pageChanged$.pipe(v.takeUntil(this.onDestroy$)).subscribe((function(i){if(e.dataController.setOperation(t.FsListState.PageChange),i.type===N.LimitChanged&&e.paging.hasPageStrategy&&e.dataController.clearRows(),e.paging.hasOffsetStrategy&&(e.paging.updatePagination(),e.selection&&(e.selection.updateVisibleRecordsCount(e.paging.getVisibleRecords()),e.selection.updateTotalRecordsCount(e.paging.records),e.selection.pageChanged(e.scrollable))),!e.scrollable&&!e.paging.loadMoreEnabled){var n=[].slice.call(document.querySelectorAll(".cdk-overlay-container")).some((function(t){return e.el.nativeElement.contains(t)})),o=e.el.nativeElement;if(!n)e.el.nativeElement.getBoundingClientRect().top+window.pageYOffset<window.innerHeight&&(o=document.body);e.fetchComplete$.asObservable().pipe(v.take(1),v.takeUntil(e.onDestroy$)).subscribe((function(){o.scrollIntoView({behavior:"smooth"})}))}e.fetch$.next()})),this.sorting.sortingChanged$.pipe(v.takeUntil(this.onDestroy$)).subscribe((function(){e.dataController.setOperation(t.FsListState.Sort),e.paging.page=1,e.fsScrollInstance?(e.dataController.clearRows(),e.fsScrollInstance.reload()):e.fetch$.next()})),this.listenRowsRemove(),this.listenFetch()},i.prototype.getData=function(t){var e=this.dataController.visibleRowsData;return t&&(e=e.filter(t)),e.map((function(t){return w.cloneDeep(t)}))},i.prototype.hasData=function(t){return this.dataController.visibleRowsData.some(t)},i.prototype.groupEnabled=function(t){this.dataController.groupEnabled!==t&&(this.dataController.groupEnabled=t)},i.prototype.destroy=function(){this._fsScrollSubscription&&this._fsScrollSubscription.unsubscribe(),this.paging&&this.paging.destroy(),this.sorting&&this.sorting.destroy(),this.selection&&this.selection.destroy(),this.filterConfig&&(this.filterConfig=null),this.externalParams&&this.externalParams.destroy(),this.columns.destroy(),this.onDestroy$.next(),this.onDestroy$.complete(),this.dataController.destroy()},i.prototype.initialize=function(t){this.columns.initConfig(t.column),this.initDefaultOptions(t),this.initRestore(),this.initActions(t.actions),this.initPaging(t.paging,t.loadMore),this.initSelection(t.selection,this.selectionDialog),this.initGroups(t.group),this.initExternalParamsController(),this.initializeData()},i.prototype.initDefaultOptions=function(t){(!1===t.initialFetch||t.scrollable)&&(this.initialFetch=!1),!1===t.status&&(this.status=!1),t.chips&&(this.chips=t.chips),!1===t.filterInput&&(this.filterInput=!1),this.inDialog?this.queryParam=!1:this.queryParam=void 0===t.queryParam||t.queryParam,t.sorts&&this.sorting.initFakeColumns(t.sorts),t.trackBy||(this.trackBy="id")},i.prototype.initRestore=function(){var t=this;if(this.restore){var e=new U({label:this.restore.menuLabel||"Restore",menu:!0,click:function(e){t.restoreClick(t.restore.click,e)},restore:!0});this.rowActionsRaw||(this.rowActionsRaw=[]),this.rowActionsRaw.push(e),this.filters||(this.filters=[]),!1!==this.restore.filter&&this.filters.push({name:"$$_show_deleted_$$",type:g.ItemType.Checkbox,label:this.restore.filterLabel||"Show Deleted"})}},i.prototype.initPaging=function(t,e){this.paging.initWithConfig(t,e,!!this.scrollable)},i.prototype.initActions=function(t){t&&this.actions.setActions(t),this.hasRowActions=this.rowActionsRaw&&this.rowActionsRaw.length>0||this.groupActionsRaw&&this.groupActionsRaw.length>0},i.prototype.initSelection=function(t,e){var i=this;t&&(this.selection=new nt(t,this.trackBy,e),this.selection.setRowsCallback((function(){return i.dataController.visibleRows})))},i.prototype.initializeData=function(){this.dataController.setAdditionalConfigs({scrollable:!!this.scrollable,loadMoreEnabled:this.paging.loadMoreEnabled})},i.prototype.initGroups=function(t){t&&(this.dataController.setGroupConfig(t),this.groupActionsRaw=t.actions)},i.prototype.initExternalParamsController=function(){this.externalParams=new st(this.router,this.route,this.persistance,this.paging,this.sorting,this.queryParam)},i.prototype.listenFetch=function(){var t=this,e=this.fetch$.asObservable();this.filters&&(e=b.combineLatest([e,this.filtersReady$]).pipe(v.map((function(t){return $(t,1)[0]})))),e.pipe(v.debounceTime(50),v.tap((function(){t.loading$.next(!0)})),v.tap((function(){var e;null===(e=t.selection)||void 0===e||e.closeSelectionDialog()})),v.map((function(e){var i=t.paging.hasOffsetStrategy&&e&&e.loadOffset?Object.assign({},t.filtersQuery,t.paging.loadDeletedOffsetQuery):Object.assign({},t.filtersQuery,t.paging.query);return t.sorting.sortingColumn&&Object.assign(i,{order:t.sorting.sortingColumn.name+","+t.sorting.sortingColumn.direction}),i})),v.switchMap((function(e){return t.columns.loadFnConfigured&&!t.columns.columnsFetched?t.columns.loadRemoteColumnConfigs().pipe(v.mapTo(e)):b.of(e)})),v.switchMap((function(e){return t.columns.configured&&Object.assign(e,{columns:t.columns.visibleColumnsNames}),b.combineLatest([b.of(e),t.fetchRemote(e)])})),v.catchError((function(t,e){return console.error(t),e})),v.takeUntil(this.onDestroy$)).subscribe((function(e){t.completeFetch(e)}))},i.prototype.listenRowsRemove=function(){var e=this;this.dataController.rowsRemoved$.pipe(v.takeUntil(this.onDestroy$)).subscribe((function(i){if(e.paging.enabled){var n=i.length;e.paging.hasPageStrategy?e.noDataPaginationUpdate(n):e.dataController.hasData||e.paging.hasNextPage?(e.dataController.setOperation(t.FsListState.LoadMore),e.paging.removeRows(n),e.fetch$.next({loadOffset:!0})):e.noDataPaginationUpdate(n)}e.selection&&i.forEach((function(t){e.selection.removeRow(t.data)}))}))},i.prototype.initInfinityScroll=function(){var e=this;this.fsScrollInstance||this.scrollable&&(void 0===this.scrollable.status&&(this.scrollable.status=!0),this.fsScroll.component(this.scrollable.name).pipe(v.takeUntil(this.onDestroy$)).subscribe((function(i){e.fsScrollInstance=i,e._fsScrollSubscription=i.subscribe((function(){var n=!1,o=e.dataController.operation;e.initialFetch||e.paging.initialized||o===t.FsListState.Reload?o===t.FsListState.Reload||o===t.FsListState.Filter||o===t.FsListState.Sort?n=!0:e.paging.initialized&&e.paging.hasNextPage&&(n=!0,e.dataController.setOperation(t.FsListState.Load),e.paging.goNext()):(e.dataController.setOperation(t.FsListState.Load),n=!0),n&&(e.fetch$.next(),i.loading())})),e.dataController.remoteRowsChange$.pipe(v.takeUntil(e.onDestroy$)).subscribe((function(){i.loaded()}))})))},i.prototype.initFilters=function(){var t=this;if(!this.filterConfig){var e=E(this.sorting.sortingColumns,this.sorting.fakeSortingColumns).reduce((function(e,i){var n={name:i.title,value:i.name,default:t.sorting.sortingColumn&&t.sorting.sortingColumn.name===i.name};return e.push(n),e}),[]),i=this.sorting.sortingColumn?{value:this.sorting.sortingColumn.name,direction:this.sorting.sortingColumn.direction}:null;this.filterConfig={persist:this.persist,items:this.filters||[],savedFilters:this.savedFilters,inline:this.inlineFilters,actions:this.actions.actions,queryParam:this.queryParam,sorts:e,sort:i,chips:this.chips,init:this.filterInit.bind(this),change:this.filterChange.bind(this),reload:this.reload.bind(this),sortChange:this.filterSort.bind(this)}}},i.prototype.filterInit=function(t){this.filterInitCb&&this.filterInitCb(t),this._filtersQuery.next(t),this.checkRestoreFilter()},i.prototype.filterChange=function(e,i){this.filterChangeCb&&this.filterChangeCb(e,i),this._filtersQuery.next(e),this.restoreMode=!1,this.checkRestoreFilter(),this.restore&&this.restore.reload&&this.reload(),this.dataController.setOperation(t.FsListState.Filter),this.paging.resetPaging(),this.fsScrollInstance?(this.dataController.clearRows(),this.fsScrollInstance.reload()):this.fetch$.next()},i.prototype.checkRestoreFilter=function(){this.restore&&this.filtersQuery.$$_show_deleted_$$&&(delete this.filtersQuery.$$_show_deleted_$$,Object.assign(this.filtersQuery,this.restore.query),this.restoreMode=!0)},i.prototype.filterSort=function(e,i){if(i){this.sorting.sortByColumnWithName(i.value);var n="asc"===i.direction?t.SortingDirection.asc:t.SortingDirection.desc;this.sorting.sortDirection(n)}else this.sorting.sortingColumn=void 0,this.reload()},i.prototype.completeFetch=function(e){var i,n=$(e,2),o=n[0],s=n[1];if(this.paging.page||(this.paging.page=1),s.paging){var r=Array.isArray(s.data)&&s.data.length||0;this.paging.updatePaging(s.paging,r,this.dataController.operation===t.FsListState.LoadMore)}else this.paging.enabled&&console.log("%c FsList Warning ","color: white; background-color: #ffcc0b",'Pagination does not configured properly. Pagination is enabled, but http response does not contain "paging" field. You have to set "paging: false" in config or add "paging" field to response.');if(this.dataController.setRowsFromResponse(s.data),this.selection){if(this.paging.enabled)this.selection.pageChanged(this.scrollable),this.selection.updateVisibleRecordsCount(this.paging.getVisibleRecords()),this.selection.updateTotalRecordsCount(this.paging.records);else{var l=s.paging&&s.paging.records||Array.isArray(s.data)&&s.data.length;this.selection.updateVisibleRecordsCount(l),this.selection.updateTotalRecordsCount(l)}this.selection.selectedRowsIntersection(this.dataController.visibleRowsData)}(null===(i=this.emptyState)||void 0===i?void 0:i.validate)&&this.emptyStateTemplate&&(this.emptyStateEnabled=this.emptyState.validate(o,w.cloneDeep(s.data))),this.afterFetchFn&&this.afterFetchFn(o,this.dataController.visibleRowsData),this.fetchComplete$.next(),this.loading$.next(!1)},i.prototype.noDataPaginationUpdate=function(t){this.dataController.hasData||(this.paging.page>1?this.paging.goToPage(this.paging.page-1||1):this.reload()),this.paging.records-=t,this.paging.updatePagination(),this.dataController.hasData&&this.selection&&(this.selection.updateVisibleRecordsCount(this.dataController.visibleRowsCount),this.selection.updateTotalRecordsCount(this.paging.records))},i.prototype.restoreClick=function(t,e){var i=this,n=t(e);n instanceof b.Observable&&n.pipe(v.take(1),v.takeUntil(this.onDestroy$)).subscribe({next:function(){return i.reload()},error:function(){}})},D([S.Alias(),F("design:type",String)],i.prototype,"heading",void 0),D([S.Alias(),F("design:type",String)],i.prototype,"trackBy",void 0),D([S.Alias(),F("design:type",String)],i.prototype,"subheading",void 0),D([S.Alias(),F("design:type",Object)],i.prototype,"inlineFilters",void 0),D([S.Alias("rowActions"),F("design:type",Array)],i.prototype,"rowActionsRaw",void 0),D([S.Alias("rowClass"),F("design:type",Object)],i.prototype,"rowClass",void 0),D([S.Alias(),F("design:type",Object)],i.prototype,"rowEvents",void 0),D([S.Alias(),F("design:type",Object)],i.prototype,"restore",void 0),D([S.Alias(),F("design:type",Object)],i.prototype,"columnTemplates",void 0),D([S.Alias(),F("design:type",Boolean)],i.prototype,"persist",void 0),D([S.Alias(),F("design:type",Object)],i.prototype,"filters",void 0),D([S.Alias("filterInit"),F("design:type",Function)],i.prototype,"filterInitCb",void 0),D([S.Alias("filterChange"),F("design:type",Function)],i.prototype,"filterChangeCb",void 0),D([S.Alias(),F("design:type",Object)],i.prototype,"savedFilters",void 0),D([S.Alias(),F("design:type",Object)],i.prototype,"scrollable",void 0),D([S.Alias(),F("design:type",Object)],i.prototype,"noResults",void 0),D([S.Alias(),F("design:type",Object)],i.prototype,"emptyState",void 0),D([S.Alias("fetch"),F("design:type",Function)],i.prototype,"fetchFn",void 0),D([S.Alias("afterFetch"),F("design:type",Function)],i.prototype,"afterFetchFn",void 0),i}(S.Model);(et=t.ReorderPosition||(t.ReorderPosition={})).Left="left",et.Right="right",(it=t.ReorderStrategy||(t.ReorderStrategy={})).Always="always",it.Manual="manual",it.Custom="custom";var lt=function(){function i(){this._enabled$=new b.BehaviorSubject(!1),this._manualReorderActivated$=new b.BehaviorSubject(!1),this._reorderDisabled$=new b.BehaviorSubject(!1),this._numberOfActiveFilters=0,this._destroy$=new b.Subject}return Object.defineProperty(i.prototype,"enabled",{get:function(){return this._enabled$.getValue()},set:function(e){this._enabled$.next(e),this._manualReorderActivated$.next(this.enabled&&this.strategy===t.ReorderStrategy.Manual)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dataController",{get:function(){return this._dataController},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"manualReorderActivated$",{get:function(){return this._manualReorderActivated$.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"leftReorderActivated$",{get:function(){var e=this;return this._enabled$.pipe(v.map((function(i){return i&&e.position===t.ReorderPosition.Left})),v.map((function(t){return t&&0===e._numberOfActiveFilters})),v.distinctUntilChanged(),v.shareReplay())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rightReorderActivated$",{get:function(){var e=this;return this._enabled$.pipe(v.map((function(i){return i&&e.position===t.ReorderPosition.Right})),v.map((function(t){return t&&0===e._numberOfActiveFilters})),v.distinctUntilChanged(),v.shareReplay())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"reorderDisabled$",{get:function(){return this._reorderDisabled$.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"reorderDisabled",{get:function(){return this._reorderDisabled$.getValue()},enumerable:!0,configurable:!0}),i.prototype.initWithConfig=function(e,i,n){var o,s,r,l,a=this;e&&(this.menu=null==(o=e.menu)||o,this.position=null!=(s=e.position)?s:t.ReorderPosition.Left,this.strategy=null!=(r=e.strategy)?r:t.ReorderStrategy.Manual,this.status=null==(l=e.status)||l,this.label=e.label,this.startCallback=e.start,this.movedCallback=e.moved,this.doneCallback=e.done,this.moveDropCallback=e.moveDrop,this._dataController=i,this._actionsController=n,this.strategy===t.ReorderStrategy.Always?this.enableReorder():this.strategy===t.ReorderStrategy.Manual&&(n.addReorderAction({label:this.label||"Reorder",menu:this.menu,primary:!1,click:function(){a.enableReorder()},disabled:function(){return a.reorderDisabled}}),n.addReorderDoneAction({label:"Done",primary:!1,click:function(){a.disableReorder()},disabled:function(){return a.reorderDisabled}})))},i.prototype.enableReorder=function(){var e=this;if(this.strategy===t.ReorderStrategy.Manual||this.strategy===t.ReorderStrategy.Custom){var i=this.startCallback();if(i&&i instanceof b.Observable)return this.disableReorderAction(),void i.pipe(v.takeUntil(this._destroy$)).subscribe((function(){e.enabled=!0,e.enableReorderAction()}))}this.enabled=!0},i.prototype.disableReorder=function(){var e=this;if(this.strategy===t.ReorderStrategy.Manual||this.strategy===t.ReorderStrategy.Custom){var i=this.reorderFinished();if(i&&i instanceof b.Observable)return this.disableReorderAction(),void i.pipe(v.takeUntil(this._destroy$)).subscribe((function(){e.enabled=!1,e.enableReorderAction()}))}this.enabled=!1},i.prototype.reorderFinished=function(){if(this.doneCallback)return this.doneCallback(this._dataController.reorderData)},i.prototype.ngOnDestroy=function(){this._destroy$.next(),this._destroy$.complete()},i.prototype.enableReorderAction=function(){this._reorderDisabled$.next(!1),this._actionsController.updateDisabledState()},i.prototype.disableReorderAction=function(){this._reorderDisabled$.next(!0),this._actionsController.updateDisabledState()},i.prototype.setNunberOfActiveFilters=function(t){this._numberOfActiveFilters=t,this.enabled=this.enabled},i=D([e.Injectable(),F("design:paramtypes",[])],i)}(),at=function(){function t(){}return D([e.Input(),F("design:type",Object)],t.prototype,"colspan",void 0),D([e.Input(),F("design:type",String)],t.prototype,"align",void 0),D([e.Input("class"),F("design:type",Object)],t.prototype,"className",void 0),t=D([e.Directive({selector:"[fs-list-header]"})],t)}(),ct=function(){function t(){}return D([e.Input(),F("design:type",Object)],t.prototype,"colspan",void 0),D([e.Input(),F("design:type",String)],t.prototype,"align",void 0),D([e.Input("class"),F("design:type",Object)],t.prototype,"className",void 0),t=D([e.Directive({selector:"[fs-list-cell]"})],t)}(),dt=function(){function t(){}return D([e.Input(),F("design:type",Object)],t.prototype,"colspan",void 0),D([e.Input(),F("design:type",String)],t.prototype,"align",void 0),D([e.Input("class"),F("design:type",Object)],t.prototype,"className",void 0),t=D([e.Directive({selector:"[fs-list-footer]"})],t)}(),ft=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return P(i,t),i=D([e.Directive({selector:"[fs-list-group-cell]"})],i)}(ct),pt=function(){function t(){this._expandStatusChanged$=new b.Subject,this._destroy$=new b.Subject}return Object.defineProperty(t.prototype,"expandStatusChange$",{get:function(){return this._expandStatusChanged$.pipe(v.takeUntil(this._destroy$))},enumerable:!0,configurable:!0}),t.prototype.toggleExpandStatus=function(t){this._expandStatusChanged$.next(t)},t.prototype.ngOnDestroy=function(){this._destroy$.next(),this._destroy$.complete()},t=D([e.Injectable()],t)}(),gt=function(){function t(t){this._expandNotifier=t}return t.prototype.click=function(t){t.preventDefault(),t.stopPropagation(),this._expandNotifier.toggleExpandStatus(this.row)},t.ctorParameters=function(){return[{type:pt}]},D([e.HostListener("click",["$event"]),F("design:type",Function),F("design:paramtypes",[Object]),F("design:returntype",void 0)],t.prototype,"click",null),D([e.Input(),F("design:type",Object)],t.prototype,"row",void 0),t=D([e.Directive({selector:"[fsListGroupExpandTrigger]"}),F("design:paramtypes",[pt])],t)}(),ht=function(){function t(){this.show=!0,this.customize=!0}return D([e.Input(),F("design:type",String)],t.prototype,"title",void 0),D([e.Input(),F("design:type",String)],t.prototype,"name",void 0),D([e.Input(),F("design:type",Object)],t.prototype,"show",void 0),D([e.Input(),F("design:type",Object)],t.prototype,"customize",void 0),D([e.Input(),F("design:type",Boolean)],t.prototype,"sortable",void 0),D([e.Input(),F("design:type",Boolean)],t.prototype,"sortableDefault",void 0),D([e.Input(),F("design:type",String)],t.prototype,"direction",void 0),D([e.Input(),F("design:type",String)],t.prototype,"align",void 0),D([e.Input(),F("design:type",String)],t.prototype,"width",void 0),D([e.Input("class"),F("design:type",Object)],t.prototype,"className",void 0),D([e.ContentChild(at,{read:e.TemplateRef,static:!0}),F("design:type",e.TemplateRef)],t.prototype,"headerTemplate",void 0),D([e.ContentChild(at,{static:!0}),F("design:type",Object)],t.prototype,"headerConfigs",void 0),D([e.ContentChild(ft,{read:e.TemplateRef,static:!0}),F("design:type",e.TemplateRef)],t.prototype,"groupCellTemplate",void 0),D([e.ContentChild(ft,{static:!0}),F("design:type",Object)],t.prototype,"groupCellConfigs",void 0),D([e.ContentChildren(gt,{descendants:!0}),F("design:type",e.QueryList)],t.prototype,"expandTrigger",void 0),D([e.ContentChild(ct,{read:e.TemplateRef,static:!0}),F("design:type",e.TemplateRef)],t.prototype,"cellTemplate",void 0),D([e.ContentChild(ct,{static:!0}),F("design:type",Object)],t.prototype,"cellConfigs",void 0),D([e.ContentChild(dt,{read:e.TemplateRef,static:!0}),F("design:type",e.TemplateRef)],t.prototype,"footerTemplate",void 0),D([e.ContentChild(dt,{static:!0}),F("design:type",Object)],t.prototype,"footerConfigs",void 0),t=D([e.Directive({selector:"fs-list-column"})],t)}(),ut=function(){function t(){}return t=D([e.Directive({selector:"[fs-list-empty-state]"})],t)}(),yt=new e.InjectionToken("fs-list.default-config"),mt=new e.InjectionToken("fs-list.config"),wt=function(){function t(t,e){this._dialog=e,this.columns=[],this.saveDisabled=!1,this._destroy$=new b.Subject,this.columns=t.columns,this._changeFn=t.changeFn}return t.prototype.ngOnDestroy=function(){this._destroy$.next(),this._destroy$.complete()},t.prototype.visibilityChange=function(t,e){e.show=t.checked},t.prototype.save=function(){var t=this,e=this.columns.filter((function(t){return!!t.name})).map((function(t){return{name:t.name,show:t.show}}));this.saveDisabled=!0;var i=this._changeFn(e);i instanceof b.Observable?i.pipe(v.takeUntil(this._destroy$)).subscribe({next:function(){t._dialog.close(t.columns)},error:function(){t.saveDisabled=!1}}):this._dialog.close(this.columns)},t.prototype.cancel=function(){this._dialog.close()},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[l.MAT_DIALOG_DATA]}]},{type:l.MatDialogRef}]},t=D([e.Component({template:'<h1 matDialogTitle>Customize Columns</h1>\n<mat-dialog-content>\n <div *ngFor="let column of columns">\n <mat-checkbox [checked]="column.show" (change)="visibilityChange($event, column)" [disabled]="column.disabled">\n <ng-container *ngIf="!column.title; else titleLable">\n <ng-template [ngTemplateOutlet]="column.template"></ng-template>\n </ng-container>\n <ng-template #titleLable>\n {{ column.title }}\n </ng-template>\n\n <ng-container *ngIf="column.tooltip">\n <mat-icon [matTooltip]="column.tooltip">\n help\n </mat-icon>\n </ng-container>\n </mat-checkbox>\n </div>\n</mat-dialog-content>\n<mat-dialog-actions>\n <button type="button" mat-button color="primary" (click)="save()" [disabled]="saveDisabled">Save</button>\n <button type="button" mat-button (click)="cancel()">Cancel</button>\n</mat-dialog-actions>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[".mat-checkbox{min-height:32px;display:block}.mat-icon{font-size:14px;height:14px;width:14px;vertical-align:middle}"]}),k(0,e.Inject(l.MAT_DIALOG_DATA)),F("design:paramtypes",[Object,l.MatDialogRef])],t)}(),bt=function(t){function i(e,i){var n=t.call(this,e,i)||this;return n.STORE_KEY="fs-list-persist",n}return P(i,t),i.ctorParameters=function(){return[{type:x.FsStore},{type:n.ActivatedRoute}]},i=D([e.Injectable(),F("design:paramtypes",[x.FsStore,n.ActivatedRoute])],i)}(x.FsPersistanceStore),vt=function(){function t(t,i,n,o,s,r,l,a,c,d,f,p,g,h){this.reorderController=t,this._el=i,this._defaultOptions=n,this.fsScroll=o,this.selectionDialog=s,this.dialog=r,this.cdRef=l,this._groupExpandNotifier=a,this._router=c,this._route=d,this._persistance=f,this._location=p,this._dialogRef=g,this._drawerRef=h,this.classFsList=!0,this.loaderLines=3,this.filtersReady=new e.EventEmitter,this.rowRemoved=new e.EventEmitter,this.firstLoad=!0,this._filterParamsReady=!1,this._inDialog=!!this._dialogRef||!!this._drawerRef,this._destroy=new b.Subject}return Object.defineProperty(t.prototype,"config",{set:function(t){this._initWithConfig(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"filterReference",{set:function(t){this._filterRef=t,this.list.actions.setFilterRef(t),this._emitFiltersReadyEvent()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnTemplates",{set:function(t){this.listColumnDirectives=t,this.list&&this.list.tranformTemplatesToColumns(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_emptyStateTemplate",{set:function(t){this.list&&(this.list.emptyStateTemplate=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"filterRef",{get:function(){return this._filterRef},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"groupEnabled",{get:function(){return this.list.dataController.groupEnabled},set:function(t){this.list.groupEnabled(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paginatorVisible",{get:function(){return this.list.paging.enabled&&!this.firstLoad&&!this.list.scrollable&&!this.list.emptyStateEnabled&&this.list.dataController.visibleRowsCount>0&&this.list.paging.pages>1},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._subscribeToRemoveRow(),this._subscribeToGroupExpandStatusChange()},t.prototype.ngOnDestroy=function(){this.list&&this.list.destroy(),this._destroy.next(),this._destroy.complete()},t.prototype.nextPage=function(){this.list.paging.goNext()},t.prototype.prevPage=function(){this.list.paging.goPrev()},t.prototype.firstPage=function(){this.list.paging.goFirst()},t.prototype.lastPage=function(){this.list.paging.goLast()},t.prototype.reload=function(){this.list.reload()},t.prototype.getData=function(t){return this.list.getData(t)},t.prototype.hasData=function(t){return this.list.hasData(t)},t.prototype.updateData=function(t,e){return this.list.dataController.updateData(t,e)},t.prototype.replaceRow=function(t,e){return this.list.dataController.replaceData(t,e)},t.prototype.updateSelectionConfig=function(t){this.list.selection.updateConfig(t)},t.prototype.resetSelectionActions=function(){this.list.selection.resetActions()},t.prototype.removeData=function(t){return this.list.dataController.removeData(t)},t.prototype.setHeading=function(t){this.list.heading=t},t.prototype.setSubheading=function(t){this.list.subheading=t},t.prototype.reorderStart=function(){this.reorderController.enableReorder()},t.prototype.reorderFinish=function(){this.reorderController.disableReorder()},t.prototype.setActions=function(t){t&&(this.list.actions.clearActions(),this.list.actions.setActions(t))},t.prototype.filterReady=function(){this.list.filtersReady$.next(),this._filterParamsReady=!0,this._emitFiltersReadyEvent()},t.prototype.columnVisibility=function(t,e){this.columnsVisibility([{name:t,show:e}])},t.prototype.columnsVisibility=function(t){this.list.columns.updateVisibilityForCols(t)},t.prototype._emitFiltersReadyEvent=function(){this.filterRef&&this._filterParamsReady&&this.filtersReady.emit()},t.prototype._initWithConfig=function(t){this.list&&this.list.destroy();var e=this._defaultOptions?w.cloneDeep(this._defaultOptions):{},i=w.mergeWith(e,t,this._configMergeCustomizer);!1!==i.persist&&this._restorePersistance(i.persist),this._updateCustomizeAction(i.actions),this.list=new rt(this._el,i,this.fsScroll,this.selectionDialog,this._router,this._route,this._persistance,this._inDialog),this._waitFirstLoad(),this._listenFiltersQueryChange(),this.reorderController.initWithConfig(t.reorder,this.list.dataController,this.list.actions),this.listColumnDirectives&&this.list.tranformTemplatesToColumns(this.listColumnDirectives),this._listenSortingChange()},t.prototype._updateCustomizeAction=function(t){var e,i=this,n=null===(e=t)||void 0===e?void 0:e.find((function(t){return t.customize}));if(n){var o=n.click;n.click=function(){o&&o(null),i.dialog.open(wt,{data:{columns:i.list.columns.columnsForDialog,changeFn:i.list.columns.changeFn}}).afterClosed().pipe(v.takeUntil(i.list.onDestroy$),v.takeUntil(i._destroy)).subscribe((function(t){t&&(i.list.columns.updateVisibilityForCols(t),i.cdRef.markForCheck())}))}}},t.prototype._listenSortingChange=function(){var t=this;this.list.sorting.sortingChanged$.pipe(v.takeUntil(this.list.onDestroy$),v.takeUntil(this._destroy)).subscribe((function(e){t._filterRef.updateSort(e)}))},t.prototype._subscribeToRemoveRow=function(){var t=this;this.rowRemoved.pipe(v.takeUntil(this._destroy)).subscribe((function(e){t.list.dataController.removeData(e)}))},t.prototype._subscribeToGroupExpandStatusChange=function(){var t=this;this.list.dataController.hasGroups&&this._groupExpandNotifier.expandStatusChange$.pipe(v.takeUntil(this._destroy)).subscribe((function(e){t.list.dataController.toggleRowGroup(e)}))},t.prototype._waitFirstLoad=function(){var t=this;this.list.loading$.pipe(v.skip(1),v.filter((function(t){return!1===t})),v.take(1),v.takeUntil(this.list.onDestroy$),v.takeUntil(this._destroy)).subscribe((function(){t.firstLoad=!1,t.cdRef.markForCheck()}))},t.prototype._listenFiltersQueryChange=function(){var t=this;this.list.filtersQuery$.pipe(v.takeUntil(this.list.onDestroy$),v.takeUntil(this._destroy)).subscribe((function(e){if(e){var i=Object.keys(e).length;t.reorderController.setNunberOfActiveFilters(i)}}))},t.prototype._configMergeCustomizer=function(t,e){if(Array.isArray(t))return t},t.prototype._restorePersistance=function(t){var e=C.getNormalizedPath(this._location);this._persistance.setConfig(t,e,this._inDialog)},t.ctorParameters=function(){return[{type:lt},{type:e.ElementRef},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[yt]}]},{type:h.FsScrollService,decorators:[{type:e.Optional}]},{type:_.SelectionDialog},{type:l.MatDialog},{type:e.ChangeDetectorRef},{type:pt},{type:n.Router},{type:n.ActivatedRoute},{type:bt},{type:i.Location},{type:l.MatDialogRef,decorators:[{type:e.Optional}]},{type:R.DrawerRef,decorators:[{type:e.Optional}]}]},D([e.HostBinding("class.fs-list"),F("design:type",Object)],t.prototype,"classFsList",void 0),D([e.Input("config"),F("design:type",Object),F("design:paramtypes",[Object])],t.prototype,"config",null),D([e.Input(),F("design:type",Object)],t.prototype,"loaderLines",void 0),D([e.Output(),F("design:type",Object)],t.prototype,"filtersReady",void 0),D([e.ViewChild(g.FilterComponent),F("design:type",Object),F("design:paramtypes",[Object])],t.prototype,"filterReference",null),D([e.ContentChildren(ht),F("design:type",e.QueryList),F("design:paramtypes",[e.QueryList])],t.prototype,"columnTemplates",null),D([e.ContentChild(ut,{read:e.TemplateRef}),F("design:type",e.TemplateRef),F("design:paramtypes",[e.TemplateRef])],t.prototype,"_emptyStateTemplate",null),t=D([e.Component({selector:"fs-list",template:'<div class="fs-list-container"\r\n [ngClass]="{ \'has-filter-input\': list.filterInput,\r\n \'has-filters\': list.filterConfig?.items.length,\r\n \'has-heading\': list.heading,\r\n \'has-status\': list.status,\r\n \'has-chips\': list.chips,\r\n \'has-actions\': list.actions.hasActions,\r\n \'first-load\': firstLoad,\r\n \'loading\': list.loading$ | async }">\r\n <ng-template [ngTemplateOutlet]="listContainerContent"></ng-template>\r\n</div>\r\n\r\n<ng-template #listContainerContent>\r\n <ng-container *ngIf="list.dataController.visibleRows$ | async as listData">\r\n \x3c!-- Header --\x3e\r\n <div class="fs-list-header-container">\r\n\r\n <div class="fs-list-header"\r\n [ngClass]="{ \'no-wrap\': reorderController.manualReorderActivated$ || !list.filterConfig?.items.length }">\r\n <div class="heading-container">\r\n <h2 class="heading" *ngIf="list.heading">{{list.heading}}</h2>\r\n <span class="subheading" *ngIf="list.subheading">{{list.subheading}}</span>\r\n </div>\r\n <fs-filter\r\n class="fs-list-filter"\r\n *ngIf="list.filterConfig"\r\n [filter]="list.filterConfig"\r\n [showSortBy]="!list.status"\r\n [showFilterInput]="list.filterInput"\r\n (ready)="filterReady()">\r\n\r\n <ng-template fsFilterStatusBar>\r\n <ng-container *ngIf="\r\n list.paging &&\r\n !(reorderController.manualReorderActivated$ | async) &&\r\n (!reorderController.enabled || reorderController.status) &&\r\n ((list.scrollable && list.scrollable.status) || !list.scrollable)">\r\n \x3c!-- Status --\x3e\r\n <fs-list-status\r\n class="fs-list-status"\r\n [ngClass]="{ \'hidden-mobile\': !list.status }"\r\n [rows]="listData"\r\n [sorting]="list.sorting"\r\n [paging]="list.paging"\r\n [firstLoad]="firstLoad"\r\n [scrollable]="list.scrollable">\r\n </fs-list-status>\r\n </ng-container>\r\n </ng-template>\r\n </fs-filter>\r\n </div>\r\n </div>\r\n\r\n \x3c!-- Table implementation --\x3e\r\n <div class="fs-list-table-container">\r\n <table class="fs-list-table" role="grid" *ngIf="!firstLoad && listData.length > 0 && !list.emptyStateEnabled">\r\n <thead fs-list-head\r\n class="fs-list-head"\r\n role="rowgroup"\r\n *ngIf="list.columns.hasHeader"\r\n [ngClass]="list.columns.theadClass"\r\n [columns]="list.columns.visibleColumns"\r\n [sorting]="list.sorting"\r\n [selection]="list.selection"\r\n [hasRowActions]="list.hasRowActions"\r\n >\r\n </thead>\r\n\r\n <tbody fs-list-body\r\n fsListDraggableList\r\n class="fs-list-body"\r\n role="rowgroup"\r\n [class.disabled]="!!(reorderController.reorderDisabled$ | async)"\r\n [rows]="listData"\r\n [rowActionsRaw]="list.rowActionsRaw"\r\n [groupActionsRaw]="list.groupActionsRaw"\r\n [hasRowActions]="list.hasRowActions"\r\n [rowEvents]="list.rowEvents"\r\n [rowClass]="list.rowClass"\r\n [columns]="list.columns.visibleColumns"\r\n [restoreMode]="list.restoreMode"\r\n [selection]="list.selection"\r\n [rowRemoved]="rowRemoved"\r\n >\r\n </tbody>\r\n\r\n <tfoot fs-list-footer\r\n class="fs-list-footer"\r\n *ngIf="list.columns.hasFooter"\r\n [columns]="list.columns.visibleColumns"\r\n [selection]="list.selection"\r\n [hasRowActions]="list.hasRowActions">\r\n </tfoot>\r\n </table>\r\n <fs-list-loader\r\n *ngIf="firstLoad"\r\n [columns]="list.columns.columns"\r\n [loaderLines]="loaderLines">\r\n </fs-list-loader>\r\n </div>\r\n\r\n <fs-list-pagination\r\n *ngIf="paginatorVisible"\r\n class="fs-list-pagination"\r\n [rows]="listData"\r\n [pagination]="list.paging">\r\n </fs-list-pagination>\r\n\r\n\r\n <ng-container *ngIf="!firstLoad">\r\n <div \r\n *ngIf="listData.length === 0" \r\n class="fs-list-no-results-container">\r\n <div \r\n *ngIf="list.noResults?.message && !list.emptyStateEnabled"\r\n class="fs-list-no-results">\r\n {{ list.noResults?.message }}\r\n </div>\r\n <ng-container *ngIf="list.emptyStateEnabled">\r\n <ng-template [ngTemplateOutlet]="list.emptyStateTemplate"></ng-template>\r\n </ng-container> \r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n</ng-template>\r\n\r\n',changeDetection:e.ChangeDetectionStrategy.OnPush,providers:[pt,bt,lt],styles:["::ng-deep .fs-list{display:block;width:100%}::ng-deep .fs-list .fs-list-swap-restricted{opacity:.5}::ng-deep .fs-list .fs-list-no-drop{cursor:no-drop}::ng-deep .fs-list .fs-filter{margin-bottom:0;position:initial!important;display:block}::ng-deep .fs-list .fs-list-container.first-load .filter-chips,::ng-deep .fs-list .fs-list-container.first-load .fs-list-body,::ng-deep .fs-list .fs-list-container.first-load .fs-list-no-results-container,::ng-deep .fs-list .fs-list-container.first-load .fs-list-status,::ng-deep .fs-list .fs-list-container.first-load fs-list-pagination,::ng-deep .fs-list .fs-list-container.loading .filter-chips,::ng-deep .fs-list .fs-list-container.loading .fs-list-body,::ng-deep .fs-list .fs-list-container.loading .fs-list-no-results-container,::ng-deep .fs-list .fs-list-container.loading .fs-list-status,::ng-deep .fs-list .fs-list-container.loading fs-list-pagination{opacity:.4;pointer-events:none}::ng-deep .fs-list .fs-list-container.first-load ::ng-deep fs-filter-chips .fs-chip{color:transparent}::ng-deep .fs-list .fs-list-container.first-load ::ng-deep fs-filter-chips .fs-chip .remove{visibility:hidden}::ng-deep .fs-list .fs-list-container.has-actions .fs-list-actions{margin-left:5px}::ng-deep .fs-list .fs-list-table-container{width:100%;overflow:auto}::ng-deep .fs-list .fs-list-table,::ng-deep .fs-list table{border-spacing:0;display:table;width:100%;border-collapse:collapse}::ng-deep .fs-list .fs-list-no-results-container .fs-list-no-results{text-align:center;color:#999;padding:10px 0}::ng-deep .fs-list .hidden{display:none}::ng-deep .fs-list .fs-list-head,::ng-deep .fs-list thead{display:table-header-group}::ng-deep .fs-list .fs-list-head .fs-list-col,::ng-deep .fs-list .fs-list-head th,::ng-deep .fs-list thead .fs-list-col,::ng-deep .fs-list thead th{padding:8px;font-weight:400;font-size:13px;color:#8f8f8f}::ng-deep .fs-list .fs-list-head .fs-list-col.fs-list-col-selection,::ng-deep .fs-list .fs-list-head th.fs-list-col-selection,::ng-deep .fs-list thead .fs-list-col.fs-list-col-selection,::ng-deep .fs-list thead th.fs-list-col-selection{width:1%;text-align:left}::ng-deep .fs-list .fs-list-head .fs-list-col.sorting,::ng-deep .fs-list .fs-list-head th.sorting,::ng-deep .fs-list thead .fs-list-col.sorting,::ng-deep .fs-list thead th.sorting{cursor:pointer;background-image:none}::ng-deep .fs-list .fs-list-head .fs-list-col.sorting:hover,::ng-deep .fs-list .fs-list-head th.sorting:hover,::ng-deep .fs-list thead .fs-list-col.sorting:hover,::ng-deep .fs-list thead th.sorting:hover{background-color:#f6f6f6}::ng-deep .fs-list .fs-list-head .fs-list-col .wrap,::ng-deep .fs-list .fs-list-head th .wrap,::ng-deep .fs-list thead .fs-list-col .wrap,::ng-deep .fs-list thead th .wrap{display:inline-flex;vertical-align:middle;white-space:nowrap}::ng-deep .fs-list .fs-list-head .fs-list-col .wrap mat-icon,::ng-deep .fs-list .fs-list-head th .wrap mat-icon,::ng-deep .fs-list thead .fs-list-col .wrap mat-icon,::ng-deep .fs-list thead th .wrap mat-icon{font-size:14px;display:block;height:14px;width:14px}::ng-deep .fs-list .fs-list-head .fs-list-col .wrap .direction,::ng-deep .fs-list .fs-list-head th .wrap .direction,::ng-deep .fs-list thead .fs-list-col .wrap .direction,::ng-deep .fs-list thead th .wrap .direction{margin-left:5px}::ng-deep .fs-list .fs-list-body,::ng-deep .fs-list tbody{display:table-row-group;position:relative}::ng-deep .fs-list .fs-list-body.disabled,::ng-deep .fs-list tbody.disabled{opacity:.4;pointer-events:none}::ng-deep .fs-list .fs-list-body .fs-list-col,::ng-deep .fs-list .fs-list-body td,::ng-deep .fs-list tbody .fs-list-col,::ng-deep .fs-list tbody td{box-sizing:border-box}::ng-deep .fs-list .fs-list-body .fs-list-row:hover .fs-list-col,::ng-deep .fs-list .fs-list-body tr:hover td,::ng-deep .fs-list tbody .fs-list-row:hover .fs-list-col,::ng-deep .fs-list tbody tr:hover td{background-color:#f6f6f6}::ng-deep .fs-list .fs-list-body .fs-list-row:hover .fs-list-col,::ng-deep .fs-list .fs-list-body .fs-list-row:hover td,::ng-deep .fs-list .fs-list-body tr:hover .fs-list-col,::ng-deep .fs-list .fs-list-body tr:hover td,::ng-deep .fs-list tbody .fs-list-row:hover .fs-list-col,::ng-deep .fs-list tbody .fs-list-row:hover td,::ng-deep .fs-list tbody tr:hover .fs-list-col,::ng-deep .fs-list tbody tr:hover td{background-color:#f6f6f6}::ng-deep .fs-list .fs-list-body tr:first-child td,::ng-deep .fs-list tbody tr:first-child td{border-top:2px solid #ddd}::ng-deep .fs-list .fs-list-body tr:last-child td,::ng-deep .fs-list tbody tr:last-child td{border-bottom:2px solid #ddd}::ng-deep .fs-list .fs-list-body td,::ng-deep .fs-list tbody td{border-top:1px solid #ddd}::ng-deep .fs-list .fs-list-body .fs-list-row,::ng-deep .fs-list .fs-list-body tr,::ng-deep .fs-list .fs-list-footer .fs-list-row,::ng-deep .fs-list .fs-list-footer tr,::ng-deep .fs-list .fs-list-head .fs-list-row,::ng-deep .fs-list .fs-list-head tr,::ng-deep .fs-list tbody .fs-list-row,::ng-deep .fs-list tbody tr,::ng-deep .fs-list tfoot .fs-list-row,::ng-deep .fs-list tfoot tr,::ng-deep .fs-list thead .fs-list-row,::ng-deep .fs-list thead tr{display:table-row}::ng-deep .fs-list .fs-list-body .fs-list-row .fs-list-col,::ng-deep .fs-list .fs-list-body .fs-list-row td,::ng-deep .fs-list .fs-list-body .fs-list-row th,::ng-deep .fs-list .fs-list-body tr .fs-list-col,::ng-deep .fs-list .fs-list-body tr td,::ng-deep .fs-list .fs-list-body tr th,::ng-deep .fs-list .fs-list-footer .fs-list-row .fs-list-col,::ng-deep .fs-list .fs-list-footer .fs-list-row td,::ng-deep .fs-list .fs-list-footer .fs-list-row th,::ng-deep .fs-list .fs-list-footer tr .fs-list-col,::ng-deep .fs-list .fs-list-footer tr td,::ng-deep .fs-list .fs-list-footer tr th,::ng-deep .fs-list .fs-list-head .fs-list-row .fs-list-col,::ng-deep .fs-list .fs-list-head .fs-list-row td,::ng-deep .fs-list .fs-list-head .fs-list-row th,::ng-deep .fs-list .fs-list-head tr .fs-list-col,::ng-deep .fs-list .fs-list-head tr td,::ng-deep .fs-list .fs-list-head tr th,::ng-deep .fs-list tbody .fs-list-row .fs-list-col,::ng-deep .fs-list tbody .fs-list-row td,::ng-deep .fs-list tbody .fs-list-row th,::ng-deep .fs-list tbody tr .fs-list-col,::ng-deep .fs-list tbody tr td,::ng-deep .fs-list tbody tr th,::ng-deep .fs-list tfoot .fs-list-row .fs-list-col,::ng-deep .fs-list tfoot .fs-list-row td,::ng-deep .fs-list tfoot .fs-list-row th,::ng-deep .fs-list tfoot tr .fs-list-col,::ng-deep .fs-list tfoot tr td,::ng-deep .fs-list tfoot tr th,::ng-deep .fs-list thead .fs-list-row .fs-list-col,::ng-deep .fs-list thead .fs-list-row td,::ng-deep .fs-list thead .fs-list-row th,::ng-deep .fs-list thead tr .fs-list-col,::ng-deep .fs-list thead tr td,::ng-deep .fs-list thead tr th{display:table-cell;padding:8px;vertical-align:middle;outline:0}::ng-deep .fs-list .fs-list-body .fs-list-row .fs-list-col.drag-col,::ng-deep .fs-list .fs-list-body .fs-list-row td.drag-col,::ng-deep .fs-list .fs-list-body .fs-list-row th.drag-col,::ng-deep .fs-list .fs-list-body tr .fs-list-col.drag-col,::ng-deep .fs-list .fs-list-body tr td.drag-col,::ng-deep .fs-list .fs-list-body tr th.drag-col,::ng-deep .fs-list .fs-list-footer .fs-list-row .fs-list-col.drag-col,::ng-deep .fs-list .fs-list-footer .fs-list-row td.drag-col,::ng-deep .fs-list .fs-list-footer .fs-list-row th.drag-col,::ng-deep .fs-list .fs-list-footer tr .fs-list-col.drag-col,::ng-deep .fs-list .fs-list-footer tr td.drag-col,::ng-deep .fs-list .fs-list-footer tr th.drag-col,::ng-deep .fs-list .fs-list-head .fs-list-row .fs-list-col.drag-col,::ng-deep .fs-list .fs-list-head .fs-list-row td.drag-col,::ng-deep .fs-list .fs-list-head .fs-list-row th.drag-col,::ng-deep .fs-list .fs-list-head tr .fs-list-col.drag-col,::ng-deep .fs-list .fs-list-head tr td.drag-col,::ng-deep .fs-list .fs-list-head tr th.drag-col,::ng-deep .fs-list tbody .fs-list-row .fs-list-col.drag-col,::ng-deep .fs-list tbody .fs-list-row td.drag-col,::ng-deep .fs-list tbody .fs-list-row th.drag-col,::ng-deep .fs-list tbody tr .fs-list-col.drag-col,::ng-deep .fs-list tbody tr td.drag-col,::ng-deep .fs-list tbody tr th.drag-col,::ng-deep .fs-list tfoot .fs-list-row .fs-list-col.drag-col,::ng-deep .fs-list tfoot .fs-list-row td.drag-col,::ng-deep .fs-list tfoot .fs-list-row th.drag-col,::ng-deep .fs-list tfoot tr .fs-list-col.drag-col,::ng-deep .fs-list tfoot tr td.drag-col,::ng-deep .fs-list tfoot tr th.drag-col,::ng-deep .fs-list thead .fs-list-row .fs-list-col.drag-col,::ng-deep .fs-list thead .fs-list-row td.drag-col,::ng-deep .fs-list thead .fs-list-row th.drag-col,::ng-deep .fs-list thead tr .fs-list-col.drag-col,::ng-deep .fs-list thead tr td.drag-col,::ng-deep .fs-list thead tr th.drag-col{width:24px;text-align:center;cursor:-webkit-grab;cursor:grab}::ng-deep .fs-list .fs-list-body .fs-list-row .fs-list-col.drag-col mat-icon,::ng-deep .fs-list .fs-list-body .fs-list-row td.drag-col mat-icon,::ng-deep .fs-list .fs-list-body .fs-list-row th.drag-col mat-icon,::ng-deep .fs-list .fs-list-body tr .fs-list-col.drag-col mat-icon,::ng-deep .fs-list .fs-list-body tr td.drag-col mat-icon,::ng-deep .fs-list .fs-list-body tr th.drag-col mat-icon,::ng-deep .fs-list .fs-list-footer .fs-list-row .fs-list-col.drag-col mat-icon,::ng-deep .fs-list .fs-list-footer .fs-list-row td.drag-col mat-icon,::ng-deep .fs-list .fs-list-footer .fs-list-row th.drag-col mat-icon,::ng-deep .fs-list .fs-list-footer tr .fs-list-col.drag-col mat-icon,::ng-deep .fs-list .fs-list-footer tr td.drag-col mat-icon,::ng-deep .fs-list .fs-list-footer tr th.drag-col mat-icon,::ng-deep .fs-list .fs-list-head .fs-list-row .fs-list-col.drag-col mat-icon,::ng-deep .fs-list .fs-list-head .fs-list-row td.drag-col mat-icon,::ng-deep .fs-list .fs-list-head .fs-list-row th.drag-col mat-icon,::ng-deep .fs-list .fs-list-head tr .fs-list-col.drag-col mat-icon,::ng-deep .fs-list .fs-list-head tr td.drag-col mat-icon,::ng-deep .fs-list .fs-list-head tr th.drag-col mat-icon,::ng-deep .fs-list tbody .fs-list-row .fs-list-col.drag-col mat-icon,::ng-deep .fs-list tbody .fs-list-row td.drag-col mat-icon,::ng-deep .fs-list tbody .fs-list-row th.drag-col mat-icon,::ng-deep .fs-list tbody tr .fs-list-col.drag-col mat-icon,::ng-deep .fs-list tbody tr td.drag-col mat-icon,::ng-deep .fs-list tbody tr th.drag-col mat-icon,::ng-deep .fs-list tfoot .fs-list-row .fs-list-col.drag-col mat-icon,::ng-deep .fs-list tfoot .fs-list-row td.drag-col mat-icon,::ng-deep .fs-list tfoot .fs-list-row th.drag-col mat-icon,::ng-deep .fs-list tfoot tr .fs-list-col.drag-col mat-icon,::ng-deep .fs-list tfoot tr td.drag-col mat-icon,::ng-deep .fs-list tfoot tr th.drag-col mat-icon,::ng-deep .fs-list thead .fs-list-row .fs-list-col.drag-col mat-icon,::ng-deep .fs-list thead .fs-list-row td.drag-col mat-icon,::ng-deep .fs-list thead .fs-list-row th.drag-col mat-icon,::ng-deep .fs-list thead tr .fs-list-col.drag-col mat-icon,::ng-deep .fs-list thead tr td.drag-col mat-icon,::ng-deep .fs-list thead tr th.drag-col mat-icon{display:flex}::ng-deep .fs-list .fs-list-body .fs-list-row .fs-list-col.row-actions,::ng-deep .fs-list .fs-list-body .fs-list-row td.row-actions,::ng-deep .fs-list .fs-list-body .fs-list-row th.row-actions,::ng-deep .fs-list .fs-list-body tr .fs-list-col.row-actions,::ng-deep .fs-list .fs-list-body tr td.row-actions,::ng-deep .fs-list .fs-list-body tr th.row-actions,::ng-deep .fs-list .fs-list-footer .fs-list-row .fs-list-col.row-actions,::ng-deep .fs-list .fs-list-footer .fs-list-row td.row-actions,::ng-deep .fs-list .fs-list-footer .fs-list-row th.row-actions,::ng-deep .fs-list .fs-list-footer tr .fs-list-col.row-actions,::ng-deep .fs-list .fs-list-footer tr td.row-actions,::ng-deep .fs-list .fs-list-footer tr th.row-actions,::ng-deep .fs-list .fs-list-head .fs-list-row .fs-list-col.row-actions,::ng-deep .fs-list .fs-list-head .fs-list-row td.row-actions,::ng-deep .fs-list .fs-list-head .fs-list-row th.row-actions,::ng-deep .fs-list .fs-list-head tr .fs-list-col.row-actions,::ng-deep .fs-list .fs-list-head tr td.row-actions,::ng-deep .fs-list .fs-list-head tr th.row-actions,::ng-deep .fs-list tbody .fs-list-row .fs-list-col.row-actions,::ng-deep .fs-list tbody .fs-list-row td.row-actions,::ng-deep .fs-list tbody .fs-list-row th.row-actions,::ng-deep .fs-list tbody tr .fs-list-col.row-actions,::ng-deep .fs-list tbody tr td.row-actions,::ng-deep .fs-list tbody tr th.row-actions,::ng-deep .fs-list tfoot .fs-list-row .fs-list-col.row-actions,::ng-deep .fs-list tfoot .fs-list-row td.row-actions,::ng-deep .fs-list tfoot .fs-list-row th.row-actions,::ng-deep .fs-list tfoot tr .fs-list-col.row-actions,::ng-deep .fs-list tfoot tr td.row-actions,::ng-deep .fs-list tfoot tr th.row-actions,::ng-deep .fs-list thead .fs-list-row .fs-list-col.row-actions,::ng-deep .fs-list thead .fs-list-row td.row-actions,::ng-deep .fs-list thead .fs-list-row th.row-actions,::ng-deep .fs-list thead tr .fs-list-col.row-actions,::ng-deep .fs-list thead tr td.row-actions,::ng-deep .fs-list thead tr th.row-actions{width:1%;white-space:nowrap;padding-right:10px;overflow:hidden}::ng-deep .fs-list .fs-list-body .fs-list-row .fs-list-col.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-body .fs-list-row td.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-body .fs-list-row th.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-body tr .fs-list-col.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-body tr td.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-body tr th.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-footer .fs-list-row .fs-list-col.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-footer .fs-list-row td.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-footer .fs-list-row th.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-footer tr .fs-list-col.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-footer tr td.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-footer tr th.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-head .fs-list-row .fs-list-col.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-head .fs-list-row td.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-head .fs-list-row th.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-head tr .fs-list-col.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-head tr td.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-head tr th.row-actions .row-inline-action,::ng-deep .fs-list tbody .fs-list-row .fs-list-col.row-actions .row-inline-action,::ng-deep .fs-list tbody .fs-list-row td.row-actions .row-inline-action,::ng-deep .fs-list tbody .fs-list-row th.row-actions .row-inline-action,::ng-deep .fs-list tbody tr .fs-list-col.row-actions .row-inline-action,::ng-deep .fs-list tbody tr td.row-actions .row-inline-action,::ng-deep .fs-list tbody tr th.row-actions .row-inline-action,::ng-deep .fs-list tfoot .fs-list-row .fs-list-col.row-actions .row-inline-action,::ng-deep .fs-list tfoot .fs-list-row td.row-actions .row-inline-action,::ng-deep .fs-list tfoot .fs-list-row th.row-actions .row-inline-action,::ng-deep .fs-list tfoot tr .fs-list-col.row-actions .row-inline-action,::ng-deep .fs-list tfoot tr td.row-actions .row-inline-action,::ng-deep .fs-list tfoot tr th.row-actions .row-inline-action,::ng-deep .fs-list thead .fs-list-row .fs-list-col.row-actions .row-inline-action,::ng-deep .fs-list thead .fs-list-row td.row-actions .row-inline-action,::ng-deep .fs-list thead .fs-list-row th.row-actions .row-inline-action,::ng-deep .fs-list thead tr .fs-list-col.row-actions .row-inline-action,::ng-deep .fs-list thead tr td.row-actions .row-inline-action,::ng-deep .fs-list thead tr th.row-actions .row-inline-action{margin-left:12px;display:inline-block}::ng-deep .fs-list .fs-list-body .fs-list-row .fs-list-col.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-body .fs-list-row td.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-body .fs-list-row th.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-body tr .fs-list-col.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-body tr td.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-body tr th.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-footer .fs-list-row .fs-list-col.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-footer .fs-list-row td.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-footer .fs-list-row th.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-footer tr .fs-list-col.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-footer tr td.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-footer tr th.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-head .fs-list-row .fs-list-col.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-head .fs-list-row td.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-head .fs-list-row th.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-head tr .fs-list-col.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-head tr td.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-head tr th.row-actions .row-inline-action:first-child,::ng-deep .fs-list tbody .fs-list-row .fs-list-col.row-actions .row-inline-action:first-child,::ng-deep .fs-list tbody .fs-list-row td.row-actions .row-inline-action:first-child,::ng-deep .fs-list tbody .fs-list-row th.row-actions .row-inline-action:first-child,::ng-deep .fs-list tbody tr .fs-list-col.row-actions .row-inline-action:first-child,::ng-deep .fs-list tbody tr td.row-actions .row-inline-action:first-child,::ng-deep .fs-list tbody tr th.row-actions .row-inline-action:first-child,::ng-deep .fs-list tfoot .fs-list-row .fs-list-col.row-actions .row-inline-action:first-child,::ng-deep .fs-list tfoot .fs-list-row td.row-actions .row-inline-action:first-child,::ng-deep .fs-list tfoot .fs-list-row th.row-actions .row-inline-action:first-child,::ng-deep .fs-list tfoot tr .fs-list-col.row-actions .row-inline-action:first-child,::ng-deep .fs-list tfoot tr td.row-actions .row-inline-action:first-child,::ng-deep .fs-list tfoot tr th.row-actions .row-inline-action:first-child,::ng-deep .fs-list thead .fs-list-row .fs-list-col.row-actions .row-inline-action:first-child,::ng-deep .fs-list thead .fs-list-row td.row-actions .row-inline-action:first-child,::ng-deep .fs-list thead .fs-list-row th.row-actions .row-inline-action:first-child,::ng-deep .fs-list thead tr .fs-list-col.row-actions .row-inline-action:first-child,::ng-deep .fs-list thead tr td.row-actions .row-inline-action:first-child,::ng-deep .fs-list thead tr th.row-actions .row-inline-action:first-child{margin-left:0}::ng-deep .fs-list .fs-list-body .fs-list-row .fs-list-col.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-body .fs-list-row .fs-list-col.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-body .fs-list-row .fs-list-col.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-body .fs-list-row .fs-list-col.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-body .fs-list-row td.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-body .fs-list-row td.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-body .fs-list-row td.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-body .fs-list-row td.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-body .fs-list-row th.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-body .fs-list-row th.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-body .fs-list-row th.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-body .fs-list-row th.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-body tr .fs-list-col.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-body tr .fs-list-col.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-body tr .fs-list-col.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-body tr .fs-list-col.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-body tr td.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-body tr td.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-body tr td.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-body tr td.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-body tr th.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-body tr th.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-body tr th.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-body tr th.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-footer .fs-list-row .fs-list-col.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-footer .fs-list-row .fs-list-col.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-footer .fs-list-row .fs-list-col.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-footer .fs-list-row .fs-list-col.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-footer .fs-list-row td.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-footer .fs-list-row td.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-footer .fs-list-row td.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-footer .fs-list-row td.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-footer .fs-list-row th.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-footer .fs-list-row th.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-footer .fs-list-row th.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-footer .fs-list-row th.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-footer tr .fs-list-col.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-footer tr .fs-list-col.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-footer tr .fs-list-col.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-footer tr .fs-list-col.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-footer tr td.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-footer tr td.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-footer tr td.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-footer tr td.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-footer tr th.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-footer tr th.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-footer tr th.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-footer tr th.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-head .fs-list-row .fs-list-col.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-head .fs-list-row .fs-list-col.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-head .fs-list-row .fs-list-col.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-head .fs-list-row .fs-list-col.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-head .fs-list-row td.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-head .fs-list-row td.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-head .fs-list-row td.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-head .fs-list-row td.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-head .fs-list-row th.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-head .fs-list-row th.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-head .fs-list-row th.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-head .fs-list-row th.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-head tr .fs-list-col.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-head tr .fs-list-col.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-head tr .fs-list-col.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-head tr .fs-list-col.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-head tr td.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-head tr td.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-head tr td.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-head tr td.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-head tr th.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-head tr th.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-head tr th.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-head tr th.row-actions .row-menu-action,::ng-deep .fs-list tbody .fs-list-row .fs-list-col.row-actions .row-inline-action-fab,::ng-deep .fs-list tbody .fs-list-row .fs-list-col.row-actions .row-inline-action-icon,::ng-deep .fs-list tbody .fs-list-row .fs-list-col.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list tbody .fs-list-row .fs-list-col.row-actions .row-menu-action,::ng-deep .fs-list tbody .fs-list-row td.row-actions .row-inline-action-fab,::ng-deep .fs-list tbody .fs-list-row td.row-actions .row-inline-action-icon,::ng-deep .fs-list tbody .fs-list-row td.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list tbody .fs-list-row td.row-actions .row-menu-action,::ng-deep .fs-list tbody .fs-list-row th.row-actions .row-inline-action-fab,::ng-deep .fs-list tbody .fs-list-row th.row-actions .row-inline-action-icon,::ng-deep .fs-list tbody .fs-list-row th.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list tbody .fs-list-row th.row-actions .row-menu-action,::ng-deep .fs-list tbody tr .fs-list-col.row-actions .row-inline-action-fab,::ng-deep .fs-list tbody tr .fs-list-col.row-actions .row-inline-action-icon,::ng-deep .fs-list tbody tr .fs-list-col.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list tbody tr .fs-list-col.row-actions .row-menu-action,::ng-deep .fs-list tbody tr td.row-actions .row-inline-action-fab,::ng-deep .fs-list tbody tr td.row-actions .row-inline-action-icon,::ng-deep .fs-list tbody tr td.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list tbody tr td.row-actions .row-menu-action,::ng-deep .fs-list tbody tr th.row-actions .row-inline-action-fab,::ng-deep .fs-list tbody tr th.row-actions .row-inline-action-icon,::ng-deep .fs-list tbody tr th.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list tbody tr th.row-actions .row-menu-action,::ng-deep .fs-list tfoot .fs-list-row .fs-list-col.row-actions .row-inline-action-fab,::ng-deep .fs-list tfoot .fs-list-row .fs-list-col.row-actions .row-inline-action-icon,::ng-deep .fs-list tfoot .fs-list-row .fs-list-col.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list tfoot .fs-list-row .fs-list-col.row-actions .row-menu-action,::ng-deep .fs-list tfoot .fs-list-row td.row-actions .row-inline-action-fab,::ng-deep .fs-list tfoot .fs-list-row td.row-actions .row-inline-action-icon,::ng-deep .fs-list tfoot .fs-list-row td.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list tfoot .fs-list-row td.row-actions .row-menu-action,::ng-deep .fs-list tfoot .fs-list-row th.row-actions .row-inline-action-fab,::ng-deep .fs-list tfoot .fs-list-row th.row-actions .row-inline-action-icon,::ng-deep .fs-list tfoot .fs-list-row th.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list tfoot .fs-list-row th.row-actions .row-menu-action,::ng-deep .fs-list tfoot tr .fs-list-col.row-actions .row-inline-action-fab,::ng-deep .fs-list tfoot tr .fs-list-col.row-actions .row-inline-action-icon,::ng-deep .fs-list tfoot tr .fs-list-col.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list tfoot tr .fs-list-col.row-actions .row-menu-action,::ng-deep .fs-list tfoot tr td.row-actions .row-inline-action-fab,::ng-deep .fs-list tfoot tr td.row-actions .row-inline-action-icon,::ng-deep .fs-list tfoot tr td.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list tfoot tr td.row-actions .row-menu-action,::ng-deep .fs-list tfoot tr th.row-actions .row-inline-action-fab,::ng-deep .fs-list tfoot tr th.row-actions .row-inline-action-icon,::ng-deep .fs-list tfoot tr th.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list tfoot tr th.row-actions .row-menu-action,::ng-deep .fs-list thead .fs-list-row .fs-list-col.row-actions .row-inline-action-fab,::ng-deep .fs-list thead .fs-list-row .fs-list-col.row-actions .row-inline-action-icon,::ng-deep .fs-list thead .fs-list-row .fs-list-col.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list thead .fs-list-row .fs-list-col.row-actions .row-menu-action,::ng-deep .fs-list thead .fs-list-row td.row-actions .row-inline-action-fab,::ng-deep .fs-list thead .fs-list-row td.row-actions .row-inline-action-icon,::ng-deep .fs-list thead .fs-list-row td.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list thead .fs-list-row td.row-actions .row-menu-action,::ng-deep .fs-list thead .fs-list-row th.row-actions .row-inline-action-fab,::ng-deep .fs-list thead .fs-list-row th.row-actions .row-inline-action-icon,::ng-deep .fs-list thead .fs-list-row th.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list thead .fs-list-row th.row-actions .row-menu-action,::ng-deep .fs-list thead tr .fs-list-col.row-actions .row-inline-action-fab,::ng-deep .fs-list thead tr .fs-list-col.row-actions .row-inline-action-icon,::ng-deep .fs-list thead tr .fs-list-col.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list thead tr .fs-list-col.row-actions .row-menu-action,::ng-deep .fs-list thead tr td.row-actions .row-inline-action-fab,::ng-deep .fs-list thead tr td.row-actions .row-inline-action-icon,::ng-deep .fs-list thead tr td.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list thead tr td.row-actions .row-menu-action,::ng-deep .fs-list thead tr th.row-actions .row-inline-action-fab,::ng-deep .fs-list thead tr th.row-actions .row-inline-action-icon,::ng-deep .fs-list thead tr th.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list thead tr th.row-actions .row-menu-action{width:35px;justify-content:center;align-items:center}::ng-deep .fs-list .fs-list-body .fs-list-row .fs-list-col.left,::ng-deep .fs-list .fs-list-body .fs-list-row td.left,::ng-deep .fs-list .fs-list-body .fs-list-row th.left,::ng-deep .fs-list .fs-list-body tr .fs-list-col.left,::ng-deep .fs-list .fs-list-body tr td.left,::ng-deep .fs-list .fs-list-body tr th.left,::ng-deep .fs-list .fs-list-footer .fs-list-row .fs-list-col.left,::ng-deep .fs-list .fs-list-footer .fs-list-row td.left,::ng-deep .fs-list .fs-list-footer .fs-list-row th.left,::ng-deep .fs-list .fs-list-footer tr .fs-list-col.left,::ng-deep .fs-list .fs-list-footer tr td.left,::ng-deep .fs-list .fs-list-footer tr th.left,::ng-deep .fs-list .fs-list-head .fs-list-row .fs-list-col.left,::ng-deep .fs-list .fs-list-head .fs-list-row td.left,::ng-deep .fs-list .fs-list-head .fs-list-row th.left,::ng-deep .fs-list .fs-list-head tr .fs-list-col.left,::ng-deep .fs-list .fs-list-head tr td.left,::ng-deep .fs-list .fs-list-head tr th.left,::ng-deep .fs-list tbody .fs-list-row .fs-list-col.left,::ng-deep .fs-list tbody .fs-list-row td.left,::ng-deep .fs-list tbody .fs-list-row th.left,::ng-deep .fs-list tbody tr .fs-list-col.left,::ng-deep .fs-list tbody tr td.left,::ng-deep .fs-list tbody tr th.left,::ng-deep .fs-list tfoot .fs-list-row .fs-list-col.left,::ng-deep .fs-list tfoot .fs-list-row td.left,::ng-deep .fs-list tfoot .fs-list-row th.left,::ng-deep .fs-list tfoot tr .fs-list-col.left,::ng-deep .fs-list tfoot tr td.left,::ng-deep .fs-list tfoot tr th.left,::ng-deep .fs-list thead .fs-list-row .fs-list-col.left,::ng-deep .fs-list thead .fs-list-row td.left,::ng-deep .fs-list thead .fs-list-row th.left,::ng-deep .fs-list thead tr .fs-list-col.left,::ng-deep .fs-list thead tr td.left,::ng-deep .fs-list thead tr th.left{text-align:left}::ng-deep .fs-list .fs-list-body .fs-list-row .fs-list-col.center,::ng-deep .fs-list .fs-list-body .fs-list-row td.center,::ng-deep .fs-list .fs-list-body .fs-list-row th.center,::ng-deep .fs-list .fs-list-body tr .fs-list-col.center,::ng-deep .fs-list .fs-list-body tr td.center,::ng-deep .fs-list .fs-list-body tr th.center,::ng-deep .fs-list .fs-list-footer .fs-list-row .fs-list-col.center,::ng-deep .fs-list .fs-list-footer .fs-list-row td.center,::ng-deep .fs-list .fs-list-footer .fs-list-row th.center,::ng-deep .fs-list .fs-list-footer tr .fs-list-col.center,::ng-deep .fs-list .fs-list-footer tr td.center,::ng-deep .fs-list .fs-list-footer tr th.center,::ng-deep .fs-list .fs-list-head .fs-list-row .fs-list-col.center,::ng-deep .fs-list .fs-list-head .fs-list-row td.center,::ng-deep .fs-list .fs-list-head .fs-list-row th.center,::ng-deep .fs-list .fs-list-head tr .fs-list-col.center,::ng-deep .fs-list .fs-list-head tr td.center,::ng-deep .fs-list .fs-list-head tr th.center,::ng-deep .fs-list tbody .fs-list-row .fs-list-col.center,::ng-deep .fs-list tbody .fs-list-row td.center,::ng-deep .fs-list tbody .fs-list-row th.center,::ng-deep .fs-list tbody tr .fs-list-col.center,::ng-deep .fs-list tbody tr td.center,::ng-deep .fs-list tbody tr th.center,::ng-deep .fs-list tfoot .fs-list-row .fs-list-col.center,::ng-deep .fs-list tfoot .fs-list-row td.center,::ng-deep .fs-list tfoot .fs-list-row th.center,::ng-deep .fs-list tfoot tr .fs-list-col.center,::ng-deep .fs-list tfoot tr td.center,::ng-deep .fs-list tfoot tr th.center,::ng-deep .fs-list thead .fs-list-row .fs-list-col.center,::ng-deep .fs-list thead .fs-list-row td.center,::ng-deep .fs-list thead .fs-list-row th.center,::ng-deep .fs-list thead tr .fs-list-col.center,::ng-deep .fs-list thead tr td.center,::ng-deep .fs-list thead tr th.center{text-align:center}::ng-deep .fs-list .fs-list-body .fs-list-row .fs-list-col.right,::ng-deep .fs-list .fs-list-body .fs-list-row td.right,::ng-deep .fs-list .fs-list-body .fs-list-row th.right,::ng-deep .fs-list .fs-list-body tr .fs-list-col.right,::ng-deep .fs-list .fs-list-body tr td.right,::ng-deep .fs-list .fs-list-body tr th.right,::ng-deep .fs-list .fs-list-footer .fs-list-row .fs-list-col.right,::ng-deep .fs-list .fs-list-footer .fs-list-row td.right,::ng-deep .fs-list .fs-list-footer .fs-list-row th.right,::ng-deep .fs-list .fs-list-footer tr .fs-list-col.right,::ng-deep .fs-list .fs-list-footer tr td.right,::ng-deep .fs-list .fs-list-footer tr th.right,::ng-deep .fs-list .fs-list-head .fs-list-row .fs-list-col.right,::ng-deep .fs-list .fs-list-head .fs-list-row td.right,::ng-deep .fs-list .fs-list-head .fs-list-row th.right,::ng-deep .fs-list .fs-list-head tr .fs-list-col.right,::ng-deep .fs-list .fs-list-head tr td.right,::ng-deep .fs-list .fs-list-head tr th.right,::ng-deep .fs-list tbody .fs-list-row .fs-list-col.right,::ng-deep .fs-list tbody .fs-list-row td.right,::ng-deep .fs-list tbody .fs-list-row th.right,::ng-deep .fs-list tbody tr .fs-list-col.right,::ng-deep .fs-list tbody tr td.right,::ng-deep .fs-list tbody tr th.right,::ng-deep .fs-list tfoot .fs-list-row .fs-list-col.right,::ng-deep .fs-list tfoot .fs-list-row td.right,::ng-deep .fs-list tfoot .fs-list-row th.right,::ng-deep .fs-list tfoot tr .fs-list-col.right,::ng-deep .fs-list tfoot tr td.right,::ng-deep .fs-list tfoot tr th.right,::ng-deep .fs-list thead .fs-list-row .fs-list-col.right,::ng-deep .fs-list thead .fs-list-row td.right,::ng-deep .fs-list thead .fs-list-row th.right,::ng-deep .fs-list thead tr .fs-list-col.right,::ng-deep .fs-list thead tr td.right,::ng-deep .fs-list thead tr th.right{text-align:right}::ng-deep .fs-list .fs-list-body .fs-list-row.draggable,::ng-deep .fs-list .fs-list-body tr.draggable,::ng-deep .fs-list .fs-list-footer .fs-list-row.draggable,::ng-deep .fs-list .fs-list-footer tr.draggable,::ng-deep .fs-list .fs-list-head .fs-list-row.draggable,::ng-deep .fs-list .fs-list-head tr.draggable,::ng-deep .fs-list tbody .fs-list-row.draggable,::ng-deep .fs-list tbody tr.draggable,::ng-deep .fs-list tfoot .fs-list-row.draggable,::ng-deep .fs-list tfoot tr.draggable,::ng-deep .fs-list thead .fs-list-row.draggable,::ng-deep .fs-list thead tr.draggable{position:fixed;z-index:9999;box-shadow:2px 2px 2px 0 rgba(158,158,158,.65);border-radius:5px}::ng-deep .fs-list .fs-list-body .fs-list-row.draggable .fs-list-col,::ng-deep .fs-list .fs-list-body .fs-list-row.draggable td,::ng-deep .fs-list .fs-list-body tr.draggable .fs-list-col,::ng-deep .fs-list .fs-list-body tr.draggable td,::ng-deep .fs-list .fs-list-footer .fs-list-row.draggable .fs-list-col,::ng-deep .fs-list .fs-list-footer .fs-list-row.draggable td,::ng-deep .fs-list .fs-list-footer tr.draggable .fs-list-col,::ng-deep .fs-list .fs-list-footer tr.draggable td,::ng-deep .fs-list .fs-list-head .fs-list-row.draggable .fs-list-col,::ng-deep .fs-list .fs-list-head .fs-list-row.draggable td,::ng-deep .fs-list .fs-list-head tr.draggable .fs-list-col,::ng-deep .fs-list .fs-list-head tr.draggable td,::ng-deep .fs-list tbody .fs-list-row.draggable .fs-list-col,::ng-deep .fs-list tbody .fs-list-row.draggable td,::ng-deep .fs-list tbody tr.draggable .fs-list-col,::ng-deep .fs-list tbody tr.draggable td,::ng-deep .fs-list tfoot .fs-list-row.draggable .fs-list-col,::ng-deep .fs-list tfoot .fs-list-row.draggable td,::ng-deep .fs-list tfoot tr.draggable .fs-list-col,::ng-deep .fs-list tfoot tr.draggable td,::ng-deep .fs-list thead .fs-list-row.draggable .fs-list-col,::ng-deep .fs-list thead .fs-list-row.draggable td,::ng-deep .fs-list thead tr.draggable .fs-list-col,::ng-deep .fs-list thead tr.draggable td{background-color:#f6f6f6;border:none}::ng-deep .fs-list .fs-list-header .heading-container{font-weight:600;font-size:18px;color:#212537;display:flex;flex-direction:column;justify-content:center}::ng-deep .fs-list .fs-list-header .heading{margin:0;line-height:36px}::ng-deep .fs-list .fs-list-header .subheading{display:block;font-size:14px;color:#929292;font-weight:400}::ng-deep .fs-list .fs-list-header .fs-list-actions{white-space:nowrap;float:right}::ng-deep .fs-list .fs-list-header .fs-list-actions .menu-button{width:36px;height:36px;line-height:36px}::ng-deep .fs-list .fs-list-header .action-button{margin-left:5px}::ng-deep .fs-list .fs-list-header .action-button:first-child{margin-left:0}::ng-deep .fs-list .fs-list-header .mat-button{margin-top:0;margin-bottom:0;margin-right:0}::ng-deep .fs-list .fs-list-container{width:100%}::ng-deep .fs-list .fs-list-container:not(.has-filters):not(.has-actions):not(.has-heading) .fs-list-header-container{display:none}::ng-deep .fs-list .fs-list-container.has-dragging thead th{border-bottom:2px solid #ddd}::ng-deep .fs-list .fs-list-container.has-dragging tbody tr:nth-child(2) td{border-top:none}::ng-deep .fs-list tfoot td{padding:8px}::ng-deep .reorder-in-progress{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}::ng-deep .draggable-elem td{opacity:.2}::ng-deep .hidden-mobile-menu-action{display:none!important}::ng-deep .hidden-mobile{display:none!important}@media only screen and (max-width:600px){::ng-deep .fs-list-filter .inline-actions{top:initial!important;position:initial!important}::ng-deep .fs-list-filter .inline-actions .action-filter{margin-bottom:0!important}::ng-deep .fs-list-header .filter-input-field .mat-form-field-wrapper{padding:0!important}::ng-deep .fs-list-header.has-filters{flex-flow:row wrap}}@media only screen and (max-width:768px){::ng-deep .show-mobile{display:inline-block!important}::ng-deep .fs-list-actions .action-button{display:none}::ng-deep .row-inline-action.mobile-hide{display:none}::ng-deep .hidden-mobile-menu-action{display:block!important}}"]}),k(2,e.Optional()),k(2,e.Inject(yt)),k(3,e.Optional()),k(12,e.Optional()),k(13,e.Optional()),F("design:paramtypes",[lt,e.ElementRef,Object,h.FsScrollService,_.SelectionDialog,l.MatDialog,e.ChangeDetectorRef,pt,n.Router,n.ActivatedRoute,bt,i.Location,l.MatDialogRef,R.DrawerRef])],t)}(),_t=function(){function i(t,e,i,n){this._cdRef=t,this._zone=e,this._containerElement=i,this._reorderController=n,this._dragToHandler=this.dragTo.bind(this),this._dragEndHandler=this.dragEnd.bind(this),this._windowTouchMoveHandler=function(){},this._dragInProgress=!1,this._dragStart$=new b.Subject,this._dragEnd$=new b.Subject,this._destroy$=new b.Subject}return Object.defineProperty(i.prototype,"dragStart$",{get:function(){return this._dragStart$.pipe(v.takeUntil(this._destroy$))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dragEnd$",{get:function(){return this._dragEnd$.pipe(v.takeUntil(this._destroy$))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"draggableItem",{get:function(){return this._rows[this._draggableElementIndex]},enumerable:!0,configurable:!0}),i.prototype.dragStart=function(e){var i=this;this._dragInProgress||(this._reorderController.startCallback&&this._reorderController.strategy===t.ReorderStrategy.Always&&this._reorderController.startCallback(),this._dragInProgress=!0,window.document.body.classList.add("reorder-in-progress"),this._draggableElement=e,this.prepareElements(),this.initDraggableElement(),this._draggableElement.classList.add("draggable-elem"),this._zone.runOutsideAngular((function(){window.addEventListener("touchmove",i._windowTouchMoveHandler,{passive:!0}),window.document.addEventListener("mousemove",i._dragToHandler,{passive:!0}),window.document.addEventListener("touchmove",i._dragToHandler,{passive:!1}),window.document.addEventListener("mouseup",i._dragEndHandler),window.document.addEventListener("touchend",i._dragEndHandler),window.document.addEventListener("touchcancel",i._dragEndHandler)})),this._dragStart$.next())},i.prototype.dragTo=function(t){this.touchFix(t);var e=this.lookupElementUnder(t),i=this._rows[e];(0===e||e===this._rows.length-1)&&i.isGroup&&this.draggableItem.isChild||null!==e&&(i.readyToSwap?(this.swapWithIndex(e),this._draggableElementPreview.classList.remove("fs-list-no-drop")):this._draggableElementPreview.classList.add("fs-list-no-drop"));var n=(t.y||t.clientY)-this._draggableElementHeight/2;this._draggableElementPreview.style.top=n+"px"},i.prototype.dragEnd=function(){var e=this;this._dragInProgress=!1,this._reorderController.movedCallback&&this._reorderController.movedCallback(this._reorderController.dataController.reorderData),this._reorderController.strategy===t.ReorderStrategy.Always&&this._zone.run((function(){if(e._reorderController.doneCallback){var t=e._reorderController.doneCallback(e._reorderController.dataController.reorderData);e._waitUntilIsNotDone(t)}})),this._draggableElement.classList.remove("draggable-elem"),window.document.body.classList.remove("reorder-in-progress"),this._draggableElementPreview.remove(),this._draggableElement=null,this._draggableElementPreview=null,this._draggableElementHeight=null,this._draggableElementIndex=null,window.removeEventListener("touchmove",this._windowTouchMoveHandler),window.document.removeEventListener("mousemove",this._dragToHandler),window.document.removeEventListener("touchmove",this._dragToHandler),window.document.removeEventListener("mouseup",this._dragEndHandler),window.document.removeEventListener("touchend",this._dragEndHandler),window.document.removeEventListener("touchcancel",this._dragEndHandler),this._dragEnd$.next()},i.prototype.prepareElements=function(){this.lookupChildElements(),this.calcElementsDimensions()},i.prototype.lookupChildElements=function(){var t=this;this._childRowElements=Array.from(this._containerElement.nativeElement.querySelectorAll("tr")).reduce((function(e,i,n){var o={target:i};return i===t._draggableElement&&(t._draggableElementIndex=n,o.active=!0),e.push(o),e}),[])},i.prototype.calcElementsDimensions=function(){this._childRowElements.forEach((function(t,e){var i=t.target.getBoundingClientRect();t.top=i.top,t.height=i.height,t.center=i.top+i.height/2,t.index=e}))},i.prototype.initDraggableElement=function(){var t=this._draggableElement.cloneNode(!0),e=this._draggableElement.getBoundingClientRect();t.style.width=e.width+"px",t.style.left=e.left+"px",t.style.top=e.top+"px",t.classList.add("draggable"),this._containerElement.nativeElement.insertAdjacentElement("afterbegin",t),this._draggableElementPreview=t,this._draggableElementHeight=e.height,this.updateDraggableDims()},i.prototype.lookupElementUnder=function(t){for(var e=t.y||t.clientY,i=t.y||t.clientY,n=null,o=0;o<this._childRowElements.length;o++){var s=this._childRowElements[o];s.active||(e<s.center+s.height/2&&s.index<this._draggableElementIndex||i>s.center-s.height/2&&s.index>this._draggableElementIndex)&&(n=o)}return n},i.prototype.swapWithIndex=function(t){var e=this._draggableElementIndex;this._reorderController.dataController.swapRows(this._rows[e],this._rows[t]);var i=this._rows[e];this._rows[e]=this._rows[t],this._rows[t]=i;var n=this._childRowElements[e].target;this._childRowElements[e].active=!1,this._childRowElements[e].target=this._childRowElements[t].target,this._childRowElements[t].target=n,this._childRowElements[t].active=!0,this._draggableElementIndex=t,this._cdRef.detectChanges()},i.prototype.updateDraggableDims=function(){var t=Array.from(this._draggableElementPreview.querySelectorAll("td"));Array.from(this._draggableElementPreview.querySelectorAll("td")).forEach((function(e,i){var n=e.getBoundingClientRect();t[i].style.width=n.width+"px"}))},i.prototype._waitUntilIsNotDone=function(t){var e=this;t instanceof b.Observable&&(this._reorderController.disableReorderAction(),t.pipe(v.takeUntil(this._destroy$)).subscribe((function(){console.log("enable"),e._reorderController.enableReorderAction()})))},i.prototype.touchFix=function(t){if(!("clientX"in t)&&!("clientY"in t)){var e=t.touches||t.originalEvent.touches;e&&e.length&&(t.clientX=e[0].clientX,t.clientY=e[0].clientY),t.preventDefault()}},i.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.NgZone},{type:e.ElementRef},{type:lt}]},D([e.Input("rows"),F("design:type",Array)],i.prototype,"_rows",void 0),i=D([e.Directive({selector:"[fsListDraggableList]"}),F("design:paramtypes",[e.ChangeDetectorRef,e.NgZone,e.ElementRef,lt])],i)}(),Ct=function(){function i(e,i,n,o,s,r){this.el=e,this.reorderController=i,this._cdRef=n,this._differs=o,this._renderer=s,this._draggableList=r,this.role="row",this.rowActionsRaw=[],this.groupActionsRaw=[],this.hasRowActions=!1,this.rowEvents={},this.restoreMode=!1,this.ReorderPosition=t.ReorderPosition,this.ReorderStrategy=t.ReorderStrategy,this.rowActions=[],this.menuRowActions=[],this.inlineRowActions=[],this.selected=!1,this.indeterminateSelected=!1,this._eventListeners=[],this._destroy$=new b.Subject,this._rowDiffer=o.find({}).create()}return Object.defineProperty(i.prototype,"rowCssClass",{get:function(){var t,e,i="fs-list-row";if(this.rowIndex%2!=0&&(i+=" fs-list-row-odd"),this.rowIndex%2==0&&(i+=" fs-list-row-even"),this.row&&this.row.isGroup&&(i+=" fs-list-row-group"),this.rowClass){var n=this.rowClass(this.row.data);if("string"==typeof n)i+=" "+n;else if("object"==typeof n){var o=Object.keys(n);try{for(var s=I(o),r=s.next();!r.done;r=s.next()){var l=r.value;!0===n[l]&&(i+=" "+l)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}}}return i},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dragCellVisible",{get:function(){return!this.row.isGroup},enumerable:!0,configurable:!0}),i.prototype.ngOnInit=function(){this.initRowEvents(),this.initSelection(),this.row&&this.row.isGroup?this.row&&this.row.isGroup&&this.groupActionsRaw&&(this.rowActions=this.groupActionsRaw.map((function(t){return new U(t)})),this.filterActionsByCategories()):this.rowActionsRaw&&(this.rowActions=this.rowActionsRaw.map((function(t){return new U(t)})),this.filterActionsByCategories())},i.prototype.ngDoCheck=function(){var t=this;this._rowDiffer.diff(this.row)&&(this.rowActions&&(this.rowActions.forEach((function(e){e.checkShowStatus(t.row.data,t.rowIndex),e.updateLink(t.row.data)})),this.filterActionsByCategories()),this._cdRef.markForCheck())},i.prototype.ngOnDestroy=function(){this._eventListeners.forEach((function(t){t()})),this._destroy$.next(),this._destroy$.complete()},i.prototype.selectRow=function(t){this.selection.rowSelectionChange(this.row,t.checked),this._cdRef.markForCheck()},i.prototype.trackByFn=function(t){return t},i.prototype.dragStart=function(t){this.reorderController.enabled&&(t.preventDefault(),t.stopPropagation(),this._draggableList.dragStart(this.el.nativeElement))},i.prototype.initRowEvents=function(){var t=this,e=function(e){if(i.rowEvents.hasOwnProperty(e)){var n=i._renderer.listen(i.el.nativeElement,e,(function(i){t.reorderController.enabled||t.rowEvents[e]({event:i,row:t.row.data,rowIndex:t.rowIndex})}));i._eventListeners.push(n)}},i=this;for(var n in this.rowEvents)e(n)},i.prototype.initSelection=function(){var t=this;this.selection&&(this.selected=this.row&&this.selection.isRowSelected(this.row.data),this.selection.selectionChange$.pipe(v.takeUntil(this._destroy$)).subscribe((function(){var e;if(t.selected=t.row&&t.selection.isRowSelected(t.row.data),null===(e=t.row)||void 0===e?void 0:e.isGroup){var i=t.selection.isGroupSelected(t.row);"indeterminate"===i?(t.selected=!0,t.indeterminateSelected=!0):(t.selected=i,t.indeterminateSelected=!1)}t._cdRef.markForCheck()})))},i.prototype.filterActionsByCategories=function(){var t=this;this.menuRowActions=[],this.inlineRowActions=[],this.restoreAction=null,this.rowActions.forEach((function(e){e.isShown&&(e.menu&&!e.restore?t.menuRowActions.push(e):e.menu||e.restore?e.restore&&(t.restoreAction=e):t.inlineRowActions.push(e))}))},i.ctorParameters=function(){return[{type:e.ElementRef},{type:lt},{type:e.ChangeDetectorRef},{type:e.KeyValueDiffers},{type:e.Renderer2},{type:_t}]},D([e.HostBinding("attr.role"),F("design:type",Object)],i.prototype,"role",void 0),D([e.Input(),F("design:type",Y)],i.prototype,"row",void 0),D([e.Input(),F("design:type",Array)],i.prototype,"rowActionsRaw",void 0),D([e.Input(),F("design:type",Array)],i.prototype,"groupActionsRaw",void 0),D([e.Input(),F("design:type",Object)],i.prototype,"hasRowActions",void 0),D([e.Input(),F("design:type",Object)],i.prototype,"rowEvents",void 0),D([e.Input(),F("design:type",Object)],i.prototype,"rowClass",void 0),D([e.Input(),F("design:type",Object)],i.prototype,"restoreMode",void 0),D([e.Input(),F("design:type",Number)],i.prototype,"rowIndex",void 0),D([e.Input(),F("design:type",Array)],i.prototype,"columns",void 0),D([e.Input(),F("design:type",nt)],i.prototype,"selection",void 0),D([e.Input(),F("design:type",e.EventEmitter)],i.prototype,"rowRemoved",void 0),D([e.ViewChildren("td"),F("design:type",Object)],i.prototype,"cellRefs",void 0),D([e.HostBinding("class"),F("design:type",Object),F("design:paramtypes",[])],i.prototype,"rowCssClass",null),i=D([e.Component({selector:"[fs-list-row]",template:'\x3c!-- Drag --\x3e\n<ng-container *ngIf="reorderController.leftReorderActivated$ | async">\n <ng-container *ngTemplateOutlet="dragCell"></ng-container>\n</ng-container>\n\n\x3c!-- Selection --\x3e\n<ng-container *ngIf="selection">\n <td class="fs-list-col fs-list-col-selection">\n <mat-checkbox (change)="selectRow($event)"\n [checked]="selected"\n [indeterminate]="indeterminateSelected">\n </mat-checkbox>\n </td>\n</ng-container>\n\n\x3c!-- Content --\x3e\n<ng-container *ngFor="let column of columns; trackBy: trackByFn; let isFirst = first">\n <td fs-cell\n *ngIf="(row.isGroup && !column.groupCellColspanned) || (!row.isGroup && !column.cellColspanned)"\n [column]="column"\n [row]="row"\n [rowIndex]="rowIndex"\n [class]="column.cellConfigs.classesString"\n [ngClass]="{ \'primary-col\': isFirst }"\n [attr.colspan]="(row.isGroup && column.groupCellConfigs.colspan) || column.cellConfigs.colspan"\n [attr.width]="column.width"\n >\n </td>\n</ng-container>\n\n\x3c!-- Drag --\x3e\n<ng-container *ngIf="reorderController.rightReorderActivated$ | async">\n <ng-container *ngTemplateOutlet="dragCell"></ng-container>\n</ng-container>\n\n\x3c!-- Row Actions --\x3e\n<td *ngIf="hasRowActions && !(reorderController.manualReorderActivated$ | async)" class="fs-list-col row-actions">\n <fs-list-row-actions [row]="row"\n [index]="rowIndex"\n [rowActions]="rowActions"\n [menuRowActions]="menuRowActions"\n [inlineRowActions]="inlineRowActions"\n [restoreAction]="restoreAction"\n [restoreMode]="restoreMode"\n [rowRemoved]="rowRemoved"\n ></fs-list-row-actions>\n</td>\n\n<ng-template #dragCell>\n <ng-container *ngIf="dragCellVisible; else emptyCell">\n <td class="fs-list-col drag-col"\n (mousedown)="dragStart($event)"\n (touchstart)="dragStart($event)"\n >\n <mat-icon>drag_handle</mat-icon>\n </td>\n </ng-container>\n <ng-template #emptyCell>\n <td class="fs-list-col drag-col"></td>\n </ng-template>\n</ng-template>\n',changeDetection:e.ChangeDetectionStrategy.OnPush}),F("design:paramtypes",[e.ElementRef,lt,e.ChangeDetectorRef,e.KeyValueDiffers,e.Renderer2,_t])],i)}(),Rt=function(){function t(t,e,i,n){this.reorderContoller=t,this.el=e,this.cdRef=i,this.differs=n,this.columns=[],this.hasFooter=!1,this.rowActionsRaw=[],this.groupActionsRaw=[],this.rowEvents={},this.hasRowActions=!1,this.restoreMode=!1,this._destroy$=new b.Subject,this._rowsDiffer=n.find([]).create(null)}return t.prototype.ngDoCheck=function(){this._rowsDiffer.diff(this.rows)&&this.cdRef.markForCheck()},t.prototype.ngOnDestroy=function(){this._destroy$.next(),this._destroy$.complete()},t.ctorParameters=function(){return[{type:lt},{type:e.ElementRef},{type:e.ChangeDetectorRef},{type:e.IterableDiffers}]},D([e.Input(),F("design:type",Array)],t.prototype,"rows",void 0),D([e.Input(),F("design:type",Array)],t.prototype,"columns",void 0),D([e.Input(),F("design:type",Object)],t.prototype,"hasFooter",void 0),D([e.Input(),F("design:type",Array)],t.prototype,"rowActionsRaw",void 0),D([e.Input(),F("design:type",Array)],t.prototype,"groupActionsRaw",void 0),D([e.Input(),F("design:type",Object)],t.prototype,"rowEvents",void 0),D([e.Input(),F("design:type",Object)],t.prototype,"rowClass",void 0),D([e.Input(),F("design:type",Object)],t.prototype,"hasRowActions",void 0),D([e.Input(),F("design:type",nt)],t.prototype,"selection",void 0),D([e.Input(),F("design:type",Object)],t.prototype,"restoreMode",void 0),D([e.Input(),F("design:type",e.EventEmitter)],t.prototype,"rowRemoved",void 0),D([e.ViewChild("rowsContainer",{read:e.ViewContainerRef,static:!0}),F("design:type",Object)],t.prototype,"rowsContainer",void 0),D([e.ContentChild(Ct,{read:e.TemplateRef,static:!0}),F("design:type",e.TemplateRef)],t.prototype,"headerTemplate",void 0),t=D([e.Component({selector:"[fs-list-body]",template:'<ng-container *ngFor="let row of rows; let i = index;">\n <tr fs-list-row\n fsListDraggableRow\n [row]="row"\n [rowIndex]="i"\n [columns]="columns"\n [rowActionsRaw]="rowActionsRaw"\n [groupActionsRaw]="groupActionsRaw"\n [hasRowActions]="hasRowActions"\n [rowEvents]="rowEvents"\n [rowClass]="rowClass"\n [selection]="selection"\n [restoreMode]="restoreMode"\n [ngClass]="{ \'drag-row\': reorderContoller.enabled }"\n [rowRemoved]="rowRemoved"\n #activeRow>\n </tr>\n</ng-container>\n',changeDetection:e.ChangeDetectionStrategy.OnPush}),F("design:paramtypes",[lt,e.ElementRef,e.ChangeDetectorRef,e.IterableDiffers])],t)}(),St=function(){function t(){this.isColl=!0,this.role="gridcell",this.cellContext={},this._destroy$=new b.Subject}return t.prototype.ngOnInit=function(){this._initCellContext(),this._initCellTemplate(),this._listenGroupOpen()},t.prototype.ngOnChanges=function(t){t.rowIndex&&(this.cellContext.index=this.rowIndex)},t.prototype.ngOnDestroy=function(){this._destroy$.next(),this._destroy$.complete()},t.prototype._initCellContext=function(){this.cellContext.index=this.rowIndex,this.row&&(this.row.isGroup?this.cellContext.groupIndex=this.row.index:this.row.isChild&&(this.cellContext.groupChildIndex=this.row.index)),this.cellContext.column=this.column,this.row&&(this.cellContext.$implicit=this.row.data,this.cellContext.row=this.row.data,this.cellContext.value=this.row.data[this.column.name],this.cellContext.expanded=this.row.expanded)},t.prototype._initCellTemplate=function(){this.row&&this.row.isGroup?this.cellTemplate=this.column.groupCellTemplate||this.column.cellTemplate:this.cellTemplate=this.column.cellTemplate},t.prototype._listenGroupOpen=function(){var t=this;this.row&&this.row.isGroup&&this.row.expanded$.pipe(v.takeUntil(this._destroy$)).subscribe((function(e){t.cellContext.expanded=e}))},D([e.HostBinding("class.fs-list-col"),F("design:type",Object)],t.prototype,"isColl",void 0),D([e.HostBinding("attr.role"),F("design:type",Object)],t.prototype,"role",void 0),D([e.Input(),F("design:type",B)],t.prototype,"column",void 0),D([e.Input(),F("design:type",Y)],t.prototype,"row",void 0),D([e.Input(),F("design:type",Number)],t.prototype,"rowIndex",void 0),t=D([e.Component({selector:"[fs-cell]",template:'<ng-template [ngTemplateOutlet]="cellTemplate || defaultCellTemplate" [ngTemplateOutletContext]="cellContext"></ng-template>\n\n<ng-template #defaultCellTemplate let-value="value">\n {{value}}\n</ng-template>\n',changeDetection:e.ChangeDetectionStrategy.OnPush}),F("design:paramtypes",[])],t)}(),xt=function(){function i(e,i){this.reorderController=e,this.cdRef=i,this.selectedAll=!1,this.ReorderPosition=t.ReorderPosition,this.ReorderStrategy=t.ReorderStrategy,this._destroy$=new b.Subject}return i.prototype.ngOnInit=function(){this.initSorting(),this.initSelection()},i.prototype.ngOnDestroy=function(){this._destroy$.next(),this._destroy$.complete()},i.prototype.selectAll=function(t){this.selection.selectAllVisibleRows(t.checked)},i.prototype.trackByFn=function(t){return t},i.prototype.initSorting=function(){var t=this;this.sorting.sortingChanged$.pipe(v.takeUntil(this._destroy$)).subscribe((function(){t.cdRef.detectChanges()}))},i.prototype.initSelection=function(){var e=this;this.selection&&this.selection.selectionChange$.pipe(v.filter((function(e){var i=e.type;return i===t.SelectionChangeType.AllVisibleSelectionChange||i===t.SelectionChangeType.SelectedAll||i===t.SelectionChangeType.RowSelectionChange})),v.takeUntil(this._destroy$)).subscribe((function(t){t.type;var i=t.payload;e.selectedAll=i,e.cdRef.markForCheck()}))},i.ctorParameters=function(){return[{type:lt},{type:e.ChangeDetectorRef}]},D([e.Input(),F("design:type",ot)],i.prototype,"sorting",void 0),D([e.Input(),F("design:type",Array)],i.prototype,"columns",void 0),D([e.Input(),F("design:type",Boolean)],i.prototype,"hasRowActions",void 0),D([e.Input(),F("design:type",nt)],i.prototype,"selection",void 0),D([e.ViewChild("rowsContainer",{read:e.ViewContainerRef,static:!0}),F("design:type",Object)],i.prototype,"rowsContainer",void 0),i=D([e.Component({selector:"[fs-list-head]",template:'<tr class="fs-list-row">\n \x3c!-- Drag --\x3e\n <th *ngIf="reorderController.leftReorderActivated$ | async" class="fs-list-col drag-col"></th>\n\n \x3c!-- Selection --\x3e\n <th *ngIf="selection" class="fs-list-col fs-list-col-selection">\n <mat-checkbox (change)="selectAll($event)" [checked]="selectedAll"></mat-checkbox>\n </th>\n\n \x3c!-- Content --\x3e\n <th fs-head-cell *ngFor="let column of columns; trackBy: trackByFn"\n (click)="$event.stopPropagation(); sorting.sortBy(column)"\n [column]="column"\n [class.sorting]="column.sortable"\n [ngClass]="column.headerConfigs.classesArray"\n [attr.colspan]="column.headerConfigs.colspan"\n [attr.width]="column.width"></th>\n\n \x3c!-- Drag --\x3e\n <th *ngIf="reorderController.rightReorderActivated$ | async" class="fs-list-col drag-col"></th>\n\n \x3c!-- Row Actions --\x3e\n <th *ngIf="hasRowActions && !(reorderController.manualReorderActivated$ | async)" class="fs-list-col row-actions"></th>\n</tr>\n',changeDetection:e.ChangeDetectionStrategy.OnPush}),F("design:paramtypes",[lt,e.ChangeDetectorRef])],i)}(),At=function(t){function i(e,i){var n=t.call(this)||this;return n.cdRef=e,n.differs=i,n.cellContext={},n._columnDiffer=i.find({}).create(),n}return P(i,t),i.prototype.ngDoCheck=function(){this._columnDiffer.diff(this.column)&&this.cdRef.markForCheck()},i.prototype.initCellContext=function(){this.cellContext.value=this.column.title},i.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.KeyValueDiffers}]},i=D([e.Component({selector:"[fs-head-cell]",template:'<div class="wrap">\n <span class="title">\n <ng-template [ngIf]="!column.headerTemplate">{{column.title}}</ng-template>\n <ng-template\n [ngIf]="column.headerTemplate"\n [ngTemplateOutlet]="column.headerTemplate"\n [ngTemplateOutletContext]="cellContext">\n </ng-template>\n </span>\n <div class="direction" *ngIf="column.ordered" [ngSwitch]="column.sortingDirection">\n <mat-icon class="material-icons" role="img" aria-label="arrow_downward" *ngSwitchCase="\'asc\'">arrow_downward</mat-icon>\n <mat-icon class="material-icons" role="img" aria-label="arrow_upward" *ngSwitchCase="\'desc\'">arrow_upward</mat-icon>\n </div>\n</div>\n',changeDetection:e.ChangeDetectionStrategy.OnPush}),F("design:paramtypes",[e.ChangeDetectorRef,e.KeyValueDiffers])],i)}(St),Pt=function(){function t(){this.columns=[]}return D([e.Input(),F("design:type",Boolean)],t.prototype,"hasRowActions",void 0),D([e.Input(),F("design:type",Array)],t.prototype,"columns",void 0),D([e.Input(),F("design:type",nt)],t.prototype,"selection",void 0),t=D([e.Component({selector:"[fs-list-footer]",template:'<tr fs-list-footer-row\n [columns]="columns"\n [hasRowActions]="hasRowActions"\n [selection]="selection"\n></tr>\n',changeDetection:e.ChangeDetectionStrategy.OnPush}),F("design:paramtypes",[])],t)}(),Ot=function(i){function n(e,n,o,s,r){var l=i.call(this,e,n,o,s,r,null)||this;return l.ReorderPosition=t.ReorderPosition,l}return P(n,i),n.ctorParameters=function(){return[{type:e.ElementRef},{type:lt},{type:e.ChangeDetectorRef},{type:e.KeyValueDiffers},{type:e.Renderer2}]},D([e.Input(),F("design:type",Boolean)],n.prototype,"hasRowActions",void 0),n=D([e.Component({selector:"[fs-list-footer-row]",template:'<td *ngIf="reorderController.leftReorderActivated$ | async" class="fs-list-col drag-col"></td>\n\n<td *ngIf="selection" class="fs-list-col fs-list-col-selection"></td>\n<ng-container *ngFor="let column of columns; trackBy: trackByFn">\n <td fs-list-footer-cell\n *ngIf="!column.footerColspanned"\n [column]="column"\n [row]="row"\n [rowIndex]="rowIndex"\n [ngClass]="column.footerConfigs.classesArray"\n [attr.colspan]="column.footerConfigs.colspan"\n [attr.width]="column.width">\n </td>\n</ng-container>\n\n\x3c!-- Drag --\x3e\n<td *ngIf="reorderController.rightReorderActivated$ | async" class="fs-list-col row-actions"></td>\n\n\x3c!-- Row Actions --\x3e\n<td *ngIf="hasRowActions && !(reorderController.enabled && reorderController.strategy === ReorderStrategy.Manual)" class="fs-list-col drag-col"></td>\n',changeDetection:e.ChangeDetectionStrategy.OnPush}),F("design:paramtypes",[e.ElementRef,lt,e.ChangeDetectorRef,e.KeyValueDiffers,e.Renderer2])],n)}(Ct),Dt=function(t){function i(){return t.call(this)||this}return P(i,t),i=D([e.Component({selector:"[fs-list-footer-cell]",template:'<ng-template [ngTemplateOutlet]="column.footerTemplate || cell" [ngTemplateOutletContext]="cellContext"></ng-template>\n\n<ng-template #cell let-value="value">\n {{value}}\n</ng-template>\n',changeDetection:e.ChangeDetectionStrategy.OnPush}),F("design:paramtypes",[])],i)}(St),kt=function(){function i(t){this._cdRef=t,this._destroy$=new b.Subject}return i.prototype.ngOnInit=function(){var t=this;this.sorting.sortingChanged$.pipe(v.takeUntil(this._destroy$)).subscribe((function(){t._cdRef.markForCheck()}))},i.prototype.ngOnDestroy=function(){this._destroy$.next(),this._destroy$.complete()},i.prototype.toggleDirection=function(){"asc"===this.sorting.sortingColumn.direction?this.sorting.sortDirection(t.SortingDirection.desc):this.sorting.sortDirection(t.SortingDirection.asc)},i.prototype.setSortableColumn=function(t){this.sorting.sortingColumn!==t&&this.sorting.sortBy(t)},i.prototype.setLimit=function(t){this.paging.setLimit(t)},i.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]},D([e.Input(),F("design:type",tt)],i.prototype,"paging",void 0),D([e.Input(),F("design:type",ot)],i.prototype,"sorting",void 0),D([e.Input(),F("design:type",Object)],i.prototype,"rows",void 0),D([e.Input(),F("design:type",Object)],i.prototype,"scrollable",void 0),D([e.Input(),e.HostBinding("class.first-load"),e.HostBinding("class.fs-skeleton-placeholder"),F("design:type",Boolean)],i.prototype,"firstLoad",void 0),i=D([e.Component({selector:"fs-list-status",template:'<div class="status">\n <ng-container *ngIf="paging.enabled && !scrollable">\n <ng-container *ngIf="paging.records > 0; else emptyResults">\n Showing <a [fsMenuTriggerFor]="limitsMenu">{{ paging.statusLabel }}</a> of {{ paging.records | number:\'1.0\':\'en-US\' }} results\n </ng-container>\n <ng-template #emptyResults>\n Showing <a [fsMenuTriggerFor]="limitsMenu">0</a> results\n </ng-template>\n <ng-container *ngTemplateOutlet="sortedBy"></ng-container>\x3c!--\n--\x3e</ng-container>\x3c!--\n\n--\x3e<ng-container *ngIf="(!paging.enabled || scrollable) && paging.displayed > 0">\n <ng-container *ngIf="!scrollable; else scrollable">\n Showing\n <span *ngIf="paging.displayed == 1">{{ paging.displayed }} result </span>\n <span *ngIf="paging.displayed > 1">{{ paging.displayed | number:\'1.0\':\'en-US\' }} results </span>\n </ng-container>\n\n <ng-template #scrollable>\n <span *ngIf="paging.records == 1">{{ paging.records }} result </span>\n <span *ngIf="paging.records > 1">{{ paging.records | number:\'1.0\':\'en-US\' }} results </span>\n </ng-template>\n <ng-container *ngTemplateOutlet="sortedBy"></ng-container>\x3c!--\n--\x3e</ng-container>\x3c!--\n\n--\x3e<fs-list-saved-filters class="saved-filters"></fs-list-saved-filters>\n\n <fs-menu [hidden]="!paging.enabled || scrollable" #limitsMenu>\n <ng-template\n ngFor\n let-limit\n [ngForOf]="paging.limits"\n >\n <ng-template fs-menu-item (click)="setLimit(limit)">\n {{ limit }}\n </ng-template>\n </ng-template>\n </fs-menu>\n\n <fs-menu [hidden]="!sorting.sortingColumn || paging.displayed === 0" #orderColumnsMenu>\n \x3c!-- Real sorting columns --\x3e\n <ng-template\n ngFor\n let-column\n [ngForOf]="sorting.sortingColumns"\n >\n <ng-template fs-menu-item (click)="setSortableColumn(column)">\n <ng-container *ngIf="column.title; else sortByTemplate">\n {{ column.title }}\n </ng-container>\n <ng-template #sortByTemplate>\n <ng-template [ngTemplateOutlet]="column.headerTemplate"></ng-template>\n </ng-template>\n </ng-template>\n </ng-template>\n\n \x3c!-- Fake sorting columns --\x3e\n <ng-template\n ngFor\n let-column\n [ngForOf]="sorting.fakeSortingColumns"\n >\n <ng-template fs-menu-item (click)="setSortableColumn(column)">\n {{ column.title }}\n </ng-template>\n </ng-template>\n </fs-menu>\n\n <ng-template #sortedBy>\n <ng-container *ngIf="sorting.sortingColumn">\n sorted by\n <ng-container *ngIf="sorting.sortingColumn.title; else sortByTemplate">\n <a class="order-toggle" [fsMenuTriggerFor]="orderColumnsMenu">{{ sorting.sortingColumn.title }}</a>,\n </ng-container>\n <ng-template #sortByTemplate>\n <a class="order-toggle" [fsMenuTriggerFor]="orderColumnsMenu">\n <ng-template [ngTemplateOutlet]="sorting.sortingColumn.headerTemplate"></ng-template>\n </a>,\n </ng-template>\n <a class="order-toggle" (click)="toggleDirection()">{{ sorting.sortingColumn.fullNameDirection }}</a>\x3c!--\n --\x3e</ng-container>\x3c!--\n--\x3e</ng-template>\n</div>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,preserveWhitespaces:!0,styles:[":host{display:inline-block}:host.first-load .status{visibility:hidden}.order-toggle{white-space:nowrap}a{cursor:pointer}"]}),F("design:paramtypes",[e.ChangeDetectorRef])],i)}(),Ft=function(){function t(t){this.cdRef=t,this._destroy$=new b.Subject}return t.prototype.ngOnInit=function(){var t=this;b.merge(this.pagination.pageChanged$,this.pagination.pages$).pipe(v.takeUntil(this._destroy$)).subscribe((function(){t.cdRef.markForCheck()}))},t.prototype.ngOnDestroy=function(){this._destroy$.next(),this._destroy$.complete()},t.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]},D([e.Input(),F("design:type",tt)],t.prototype,"pagination",void 0),D([e.Input(),F("design:type",Object)],t.prototype,"rows",void 0),t=D([e.Component({selector:"fs-list-pagination",template:'<ng-container *ngIf="!pagination.loadMoreEnabled; else loadMoreButton">\n <div class="paging" *ngIf="pagination?.pages">\n <div class="records"></div>\n <div fxFlex>\n <div class="pages">\n <a matRipple matRippleRadius="15" [matRippleCentered]="true" class="first" [class.disabled]="!pagination.hasPrevPage" (click)="pagination.goFirst()">\n <i class="material-icons">first_page</i>\n </a>\n\n <a matRipple matRippleRadius="15" [matRippleCentered]="true" class="previous" [class.disabled]="!pagination.hasPrevPage" (click)="pagination.goPrev()">\n <i class="material-icons">keyboard_arrow_left</i>\n </a>\n\n <div class="number">\n {{ pagination.page }} of {{ pagination.pages }}\n </div>\n\n <a matRipple matRippleRadius="15" [matRippleCentered]="true" class="next" [class.disabled]="!pagination.hasNextPage" (click)="pagination.goNext()">\n <i class="material-icons">keyboard_arrow_right</i>\n </a>\n\n <a matRipple matRippleRadius="15" [matRippleCentered]="true" class="last" [class.disabled]="!pagination.hasNextPage" (click)="pagination.goLast()">\n <i class="material-icons">last_page</i>\n </a>\n\n </div>\n </div>\n </div>\n</ng-container>\n\n<ng-template #loadMoreButton>\n <div class="fs-list-load-more" *ngIf="pagination.hasNextPage">\n <button mat-button (click)="pagination.goNext()">{{ pagination.loadMoreText }}</button>\n </div>\n</ng-template>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[":host{display:block}.paging{display:flex}.paging .pages{display:flex;justify-content:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.paging .pages a{text-align:center;color:rgba(0,0,0,.87);text-decoration:none;font-size:15px;cursor:pointer;display:flex}.paging .pages a:not(.page){padding:10px}.paging .pages a.disabled{pointer-events:none;cursor:default;color:#d8d8d8}.paging .pages .number{font-size:90%}.fs-list-load-more button{width:100%;margin-top:10px}"]}),F("design:paramtypes",[e.ChangeDetectorRef])],t)}(),It=function(){function t(){this.placeholderWidths=[[],[],[]],this.widths=[],this.cols=[],this.rows=[]}return t.prototype.ngOnInit=function(){this.cols=this.columns>5?this.columns.splice(0,5):this.columns;for(var t=this.cols.length,e=t;e>=0;e--)this.widths[e]=e?w.random(15,100/t,!1):0;for(var i=0;i<3;i++)for(var n=0;n<t;n++)this.placeholderWidths[i].push(w.random(50,90))},t.prototype.ngOnChanges=function(t){t.loaderLines&&(this.rows=new Array(this.loaderLines))},D([e.Input(),F("design:type",Object)],t.prototype,"columns",void 0),D([e.Input(),F("design:type",Number)],t.prototype,"loaderLines",void 0),t=D([e.Component({selector:"fs-list-loader",template:'<table>\n <thead>\n <tr>\n <th *ngFor="let col of cols; let column = index" [width]="widths[column] + \'%\'">\n <div class="fs-skeleton-placeholder" [style.width]="(placeholderWidths[0][column]/2) + \'%\'"></div>\n </th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor="let row of rows; let index=index">\n <td *ngFor="let col of cols; let column = index">\n <div class="fs-skeleton-placeholder" [style.width]="placeholderWidths[index][column] + \'%\'"></div>\n </td>\n </tr>\n </tbody>\n</table>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:["table{width:100%;border-spacing:0}.fs-skeleton-placeholder{opacity:.5}:host ::ng-deep tbody tr:hover td{background:0 0}"]})],t)}(),$t=function(){function t(t){this._fsPrompt=t,this.restoreMode=!1,this.rowActions=[],this.menuRowActions=[],this.inlineRowActions=[],this._destroy$=new b.Subject}return t.prototype.actionClick=function(t,e,i,n){var o=this;t.remove?"boolean"==typeof t.remove?this.removeAction(t,e.data,i,this.index):this._fsPrompt.confirm({title:t.remove.title,template:t.remove.template}).pipe(v.take(1),v.takeUntil(this._destroy$)).subscribe({next:function(){o.removeAction(t,e.data,i,o.index)},error:function(){}}):t.click(e.data,i,this.index,n)},t.prototype.trackByFn=function(t){return t},t.prototype.clickOnTrigger=function(t){var e=this;t.stopPropagation(),this.rowActions.forEach((function(t){return t.updateLabel(e.row.data)}))},t.prototype.removeAction=function(t,e,i,n){var o=this,s=t.click(e,i,n);s&&s instanceof b.Observable&&s.pipe(v.take(1),v.takeUntil(this._destroy$)).subscribe((function(){o.rowRemoved.emit(e)}))},t.ctorParameters=function(){return[{type:y.FsPrompt}]},D([e.Input(),F("design:type",Y)],t.prototype,"row",void 0),D([e.Input(),F("design:type",Number)],t.prototype,"index",void 0),D([e.Input(),F("design:type",Object)],t.prototype,"restoreMode",void 0),D([e.Input(),F("design:type",Array)],t.prototype,"rowActions",void 0),D([e.Input(),F("design:type",e.EventEmitter)],t.prototype,"rowRemoved",void 0),D([e.Input(),F("design:type",Array)],t.prototype,"menuRowActions",void 0),D([e.Input(),F("design:type",Array)],t.prototype,"inlineRowActions",void 0),D([e.Input(),F("design:type",U)],t.prototype,"restoreAction",void 0),t=D([e.Component({selector:"fs-list-row-actions",template:'<ng-container *ngIf="!restoreMode || (restoreMode && !restoreAction)">\n <ng-container *ngFor="let action of inlineRowActions; trackBy: trackByFn">\n <fs-list-row-inline-action class="row-inline-action row-inline-action-{{action.type}}"\n [action]="action"\n [ngClass]="{\'mobile-hide\': action.menu === undefined}"\n (clicked)="actionClick(action, row, $event)"\n (fileSelect)="action.fileUploadFn($event, row, index)">\n </fs-list-row-inline-action>\n </ng-container>\n</ng-container>\n\n\x3c!-- Menu --\x3e\n<fs-menu class="row-menu-action"\n *ngIf="menuRowActions.length || (restoreMode && restoreAction)"\n (click)="clickOnTrigger($event)"\n #menuRef\n>\n \x3c!-- Case when we have usual menu actions --\x3e\n <ng-container *ngIf="!restoreMode || (restoreMode && !restoreAction)">\n <ng-container *ngFor="let action of inlineRowActions; trackBy: trackByFn">\n <ng-template class="hidden-mobile-menu-action"\n fs-menu-item\n [link]="action.routerLink?.link"\n [queryParams]="action.routerLink?.queryParams"\n [target]="action.routerLink?.target"\n [hidden]="action.menu !== undefined && !action.isShown">\n <fs-list-row-menu-action\n [icon]="action.icon"\n [label]="action.label"\n [file]="!!action.fileUploadFn"\n [fileMultiple]="action.fileMultiple"\n (fileSelect)="action.fileUploadFn($event, row, index)"\n (fileError)="action.fileUploadErrorFn && action.fileUploadErrorFn($event)">\n </fs-list-row-menu-action>\n </ng-template>\n </ng-container>\n\n <ng-container *ngFor="let action of menuRowActions; trackBy: trackByFn">\n <ng-container *ngIf="action.isGroup else simpleMenuItem">\n <fs-menu-group [label]="action.label">\n <ng-container *ngFor="let subAction of action.rowActions">\n <ng-template fs-menu-item\n [link]="subAction.routerLink?.link"\n [queryParams]="subAction.routerLink?.queryParams"\n [target]="subAction.routerLink?.target"\n [hidden]="!subAction.isShown"\n (click)="actionClick(subAction, row, $event, menuRef);">\n <fs-list-row-menu-action\n [icon]="subAction.icon"\n [label]="subAction.label"\n [file]="!!subAction.fileUploadFn"\n [fileMultiple]="subAction.fileMultiple"\n (fileSelect)="subAction.fileUploadFn($event, row, index)"\n (fileError)="subAction.fileUploadErrorFn && subAction.fileUploadErrorFn($event)">\n </fs-list-row-menu-action>\n </ng-template>\n </ng-container>\n </fs-menu-group>\n </ng-container>\n <ng-template #simpleMenuItem>\n <ng-template fs-menu-item\n [link]="action.routerLink?.link"\n [queryParams]="action.routerLink?.queryParams"\n [target]="action.routerLink?.target"\n [hidden]="!action.isShown"\n (click)="actionClick(action, row, $event, menuRef);">\n <fs-list-row-menu-action\n [icon]="action.icon"\n [label]="action.label"\n [file]="!!action.fileUploadFn"\n [fileMultiple]="action.fileMultiple"\n (fileSelect)="action.fileUploadFn($event, row, index)"\n (fileError)="action.fileUploadErrorFn && action.fileUploadErrorFn($event)">\n </fs-list-row-menu-action>\n </ng-template>\n </ng-template>\n </ng-container>\n </ng-container>\n\n \x3c!-- Case when we have restore mode enabled and must hide menu actions --\x3e\n <ng-container *ngIf="restoreMode && restoreAction">\n <ng-template fs-menu-item (click)="actionClick(restoreAction, row, $event, menuRef)">\n <mat-icon *ngIf="restoreAction.icon">{{restoreAction.icon}}</mat-icon>\n {{restoreAction.label}}\n </ng-template>\n </ng-container>\n</fs-menu>\n',changeDetection:e.ChangeDetectionStrategy.OnPush}),F("design:paramtypes",[y.FsPrompt])],t)}(),Et=function(){function t(t){this._fsPrompt=t,this.clicked=new e.EventEmitter,this.fileSelect=new e.EventEmitter}return t.prototype.actionClick=function(t){this.clicked.emit(t)},t.prototype.fileSelected=function(t){this.fileSelect.emit(t)},t.ctorParameters=function(){return[{type:y.FsPrompt}]},D([e.Input(),F("design:type",U)],t.prototype,"action",void 0),D([e.Output(),F("design:type",Object)],t.prototype,"clicked",void 0),D([e.Output(),F("design:type",Object)],t.prototype,"fileSelect",void 0),t=D([e.Component({selector:"fs-list-row-inline-action",template:'<ng-container *ngIf="action.isShown" [ngSwitch]="action.type">\n \x3c!-- Basic button --\x3e\n <ng-container *ngSwitchCase="\'basic\'">\n <ng-container *ngIf="!action.routerLink; else link">\n <button type="button"\n mat-button\n (click)="actionClick($event)"\n [ngClass]="action.classArray"\n >\n <ng-template [ngTemplateOutlet]="buttonContent"></ng-template>\n </button>\n </ng-container>\n <ng-template #link>\n <a mat-button\n [routerLink]="action.routerLink.link"\n [queryParams]="action.routerLink.queryParams">\n <ng-template [ngTemplateOutlet]="buttonContent"></ng-template>\n </a>\n </ng-template>\n </ng-container>\n\n \x3c!-- Raised button --\x3e\n <ng-container *ngSwitchCase="\'raised\'">\n <ng-container *ngIf="!action.routerLink; else link">\n <button type="button"\n mat-raised-button\n (click)="actionClick($event)"\n [ngClass]="action.classArray"\n >\n <ng-template [ngTemplateOutlet]="buttonContent"></ng-template>\n </button>\n </ng-container>\n <ng-template #link>\n <a mat-raised-button\n [routerLink]="action.routerLink.link"\n [queryParams]="action.routerLink.queryParams">\n <ng-template [ngTemplateOutlet]="buttonContent"></ng-template>\n </a>\n </ng-template>\n </ng-container>\n\n \x3c!-- Icon button --\x3e\n <ng-container *ngSwitchCase="\'icon\'">\n <ng-container *ngIf="!action.routerLink; else link">\n <button type="button"\n mat-icon-button\n (click)="actionClick($event)"\n [ngClass]="action.classArray"\n >\n <ng-template [ngTemplateOutlet]="buttonContent"></ng-template>\n </button>\n </ng-container>\n <ng-template #link>\n <a mat-icon-button\n [routerLink]="action.routerLink.link"\n [queryParams]="action.routerLink.queryParams">\n <ng-template [ngTemplateOutlet]="buttonContent"></ng-template>\n </a>\n </ng-template>\n </ng-container>\n\n \x3c!-- Fab button --\x3e\n <ng-container *ngSwitchCase="\'fab\'">\n <ng-container *ngIf="!action.routerLink; else link">\n <button type="button"\n mat-fab\n (click)="actionClick($event)"\n [ngClass]="action.classArray"\n >\n <ng-template [ngTemplateOutlet]="buttonContent"></ng-template>\n </button>\n </ng-container>\n <ng-template #link>\n <a mat-fab\n [routerLink]="action.routerLink.link"\n [queryParams]="action.routerLink.queryParams">\n <ng-template [ngTemplateOutlet]="buttonContent"></ng-template>\n </a>\n </ng-template>\n </ng-container>\n\n \x3c!-- Mini Fab button --\x3e\n <ng-container *ngSwitchCase="\'mini-fab\'">\n <ng-container *ngIf="!action.routerLink; else link">\n <button type="button"\n mat-mini-fab\n (click)="actionClick($event)"\n [ngClass]="action.classArray"\n >\n <ng-template [ngTemplateOutlet]="buttonContent"></ng-template>\n </button>\n </ng-container>\n <ng-template #link>\n <a mat-mini-fab\n [routerLink]="action.routerLink.link"\n [queryParams]="action.routerLink.queryParams">\n <ng-template [ngTemplateOutlet]="buttonContent"></ng-template>\n </a>\n </ng-template>\n </ng-container>\n\n <ng-template #buttonContent>\n <ng-container *ngIf="!action.fileUploadFn else uploadFileBtn">\n <mat-icon *ngIf="action.icon">{{action.icon}}</mat-icon>\n {{action.label}}\n </ng-container>\n\n <ng-template #uploadFileBtn>\n <fs-file\n class="action-button"\n [multiple]="action.fileMultiple"\n (select)="fileSelected($event)"\n (error)="action.fileUploadErrorFn && action.fileUploadErrorFn($event)">\n <mat-icon *ngIf="action.icon">{{action.icon}}</mat-icon>\n {{action.label}}\n </fs-file>\n </ng-template>\n </ng-template>\n</ng-container>\n',changeDetection:e.ChangeDetectionStrategy.OnPush}),F("design:paramtypes",[y.FsPrompt])],t)}(),jt=function(){function t(){this.fileSelect=new e.EventEmitter,this.fileError=new e.EventEmitter}return D([e.Input(),F("design:type",String)],t.prototype,"icon",void 0),D([e.Input(),F("design:type",String)],t.prototype,"label",void 0),D([e.Input(),F("design:type",Boolean)],t.prototype,"file",void 0),D([e.Input(),F("design:type",Boolean)],t.prototype,"fileMultiple",void 0),D([e.Output(),F("design:type",Object)],t.prototype,"fileSelect",void 0),D([e.Output(),F("design:type",Object)],t.prototype,"fileError",void 0),t=D([e.Component({selector:"fs-list-row-menu-action",template:'<ng-container *ngIf="!file else withFile">\n <mat-icon *ngIf="icon">{{icon}}</mat-icon>\n {{label}}\n</ng-container>\n\n<ng-template #withFile>\n <fs-file\n class="action-button"\n [multiple]="fileMultiple"\n (select)="fileSelect.emit($event)"\n (error)="fileError.emit($event)">\n <mat-icon *ngIf="icon">{{icon}}</mat-icon>\n {{label}}\n </fs-file>\n</ng-template>\n',changeDetection:e.ChangeDetectionStrategy.OnPush})],t)}(),Tt=function(){function i(t){this._externalParams=t,this._reorderReady=!0,this._initList()}return Object.defineProperty(i.prototype,"savedFiltersController",{get:function(){return this._externalParams.savedFiltersController},enumerable:!0,configurable:!0}),i.prototype._initList=function(){var e=this;this.config={status:!1,filterInput:!1,queryParam:!1,persist:!1,paging:!1,reorder:{position:t.ReorderPosition.Left,strategy:t.ReorderStrategy.Always,moveDrop:function(){return e._reorderReady},done:function(t){e._reorderReady=!1;var i=t.map((function(t){return t.data}));e.savedFiltersController.order(i).pipe(v.tap((function(){e._reorderReady=!0}))).subscribe((function(){}))}},rowActions:[{label:"Apply",click:function(t){e._externalParams.setActiveSavedFilter(t)}},{label:"Delete",remove:{title:"Confirm",template:"Are you sure you want to delete this filter?"},click:function(t){return e.savedFiltersController.delete(t)}}],fetch:function(t){return e.savedFiltersController.load().pipe(v.map((function(t){return{data:t}})))}}},i.ctorParameters=function(){return[{type:g.ExternalParamsController}]},i=D([e.Component({template:'<h1 mat-dialog-title>\n Manage Saved Filters\n</h1>\n<div mat-dialog-content>\n <fs-list [config]="config">\n <fs-list-column name="name" title="Name">\n <ng-template fs-list-cell let-row="row">\n {{ row.name }}\n </ng-template>\n </fs-list-column>\n </fs-list>\n</div>\n<div mat-dialog-actions>\n <button mat-button\n [mat-dialog-close]="null"\n type="button"\n color="primary">\n Done\n </button>\n</div>\n'}),F("design:paramtypes",[g.ExternalParamsController])],i)}(),Lt=function(){function t(t,e,i){this._dialog=t,this._externalParams=e,this._vcRef=i}return Object.defineProperty(t.prototype,"savedFiltersEnabled$",{get:function(){return this._externalParams.savedFiltersController.enabled$},enumerable:!0,configurable:!0}),t.prototype.showManageDialog=function(){this._dialog.open(Tt,{viewContainerRef:this._vcRef})},t.ctorParameters=function(){return[{type:l.MatDialog},{type:g.ExternalParamsController},{type:e.ViewContainerRef}]},t=D([e.Component({selector:"fs-list-saved-filters",template:'<ng-container *ngIf="savedFiltersEnabled$ | async">\x3c!--\n --\x3e, saved filter\n <fs-filter-saved-filters-menu (manage)="showManageDialog()"></fs-filter-saved-filters-menu>\n</ng-container>\n'}),F("design:paramtypes",[l.MatDialog,g.ExternalParamsController,e.ViewContainerRef])],t)}(),Mt=function(){function t(t,e,i,n){this._el=t,this._renderer=e,this._reorderController=i,this._draggableList=n,this._destroy$=new b.Subject}return t.prototype.ngOnInit=function(){this._reorderController.moveDropCallback&&this._listenDragEvents()},t.prototype.ngOnDestroy=function(){this._destroy$.next(),this._destroy$.complete()},t.prototype._listenDragEvents=function(){var t=this;this._draggableList.dragStart$.pipe(v.takeUntil(this._destroy$)).subscribe((function(){t._markReadyToSwapRows()})),this._draggableList.dragEnd$.pipe(v.takeUntil(this._destroy$)).subscribe((function(){t._unmarkRows()}))},t.prototype._markReadyToSwapRows=function(){var t,e,i,n,o,s,r=this.row,l=this._draggableList.draggableItem;r.isChild&&r.parent,l.isChild&&l.parent;this.row.readyToSwap=this._reorderController.moveDropCallback({row1:null===(t=r)||void 0===t?void 0:t.data,row2:null===(e=l)||void 0===e?void 0:e.data,group1:null===(n=null===(i=r)||void 0===i?void 0:i.parent)||void 0===n?void 0:n.data,group2:null===(s=null===(o=l)||void 0===o?void 0:o.parent)||void 0===s?void 0:s.data}),this.row.readyToSwap||this._renderer.addClass(this._el.nativeElement,"fs-list-swap-restricted")},t.prototype._unmarkRows=function(){this.row.readyToSwap||this._renderer.removeClass(this._el.nativeElement,"fs-list-swap-restricted")},t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer2},{type:lt},{type:_t}]},D([e.Input(),F("design:type",Y)],t.prototype,"row",void 0),t=D([e.Directive({selector:"[fsListDraggableRow]"}),F("design:paramtypes",[e.ElementRef,e.Renderer2,lt,_t])],t)}(),Bt=function(){function t(){}var w;return w=t,t.forRoot=function(t){return void 0===t&&(t={}),{ngModule:w,providers:[{provide:mt,useValue:t},{provide:yt,useFactory:Nt,deps:[mt]}]}},t=w=D([e.NgModule({imports:[i.CommonModule,n.RouterModule,o.MatButtonModule,a.MatIconModule,c.MatMenuModule,f.MatProgressSpinnerModule,s.MatCheckboxModule,r.MatRippleModule,g.FsFilterModule,u.FsMenuModule,p.FlexLayoutModule,h.FsScrollModule,y.FsPromptModule,l.MatDialogModule,d.MatTooltipModule,m.FsFileModule],declarations:[vt,Ct,$t,Et,jt,St,Ot,Dt,kt,It,Lt,Tt,xt,At,Rt,Pt,Ft,ht,ct,at,dt,ft,gt,_t,Mt,ut,wt],entryComponents:[wt],providers:[],exports:[vt,Ct,St,It,ht,ct,at,dt,ft,gt,ut]})],t)}();function Nt(t){return w.merge({noResults:{message:"No Results Found"}},t)}t.Column=B,t.FS_LIST_CONFIG=mt,t.FS_LIST_DEFAULT_CONFIG=yt,t.FsBodyComponent=Rt,t.FsCellComponent=St,t.FsFooterCellComponent=Dt,t.FsFooterComponent=Pt,t.FsFooterRowComponent=Ot,t.FsHeadCellComponent=At,t.FsHeadComponent=xt,t.FsListCellDirective=ct,t.FsListColumnDirective=ht,t.FsListComponent=vt,t.FsListEmptyStateDirective=ut,t.FsListFooterDirective=dt,t.FsListHeaderDirective=at,t.FsListModule=Bt,t.FsPaginationComponent=Ft,t.FsRowComponent=Ct,t.FsStatusComponent=kt,t.List=rt,t.PaginationController=tt,t.ReorderController=lt,t.RowAction=U,t.SelectionController=nt,t.SortingController=ot,t.StyleConfig=T,t.ɵa=Nt,t.ɵb=pt,t.ɵc=bt,t.ɵd=ft,t.ɵe=gt,t.ɵf=_t,t.ɵg=$t,t.ɵh=Et,t.ɵi=jt,t.ɵj=It,t.ɵk=Lt,t.ɵl=Tt,t.ɵm=Mt,t.ɵn=wt,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
15
|
+
***************************************************************************** */var A=function(t,e){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function P(t,e){function i(){this.constructor=t}A(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var O=function(){return(O=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function D(t,e,i,n){var o,s=arguments.length,r=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(r=(s<3?o(r):s>3?o(e,i,r):o(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r}function k(t,e){return function(i,n){e(i,n,t)}}function F(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function I(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function $(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,o,s=i.call(t),r=[];try{for(;(void 0===e||e-- >0)&&!(n=s.next()).done;)r.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return r}function E(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat($(arguments[e]));return t}var j,T=function(t){function e(e){void 0===e&&(e={});var i=t.call(this)||this;return i.className=[],i.classesArray=[],i.classesString="",i._fromJSON(e),i}return P(e,t),e.prototype.updateClasesArray=function(){this.classesArray=[].concat(this.className,this.align),this.classesString=[].concat(this.className,this.align).join(" ")},e.prototype.mergeAlignByPriority=function(t,e){var i=this.align;void 0===i&&(i=t&&void 0!==t.align?t.align:e&&void 0!==e.align?e.align:"left"),this.align=i},e.prototype.mergeClassByPriority=function(t,e){var i=[];Array.isArray(this.className)?i=i.concat(this.className):w.isString(this.className)&&i.push(this.className),t&&void 0!==t.className?this.mergeAnythingIntoArray(i,t.className):e&&void 0!==e.className&&this.mergeAnythingIntoArray(i,e.className),this.className=i},e.prototype.mergeAnythingIntoArray=function(t,e){w.isString(e)?t.push(e):Array.isArray(e)&&t.push.apply(t,E(e))},D([S.Alias(),F("design:type",Object)],e.prototype,"colspan",void 0),D([S.Alias(),F("design:type",String)],e.prototype,"align",void 0),D([S.Alias(),F("design:type",Object)],e.prototype,"className",void 0),e}(S.Model);(j=t.SortingDirection||(t.SortingDirection={})).asc="asc",j.desc="desc";var L,M=["title","sortable","align","class"],B=function(i){function n(t,e){void 0===t&&(t={}),void 0===e&&(e=!1);var n=i.call(this)||this;return n.headerConfigs=new T,n.groupCellConfigs=new T,n.cellConfigs=new T,n.footerConfigs=new T,n.headerColspanned=!1,n.groupCellColspanned=!1,n.cellColspanned=!1,n.footerColspanned=!1,n._ordered=!1,n._fromJSON(t),n.colStyles=new T(t),n.mergeWithColumnDefaults(e),n}return P(n,i),Object.defineProperty(n.prototype,"direction",{get:function(){return this.sortingDirection===t.SortingDirection.asc?"asc":"desc"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fullNameDirection",{get:function(){return this.sortingDirection===t.SortingDirection.asc?"Ascending":"Descending"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"ordered",{get:function(){return this._ordered},set:function(e){this._ordered=e,e&&!this.sortingDirection&&(this.sortingDirection=t.SortingDirection.asc)},enumerable:!0,configurable:!0}),n.prototype._fromJSON=function(t){i.prototype._fromJSON.call(this,t),this.sortableDefault&&(this.sortable=!0)},n.prototype.mergeWithColumnDefaults=function(t){var e=this;w.isObject(t)||(t={}),M.forEach((function(i){switch(i){case"title":e.title=e.title||t.title;break;case"sortable":w.isBoolean(t.sortable)&&void 0===e.sortable&&(e.sortable=t.sortable);break;case"class":e.headerConfigs.mergeClassByPriority(e.colStyles,t.header),e.groupCellConfigs.mergeClassByPriority(e.colStyles,t.cell),e.cellConfigs.mergeClassByPriority(e.colStyles,t.cell),e.footerConfigs.mergeClassByPriority(e.colStyles,t.footer);break;case"align":e.headerConfigs.mergeAlignByPriority(e.colStyles,t.header),e.groupCellConfigs.mergeAlignByPriority(e.colStyles,t.cell),e.cellConfigs.mergeAlignByPriority(e.colStyles,t.cell),e.footerConfigs.mergeAlignByPriority(e.colStyles,t.footer)}})),this.headerConfigs.updateClasesArray(),this.groupCellConfigs.updateClasesArray(),this.cellConfigs.updateClasesArray(),this.footerConfigs.updateClasesArray()},n.prototype.changeDirection=function(){this.sortingDirection===t.SortingDirection.asc?this.sortingDirection=t.SortingDirection.desc:this.sortingDirection=t.SortingDirection.asc},D([S.Alias(),F("design:type",String)],n.prototype,"title",void 0),D([S.Alias(),F("design:type",String)],n.prototype,"name",void 0),D([S.Alias(),F("design:type",Boolean)],n.prototype,"show",void 0),D([S.Alias(),F("design:type",Boolean)],n.prototype,"customize",void 0),D([S.Alias(),F("design:type",String)],n.prototype,"width",void 0),D([S.Alias(),F("design:type",Boolean)],n.prototype,"sortable",void 0),D([S.Alias(),F("design:type",Boolean)],n.prototype,"sortableDefault",void 0),D([S.Alias(),F("design:type",e.TemplateRef)],n.prototype,"headerTemplate",void 0),D([S.Alias(),F("design:type",e.TemplateRef)],n.prototype,"groupCellTemplate",void 0),D([S.Alias(),F("design:type",e.TemplateRef)],n.prototype,"cellTemplate",void 0),D([S.Alias(),F("design:type",e.TemplateRef)],n.prototype,"footerTemplate",void 0),D([S.Alias(),F("design:type",e.TemplateRef)],n.prototype,"expandTrigger",void 0),D([S.Alias(),F("design:type",e.TemplateRef)],n.prototype,"superTriger",void 0),D([S.Alias("headerConfigs",T),F("design:type",T)],n.prototype,"headerConfigs",void 0),D([S.Alias("groupCellConfigs",T),F("design:type",T)],n.prototype,"groupCellConfigs",void 0),D([S.Alias("cellConfigs",T),F("design:type",T)],n.prototype,"cellConfigs",void 0),D([S.Alias("footerConfigs",T),F("design:type",T)],n.prototype,"footerConfigs",void 0),D([S.Alias("direction"),F("design:type",String)],n.prototype,"sortingDirection",void 0),n}(S.Model);(L=t.ActionType||(t.ActionType={})).Basic="basic",L.Raised="raised",L.Icon="icon",L.Fab="fab",L.MiniFab="mini-fab";var N,U=function(e){function i(t){void 0===t&&(t={});var i=e.call(this)||this;return i.label="",i.classArray=[],i.isShown=!0,i._isGroup=!1,i._fromJSON(t),Array.isArray(i.rowActions)&&(i._isGroup=!0),i}return P(i,e),Object.defineProperty(i.prototype,"isGroup",{get:function(){return this._isGroup},enumerable:!0,configurable:!0}),i.prototype._fromJSON=function(i){var n=this;e.prototype._fromJSON.call(this,i),void 0===i.type&&(this.type=t.ActionType.Basic),void 0===this.menu&&(this.menu=!0);var o=i.click;this.click=function(t,e,i,s){return void 0===s&&(s=null),n.clickEvent(t,e,i,s,o)},this._linkFn=i.link,i.file&&(i.file.select&&(this.fileUploadFn=function(t,e,n){i.file.select(t,e,n)}),this.fileUploadErrorFn=i.file.error,this.fileMultiple=i.file.multiple),"function"==typeof i.label?(this._labelFn=i.label,this.label=""):this.label=i.label,this.className&&(this.classArray=this.className.split(" ").reduce((function(t,e){return t.push(e),t}),[]))},i.prototype.checkShowStatus=function(t,e){if(this.isGroup){this.rowActions.forEach((function(i){i.checkShowStatus(t,e)}));var i=!this.show||this.show(t,e);this.isShown=i&&this.rowActions.some((function(t){return t.isShown}))}else this.show&&(this.isShown=this.show(t,e))},i.prototype.updateLink=function(t){this.isShown&&(this.isGroup?this.rowActions.forEach((function(e){e.updateLink(t)})):this._linkFn&&(this.routerLink=this._linkFn(t),this.routerLink&&!this.routerLink.target&&(this.routerLink.target=null)))},i.prototype.updateLabel=function(t){this.isShown&&(this.isGroup?this.rowActions.forEach((function(e){e.updateLabel(t)})):this._labelFn&&(this.label=this._labelFn(t)))},i.prototype.clickEvent=function(t,e,i,n,o){if(e.stopPropagation(),n&&n.closeMenu(),o)return o(t,e,i)},D([S.Alias(),F("design:type",String)],i.prototype,"icon",void 0),D([S.Alias(),F("design:type",Boolean)],i.prototype,"menu",void 0),D([S.Alias(),F("design:type",Object)],i.prototype,"remove",void 0),D([S.Alias(),F("design:type",String)],i.prototype,"className",void 0),D([S.Alias(),F("design:type",String)],i.prototype,"type",void 0),D([S.Alias(),F("design:type",Function)],i.prototype,"show",void 0),D([S.Alias(),F("design:type",Boolean)],i.prototype,"restore",void 0),D([S.Alias("rowActions",i),F("design:type",Array)],i.prototype,"rowActions",void 0),i}(S.Model),q=function(){function t(){this.visibleColumns=[],this._theadClass="",this._isConfigured=!1,this._loadFnConfigured=!1,this._changeFnConfigured=!1,this._columnsFetched=!1,this._hasHeader=!1,this._hasFooter=!1,this._columns=[],this._destroy$=new b.Subject}return Object.defineProperty(t.prototype,"columns",{get:function(){return this._columns.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnsForDialog",{get:function(){var t=this,e=!!this._customizeFieldTitleFn,i=!!this._customizeFieldDisabledFn,n=!!this._columnTooltipFn;return this._columns.filter((function(t){return t.customize&&!!t.name})).map((function(o){var s=e?t._customizeFieldTitleFn(o.name,o.title):o.name,r=!!i&&t._customizeFieldDisabledFn(o.name),l=n?t._columnTooltipFn(o.name,o.show,r):void 0;return{template:o.headerTemplate,name:o.name,show:o.show,title:s,disabled:r,tooltip:l}}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnsFetched",{get:function(){return this._columnsFetched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasHeader",{get:function(){return this._hasHeader},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasFooter",{get:function(){return this._hasFooter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"theadClass",{get:function(){return this._theadClass},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"configured",{get:function(){return this._isConfigured},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"loadFnConfigured",{get:function(){return this._loadFnConfigured},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"changeFnConfigured",{get:function(){return this._changeFnConfigured},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"changeFn",{get:function(){return this._changeFn},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleColumnsNames",{get:function(){return this.visibleColumns.map((function(t){return t.name})).filter((function(t){return!!t}))},enumerable:!0,configurable:!0}),t.prototype.setDefaults=function(t){this._defaultConfigs=t},t.prototype.initConfig=function(t){t&&(t.load&&(this._loadFn=t.load,this._loadFnConfigured=!0),t.change&&(this._changeFn=t.change,this._changeFnConfigured=!0),t.title&&(this._customizeFieldTitleFn=t.title),t.disabled&&(this._customizeFieldDisabledFn=t.disabled),t.tooltip&&(this._columnTooltipFn=t.tooltip),this._isConfigured=!0)},t.prototype.initializeColumns=function(t){var e=this;this._columns=[],t.forEach((function(t){var i=new B(t,e._defaultConfigs);(i.headerTemplate||i.title)&&(e._hasHeader=!0),i.footerTemplate&&(e._hasFooter=!0),e._columns.push(i)})),this._theadClass=this.hasHeader?"has-header":"",this._updateColspans("headerConfigs","headerColspanned"),this._updateColspans("groupCellConfigs","groupCellColspanned"),this._updateColspans("cellConfigs","cellColspanned"),this._updateColspans("footerConfigs","footerColspanned"),this.updateVisibleColumns()},t.prototype.loadRemoteColumnConfigs=function(){var t=this;return this._loadFn().pipe(v.takeUntil(this._destroy$),v.tap((function(e){t._columnsFetched=!0,t.updateVisibilityForCols(e)})))},t.prototype.updateVisibleColumns=function(){this.visibleColumns=this._columns.filter((function(t){return t.show}))||[]},t.prototype.updateVisibilityForCols=function(t){var e=this;t.forEach((function(t){var i=e._columns.find((function(e){return e.name===t.name}));i&&(i.show=t.show)})),this.updateVisibleColumns()},t.prototype.destroy=function(){this._destroy$.next(),this._destroy$.complete(),this._columns=void 0,this.visibleColumns=void 0,this._defaultConfigs=void 0,this._loadFn=void 0,this._changeFn=void 0},t.prototype._updateColspans=function(t,e){var i=this;this._columns.forEach((function(n,o){if(void 0!==n[t].colspan){var s=o+ +n[t].colspan;if(!w.isNumber(s))return;i._columns[o][e]=!1;for(var r=o+1;r<s;r++)i._columns[r]&&(i._columns[r][e]=!0)}}))},t}();!function(t){t[t.Default=0]="Default",t[t.LimitChanged=1]="LimitChanged"}(N||(N={}));var V,G,z=function(){function t(){this._actions=[],this._destroy$=new b.Subject}return Object.defineProperty(t.prototype,"destroy$",{get:function(){return this._destroy$.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"actions",{get:function(){return this._actions},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasActions",{get:function(){return this._actions.length>0},enumerable:!0,configurable:!0}),t.prototype.setFilterRef=function(t){this._filterRef=t},t.prototype.setActions=function(t){this.clearActions(),this._actions=t,this._reorderAction&&this._actions.unshift(this._reorderAction)},t.prototype.addReorderAction=function(t){var e=this,i=t.click;this._actions.unshift(t),t.click=function(){e._filterRef.updateActions([e._doneAction]),e._filterRef.hideKeywordField(),e._filterRef.hideFiltersBtn(),i(null)},this._reorderAction=t},t.prototype.addReorderDoneAction=function(t){var e=this;this._doneAction=t;var i=t.click;this._doneAction.click=function(){e._filterRef.updateActions(e._actions),e._filterRef.showKeywordField(),e._filterRef.showFiltersBtn(),i(null)}},t.prototype.clearActions=function(){this._actions=[],this._destroy$.next()},t.prototype.updateDisabledState=function(){this._filterRef.updateDisabledState()},t}();(V=t.FsListState||(t.FsListState={}))[V.Idle=0]="Idle",V[V.Load=1]="Load",V[V.Reload=2]="Reload",V[V.Filter=3]="Filter",V[V.Sort=4]="Sort",V[V.PageChange=5]="PageChange",V[V.LoadMore=6]="LoadMore",(G=t.RowType||(t.RowType={}))[G.Simple=0]="Simple",G[G.Group=1]="Group",G[G.Child=2]="Child";var H,W=function(){function e(e,i){void 0===e&&(e={}),void 0===i&&(i=t.RowType.Simple),this.readyToSwap=!0,this._data={},this._data=e,this._rowType=i}return Object.defineProperty(e.prototype,"data",{get:function(){return this._data},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._rowType},enumerable:!0,configurable:!0}),e.prototype.getReorderData=function(){return{type:this._rowType,data:this.data,parent:null}},e}(),Q=function(e){function i(i,n){void 0===i&&(i={}),void 0===n&&(n=!1);var o=e.call(this,i,t.RowType.Group)||this;return o.children=[],o._expanded=new b.BehaviorSubject(!1),n&&o._expanded.next(n),o}return P(i,e),Object.defineProperty(i.prototype,"isGroup",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"expanded",{get:function(){return this._expanded.getValue()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"expanded$",{get:function(){return this._expanded.asObservable()},enumerable:!0,configurable:!0}),i.prototype.updateChildrenIndexes=function(){this.children.forEach((function(t,e){t.index=e}))},i.prototype.updateChildrenVisibility=function(){var t=this;this.children.forEach((function(e){e.visible=t.expanded}))},i.prototype.toggleRowExpandStatus=function(){this._expanded.next(!this.expanded),this.updateChildrenVisibility()},i.prototype.destroy=function(){this.children.forEach((function(t){return t.destroy()})),this._expanded.complete()},i}(W),J=function(e){function i(i,n){void 0===i&&(i={}),void 0===n&&(n=null);var o=e.call(this,i,t.RowType.Child)||this;return o.visible=!0,o._parent=n,o.parent&&(o.visible=o._parent.expanded,o.index=o.parent.children.length),o}return P(i,e),Object.defineProperty(i.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isChild",{get:function(){return!0},enumerable:!0,configurable:!0}),i.prototype.getReorderData=function(){return{type:this._rowType,data:this.data,parent:this.parent.getReorderData()}},i.prototype.destroy=function(){},i}(W),K=function(e){function i(i){return void 0===i&&(i={}),e.call(this,i,t.RowType.Simple)||this}return P(i,e),i.prototype.destroy=function(){},i}(W),Y=function(){function e(e,i,n){void 0===e&&(e={}),void 0===i&&(i=t.RowType.Simple);var o=void 0===n?{}:n,s=o.parent,r=o.initialExpand;switch(i){case t.RowType.Simple:this._row=new K(e);break;case t.RowType.Group:this._row=new Q(e,r);break;case t.RowType.Child:this._row=new J(e,s)}}return Object.defineProperty(e.prototype,"index",{get:function(){return this._row.index},set:function(t){this._row.index=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readyToSwap",{get:function(){return this._row.readyToSwap},set:function(t){this._row.readyToSwap=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._row.visible},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._row.data},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._row.type},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isGroup",{get:function(){return this._row instanceof Q},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isChild",{get:function(){return this._row instanceof J},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._row.parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._row.children},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expanded",{get:function(){return this._row.expanded},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expanded$",{get:function(){return this._row.expanded$},enumerable:!0,configurable:!0}),e.prototype.updateChildrenIndexes=function(){this._row.updateChildrenIndexes()},e.prototype.toggleRowExpandStatus=function(){this._row.toggleRowExpandStatus()},e.prototype.getReorderData=function(){return this._row.getReorderData()},e.prototype.destroy=function(){this._row.destroy()},e}(),X=function(){function e(){this._visibleRows$=new b.BehaviorSubject([]),this._rowsRemoved$=new b.Subject,this._remoteRowsChange$=new b.Subject,this._store=new Map,this._rowsStack=[],this._initialExpand=!0,this._groupEnabled=!1,this._hasData=!1,this._destroy$=new b.Subject}return Object.defineProperty(e.prototype,"visibleRows$",{get:function(){return this._visibleRows$},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visibleRows",{get:function(){return this._visibleRows$.getValue()},set:function(t){this._visibleRows$.next(t),this._hasData=this.visibleRows.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visibleRowsData",{get:function(){return this.visibleRows.map((function(t){return t.data}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rowsStack",{get:function(){return this._rowsStack.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"groupEnabled",{get:function(){return this._groupEnabled},set:function(t){this._groupEnabled=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"remoteRowsChange$",{get:function(){return this._remoteRowsChange$.pipe(v.takeUntil(this._destroy$))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rowsRemoved$",{get:function(){return this._rowsRemoved$.pipe(v.takeUntil(this._destroy$))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasData",{get:function(){return this._hasData},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"operation",{get:function(){return this._operation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visibleRowsCount",{get:function(){return this.visibleRows.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasGroups",{get:function(){return this._compareByFn&&this._groupByFn},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"reorderData",{get:function(){return this._rowsStack.map((function(t){return t.getReorderData()}))},enumerable:!0,configurable:!0}),e.prototype.setGroupConfig=function(t){var e;t&&(this._groupByFn=t.groupBy,this._compareByFn=t.compareBy,this._initialExpand=null==(e=t.initialExpand)||e,this._groupEnabled=void 0===t.enabled||t.enabled)},e.prototype.setAdditionalConfigs=function(t){this._infinityScrollEnabled=t.scrollable,this._loadMoreEnabled=t.loadMoreEnabled},e.prototype.setRowsFromResponse=function(e){if(this._infinityScrollEnabled){switch(this._operation){case t.FsListState.Filter:case t.FsListState.Reload:case t.FsListState.Sort:this._updateRowsStack(e);break;default:this._extendRowsStack(e)}this._remoteRowsChange$.next()}else this._operation===t.FsListState.LoadMore||this._operation===t.FsListState.PageChange&&this._loadMoreEnabled?this._extendRowsStack(e):this._updateRowsStack(e);this._operation=t.FsListState.Idle,this._updateVisibleRows()},e.prototype.setOperation=function(t){this._operation=t},e.prototype.clearRows=function(){this.visibleRows=[]},e.prototype.replaceData=function(e,i){var n=this._rowsStack.findIndex((function(t){return i(t.data,e)}));return n>-1&&(this._rowsStack[n]=new Y(e,t.RowType.Simple,{initialExpand:this._initialExpand}),this._updateVisibleRows(),!0)},e.prototype.updateData=function(t,e){var i=this;if(Array.isArray(t)){var n=!1;return t.forEach((function(t){i.updateRow(t,e)&&(n=!0)})),this._updateVisibleRows(),n}var o=this.updateRow(t,e);return this._updateVisibleRows(),o},e.prototype.removeData=function(t){var e=this,i=[],n=function(t,e){return t===e};return Array.isArray(t)?t.forEach((function(t){i.push.apply(i,E(e.removeRow(t,n)))})):w.isFunction(t)?i.push.apply(i,E(this.removeRow(null,t))):w.isObject(t)&&i.push.apply(i,E(this.removeRow(t,n))),i.length>0&&(this._updateVisibleRows(),this._rowsRemoved$.next(i)),!!i.length},e.prototype.swapRows=function(t,e){var i,n=this._rowsStack,o=n.indexOf(t),s=n.indexOf(e);i=n[o],n[o]=n[s],n[s]=i,this._rowsStack=E(n)},e.prototype.destroy=function(){this._destroyRowsStack(),this._store.clear(),this._destroy$.next(),this._destroy$.complete()},e.prototype.toggleRowGroup=function(t){this.visibleRows.find((function(e){return e.data===t})).toggleRowExpandStatus(),this._updateVisibleRows()},e.prototype._updateRowsStack=function(e){var i=this;this._destroyRowsStack(),this.groupEnabled?(this._store.clear(),this._rowsStack=E(this.groupRowsBy(e))):(e=e.map((function(e){return new Y(e,t.RowType.Simple,{initialExpand:i._initialExpand})})),this._rowsStack=E(e))},e.prototype._extendRowsStack=function(e){var i=this;this.groupEnabled?this._rowsStack=E(this.groupRowsBy(e)):(e=e.map((function(e){return new Y(e,t.RowType.Simple,{initialExpand:i._initialExpand})})),this._rowsStack=E(this._rowsStack,e))},e.prototype._destroyRowsStack=function(){this._rowsStack.forEach((function(t){return t.destroy()}))},e.prototype._updateVisibleRows=function(){this.visibleRows=this._rowsStack.filter((function(t){return!t.isChild||t.visible}))},e.prototype.updateRow=function(t,e){void 0===e&&(e=function(t,e){return t===e});var i=this._rowsStack.findIndex((function(i){return e(i.data,t)}));if(-1!==i){var n=this._rowsStack[i],o=Object.assign({},n.data,t);return this._rowsStack[i]=new Y(o,n.type,{parent:n.parent,initialExpand:n.expanded}),!0}return!1},e.prototype.removeRow=function(t,e){var i=this._rowsStack,n=[];return i.forEach((function(o,s){if(e(o.data,t)){var r=i.splice(s,1);n.push(r)}})),n},e.prototype.groupRowsBy=function(t){var e=this;if(!this._groupByFn||!this._compareByFn)return t;var i=0;return t.forEach((function(t){var n=e._groupByFn(t),o=e._compareByFn(n);if(e._store.has(o)){s=e._store.get(o),r=new J(t,s);s.children.push(r)}else{var s;(s=new Q(n,e._initialExpand)).index=i,i++;var r=new J(t,s);e._store.set(o,s),s.children.push(r)}})),Array.from(this._store.values()).reduce((function(t,e){return e.isGroup?t.push.apply(t,E([e],e.children)):t.push(e),t}),[])},e}();(H=t.PaginationStrategy||(t.PaginationStrategy={})).Page="page",H.Offset="offset",H.None="none";var Z,tt=function(e){function i(){var i=e.call(this)||this;return i.limit=25,i.manual=!1,i.page=1,i.offset=0,i.displayed=0,i._pages$=new b.BehaviorSubject(0),i._strategy=t.PaginationStrategy.None,i._removedRows=0,i._pageChanged$=new b.Subject,i._pageReset$=new b.Subject,i._onDestroy$=new b.Subject,i._loadMoreEnabled=!1,i._infinityScrollEnabled=!1,i._loadMoreText="Load More",i._limits=[10,25,50,100,200],i}return P(i,e),Object.defineProperty(i.prototype,"pages",{get:function(){return this._pages$.getValue()},set:function(t){this._pages$.next(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pages$",{get:function(){return this._pages$.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pageChanged$",{get:function(){return this._pageChanged$.pipe(v.takeUntil(this._onDestroy$))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pageReset$",{get:function(){return this._pageReset$.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"enabled",{get:function(){return!this.hasNoneStrategy},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"limits",{get:function(){return this._limits},set:function(t){this._limits=t,this.limits.length>0&&-1===this.limits.indexOf(this.limit)?this.limit=this.limits[0]:0===this.limits.length&&(this.limit=this.records)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"query",{get:function(){switch(this.strategy){case t.PaginationStrategy.Page:return this.queryPageStrategy;case t.PaginationStrategy.Offset:return this.queryOffsetStrategy}return{}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"queryPageStrategy",{get:function(){return this.hasNoneStrategy?{}:{page:this.page||1,limit:this.limit||10}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"queryOffsetStrategy",{get:function(){var t=this.page-1||0,e=this.limit||5;return{offset:t*e,limit:e}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"loadDeletedOffsetQuery",{get:function(){var t=this.limit*this.page,e=Math.min(this.records,t);return{offset:Math.max(0,e-this._removedRows),limit:this._removedRows}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"initialized",{get:function(){return!!this.pages},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strategy",{get:function(){return this._strategy},set:function(e){this._strategy=void 0===e?t.PaginationStrategy.Page:e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hasPageStrategy",{get:function(){return this.strategy===t.PaginationStrategy.Page},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hasOffsetStrategy",{get:function(){return this.strategy===t.PaginationStrategy.Offset},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hasNoneStrategy",{get:function(){return this.strategy===t.PaginationStrategy.None},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hasPrevPage",{get:function(){switch(this.strategy){case t.PaginationStrategy.Page:return this._hasPrevPagePageStrategy;case t.PaginationStrategy.Offset:return this._hasPrevPageOffsetStrategy}return!1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hasNextPage",{get:function(){switch(this.strategy){case t.PaginationStrategy.Page:return this._hasNextPagePageStrategy;case t.PaginationStrategy.Offset:return this._hasNextPageOffsetStrategy}return!1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"loadMoreEnabled",{get:function(){return this._loadMoreEnabled},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"loadMoreText",{get:function(){return this._loadMoreText},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"infinityScrollEnabled",{get:function(){return this._infinityScrollEnabled},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"statusLabel",{get:function(){var t=(this.page-1)*this.limit;return t+1+"-"+Math.min(this.records,t+this.limit)},enumerable:!0,configurable:!0}),i.prototype._fromJSON=function(t){e.prototype._fromJSON.call(this,t),t.limit||(this.limit=25)},i.prototype.initWithConfig=function(t,e,i){void 0===i&&(i=!1),t&&(t.limits&&(this.limits=t.limits),t.limit&&(this.limit=t.limit),e&&this.setLoadMore(e),this._infinityScrollEnabled=i,this.strategy=t.strategy)},Object.defineProperty(i.prototype,"_hasPrevPagePageStrategy",{get:function(){return this.page>1&&this.pages>1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_hasPrevPageOffsetStrategy",{get:function(){return this.offset>=this.limit&&this.records>1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_hasNextPagePageStrategy",{get:function(){return this.page<this.pages&&this.pages>1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_hasNextPageOffsetStrategy",{get:function(){return this.offset+this.limit<this.records&&this.records>1},enumerable:!0,configurable:!0}),i.prototype.updatePaging=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=!1),i?(this.records=t.records,this.records<this.displayed&&(this.displayed=this.records),this._removedRows=0):(this._fromJSON(t),this.displayed=e),this.updateTotalPages()},i.prototype.setLoadMore=function(t){this._loadMoreEnabled=!!t,this._loadMoreEnabled&&w.isObject(t)&&t.label&&(this._loadMoreText=t.label)},i.prototype.getVisibleRecords=function(){return this.displayed},i.prototype.setLimit=function(t){this.limit=t,this.resetPaging(),this._pageChanged$.next({type:N.LimitChanged,payload:t})},i.prototype.isActive=function(t){return t===this.page},i.prototype.goToPage=function(t){t>=1&&this.page!==t&&(this.page=t,this.updateOffset(),this._pageChanged$.next({type:N.Default,payload:t}))},i.prototype.resetPaging=function(){this.page=1,this.offset=0},i.prototype.goNext=function(){this.hasNextPage&&(this.page++,this.updateOffset(),this._pageChanged$.next({type:N.Default,payload:this.page}))},i.prototype.goFirst=function(){this.page>1&&(this.page=1,this.updateOffset(),this._pageChanged$.next({type:N.Default,payload:this.page}))},i.prototype.goPrev=function(){this.page>1&&(this.page--,this.updateOffset(),this._pageChanged$.next({type:N.Default,payload:this.page}))},i.prototype.goLast=function(){this.page<this.pages&&(this.page=this.pages,this.updateOffset(),this._pageChanged$.next({type:N.Default,payload:this.page}))},i.prototype.removeRows=function(t){this._removedRows+=t},i.prototype.updatePagination=function(){this.updateTotalPages()},i.prototype.destroy=function(){this._onDestroy$.next(),this._onDestroy$.complete()},i.prototype.updateOffset=function(){this.offset=this.limit*(this.page-1)},i.prototype.updateTotalPages=function(){this.pages=Math.ceil(this.records/this.limit)},D([S.Alias(),F("design:type",Object)],i.prototype,"limit",void 0),D([S.Alias(),F("design:type",Number)],i.prototype,"records",void 0),D([S.Alias(),F("design:type",Object)],i.prototype,"manual",void 0),D([S.Alias("pages"),F("design:type",Number),F("design:paramtypes",[Number])],i.prototype,"pages",null),i}(S.Model);(Z=t.SelectionChangeType||(t.SelectionChangeType={})).AllVisibleSelectionChange="AllVisibleSelectionChange",Z.RowSelectionChange="RowSelectionChange",Z.SelectedAll="SelectedAll";var et,it,nt=function(){function e(t,e,i){void 0===t&&(t={}),this._trackBy=e,this._selectionDialog=i,this.actions=[],this.selectAll=!0,this.selectedRows=new Map,this.selectedGroups=new Map,this._selectionDialogRef=null,this._selectionChange=new b.Subject,this._selectedAllVisible=!1,this._selectedAll=!1,this._selectedRecords=0,this._visibleRecordsCount=0,this._totalRecordsCount=0,this._destroy$=new b.Subject,this.actions=t.actions?E(t.actions):[],this.actionSelectedFn=t.actionSelected,this.allSelectedFn=t.allSelected,this.cancelledFn=t.cancelled,this.selectionChangedFn=t.selectionChanged,this.selectAll=t.selectAll}return Object.defineProperty(e.prototype,"selectedAll",{get:function(){return this._selectedAll},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectionChange$",{get:function(){return this._selectionChange.pipe(v.takeUntil(this._destroy$))},enumerable:!0,configurable:!0}),e.prototype.setRowsCallback=function(t){this._getRows=t},e.prototype.rowSelectionChange=function(t,e){t&&(e?(this._selectRow(t),this.openDialog()):(this._selectedAll&&(this._selectedAll=!1),this._deselectRow(t))),this._updateSelectionRefSelected(),this._updateSelectedVisibleStatus()},e.prototype.selectAllVisibleRows=function(t){var e=this;this.openDialog(),this._selectedAllVisible=t,this._selectedRecords=0;var i=this._getRows();t?i.forEach((function(t){var i=e._rowIdentifier(t.data);t.isGroup?e._setNumberOfSelectedChildrenInGroup(i,t.children.length):(e.selectedRows.set(i,t.data),e._selectedRecords++)})):(i.forEach((function(t){var i=e._rowIdentifier(t.data);t.isGroup?e._setNumberOfSelectedChildrenInGroup(i,0):e.selectedRows.delete(i)})),this._selectedAll=!1,this._selectedRecords=0),this._visibleRowsSelectionChanged(),this._updateSelectionRefSelected()},e.prototype.isRowSelected=function(t){return this.selectedRows.has(this._rowIdentifier(t))||this.selectedGroups.has(this._rowIdentifier(t))||this.selectedAll},e.prototype.isGroupSelected=function(t){var e,i=this._rowIdentifier(t.data);return this.selectedGroups.has(i)&&(null===(e=t.children)||void 0===e?void 0:e.length)>this.selectedGroups.get(i)?"indeterminate":this.selectedGroups.has(i)||this.selectedAll},e.prototype.openDialog=function(){this._selectionDialogRef||(this._selectionDialogRef=this._selectionDialog.open({selectAll:this.selectAll,allCount:this._totalRecordsCount,actions:E(this.actions)}),this._subscribeToSelection())},e.prototype.updateVisibleRecordsCount=function(t){this._visibleRecordsCount=t},e.prototype.updateTotalRecordsCount=function(t){this._totalRecordsCount=t,this._selectionDialogRef&&this._selectionDialogRef.updateAllCount(this._totalRecordsCount)},e.prototype.pageChanged=function(t){var e=this;this._selectedAll?t||this._resetSelection():(this._selectedRecords=0,this._getRows().map((function(t){return t.data})).forEach((function(t){var i=e._rowIdentifier(t);e.selectedRows.has(i)&&e._selectedRecords++})),this._updateSelectionRefSelected(),this._updateSelectedVisibleStatus())},e.prototype.removeRow=function(t){this.selectedRows.delete(this._rowIdentifier(t)),this._updateSelectionRefSelected(),this._updateSelectionRefSelectedAll()},e.prototype.selectedRowsIntersection=function(t){var e=this,i=t.map((function(t){return e._rowIdentifier(t)}));this.selectedRows.forEach((function(t,n){-1===i.indexOf(n)&&e.removeRow(t)}))},e.prototype.updateConfig=function(t){var e=t.actions,i=t.actionSelected,n=t.allSelected,o=t.cancelled,s=t.selectionChanged,r=t.selectAll;this.actions=e?E(e):this.actions,this.actionSelectedFn=null!=i?i:this.actionSelectedFn,this.allSelectedFn=null!=n?n:this.allSelectedFn,this.cancelledFn=null!=o?o:this.cancelledFn,this.selectionChangedFn=null!=s?s:this.selectionChangedFn,this.selectAll=null!=r?r:this.selectAll},e.prototype.resetActions=function(){var t;null===(t=this._selectionDialogRef)||void 0===t||t.resetActions()},e.prototype.closeSelectionDialog=function(){var t;null===(t=this._selectionDialogRef)||void 0===t||t.close()},e.prototype.destroy=function(){this._resetSelection(),this.actions=null,this.actionSelectedFn=null,this.allSelectedFn=null,this.cancelledFn=null,this.closeSelectionDialog(),this._selectionDialogRef=null,this._destroy$.next(),this._destroy$.complete(),this._selectionChange.complete()},e.prototype._subscribeToSelection=function(){var t=this;this._selectionDialogRef.actionSelected$().pipe(v.takeUntil(this._destroy$)).subscribe((function(e){t._onActionActions(e)})),this._selectionDialogRef.cancelled$().pipe(v.takeUntil(this._destroy$)).subscribe((function(){return t._onCancelActions()})),this._selectionDialogRef.allSelected$().pipe(v.takeUntil(this._destroy$)).subscribe((function(e){t._onSelectAllActions(e)}))},e.prototype._onActionActions=function(t){var e=this;if(this.actionSelectedFn){var i=this.actionSelectedFn(O({selected:Array.from(this.selectedRows.values()).map((function(t){return O({},t)}))},t));i instanceof b.Observable&&i.pipe(v.take(1),v.takeUntil(this._destroy$)).subscribe({next:function(){e.closeSelectionDialog(),e.selectAllVisibleRows(!1)},error:function(){}})}},e.prototype._onCancelActions=function(){this.selectAllVisibleRows(!1),this.cancelledFn&&this.cancelledFn(),this._selectionDialogRef=null},e.prototype._onSelectAllActions=function(e){this._selectedAll=e,this.selectAllVisibleRows(e),this._selectionDialogRef.updateSelected(this._totalRecordsCount),this._selectionChangeEvent(t.SelectionChangeType.SelectedAll,this._selectedAll),this._updateSelectionRefSelectedAll(),this.allSelectedFn&&this.allSelectedFn(e)},e.prototype._selectionChangedActions=function(){var t=this;if(0!==this.selectedRows.size){if(this.selectionChangedFn){var e=this.selectionChangedFn(Array.from(this.selectedRows.values()),this.selectedAll,this._selectionDialogRef);e&&(e instanceof b.Observable?e.pipe(v.take(1),v.takeUntil(this._destroy$)).subscribe({next:function(e){t._selectionDialogRef.updateActions(e)}}):Array.isArray(e)&&this._selectionDialogRef.updateActions(e))}}else this._selectionDialogRef.updateActions([])},e.prototype._updateSelectionRefSelected=function(){this._selectionDialogRef&&(this._selectionDialogRef.updateSelected(this.selectedRows.size),0===this.selectedRows.size&&this._selectionDialogRef.close(),this._selectionChangedActions())},e.prototype._updateSelectionRefSelectedAll=function(){this._selectionDialogRef&&this._selectionDialogRef.updateSelectedAllStatus(this._selectedAll)},e.prototype._updateSelectedVisibleStatus=function(){this._selectedAllVisible=0!==this._selectedRecords&&this._selectedRecords===this._visibleRecordsCount,this._selectionChangeEvent(t.SelectionChangeType.RowSelectionChange,this._selectedAllVisible)},e.prototype._visibleRowsSelectionChanged=function(){this._selectionChangeEvent(t.SelectionChangeType.AllVisibleSelectionChange,this._selectedAllVisible)},e.prototype._selectionChangeEvent=function(t,e){this._selectionChange.next({type:t,payload:e})},e.prototype._rowIdentifier=function(t){var e=w.get(t,this._trackBy,void 0);return void 0===e&&console.warn("Selection can not recognize track by field for row. Please check if you had configured trackBy function."),e},e.prototype._selectRow=function(t){var e=this,i=this._rowIdentifier(t.data);t.isGroup?t.children.forEach((function(t){e._selectRow(t)})):(t.isChild&&this._selectChildRow(t),this.selectedRows.set(i,t.data),this._selectedRecords++)},e.prototype._deselectRow=function(t){var e=this,i=this._rowIdentifier(t.data);t.isGroup?(this.selectedGroups.delete(i),t.children.forEach((function(t){e._deselectRow(t)}))):(t.isChild&&this.selectedRows.has(i)&&this._deselectChildRow(t),this.selectedRows.delete(i),this._selectedRecords--)},e.prototype._selectChildRow=function(t){var e=this._rowIdentifier(t.parent.data),i=this.selectedGroups.get(e)||0;this._setNumberOfSelectedChildrenInGroup(e,i+1)},e.prototype._deselectChildRow=function(t){var e=this._rowIdentifier(t.parent.data),i=this.selectedGroups.get(e)||0;i>1?this._setNumberOfSelectedChildrenInGroup(e,i-1):this._setNumberOfSelectedChildrenInGroup(e,0)},e.prototype._setNumberOfSelectedChildrenInGroup=function(t,e){0!==e?this.selectedGroups.set(t,e):this.selectedGroups.delete(t)},e.prototype._resetSelection=function(){this._selectedAll=!1,this._selectedAllVisible=!1,this._visibleRecordsCount=0,this._selectedRecords=0,this.selectedRows.clear(),this._updateSelectionRefSelected(),this._updateSelectionRefSelectedAll(),this._visibleRowsSelectionChanged()},e}(),ot=function(){function e(){this.sortingColumns=[],this.fakeSortingColumns=[],this._initialized=new b.BehaviorSubject(!1),this._sortingChanged$=new b.Subject,this._onDestroy=new b.Subject}return Object.defineProperty(e.prototype,"sortingChanged$",{get:function(){return this._sortingChanged$.pipe(v.takeUntil(this._onDestroy))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"initialized$",{get:function(){return this._initialized.pipe(v.takeUntil(this._onDestroy))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.sortingColumn?{value:this.sortingColumn.name,direction:this.sortingColumn.direction}:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"initialization",{get:function(){return!this._initialized.getValue()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDefined",{get:function(){return!!this.sortingColumn},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_initialization",{set:function(t){this._initialized.next(!t)},enumerable:!0,configurable:!0}),e.prototype.addSortableColumn=function(t){this.sortingColumns.push(t)},e.prototype.clearSortableColumns=function(){this.sortingColumns=[]},e.prototype.sortDirection=function(t){this.sortingColumn&&this.sortingColumn.sortingDirection!==t&&(this._setSortingDirection(t),this._notifySortChanged())},e.prototype.sortBy=function(t){t.sortable&&(this._setSortingColumn(t),this._notifySortChanged())},e.prototype.sortByColumnWithName=function(t){var e=this.getColumn(t);e&&(this._setSortingColumn(e),this._notifySortChanged())},e.prototype.initFakeColumns=function(t){var e=this;t.forEach((function(t){var i=new B({title:t.name,name:t.value,sortable:!0,direction:t.direction});e.fakeSortingColumns.push(i)}))},e.prototype.initialSortBy=function(e){if(this._initialization=!0,!e)return this._trySortByDefaultSortableColumn(),this.sortingColumn||this.sortByFirstSortbale(),void(this._initialization=!1);if(this.getColumn(e.value)){this.sortByColumnWithName(e.value);var i=void 0===e.direction||"asc"===e.direction?t.SortingDirection.asc:t.SortingDirection.desc;this._setSortingDirection(i)}else this.sortByFirstSortbale(),console.warn('\n Not possible to do initial sort by "'+e.value+'" column.\n Column with name "'+e.value+'" does not exists.\n Check your lister configuration.\n ');this._initialization=!1},e.prototype.sortByFirstSortbale=function(){var e=this.sortingColumns.find((function(t){return t.sortable}));e&&(this.sortBy(e),this.sortDirection(t.SortingDirection.asc))},e.prototype.getColumn=function(t){return this.sortingColumns.find((function(e){return e.name===t&&e.sortable}))||this.fakeSortingColumns.find((function(e){return e.name===t&&e.sortable}))},e.prototype.destroy=function(){this._onDestroy.next(),this._onDestroy.complete()},e.prototype._setSortingColumn=function(t){if(!t.sortable)return!1;t.ordered?t.changeDirection():(E(this.fakeSortingColumns,this.sortingColumns).filter((function(t){return t.ordered})).forEach((function(t){return t.ordered=!1})),t.ordered=!0),this.sortingColumn=t},e.prototype._setSortingDirection=function(t){this.sortingColumn.sortingDirection=t},e.prototype._notifySortChanged=function(){this.initialization||this._sortingChanged$.next({sortBy:this.sortingColumn.name,sortDirection:this.sortingColumn.direction})},e.prototype._trySortByDefaultSortableColumn=function(){var t=this.sortingColumns.find((function(t){return t.sortableDefault}));t&&this.sortByColumnWithName(t.name)},e}(),st=function(){function t(t,e,i,n,o,s){this._router=t,this._route=e,this._persistance=i,this._paginator=n,this._sorting=o,this._queryParamsEnabled=s,this._externalParams={page:null,limit:null,sortName:null,sortDirection:null},this._destroy$=new b.Subject,this.initialize()}return Object.defineProperty(t.prototype,"externalSorting",{get:function(){return this._enabled&&this._sortName&&this._sortDirection?{value:this._sortName,direction:this._sortDirection}:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_enabled",{get:function(){return this._queryParamsEnabled||this._persistance.enabled},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_page",{get:function(){return this._externalParams.page},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_limit",{get:function(){return this._externalParams.limit},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_sortName",{get:function(){return this._externalParams.sortName},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_sortDirection",{get:function(){return this._externalParams.sortDirection},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){this._persistance.enabled&&(this._restorePaginationParams(this._persistance.getDataFromScope("paging")),this._restoreSortingParams(this._persistance.getDataFromScope("sorting"))),this._queryParamsEnabled&&(this._restorePaginationParams(this._route.snapshot.queryParams),this._restoreSortingParams(this._route.snapshot.queryParams)),this._paginator.enabled&&!this._paginator.infinityScrollEnabled&&(this._limit&&this._paginator.setLimit(this._limit),this._page&&this._paginator.goToPage(this._page)),this._updatePaginationParams(this._paginator.queryPageStrategy),this._listenPaginatorChanges(),this._listenSortingChanges()},t.prototype.clearSortingParams=function(){this._updateSortingParams(null,null)},t.prototype.destroy=function(){this._destroy$.next(),this._destroy$.complete()},t.prototype._restorePaginationParams=function(t){var e,i;(null===(e=t)||void 0===e?void 0:e.page)&&(this._externalParams.page=+t.page),(null===(i=t)||void 0===i?void 0:i.limit)&&(this._externalParams.limit=+t.limit)},t.prototype._restoreSortingParams=function(t){var e,i;(null===(e=t)||void 0===e?void 0:e.sortName)&&(this._externalParams.sortName=t.sortName),(null===(i=t)||void 0===i?void 0:i.sortDirection)&&(this._externalParams.sortDirection=t.sortDirection)},t.prototype._listenPaginatorChanges=function(){var t=this;b.merge(this._paginator.pageChanged$,this._paginator.pages$,this._paginator.pageReset$).pipe(v.takeUntil(this._destroy$)).subscribe((function(){t._updatePaginationParams(t._paginator.queryPageStrategy)}))},t.prototype._listenSortingChanges=function(){var t=this;b.merge(this._sorting.initialized$,this._sorting.sortingChanged$).pipe(v.takeUntil(this._destroy$)).subscribe((function(){var e=t._sorting.value;e?t._updateSortingParams(e.value,e.direction):t.clearSortingParams()}))},t.prototype._updateSortingParams=function(t,e){var i=this;this._queryParamsEnabled&&setTimeout((function(){i._router.navigate([],{replaceUrl:!0,relativeTo:i._route,queryParams:{sortName:t,sortDirection:e},queryParamsHandling:"merge"}).then((function(){}))})),this._persistance.enabled&&(t&&e?this._persistance.saveDataToScope("sorting",{sortName:t,sortDirection:e}):this._persistance.saveDataToScope("sorting",null))},t.prototype._updatePaginationParams=function(t){var e=this;this._queryParamsEnabled&&setTimeout((function(){e._router.navigate([],{replaceUrl:!0,relativeTo:e._route,queryParams:t,queryParamsHandling:"merge"}).then((function(){}))})),this._persistance.enabled&&this._persistance.saveDataToScope("paging",t)},t}(),rt=function(e){function i(i,n,o,s,r,l,a,c){void 0===n&&(n={});var d=e.call(this)||this;return d.el=i,d.config=n,d.fsScroll=o,d.selectionDialog=s,d.router=r,d.route=l,d.persistance=a,d.inDialog=c,d.filters=[],d.scrollable=!1,d.initialized$=new b.BehaviorSubject(!1),d.loading$=new b.BehaviorSubject(!1),d.paging=new tt,d.columns=new q,d.actions=new z,d.dataController=new X,d.sorting=new ot,d.filterConfig=null,d.fetch$=new b.Subject,d.fetchComplete$=new b.Subject,d.filtersReady$=new b.Subject,d.status=!0,d.chips=!1,d.filterInput=!0,d.queryParam=!1,d.restoreMode=!1,d.initialFetch=!0,d.emptyStateEnabled=!1,d.onDestroy$=new b.Subject,d._filtersQuery=new b.BehaviorSubject(null),d._fromJSON(n),d.initialize(n),d._headerConfig=new T(n.header),d._groupCellConfig=new T(n.cell),d._cellConfig=new T(n.cell),d._footerConfig=new T(n.footer),d.initialized$.next(!0),d.subscribe(),d.initialFetch&&(d.dataController.setOperation(t.FsListState.Load),d.fetch$.next()),d}return P(i,e),Object.defineProperty(i.prototype,"hasSavedFilters",{get:function(){return!!this.filterConfig.savedFilters},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"filtersQuery",{get:function(){return this._filtersQuery.getValue()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"filtersQuery$",{get:function(){return this._filtersQuery.asObservable()},enumerable:!0,configurable:!0}),i.prototype.fetchRemote=function(t){var e={state:this.dataController.operation},i=this.fetchFn(t,e);return i instanceof Promise?b.from(i):i},i.prototype.tranformTemplatesToColumns=function(t){var e=this,i={header:this._headerConfig,groupCell:this._groupCellConfig,cell:this._cellConfig,footer:this._footerConfig};this.columns.setDefaults(i),this.columns.initializeColumns(t),this.sorting.clearSortableColumns(),this.columns.columns.filter((function(t){return t.sortable&&t.show})).forEach((function(t){e.sorting.addSortableColumn(t)}));var n=this.externalParams.externalSorting,o=n||this.config.sort;this.sorting.initialSortBy(o),n&&!this.sorting.isDefined&&(this.externalParams.clearSortingParams(),console.warn("Not able to restore persisted sorting params.",n)),this.initFilters(),this.initInfinityScroll()},i.prototype.reload=function(){this.loading$.next(!0),this.dataController.setOperation(t.FsListState.Reload),this.fsScrollInstance?(this.paging.resetPaging(),this.dataController.clearRows(),this.fsScrollInstance.reload()):this.fetch$.next()},i.prototype.subscribe=function(){var e=this;this.paging.pageChanged$.pipe(v.takeUntil(this.onDestroy$)).subscribe((function(i){if(e.dataController.setOperation(t.FsListState.PageChange),i.type===N.LimitChanged&&e.paging.hasPageStrategy&&e.dataController.clearRows(),e.paging.hasOffsetStrategy&&(e.paging.updatePagination(),e.selection&&(e.selection.updateVisibleRecordsCount(e.paging.getVisibleRecords()),e.selection.updateTotalRecordsCount(e.paging.records),e.selection.pageChanged(e.scrollable))),!e.scrollable&&!e.paging.loadMoreEnabled){var n=[].slice.call(document.querySelectorAll(".cdk-overlay-container")).some((function(t){return e.el.nativeElement.contains(t)})),o=e.el.nativeElement;if(!n)e.el.nativeElement.getBoundingClientRect().top+window.pageYOffset<window.innerHeight&&(o=document.body);e.fetchComplete$.asObservable().pipe(v.take(1),v.takeUntil(e.onDestroy$)).subscribe((function(){o.scrollIntoView({behavior:"smooth"})}))}e.fetch$.next()})),this.sorting.sortingChanged$.pipe(v.takeUntil(this.onDestroy$)).subscribe((function(){e.dataController.setOperation(t.FsListState.Sort),e.paging.page=1,e.fsScrollInstance?(e.dataController.clearRows(),e.fsScrollInstance.reload()):e.fetch$.next()})),this.listenRowsRemove(),this.listenFetch()},i.prototype.getData=function(t){var e=this.dataController.visibleRowsData;return t&&(e=e.filter(t)),e.map((function(t){return w.cloneDeep(t)}))},i.prototype.hasData=function(t){return this.dataController.visibleRowsData.some(t)},i.prototype.groupEnabled=function(t){this.dataController.groupEnabled!==t&&(this.dataController.groupEnabled=t)},i.prototype.destroy=function(){this._fsScrollSubscription&&this._fsScrollSubscription.unsubscribe(),this.paging&&this.paging.destroy(),this.sorting&&this.sorting.destroy(),this.selection&&this.selection.destroy(),this.filterConfig&&(this.filterConfig=null),this.externalParams&&this.externalParams.destroy(),this.columns.destroy(),this.onDestroy$.next(),this.onDestroy$.complete(),this.dataController.destroy()},i.prototype.initialize=function(t){this.columns.initConfig(t.column),this.initDefaultOptions(t),this.initRestore(),this.initActions(t.actions),this.initPaging(t.paging,t.loadMore),this.initSelection(t.selection,this.selectionDialog),this.initGroups(t.group),this.initExternalParamsController(),this.initializeData()},i.prototype.initDefaultOptions=function(t){(!1===t.initialFetch||t.scrollable)&&(this.initialFetch=!1),!1===t.status&&(this.status=!1),t.chips&&(this.chips=t.chips),!1===t.filterInput&&(this.filterInput=!1),this.inDialog?this.queryParam=!1:this.queryParam=void 0===t.queryParam||t.queryParam,t.sorts&&this.sorting.initFakeColumns(t.sorts),t.trackBy||(this.trackBy="id")},i.prototype.initRestore=function(){var t=this;if(this.restore){var e=new U({label:this.restore.menuLabel||"Restore",menu:!0,click:function(e){t.restoreClick(t.restore.click,e)},restore:!0});this.rowActionsRaw||(this.rowActionsRaw=[]),this.rowActionsRaw.push(e),this.filters||(this.filters=[]),!1!==this.restore.filter&&this.filters.push({name:"$$_show_deleted_$$",type:g.ItemType.Checkbox,label:this.restore.filterLabel||"Show Deleted"})}},i.prototype.initPaging=function(t,e){this.paging.initWithConfig(t,e,!!this.scrollable)},i.prototype.initActions=function(t){t&&this.actions.setActions(t),this.hasRowActions=this.rowActionsRaw&&this.rowActionsRaw.length>0||this.groupActionsRaw&&this.groupActionsRaw.length>0},i.prototype.initSelection=function(t,e){var i=this;t&&(this.selection=new nt(t,this.trackBy,e),this.selection.setRowsCallback((function(){return i.dataController.visibleRows})))},i.prototype.initializeData=function(){this.dataController.setAdditionalConfigs({scrollable:!!this.scrollable,loadMoreEnabled:this.paging.loadMoreEnabled})},i.prototype.initGroups=function(t){t&&(this.dataController.setGroupConfig(t),this.groupActionsRaw=t.actions)},i.prototype.initExternalParamsController=function(){this.externalParams=new st(this.router,this.route,this.persistance,this.paging,this.sorting,this.queryParam)},i.prototype.listenFetch=function(){var t=this,e=this.fetch$.asObservable();this.filters&&(e=b.combineLatest([e,this.filtersReady$]).pipe(v.map((function(t){return $(t,1)[0]})))),e.pipe(v.debounceTime(50),v.tap((function(){t.loading$.next(!0)})),v.tap((function(){var e;null===(e=t.selection)||void 0===e||e.closeSelectionDialog()})),v.map((function(e){var i=t.paging.hasOffsetStrategy&&e&&e.loadOffset?Object.assign({},t.filtersQuery,t.paging.loadDeletedOffsetQuery):Object.assign({},t.filtersQuery,t.paging.query);return t.sorting.sortingColumn&&Object.assign(i,{order:t.sorting.sortingColumn.name+","+t.sorting.sortingColumn.direction}),i})),v.switchMap((function(e){return t.columns.loadFnConfigured&&!t.columns.columnsFetched?t.columns.loadRemoteColumnConfigs().pipe(v.mapTo(e)):b.of(e)})),v.switchMap((function(e){return t.columns.configured&&Object.assign(e,{columns:t.columns.visibleColumnsNames}),b.combineLatest([b.of(e),t.fetchRemote(e)])})),v.catchError((function(t,e){return console.error(t),e})),v.takeUntil(this.onDestroy$)).subscribe((function(e){t.completeFetch(e)}))},i.prototype.listenRowsRemove=function(){var e=this;this.dataController.rowsRemoved$.pipe(v.takeUntil(this.onDestroy$)).subscribe((function(i){if(e.paging.enabled){var n=i.length;e.paging.hasPageStrategy?e.noDataPaginationUpdate(n):e.dataController.hasData||e.paging.hasNextPage?(e.dataController.setOperation(t.FsListState.LoadMore),e.paging.removeRows(n),e.fetch$.next({loadOffset:!0})):e.noDataPaginationUpdate(n)}e.selection&&i.forEach((function(t){e.selection.removeRow(t.data)}))}))},i.prototype.initInfinityScroll=function(){var e=this;this.fsScrollInstance||this.scrollable&&(void 0===this.scrollable.status&&(this.scrollable.status=!0),this.fsScroll.component(this.scrollable.name).pipe(v.takeUntil(this.onDestroy$)).subscribe((function(i){e.fsScrollInstance=i,e._fsScrollSubscription=i.subscribe((function(){var n=!1,o=e.dataController.operation;e.initialFetch||e.paging.initialized||o===t.FsListState.Reload?o===t.FsListState.Reload||o===t.FsListState.Filter||o===t.FsListState.Sort?n=!0:e.paging.initialized&&e.paging.hasNextPage&&(n=!0,e.dataController.setOperation(t.FsListState.Load),e.paging.goNext()):(e.dataController.setOperation(t.FsListState.Load),n=!0),n&&(e.fetch$.next(),i.loading())})),e.dataController.remoteRowsChange$.pipe(v.takeUntil(e.onDestroy$)).subscribe((function(){i.loaded()}))})))},i.prototype.initFilters=function(){var t=this;if(!this.filterConfig){var e=E(this.sorting.sortingColumns,this.sorting.fakeSortingColumns).reduce((function(e,i){var n={name:i.title,value:i.name,default:t.sorting.sortingColumn&&t.sorting.sortingColumn.name===i.name};return e.push(n),e}),[]),i=this.sorting.sortingColumn?{value:this.sorting.sortingColumn.name,direction:this.sorting.sortingColumn.direction}:null;this.filterConfig={persist:this.persist,items:this.filters||[],savedFilters:this.savedFilters,inline:this.inlineFilters,actions:this.actions.actions,queryParam:this.queryParam,sorts:e,sort:i,chips:this.chips,init:this.filterInit.bind(this),change:this.filterChange.bind(this),reload:this.reload.bind(this),sortChange:this.filterSort.bind(this)}}},i.prototype.filterInit=function(t){this.filterInitCb&&this.filterInitCb(t),this._filtersQuery.next(t),this.checkRestoreFilter()},i.prototype.filterChange=function(e,i){this.filterChangeCb&&this.filterChangeCb(e,i),this._filtersQuery.next(e),this.restoreMode=!1,this.checkRestoreFilter(),this.restore&&this.restore.reload&&this.reload(),this.dataController.setOperation(t.FsListState.Filter),this.paging.resetPaging(),this.fsScrollInstance?(this.dataController.clearRows(),this.fsScrollInstance.reload()):this.fetch$.next()},i.prototype.checkRestoreFilter=function(){this.restore&&this.filtersQuery.$$_show_deleted_$$&&(delete this.filtersQuery.$$_show_deleted_$$,Object.assign(this.filtersQuery,this.restore.query),this.restoreMode=!0)},i.prototype.filterSort=function(e,i){if(i){this.sorting.sortByColumnWithName(i.value);var n="asc"===i.direction?t.SortingDirection.asc:t.SortingDirection.desc;this.sorting.sortDirection(n)}else this.sorting.sortingColumn=void 0,this.reload()},i.prototype.completeFetch=function(e){var i,n=$(e,2),o=n[0],s=n[1];if(this.paging.page||(this.paging.page=1),s.paging){var r=Array.isArray(s.data)&&s.data.length||0;this.paging.updatePaging(s.paging,r,this.dataController.operation===t.FsListState.LoadMore)}else this.paging.enabled&&console.log("%c FsList Warning ","color: white; background-color: #ffcc0b",'Pagination does not configured properly. Pagination is enabled, but http response does not contain "paging" field. You have to set "paging: false" in config or add "paging" field to response.');if(this.dataController.setRowsFromResponse(s.data),this.selection){if(this.paging.enabled)this.selection.pageChanged(this.scrollable),this.selection.updateVisibleRecordsCount(this.paging.getVisibleRecords()),this.selection.updateTotalRecordsCount(this.paging.records);else{var l=s.paging&&s.paging.records||Array.isArray(s.data)&&s.data.length;this.selection.updateVisibleRecordsCount(l),this.selection.updateTotalRecordsCount(l)}this.selection.selectedRowsIntersection(this.dataController.visibleRowsData)}(null===(i=this.emptyState)||void 0===i?void 0:i.validate)&&this.emptyStateTemplate&&(this.emptyStateEnabled=this.emptyState.validate(o,w.cloneDeep(s.data))),this.afterFetchFn&&this.afterFetchFn(o,this.dataController.visibleRowsData),this.fetchComplete$.next(),this.loading$.next(!1)},i.prototype.noDataPaginationUpdate=function(t){this.dataController.hasData||(this.paging.page>1?this.paging.goToPage(this.paging.page-1||1):this.reload()),this.paging.records-=t,this.paging.updatePagination(),this.dataController.hasData&&this.selection&&(this.selection.updateVisibleRecordsCount(this.dataController.visibleRowsCount),this.selection.updateTotalRecordsCount(this.paging.records))},i.prototype.restoreClick=function(t,e){var i=this,n=t(e);n instanceof b.Observable&&n.pipe(v.take(1),v.takeUntil(this.onDestroy$)).subscribe({next:function(){return i.reload()},error:function(){}})},D([S.Alias(),F("design:type",String)],i.prototype,"heading",void 0),D([S.Alias(),F("design:type",String)],i.prototype,"trackBy",void 0),D([S.Alias(),F("design:type",String)],i.prototype,"subheading",void 0),D([S.Alias(),F("design:type",Object)],i.prototype,"inlineFilters",void 0),D([S.Alias("rowActions"),F("design:type",Array)],i.prototype,"rowActionsRaw",void 0),D([S.Alias("rowClass"),F("design:type",Object)],i.prototype,"rowClass",void 0),D([S.Alias(),F("design:type",Object)],i.prototype,"rowEvents",void 0),D([S.Alias(),F("design:type",Object)],i.prototype,"restore",void 0),D([S.Alias(),F("design:type",Object)],i.prototype,"columnTemplates",void 0),D([S.Alias(),F("design:type",Boolean)],i.prototype,"persist",void 0),D([S.Alias(),F("design:type",Object)],i.prototype,"filters",void 0),D([S.Alias("filterInit"),F("design:type",Function)],i.prototype,"filterInitCb",void 0),D([S.Alias("filterChange"),F("design:type",Function)],i.prototype,"filterChangeCb",void 0),D([S.Alias(),F("design:type",Object)],i.prototype,"savedFilters",void 0),D([S.Alias(),F("design:type",Object)],i.prototype,"scrollable",void 0),D([S.Alias(),F("design:type",Object)],i.prototype,"noResults",void 0),D([S.Alias(),F("design:type",Object)],i.prototype,"emptyState",void 0),D([S.Alias("fetch"),F("design:type",Function)],i.prototype,"fetchFn",void 0),D([S.Alias("afterFetch"),F("design:type",Function)],i.prototype,"afterFetchFn",void 0),i}(S.Model);(et=t.ReorderPosition||(t.ReorderPosition={})).Left="left",et.Right="right",(it=t.ReorderStrategy||(t.ReorderStrategy={})).Always="always",it.Manual="manual",it.Custom="custom";var lt=function(){function i(){this._enabled$=new b.BehaviorSubject(!1),this._manualReorderActivated$=new b.BehaviorSubject(!1),this._reorderDisabled$=new b.BehaviorSubject(!1),this._numberOfActiveFilters=0,this._destroy$=new b.Subject}return Object.defineProperty(i.prototype,"enabled",{get:function(){return this._enabled$.getValue()},set:function(e){this._enabled$.next(e),this._manualReorderActivated$.next(this.enabled&&this.strategy===t.ReorderStrategy.Manual)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dataController",{get:function(){return this._dataController},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"manualReorderActivated$",{get:function(){return this._manualReorderActivated$.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"leftReorderActivated$",{get:function(){var e=this;return this._enabled$.pipe(v.map((function(i){return i&&e.position===t.ReorderPosition.Left})),v.map((function(t){return t&&0===e._numberOfActiveFilters})),v.distinctUntilChanged(),v.shareReplay())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rightReorderActivated$",{get:function(){var e=this;return this._enabled$.pipe(v.map((function(i){return i&&e.position===t.ReorderPosition.Right})),v.map((function(t){return t&&0===e._numberOfActiveFilters})),v.distinctUntilChanged(),v.shareReplay())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"reorderDisabled$",{get:function(){return this._reorderDisabled$.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"reorderDisabled",{get:function(){return this._reorderDisabled$.getValue()},enumerable:!0,configurable:!0}),i.prototype.initWithConfig=function(e,i,n){var o,s,r,l,a=this;e&&(this.menu=null==(o=e.menu)||o,this.position=null!=(s=e.position)?s:t.ReorderPosition.Left,this.strategy=null!=(r=e.strategy)?r:t.ReorderStrategy.Manual,this.status=null==(l=e.status)||l,this.label=e.label,this.startCallback=e.start,this.movedCallback=e.moved,this.doneCallback=e.done,this.moveDropCallback=e.moveDrop,this._dataController=i,this._actionsController=n,this.strategy===t.ReorderStrategy.Always?this.enableReorder():this.strategy===t.ReorderStrategy.Manual&&(n.addReorderAction({label:this.label||"Reorder",menu:this.menu,primary:!1,click:function(){a.enableReorder()},disabled:function(){return a.reorderDisabled}}),n.addReorderDoneAction({label:"Done",primary:!1,click:function(){a.disableReorder()},disabled:function(){return a.reorderDisabled}})))},i.prototype.enableReorder=function(){var e=this;if(this.strategy===t.ReorderStrategy.Manual||this.strategy===t.ReorderStrategy.Custom){var i=this.startCallback();if(i&&i instanceof b.Observable)return this.disableReorderAction(),void i.pipe(v.takeUntil(this._destroy$)).subscribe((function(){e.enabled=!0,e.enableReorderAction()}))}this.enabled=!0},i.prototype.disableReorder=function(){var e=this;if(this.strategy===t.ReorderStrategy.Manual||this.strategy===t.ReorderStrategy.Custom){var i=this.reorderFinished();if(i&&i instanceof b.Observable)return this.disableReorderAction(),void i.pipe(v.takeUntil(this._destroy$)).subscribe((function(){e.enabled=!1,e.enableReorderAction()}))}this.enabled=!1},i.prototype.reorderFinished=function(){if(this.doneCallback)return this.doneCallback(this._dataController.reorderData)},i.prototype.ngOnDestroy=function(){this._destroy$.next(),this._destroy$.complete()},i.prototype.enableReorderAction=function(){this._reorderDisabled$.next(!1),this._actionsController.updateDisabledState()},i.prototype.disableReorderAction=function(){this._reorderDisabled$.next(!0),this._actionsController.updateDisabledState()},i.prototype.setNunberOfActiveFilters=function(t){this._numberOfActiveFilters=t,this.enabled=this.enabled},i=D([e.Injectable(),F("design:paramtypes",[])],i)}(),at=function(){function t(){}return D([e.Input(),F("design:type",Object)],t.prototype,"colspan",void 0),D([e.Input(),F("design:type",String)],t.prototype,"align",void 0),D([e.Input("class"),F("design:type",Object)],t.prototype,"className",void 0),t=D([e.Directive({selector:"[fs-list-header]"})],t)}(),ct=function(){function t(){}return D([e.Input(),F("design:type",Object)],t.prototype,"colspan",void 0),D([e.Input(),F("design:type",String)],t.prototype,"align",void 0),D([e.Input("class"),F("design:type",Object)],t.prototype,"className",void 0),t=D([e.Directive({selector:"[fs-list-cell]"})],t)}(),dt=function(){function t(){}return D([e.Input(),F("design:type",Object)],t.prototype,"colspan",void 0),D([e.Input(),F("design:type",String)],t.prototype,"align",void 0),D([e.Input("class"),F("design:type",Object)],t.prototype,"className",void 0),t=D([e.Directive({selector:"[fs-list-footer]"})],t)}(),ft=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return P(i,t),i=D([e.Directive({selector:"[fs-list-group-cell]"})],i)}(ct),pt=function(){function t(){this._expandStatusChanged$=new b.Subject,this._destroy$=new b.Subject}return Object.defineProperty(t.prototype,"expandStatusChange$",{get:function(){return this._expandStatusChanged$.pipe(v.takeUntil(this._destroy$))},enumerable:!0,configurable:!0}),t.prototype.toggleExpandStatus=function(t){this._expandStatusChanged$.next(t)},t.prototype.ngOnDestroy=function(){this._destroy$.next(),this._destroy$.complete()},t=D([e.Injectable()],t)}(),gt=function(){function t(t){this._expandNotifier=t}return t.prototype.click=function(t){t.preventDefault(),t.stopPropagation(),this._expandNotifier.toggleExpandStatus(this.row)},t.ctorParameters=function(){return[{type:pt}]},D([e.HostListener("click",["$event"]),F("design:type",Function),F("design:paramtypes",[Object]),F("design:returntype",void 0)],t.prototype,"click",null),D([e.Input(),F("design:type",Object)],t.prototype,"row",void 0),t=D([e.Directive({selector:"[fsListGroupExpandTrigger]"}),F("design:paramtypes",[pt])],t)}(),ht=function(){function t(){this.show=!0,this.customize=!0}return D([e.Input(),F("design:type",String)],t.prototype,"title",void 0),D([e.Input(),F("design:type",String)],t.prototype,"name",void 0),D([e.Input(),F("design:type",Object)],t.prototype,"show",void 0),D([e.Input(),F("design:type",Object)],t.prototype,"customize",void 0),D([e.Input(),F("design:type",Boolean)],t.prototype,"sortable",void 0),D([e.Input(),F("design:type",Boolean)],t.prototype,"sortableDefault",void 0),D([e.Input(),F("design:type",String)],t.prototype,"direction",void 0),D([e.Input(),F("design:type",String)],t.prototype,"align",void 0),D([e.Input(),F("design:type",String)],t.prototype,"width",void 0),D([e.Input("class"),F("design:type",Object)],t.prototype,"className",void 0),D([e.ContentChild(at,{read:e.TemplateRef,static:!0}),F("design:type",e.TemplateRef)],t.prototype,"headerTemplate",void 0),D([e.ContentChild(at,{static:!0}),F("design:type",Object)],t.prototype,"headerConfigs",void 0),D([e.ContentChild(ft,{read:e.TemplateRef,static:!0}),F("design:type",e.TemplateRef)],t.prototype,"groupCellTemplate",void 0),D([e.ContentChild(ft,{static:!0}),F("design:type",Object)],t.prototype,"groupCellConfigs",void 0),D([e.ContentChildren(gt,{descendants:!0}),F("design:type",e.QueryList)],t.prototype,"expandTrigger",void 0),D([e.ContentChild(ct,{read:e.TemplateRef,static:!0}),F("design:type",e.TemplateRef)],t.prototype,"cellTemplate",void 0),D([e.ContentChild(ct,{static:!0}),F("design:type",Object)],t.prototype,"cellConfigs",void 0),D([e.ContentChild(dt,{read:e.TemplateRef,static:!0}),F("design:type",e.TemplateRef)],t.prototype,"footerTemplate",void 0),D([e.ContentChild(dt,{static:!0}),F("design:type",Object)],t.prototype,"footerConfigs",void 0),t=D([e.Directive({selector:"fs-list-column"})],t)}(),ut=function(){function t(){}return t=D([e.Directive({selector:"[fs-list-empty-state]"})],t)}(),yt=new e.InjectionToken("fs-list.default-config"),mt=new e.InjectionToken("fs-list.config"),wt=function(){function t(t,e){this._dialog=e,this.columns=[],this.saveDisabled=!1,this._destroy$=new b.Subject,this.columns=t.columns,this._changeFn=t.changeFn}return t.prototype.ngOnDestroy=function(){this._destroy$.next(),this._destroy$.complete()},t.prototype.visibilityChange=function(t,e){e.show=t.checked},t.prototype.save=function(){var t=this,e=this.columns.filter((function(t){return!!t.name})).map((function(t){return{name:t.name,show:t.show}}));this.saveDisabled=!0;var i=this._changeFn(e);i instanceof b.Observable?i.pipe(v.takeUntil(this._destroy$)).subscribe({next:function(){t._dialog.close(t.columns)},error:function(){t.saveDisabled=!1}}):this._dialog.close(this.columns)},t.prototype.cancel=function(){this._dialog.close()},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[l.MAT_DIALOG_DATA]}]},{type:l.MatDialogRef}]},t=D([e.Component({template:'<h1 matDialogTitle>Customize Columns</h1>\n<mat-dialog-content>\n <div *ngFor="let column of columns">\n <mat-checkbox [checked]="column.show" (change)="visibilityChange($event, column)" [disabled]="column.disabled">\n <ng-container *ngIf="!column.title; else titleLable">\n <ng-template [ngTemplateOutlet]="column.template"></ng-template>\n </ng-container>\n <ng-template #titleLable>\n {{ column.title }}\n </ng-template>\n\n <ng-container *ngIf="column.tooltip">\n <mat-icon [matTooltip]="column.tooltip">\n help\n </mat-icon>\n </ng-container>\n </mat-checkbox>\n </div>\n</mat-dialog-content>\n<mat-dialog-actions>\n <button type="button" mat-button color="primary" (click)="save()" [disabled]="saveDisabled">Save</button>\n <button type="button" mat-button (click)="cancel()">Cancel</button>\n</mat-dialog-actions>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[".mat-checkbox{min-height:32px;display:block}.mat-icon{font-size:14px;height:14px;width:14px;vertical-align:middle}"]}),k(0,e.Inject(l.MAT_DIALOG_DATA)),F("design:paramtypes",[Object,l.MatDialogRef])],t)}(),bt=function(t){function i(e,i){var n=t.call(this,e,i)||this;return n.STORE_KEY="fs-list-persist",n}return P(i,t),i.ctorParameters=function(){return[{type:x.FsStore},{type:n.ActivatedRoute}]},i=D([e.Injectable(),F("design:paramtypes",[x.FsStore,n.ActivatedRoute])],i)}(x.FsPersistanceStore),vt=function(){function t(t,i,n,o,s,r,l,a,c,d,f,p,g,h){this.reorderController=t,this._el=i,this._defaultOptions=n,this.fsScroll=o,this.selectionDialog=s,this.dialog=r,this.cdRef=l,this._groupExpandNotifier=a,this._router=c,this._route=d,this._persistance=f,this._location=p,this._dialogRef=g,this._drawerRef=h,this.classFsList=!0,this.loaderLines=3,this.filtersReady=new e.EventEmitter,this.rowRemoved=new e.EventEmitter,this.firstLoad=!0,this._filterParamsReady=!1,this._inDialog=!!this._dialogRef||!!this._drawerRef,this._destroy=new b.Subject}return Object.defineProperty(t.prototype,"config",{set:function(t){this._initWithConfig(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"filterReference",{set:function(t){this._filterRef=t,this.list.actions.setFilterRef(t),this._emitFiltersReadyEvent()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnTemplates",{set:function(t){this.listColumnDirectives=t,this.list&&this.list.tranformTemplatesToColumns(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_emptyStateTemplate",{set:function(t){this.list&&(this.list.emptyStateTemplate=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"filterRef",{get:function(){return this._filterRef},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"groupEnabled",{get:function(){return this.list.dataController.groupEnabled},set:function(t){this.list.groupEnabled(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paginatorVisible",{get:function(){return this.list.paging.enabled&&!this.firstLoad&&!this.list.scrollable&&!this.list.emptyStateEnabled&&this.list.dataController.visibleRowsCount>0&&this.list.paging.pages>1},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._subscribeToRemoveRow(),this._subscribeToGroupExpandStatusChange()},t.prototype.ngOnDestroy=function(){this.list&&this.list.destroy(),this._destroy.next(),this._destroy.complete()},t.prototype.nextPage=function(){this.list.paging.goNext()},t.prototype.prevPage=function(){this.list.paging.goPrev()},t.prototype.firstPage=function(){this.list.paging.goFirst()},t.prototype.lastPage=function(){this.list.paging.goLast()},t.prototype.reload=function(){this.list.reload()},t.prototype.getData=function(t){return this.list.getData(t)},t.prototype.hasData=function(t){return this.list.hasData(t)},t.prototype.updateData=function(t,e){return this.list.dataController.updateData(t,e)},t.prototype.replaceRow=function(t,e){return this.list.dataController.replaceData(t,e)},t.prototype.updateSelectionConfig=function(t){this.list.selection.updateConfig(t)},t.prototype.resetSelectionActions=function(){this.list.selection.resetActions()},t.prototype.removeData=function(t){return this.list.dataController.removeData(t)},t.prototype.setHeading=function(t){this.list.heading=t},t.prototype.setSubheading=function(t){this.list.subheading=t},t.prototype.reorderStart=function(){this.reorderController.enableReorder()},t.prototype.reorderFinish=function(){this.reorderController.disableReorder()},t.prototype.setActions=function(t){t&&(this.list.actions.clearActions(),this.list.actions.setActions(t))},t.prototype.filterReady=function(){this.list.filtersReady$.next(),this._filterParamsReady=!0,this._emitFiltersReadyEvent()},t.prototype.columnVisibility=function(t,e){this.columnsVisibility([{name:t,show:e}])},t.prototype.columnsVisibility=function(t){this.list.columns.updateVisibilityForCols(t)},t.prototype._emitFiltersReadyEvent=function(){this.filterRef&&this._filterParamsReady&&this.filtersReady.emit()},t.prototype._initWithConfig=function(t){this.list&&this.list.destroy();var e=this._defaultOptions?w.cloneDeep(this._defaultOptions):{},i=w.mergeWith(e,t,this._configMergeCustomizer);!1!==i.persist&&this._restorePersistance(i.persist),this._updateCustomizeAction(i.actions),this.list=new rt(this._el,i,this.fsScroll,this.selectionDialog,this._router,this._route,this._persistance,this._inDialog),this._waitFirstLoad(),this._listenFiltersQueryChange(),this.reorderController.initWithConfig(t.reorder,this.list.dataController,this.list.actions),this.listColumnDirectives&&this.list.tranformTemplatesToColumns(this.listColumnDirectives),this._listenSortingChange()},t.prototype._updateCustomizeAction=function(t){var e,i=this,n=null===(e=t)||void 0===e?void 0:e.find((function(t){return t.customize}));if(n){var o=n.click;n.click=function(){o&&o(null),i.dialog.open(wt,{data:{columns:i.list.columns.columnsForDialog,changeFn:i.list.columns.changeFn}}).afterClosed().pipe(v.takeUntil(i.list.onDestroy$),v.takeUntil(i._destroy)).subscribe((function(t){t&&(i.list.columns.updateVisibilityForCols(t),i.cdRef.markForCheck())}))}}},t.prototype._listenSortingChange=function(){var t=this;this.list.sorting.sortingChanged$.pipe(v.takeUntil(this.list.onDestroy$),v.takeUntil(this._destroy)).subscribe((function(e){t._filterRef.updateSort(e)}))},t.prototype._subscribeToRemoveRow=function(){var t=this;this.rowRemoved.pipe(v.takeUntil(this._destroy)).subscribe((function(e){t.list.dataController.removeData(e)}))},t.prototype._subscribeToGroupExpandStatusChange=function(){var t=this;this.list.dataController.hasGroups&&this._groupExpandNotifier.expandStatusChange$.pipe(v.takeUntil(this._destroy)).subscribe((function(e){t.list.dataController.toggleRowGroup(e)}))},t.prototype._waitFirstLoad=function(){var t=this;this.list.loading$.pipe(v.skip(1),v.filter((function(t){return!1===t})),v.take(1),v.takeUntil(this.list.onDestroy$),v.takeUntil(this._destroy)).subscribe((function(){t.firstLoad=!1,t.cdRef.markForCheck()}))},t.prototype._listenFiltersQueryChange=function(){var t=this;this.list.filtersQuery$.pipe(v.takeUntil(this.list.onDestroy$),v.takeUntil(this._destroy)).subscribe((function(e){if(e){var i=Object.keys(e).length;t.reorderController.setNunberOfActiveFilters(i)}}))},t.prototype._configMergeCustomizer=function(t,e){if(Array.isArray(t))return t},t.prototype._restorePersistance=function(t){var e=C.getNormalizedPath(this._location);this._persistance.setConfig(t,e,this._inDialog)},t.ctorParameters=function(){return[{type:lt},{type:e.ElementRef},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[yt]}]},{type:h.FsScrollService,decorators:[{type:e.Optional}]},{type:_.SelectionDialog},{type:l.MatDialog},{type:e.ChangeDetectorRef},{type:pt},{type:n.Router},{type:n.ActivatedRoute},{type:bt},{type:i.Location},{type:l.MatDialogRef,decorators:[{type:e.Optional}]},{type:R.DrawerRef,decorators:[{type:e.Optional}]}]},D([e.HostBinding("class.fs-list"),F("design:type",Object)],t.prototype,"classFsList",void 0),D([e.Input("config"),F("design:type",Object),F("design:paramtypes",[Object])],t.prototype,"config",null),D([e.Input(),F("design:type",Object)],t.prototype,"loaderLines",void 0),D([e.Output(),F("design:type",Object)],t.prototype,"filtersReady",void 0),D([e.ViewChild(g.FilterComponent),F("design:type",Object),F("design:paramtypes",[Object])],t.prototype,"filterReference",null),D([e.ContentChildren(ht),F("design:type",e.QueryList),F("design:paramtypes",[e.QueryList])],t.prototype,"columnTemplates",null),D([e.ContentChild(ut,{read:e.TemplateRef}),F("design:type",e.TemplateRef),F("design:paramtypes",[e.TemplateRef])],t.prototype,"_emptyStateTemplate",null),t=D([e.Component({selector:"fs-list",template:'<div class="fs-list-container"\r\n [ngClass]="{ \'has-filter-input\': list.filterInput,\r\n \'has-filters\': list.filterConfig?.items.length,\r\n \'has-heading\': list.heading,\r\n \'has-status\': list.status,\r\n \'has-chips\': list.chips,\r\n \'has-actions\': list.actions.hasActions,\r\n \'first-load\': firstLoad,\r\n \'loading\': list.loading$ | async }">\r\n <ng-template [ngTemplateOutlet]="listContainerContent"></ng-template>\r\n</div>\r\n\r\n<ng-template #listContainerContent>\r\n <ng-container *ngIf="list.dataController.visibleRows$ | async as listData">\r\n \x3c!-- Header --\x3e\r\n <div class="fs-list-header-container">\r\n\r\n <div class="fs-list-header"\r\n [ngClass]="{ \'no-wrap\': reorderController.manualReorderActivated$ || !list.filterConfig?.items.length }">\r\n <div class="heading-container">\r\n <h2 class="heading" *ngIf="list.heading">{{list.heading}}</h2>\r\n <span class="subheading" *ngIf="list.subheading">{{list.subheading}}</span>\r\n </div>\r\n <fs-filter\r\n class="fs-list-filter"\r\n *ngIf="list.filterConfig"\r\n [filter]="list.filterConfig"\r\n [showSortBy]="!list.status"\r\n [showFilterInput]="list.filterInput"\r\n (ready)="filterReady()">\r\n\r\n <ng-template fsFilterStatusBar>\r\n <ng-container *ngIf="\r\n list.paging &&\r\n !(reorderController.manualReorderActivated$ | async) &&\r\n (!reorderController.enabled || reorderController.status) &&\r\n ((list.scrollable && list.scrollable.status) || !list.scrollable)">\r\n \x3c!-- Status --\x3e\r\n <fs-list-status\r\n class="fs-list-status"\r\n [ngClass]="{ \'hidden-mobile\': !list.status }"\r\n [rows]="listData"\r\n [sorting]="list.sorting"\r\n [paging]="list.paging"\r\n [firstLoad]="firstLoad"\r\n [scrollable]="list.scrollable">\r\n </fs-list-status>\r\n </ng-container>\r\n </ng-template>\r\n </fs-filter>\r\n </div>\r\n </div>\r\n\r\n \x3c!-- Table implementation --\x3e\r\n <div class="fs-list-table-container">\r\n <table class="fs-list-table" role="grid" *ngIf="!firstLoad && listData.length > 0 && !list.emptyStateEnabled">\r\n <thead fs-list-head\r\n class="fs-list-head"\r\n role="rowgroup"\r\n *ngIf="list.columns.hasHeader"\r\n [ngClass]="list.columns.theadClass"\r\n [columns]="list.columns.visibleColumns"\r\n [sorting]="list.sorting"\r\n [selection]="list.selection"\r\n [hasRowActions]="list.hasRowActions"\r\n >\r\n </thead>\r\n\r\n <tbody fs-list-body\r\n fsListDraggableList\r\n class="fs-list-body"\r\n role="rowgroup"\r\n [class.disabled]="!!(reorderController.reorderDisabled$ | async)"\r\n [rows]="listData"\r\n [rowActionsRaw]="list.rowActionsRaw"\r\n [groupActionsRaw]="list.groupActionsRaw"\r\n [hasRowActions]="list.hasRowActions"\r\n [rowEvents]="list.rowEvents"\r\n [rowClass]="list.rowClass"\r\n [columns]="list.columns.visibleColumns"\r\n [restoreMode]="list.restoreMode"\r\n [selection]="list.selection"\r\n [rowRemoved]="rowRemoved"\r\n >\r\n </tbody>\r\n\r\n <tfoot fs-list-footer\r\n class="fs-list-footer"\r\n *ngIf="list.columns.hasFooter"\r\n [columns]="list.columns.visibleColumns"\r\n [selection]="list.selection"\r\n [hasRowActions]="list.hasRowActions">\r\n </tfoot>\r\n </table>\r\n <fs-list-loader\r\n *ngIf="firstLoad"\r\n [columns]="list.columns.columns"\r\n [loaderLines]="loaderLines">\r\n </fs-list-loader>\r\n </div>\r\n\r\n <fs-list-pagination\r\n *ngIf="paginatorVisible"\r\n class="fs-list-pagination"\r\n [rows]="listData"\r\n [pagination]="list.paging">\r\n </fs-list-pagination>\r\n\r\n\r\n <ng-container *ngIf="!firstLoad">\r\n <div \r\n *ngIf="listData.length === 0" \r\n class="fs-list-no-results-container">\r\n <div \r\n *ngIf="list.noResults?.message && !list.emptyStateEnabled"\r\n class="fs-list-no-results">\r\n {{ list.noResults?.message }}\r\n </div>\r\n <ng-container *ngIf="list.emptyStateEnabled">\r\n <ng-template [ngTemplateOutlet]="list.emptyStateTemplate"></ng-template>\r\n </ng-container> \r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n</ng-template>\r\n\r\n',changeDetection:e.ChangeDetectionStrategy.OnPush,providers:[pt,bt,lt],styles:["::ng-deep .fs-list{display:block;width:100%}::ng-deep .fs-list .fs-list-swap-restricted{opacity:.5}::ng-deep .fs-list .fs-list-no-drop{cursor:no-drop}::ng-deep .fs-list .fs-filter{margin-bottom:0;position:initial!important;display:block}::ng-deep .fs-list .fs-list-container.first-load .filter-chips,::ng-deep .fs-list .fs-list-container.first-load .fs-list-body,::ng-deep .fs-list .fs-list-container.first-load .fs-list-no-results-container,::ng-deep .fs-list .fs-list-container.first-load .fs-list-status,::ng-deep .fs-list .fs-list-container.first-load fs-list-pagination,::ng-deep .fs-list .fs-list-container.loading .filter-chips,::ng-deep .fs-list .fs-list-container.loading .fs-list-body,::ng-deep .fs-list .fs-list-container.loading .fs-list-no-results-container,::ng-deep .fs-list .fs-list-container.loading .fs-list-status,::ng-deep .fs-list .fs-list-container.loading fs-list-pagination{opacity:.4;pointer-events:none}::ng-deep .fs-list .fs-list-container.first-load ::ng-deep fs-filter-chips .fs-chip{color:transparent}::ng-deep .fs-list .fs-list-container.first-load ::ng-deep fs-filter-chips .fs-chip .remove{visibility:hidden}::ng-deep .fs-list .fs-list-container.has-actions .fs-list-actions{margin-left:5px}::ng-deep .fs-list .fs-list-table-container{width:100%;overflow:auto}::ng-deep .fs-list .fs-list-table,::ng-deep .fs-list table{border-spacing:0;display:table;width:100%;border-collapse:collapse}::ng-deep .fs-list .fs-list-no-results-container .fs-list-no-results{text-align:center;color:#999;padding:10px 0}::ng-deep .fs-list .hidden{display:none}::ng-deep .fs-list .fs-list-head,::ng-deep .fs-list thead{display:table-header-group}::ng-deep .fs-list .fs-list-head .fs-list-col,::ng-deep .fs-list .fs-list-head th,::ng-deep .fs-list thead .fs-list-col,::ng-deep .fs-list thead th{padding:8px;font-weight:400;font-size:13px;color:#8f8f8f}::ng-deep .fs-list .fs-list-head .fs-list-col.fs-list-col-selection,::ng-deep .fs-list .fs-list-head th.fs-list-col-selection,::ng-deep .fs-list thead .fs-list-col.fs-list-col-selection,::ng-deep .fs-list thead th.fs-list-col-selection{width:1%;text-align:left}::ng-deep .fs-list .fs-list-head .fs-list-col.sorting,::ng-deep .fs-list .fs-list-head th.sorting,::ng-deep .fs-list thead .fs-list-col.sorting,::ng-deep .fs-list thead th.sorting{cursor:pointer;background-image:none}::ng-deep .fs-list .fs-list-head .fs-list-col.sorting:hover,::ng-deep .fs-list .fs-list-head th.sorting:hover,::ng-deep .fs-list thead .fs-list-col.sorting:hover,::ng-deep .fs-list thead th.sorting:hover{background-color:#f6f6f6}::ng-deep .fs-list .fs-list-head .fs-list-col .wrap,::ng-deep .fs-list .fs-list-head th .wrap,::ng-deep .fs-list thead .fs-list-col .wrap,::ng-deep .fs-list thead th .wrap{display:inline-flex;vertical-align:middle;white-space:nowrap}::ng-deep .fs-list .fs-list-head .fs-list-col .wrap mat-icon,::ng-deep .fs-list .fs-list-head th .wrap mat-icon,::ng-deep .fs-list thead .fs-list-col .wrap mat-icon,::ng-deep .fs-list thead th .wrap mat-icon{font-size:14px;display:block;height:14px;width:14px}::ng-deep .fs-list .fs-list-head .fs-list-col .wrap .direction,::ng-deep .fs-list .fs-list-head th .wrap .direction,::ng-deep .fs-list thead .fs-list-col .wrap .direction,::ng-deep .fs-list thead th .wrap .direction{margin-left:5px}::ng-deep .fs-list .fs-list-body,::ng-deep .fs-list tbody{display:table-row-group;position:relative}::ng-deep .fs-list .fs-list-body.disabled,::ng-deep .fs-list tbody.disabled{opacity:.4;pointer-events:none}::ng-deep .fs-list .fs-list-body .fs-list-col,::ng-deep .fs-list .fs-list-body td,::ng-deep .fs-list tbody .fs-list-col,::ng-deep .fs-list tbody td{box-sizing:border-box}::ng-deep .fs-list .fs-list-body .fs-list-row:hover .fs-list-col,::ng-deep .fs-list .fs-list-body tr:hover td,::ng-deep .fs-list tbody .fs-list-row:hover .fs-list-col,::ng-deep .fs-list tbody tr:hover td{background-color:#f6f6f6}::ng-deep .fs-list .fs-list-body .fs-list-row:hover .fs-list-col,::ng-deep .fs-list .fs-list-body .fs-list-row:hover td,::ng-deep .fs-list .fs-list-body tr:hover .fs-list-col,::ng-deep .fs-list .fs-list-body tr:hover td,::ng-deep .fs-list tbody .fs-list-row:hover .fs-list-col,::ng-deep .fs-list tbody .fs-list-row:hover td,::ng-deep .fs-list tbody tr:hover .fs-list-col,::ng-deep .fs-list tbody tr:hover td{background-color:#f6f6f6}::ng-deep .fs-list .fs-list-body tr:first-child td,::ng-deep .fs-list tbody tr:first-child td{border-top:2px solid #ddd}::ng-deep .fs-list .fs-list-body tr:last-child td,::ng-deep .fs-list tbody tr:last-child td{border-bottom:2px solid #ddd}::ng-deep .fs-list .fs-list-body td,::ng-deep .fs-list tbody td{border-top:1px solid #ddd}::ng-deep .fs-list .fs-list-body .fs-list-row,::ng-deep .fs-list .fs-list-body tr,::ng-deep .fs-list .fs-list-footer .fs-list-row,::ng-deep .fs-list .fs-list-footer tr,::ng-deep .fs-list .fs-list-head .fs-list-row,::ng-deep .fs-list .fs-list-head tr,::ng-deep .fs-list tbody .fs-list-row,::ng-deep .fs-list tbody tr,::ng-deep .fs-list tfoot .fs-list-row,::ng-deep .fs-list tfoot tr,::ng-deep .fs-list thead .fs-list-row,::ng-deep .fs-list thead tr{display:table-row}::ng-deep .fs-list .fs-list-body .fs-list-row .fs-list-col,::ng-deep .fs-list .fs-list-body .fs-list-row td,::ng-deep .fs-list .fs-list-body .fs-list-row th,::ng-deep .fs-list .fs-list-body tr .fs-list-col,::ng-deep .fs-list .fs-list-body tr td,::ng-deep .fs-list .fs-list-body tr th,::ng-deep .fs-list .fs-list-footer .fs-list-row .fs-list-col,::ng-deep .fs-list .fs-list-footer .fs-list-row td,::ng-deep .fs-list .fs-list-footer .fs-list-row th,::ng-deep .fs-list .fs-list-footer tr .fs-list-col,::ng-deep .fs-list .fs-list-footer tr td,::ng-deep .fs-list .fs-list-footer tr th,::ng-deep .fs-list .fs-list-head .fs-list-row .fs-list-col,::ng-deep .fs-list .fs-list-head .fs-list-row td,::ng-deep .fs-list .fs-list-head .fs-list-row th,::ng-deep .fs-list .fs-list-head tr .fs-list-col,::ng-deep .fs-list .fs-list-head tr td,::ng-deep .fs-list .fs-list-head tr th,::ng-deep .fs-list tbody .fs-list-row .fs-list-col,::ng-deep .fs-list tbody .fs-list-row td,::ng-deep .fs-list tbody .fs-list-row th,::ng-deep .fs-list tbody tr .fs-list-col,::ng-deep .fs-list tbody tr td,::ng-deep .fs-list tbody tr th,::ng-deep .fs-list tfoot .fs-list-row .fs-list-col,::ng-deep .fs-list tfoot .fs-list-row td,::ng-deep .fs-list tfoot .fs-list-row th,::ng-deep .fs-list tfoot tr .fs-list-col,::ng-deep .fs-list tfoot tr td,::ng-deep .fs-list tfoot tr th,::ng-deep .fs-list thead .fs-list-row .fs-list-col,::ng-deep .fs-list thead .fs-list-row td,::ng-deep .fs-list thead .fs-list-row th,::ng-deep .fs-list thead tr .fs-list-col,::ng-deep .fs-list thead tr td,::ng-deep .fs-list thead tr th{display:table-cell;padding:8px;vertical-align:middle;outline:0}::ng-deep .fs-list .fs-list-body .fs-list-row .fs-list-col.drag-col,::ng-deep .fs-list .fs-list-body .fs-list-row td.drag-col,::ng-deep .fs-list .fs-list-body .fs-list-row th.drag-col,::ng-deep .fs-list .fs-list-body tr .fs-list-col.drag-col,::ng-deep .fs-list .fs-list-body tr td.drag-col,::ng-deep .fs-list .fs-list-body tr th.drag-col,::ng-deep .fs-list .fs-list-footer .fs-list-row .fs-list-col.drag-col,::ng-deep .fs-list .fs-list-footer .fs-list-row td.drag-col,::ng-deep .fs-list .fs-list-footer .fs-list-row th.drag-col,::ng-deep .fs-list .fs-list-footer tr .fs-list-col.drag-col,::ng-deep .fs-list .fs-list-footer tr td.drag-col,::ng-deep .fs-list .fs-list-footer tr th.drag-col,::ng-deep .fs-list .fs-list-head .fs-list-row .fs-list-col.drag-col,::ng-deep .fs-list .fs-list-head .fs-list-row td.drag-col,::ng-deep .fs-list .fs-list-head .fs-list-row th.drag-col,::ng-deep .fs-list .fs-list-head tr .fs-list-col.drag-col,::ng-deep .fs-list .fs-list-head tr td.drag-col,::ng-deep .fs-list .fs-list-head tr th.drag-col,::ng-deep .fs-list tbody .fs-list-row .fs-list-col.drag-col,::ng-deep .fs-list tbody .fs-list-row td.drag-col,::ng-deep .fs-list tbody .fs-list-row th.drag-col,::ng-deep .fs-list tbody tr .fs-list-col.drag-col,::ng-deep .fs-list tbody tr td.drag-col,::ng-deep .fs-list tbody tr th.drag-col,::ng-deep .fs-list tfoot .fs-list-row .fs-list-col.drag-col,::ng-deep .fs-list tfoot .fs-list-row td.drag-col,::ng-deep .fs-list tfoot .fs-list-row th.drag-col,::ng-deep .fs-list tfoot tr .fs-list-col.drag-col,::ng-deep .fs-list tfoot tr td.drag-col,::ng-deep .fs-list tfoot tr th.drag-col,::ng-deep .fs-list thead .fs-list-row .fs-list-col.drag-col,::ng-deep .fs-list thead .fs-list-row td.drag-col,::ng-deep .fs-list thead .fs-list-row th.drag-col,::ng-deep .fs-list thead tr .fs-list-col.drag-col,::ng-deep .fs-list thead tr td.drag-col,::ng-deep .fs-list thead tr th.drag-col{width:24px;text-align:center;cursor:-webkit-grab;cursor:grab}::ng-deep .fs-list .fs-list-body .fs-list-row .fs-list-col.drag-col mat-icon,::ng-deep .fs-list .fs-list-body .fs-list-row td.drag-col mat-icon,::ng-deep .fs-list .fs-list-body .fs-list-row th.drag-col mat-icon,::ng-deep .fs-list .fs-list-body tr .fs-list-col.drag-col mat-icon,::ng-deep .fs-list .fs-list-body tr td.drag-col mat-icon,::ng-deep .fs-list .fs-list-body tr th.drag-col mat-icon,::ng-deep .fs-list .fs-list-footer .fs-list-row .fs-list-col.drag-col mat-icon,::ng-deep .fs-list .fs-list-footer .fs-list-row td.drag-col mat-icon,::ng-deep .fs-list .fs-list-footer .fs-list-row th.drag-col mat-icon,::ng-deep .fs-list .fs-list-footer tr .fs-list-col.drag-col mat-icon,::ng-deep .fs-list .fs-list-footer tr td.drag-col mat-icon,::ng-deep .fs-list .fs-list-footer tr th.drag-col mat-icon,::ng-deep .fs-list .fs-list-head .fs-list-row .fs-list-col.drag-col mat-icon,::ng-deep .fs-list .fs-list-head .fs-list-row td.drag-col mat-icon,::ng-deep .fs-list .fs-list-head .fs-list-row th.drag-col mat-icon,::ng-deep .fs-list .fs-list-head tr .fs-list-col.drag-col mat-icon,::ng-deep .fs-list .fs-list-head tr td.drag-col mat-icon,::ng-deep .fs-list .fs-list-head tr th.drag-col mat-icon,::ng-deep .fs-list tbody .fs-list-row .fs-list-col.drag-col mat-icon,::ng-deep .fs-list tbody .fs-list-row td.drag-col mat-icon,::ng-deep .fs-list tbody .fs-list-row th.drag-col mat-icon,::ng-deep .fs-list tbody tr .fs-list-col.drag-col mat-icon,::ng-deep .fs-list tbody tr td.drag-col mat-icon,::ng-deep .fs-list tbody tr th.drag-col mat-icon,::ng-deep .fs-list tfoot .fs-list-row .fs-list-col.drag-col mat-icon,::ng-deep .fs-list tfoot .fs-list-row td.drag-col mat-icon,::ng-deep .fs-list tfoot .fs-list-row th.drag-col mat-icon,::ng-deep .fs-list tfoot tr .fs-list-col.drag-col mat-icon,::ng-deep .fs-list tfoot tr td.drag-col mat-icon,::ng-deep .fs-list tfoot tr th.drag-col mat-icon,::ng-deep .fs-list thead .fs-list-row .fs-list-col.drag-col mat-icon,::ng-deep .fs-list thead .fs-list-row td.drag-col mat-icon,::ng-deep .fs-list thead .fs-list-row th.drag-col mat-icon,::ng-deep .fs-list thead tr .fs-list-col.drag-col mat-icon,::ng-deep .fs-list thead tr td.drag-col mat-icon,::ng-deep .fs-list thead tr th.drag-col mat-icon{display:flex}::ng-deep .fs-list .fs-list-body .fs-list-row .fs-list-col.row-actions,::ng-deep .fs-list .fs-list-body .fs-list-row td.row-actions,::ng-deep .fs-list .fs-list-body .fs-list-row th.row-actions,::ng-deep .fs-list .fs-list-body tr .fs-list-col.row-actions,::ng-deep .fs-list .fs-list-body tr td.row-actions,::ng-deep .fs-list .fs-list-body tr th.row-actions,::ng-deep .fs-list .fs-list-footer .fs-list-row .fs-list-col.row-actions,::ng-deep .fs-list .fs-list-footer .fs-list-row td.row-actions,::ng-deep .fs-list .fs-list-footer .fs-list-row th.row-actions,::ng-deep .fs-list .fs-list-footer tr .fs-list-col.row-actions,::ng-deep .fs-list .fs-list-footer tr td.row-actions,::ng-deep .fs-list .fs-list-footer tr th.row-actions,::ng-deep .fs-list .fs-list-head .fs-list-row .fs-list-col.row-actions,::ng-deep .fs-list .fs-list-head .fs-list-row td.row-actions,::ng-deep .fs-list .fs-list-head .fs-list-row th.row-actions,::ng-deep .fs-list .fs-list-head tr .fs-list-col.row-actions,::ng-deep .fs-list .fs-list-head tr td.row-actions,::ng-deep .fs-list .fs-list-head tr th.row-actions,::ng-deep .fs-list tbody .fs-list-row .fs-list-col.row-actions,::ng-deep .fs-list tbody .fs-list-row td.row-actions,::ng-deep .fs-list tbody .fs-list-row th.row-actions,::ng-deep .fs-list tbody tr .fs-list-col.row-actions,::ng-deep .fs-list tbody tr td.row-actions,::ng-deep .fs-list tbody tr th.row-actions,::ng-deep .fs-list tfoot .fs-list-row .fs-list-col.row-actions,::ng-deep .fs-list tfoot .fs-list-row td.row-actions,::ng-deep .fs-list tfoot .fs-list-row th.row-actions,::ng-deep .fs-list tfoot tr .fs-list-col.row-actions,::ng-deep .fs-list tfoot tr td.row-actions,::ng-deep .fs-list tfoot tr th.row-actions,::ng-deep .fs-list thead .fs-list-row .fs-list-col.row-actions,::ng-deep .fs-list thead .fs-list-row td.row-actions,::ng-deep .fs-list thead .fs-list-row th.row-actions,::ng-deep .fs-list thead tr .fs-list-col.row-actions,::ng-deep .fs-list thead tr td.row-actions,::ng-deep .fs-list thead tr th.row-actions{width:1%;white-space:nowrap;padding-right:10px;overflow:hidden}::ng-deep .fs-list .fs-list-body .fs-list-row .fs-list-col.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-body .fs-list-row td.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-body .fs-list-row th.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-body tr .fs-list-col.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-body tr td.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-body tr th.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-footer .fs-list-row .fs-list-col.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-footer .fs-list-row td.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-footer .fs-list-row th.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-footer tr .fs-list-col.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-footer tr td.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-footer tr th.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-head .fs-list-row .fs-list-col.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-head .fs-list-row td.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-head .fs-list-row th.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-head tr .fs-list-col.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-head tr td.row-actions .row-inline-action,::ng-deep .fs-list .fs-list-head tr th.row-actions .row-inline-action,::ng-deep .fs-list tbody .fs-list-row .fs-list-col.row-actions .row-inline-action,::ng-deep .fs-list tbody .fs-list-row td.row-actions .row-inline-action,::ng-deep .fs-list tbody .fs-list-row th.row-actions .row-inline-action,::ng-deep .fs-list tbody tr .fs-list-col.row-actions .row-inline-action,::ng-deep .fs-list tbody tr td.row-actions .row-inline-action,::ng-deep .fs-list tbody tr th.row-actions .row-inline-action,::ng-deep .fs-list tfoot .fs-list-row .fs-list-col.row-actions .row-inline-action,::ng-deep .fs-list tfoot .fs-list-row td.row-actions .row-inline-action,::ng-deep .fs-list tfoot .fs-list-row th.row-actions .row-inline-action,::ng-deep .fs-list tfoot tr .fs-list-col.row-actions .row-inline-action,::ng-deep .fs-list tfoot tr td.row-actions .row-inline-action,::ng-deep .fs-list tfoot tr th.row-actions .row-inline-action,::ng-deep .fs-list thead .fs-list-row .fs-list-col.row-actions .row-inline-action,::ng-deep .fs-list thead .fs-list-row td.row-actions .row-inline-action,::ng-deep .fs-list thead .fs-list-row th.row-actions .row-inline-action,::ng-deep .fs-list thead tr .fs-list-col.row-actions .row-inline-action,::ng-deep .fs-list thead tr td.row-actions .row-inline-action,::ng-deep .fs-list thead tr th.row-actions .row-inline-action{margin-left:12px;display:inline-block}::ng-deep .fs-list .fs-list-body .fs-list-row .fs-list-col.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-body .fs-list-row td.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-body .fs-list-row th.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-body tr .fs-list-col.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-body tr td.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-body tr th.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-footer .fs-list-row .fs-list-col.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-footer .fs-list-row td.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-footer .fs-list-row th.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-footer tr .fs-list-col.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-footer tr td.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-footer tr th.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-head .fs-list-row .fs-list-col.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-head .fs-list-row td.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-head .fs-list-row th.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-head tr .fs-list-col.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-head tr td.row-actions .row-inline-action:first-child,::ng-deep .fs-list .fs-list-head tr th.row-actions .row-inline-action:first-child,::ng-deep .fs-list tbody .fs-list-row .fs-list-col.row-actions .row-inline-action:first-child,::ng-deep .fs-list tbody .fs-list-row td.row-actions .row-inline-action:first-child,::ng-deep .fs-list tbody .fs-list-row th.row-actions .row-inline-action:first-child,::ng-deep .fs-list tbody tr .fs-list-col.row-actions .row-inline-action:first-child,::ng-deep .fs-list tbody tr td.row-actions .row-inline-action:first-child,::ng-deep .fs-list tbody tr th.row-actions .row-inline-action:first-child,::ng-deep .fs-list tfoot .fs-list-row .fs-list-col.row-actions .row-inline-action:first-child,::ng-deep .fs-list tfoot .fs-list-row td.row-actions .row-inline-action:first-child,::ng-deep .fs-list tfoot .fs-list-row th.row-actions .row-inline-action:first-child,::ng-deep .fs-list tfoot tr .fs-list-col.row-actions .row-inline-action:first-child,::ng-deep .fs-list tfoot tr td.row-actions .row-inline-action:first-child,::ng-deep .fs-list tfoot tr th.row-actions .row-inline-action:first-child,::ng-deep .fs-list thead .fs-list-row .fs-list-col.row-actions .row-inline-action:first-child,::ng-deep .fs-list thead .fs-list-row td.row-actions .row-inline-action:first-child,::ng-deep .fs-list thead .fs-list-row th.row-actions .row-inline-action:first-child,::ng-deep .fs-list thead tr .fs-list-col.row-actions .row-inline-action:first-child,::ng-deep .fs-list thead tr td.row-actions .row-inline-action:first-child,::ng-deep .fs-list thead tr th.row-actions .row-inline-action:first-child{margin-left:0}::ng-deep .fs-list .fs-list-body .fs-list-row .fs-list-col.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-body .fs-list-row .fs-list-col.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-body .fs-list-row .fs-list-col.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-body .fs-list-row .fs-list-col.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-body .fs-list-row td.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-body .fs-list-row td.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-body .fs-list-row td.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-body .fs-list-row td.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-body .fs-list-row th.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-body .fs-list-row th.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-body .fs-list-row th.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-body .fs-list-row th.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-body tr .fs-list-col.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-body tr .fs-list-col.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-body tr .fs-list-col.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-body tr .fs-list-col.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-body tr td.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-body tr td.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-body tr td.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-body tr td.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-body tr th.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-body tr th.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-body tr th.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-body tr th.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-footer .fs-list-row .fs-list-col.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-footer .fs-list-row .fs-list-col.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-footer .fs-list-row .fs-list-col.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-footer .fs-list-row .fs-list-col.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-footer .fs-list-row td.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-footer .fs-list-row td.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-footer .fs-list-row td.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-footer .fs-list-row td.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-footer .fs-list-row th.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-footer .fs-list-row th.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-footer .fs-list-row th.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-footer .fs-list-row th.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-footer tr .fs-list-col.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-footer tr .fs-list-col.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-footer tr .fs-list-col.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-footer tr .fs-list-col.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-footer tr td.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-footer tr td.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-footer tr td.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-footer tr td.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-footer tr th.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-footer tr th.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-footer tr th.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-footer tr th.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-head .fs-list-row .fs-list-col.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-head .fs-list-row .fs-list-col.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-head .fs-list-row .fs-list-col.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-head .fs-list-row .fs-list-col.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-head .fs-list-row td.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-head .fs-list-row td.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-head .fs-list-row td.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-head .fs-list-row td.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-head .fs-list-row th.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-head .fs-list-row th.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-head .fs-list-row th.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-head .fs-list-row th.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-head tr .fs-list-col.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-head tr .fs-list-col.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-head tr .fs-list-col.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-head tr .fs-list-col.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-head tr td.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-head tr td.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-head tr td.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-head tr td.row-actions .row-menu-action,::ng-deep .fs-list .fs-list-head tr th.row-actions .row-inline-action-fab,::ng-deep .fs-list .fs-list-head tr th.row-actions .row-inline-action-icon,::ng-deep .fs-list .fs-list-head tr th.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list .fs-list-head tr th.row-actions .row-menu-action,::ng-deep .fs-list tbody .fs-list-row .fs-list-col.row-actions .row-inline-action-fab,::ng-deep .fs-list tbody .fs-list-row .fs-list-col.row-actions .row-inline-action-icon,::ng-deep .fs-list tbody .fs-list-row .fs-list-col.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list tbody .fs-list-row .fs-list-col.row-actions .row-menu-action,::ng-deep .fs-list tbody .fs-list-row td.row-actions .row-inline-action-fab,::ng-deep .fs-list tbody .fs-list-row td.row-actions .row-inline-action-icon,::ng-deep .fs-list tbody .fs-list-row td.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list tbody .fs-list-row td.row-actions .row-menu-action,::ng-deep .fs-list tbody .fs-list-row th.row-actions .row-inline-action-fab,::ng-deep .fs-list tbody .fs-list-row th.row-actions .row-inline-action-icon,::ng-deep .fs-list tbody .fs-list-row th.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list tbody .fs-list-row th.row-actions .row-menu-action,::ng-deep .fs-list tbody tr .fs-list-col.row-actions .row-inline-action-fab,::ng-deep .fs-list tbody tr .fs-list-col.row-actions .row-inline-action-icon,::ng-deep .fs-list tbody tr .fs-list-col.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list tbody tr .fs-list-col.row-actions .row-menu-action,::ng-deep .fs-list tbody tr td.row-actions .row-inline-action-fab,::ng-deep .fs-list tbody tr td.row-actions .row-inline-action-icon,::ng-deep .fs-list tbody tr td.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list tbody tr td.row-actions .row-menu-action,::ng-deep .fs-list tbody tr th.row-actions .row-inline-action-fab,::ng-deep .fs-list tbody tr th.row-actions .row-inline-action-icon,::ng-deep .fs-list tbody tr th.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list tbody tr th.row-actions .row-menu-action,::ng-deep .fs-list tfoot .fs-list-row .fs-list-col.row-actions .row-inline-action-fab,::ng-deep .fs-list tfoot .fs-list-row .fs-list-col.row-actions .row-inline-action-icon,::ng-deep .fs-list tfoot .fs-list-row .fs-list-col.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list tfoot .fs-list-row .fs-list-col.row-actions .row-menu-action,::ng-deep .fs-list tfoot .fs-list-row td.row-actions .row-inline-action-fab,::ng-deep .fs-list tfoot .fs-list-row td.row-actions .row-inline-action-icon,::ng-deep .fs-list tfoot .fs-list-row td.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list tfoot .fs-list-row td.row-actions .row-menu-action,::ng-deep .fs-list tfoot .fs-list-row th.row-actions .row-inline-action-fab,::ng-deep .fs-list tfoot .fs-list-row th.row-actions .row-inline-action-icon,::ng-deep .fs-list tfoot .fs-list-row th.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list tfoot .fs-list-row th.row-actions .row-menu-action,::ng-deep .fs-list tfoot tr .fs-list-col.row-actions .row-inline-action-fab,::ng-deep .fs-list tfoot tr .fs-list-col.row-actions .row-inline-action-icon,::ng-deep .fs-list tfoot tr .fs-list-col.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list tfoot tr .fs-list-col.row-actions .row-menu-action,::ng-deep .fs-list tfoot tr td.row-actions .row-inline-action-fab,::ng-deep .fs-list tfoot tr td.row-actions .row-inline-action-icon,::ng-deep .fs-list tfoot tr td.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list tfoot tr td.row-actions .row-menu-action,::ng-deep .fs-list tfoot tr th.row-actions .row-inline-action-fab,::ng-deep .fs-list tfoot tr th.row-actions .row-inline-action-icon,::ng-deep .fs-list tfoot tr th.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list tfoot tr th.row-actions .row-menu-action,::ng-deep .fs-list thead .fs-list-row .fs-list-col.row-actions .row-inline-action-fab,::ng-deep .fs-list thead .fs-list-row .fs-list-col.row-actions .row-inline-action-icon,::ng-deep .fs-list thead .fs-list-row .fs-list-col.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list thead .fs-list-row .fs-list-col.row-actions .row-menu-action,::ng-deep .fs-list thead .fs-list-row td.row-actions .row-inline-action-fab,::ng-deep .fs-list thead .fs-list-row td.row-actions .row-inline-action-icon,::ng-deep .fs-list thead .fs-list-row td.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list thead .fs-list-row td.row-actions .row-menu-action,::ng-deep .fs-list thead .fs-list-row th.row-actions .row-inline-action-fab,::ng-deep .fs-list thead .fs-list-row th.row-actions .row-inline-action-icon,::ng-deep .fs-list thead .fs-list-row th.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list thead .fs-list-row th.row-actions .row-menu-action,::ng-deep .fs-list thead tr .fs-list-col.row-actions .row-inline-action-fab,::ng-deep .fs-list thead tr .fs-list-col.row-actions .row-inline-action-icon,::ng-deep .fs-list thead tr .fs-list-col.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list thead tr .fs-list-col.row-actions .row-menu-action,::ng-deep .fs-list thead tr td.row-actions .row-inline-action-fab,::ng-deep .fs-list thead tr td.row-actions .row-inline-action-icon,::ng-deep .fs-list thead tr td.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list thead tr td.row-actions .row-menu-action,::ng-deep .fs-list thead tr th.row-actions .row-inline-action-fab,::ng-deep .fs-list thead tr th.row-actions .row-inline-action-icon,::ng-deep .fs-list thead tr th.row-actions .row-inline-action-mini-fab,::ng-deep .fs-list thead tr th.row-actions .row-menu-action{width:35px;justify-content:center;align-items:center}::ng-deep .fs-list .fs-list-body .fs-list-row .fs-list-col.left,::ng-deep .fs-list .fs-list-body .fs-list-row td.left,::ng-deep .fs-list .fs-list-body .fs-list-row th.left,::ng-deep .fs-list .fs-list-body tr .fs-list-col.left,::ng-deep .fs-list .fs-list-body tr td.left,::ng-deep .fs-list .fs-list-body tr th.left,::ng-deep .fs-list .fs-list-footer .fs-list-row .fs-list-col.left,::ng-deep .fs-list .fs-list-footer .fs-list-row td.left,::ng-deep .fs-list .fs-list-footer .fs-list-row th.left,::ng-deep .fs-list .fs-list-footer tr .fs-list-col.left,::ng-deep .fs-list .fs-list-footer tr td.left,::ng-deep .fs-list .fs-list-footer tr th.left,::ng-deep .fs-list .fs-list-head .fs-list-row .fs-list-col.left,::ng-deep .fs-list .fs-list-head .fs-list-row td.left,::ng-deep .fs-list .fs-list-head .fs-list-row th.left,::ng-deep .fs-list .fs-list-head tr .fs-list-col.left,::ng-deep .fs-list .fs-list-head tr td.left,::ng-deep .fs-list .fs-list-head tr th.left,::ng-deep .fs-list tbody .fs-list-row .fs-list-col.left,::ng-deep .fs-list tbody .fs-list-row td.left,::ng-deep .fs-list tbody .fs-list-row th.left,::ng-deep .fs-list tbody tr .fs-list-col.left,::ng-deep .fs-list tbody tr td.left,::ng-deep .fs-list tbody tr th.left,::ng-deep .fs-list tfoot .fs-list-row .fs-list-col.left,::ng-deep .fs-list tfoot .fs-list-row td.left,::ng-deep .fs-list tfoot .fs-list-row th.left,::ng-deep .fs-list tfoot tr .fs-list-col.left,::ng-deep .fs-list tfoot tr td.left,::ng-deep .fs-list tfoot tr th.left,::ng-deep .fs-list thead .fs-list-row .fs-list-col.left,::ng-deep .fs-list thead .fs-list-row td.left,::ng-deep .fs-list thead .fs-list-row th.left,::ng-deep .fs-list thead tr .fs-list-col.left,::ng-deep .fs-list thead tr td.left,::ng-deep .fs-list thead tr th.left{text-align:left}::ng-deep .fs-list .fs-list-body .fs-list-row .fs-list-col.center,::ng-deep .fs-list .fs-list-body .fs-list-row td.center,::ng-deep .fs-list .fs-list-body .fs-list-row th.center,::ng-deep .fs-list .fs-list-body tr .fs-list-col.center,::ng-deep .fs-list .fs-list-body tr td.center,::ng-deep .fs-list .fs-list-body tr th.center,::ng-deep .fs-list .fs-list-footer .fs-list-row .fs-list-col.center,::ng-deep .fs-list .fs-list-footer .fs-list-row td.center,::ng-deep .fs-list .fs-list-footer .fs-list-row th.center,::ng-deep .fs-list .fs-list-footer tr .fs-list-col.center,::ng-deep .fs-list .fs-list-footer tr td.center,::ng-deep .fs-list .fs-list-footer tr th.center,::ng-deep .fs-list .fs-list-head .fs-list-row .fs-list-col.center,::ng-deep .fs-list .fs-list-head .fs-list-row td.center,::ng-deep .fs-list .fs-list-head .fs-list-row th.center,::ng-deep .fs-list .fs-list-head tr .fs-list-col.center,::ng-deep .fs-list .fs-list-head tr td.center,::ng-deep .fs-list .fs-list-head tr th.center,::ng-deep .fs-list tbody .fs-list-row .fs-list-col.center,::ng-deep .fs-list tbody .fs-list-row td.center,::ng-deep .fs-list tbody .fs-list-row th.center,::ng-deep .fs-list tbody tr .fs-list-col.center,::ng-deep .fs-list tbody tr td.center,::ng-deep .fs-list tbody tr th.center,::ng-deep .fs-list tfoot .fs-list-row .fs-list-col.center,::ng-deep .fs-list tfoot .fs-list-row td.center,::ng-deep .fs-list tfoot .fs-list-row th.center,::ng-deep .fs-list tfoot tr .fs-list-col.center,::ng-deep .fs-list tfoot tr td.center,::ng-deep .fs-list tfoot tr th.center,::ng-deep .fs-list thead .fs-list-row .fs-list-col.center,::ng-deep .fs-list thead .fs-list-row td.center,::ng-deep .fs-list thead .fs-list-row th.center,::ng-deep .fs-list thead tr .fs-list-col.center,::ng-deep .fs-list thead tr td.center,::ng-deep .fs-list thead tr th.center{text-align:center}::ng-deep .fs-list .fs-list-body .fs-list-row .fs-list-col.right,::ng-deep .fs-list .fs-list-body .fs-list-row td.right,::ng-deep .fs-list .fs-list-body .fs-list-row th.right,::ng-deep .fs-list .fs-list-body tr .fs-list-col.right,::ng-deep .fs-list .fs-list-body tr td.right,::ng-deep .fs-list .fs-list-body tr th.right,::ng-deep .fs-list .fs-list-footer .fs-list-row .fs-list-col.right,::ng-deep .fs-list .fs-list-footer .fs-list-row td.right,::ng-deep .fs-list .fs-list-footer .fs-list-row th.right,::ng-deep .fs-list .fs-list-footer tr .fs-list-col.right,::ng-deep .fs-list .fs-list-footer tr td.right,::ng-deep .fs-list .fs-list-footer tr th.right,::ng-deep .fs-list .fs-list-head .fs-list-row .fs-list-col.right,::ng-deep .fs-list .fs-list-head .fs-list-row td.right,::ng-deep .fs-list .fs-list-head .fs-list-row th.right,::ng-deep .fs-list .fs-list-head tr .fs-list-col.right,::ng-deep .fs-list .fs-list-head tr td.right,::ng-deep .fs-list .fs-list-head tr th.right,::ng-deep .fs-list tbody .fs-list-row .fs-list-col.right,::ng-deep .fs-list tbody .fs-list-row td.right,::ng-deep .fs-list tbody .fs-list-row th.right,::ng-deep .fs-list tbody tr .fs-list-col.right,::ng-deep .fs-list tbody tr td.right,::ng-deep .fs-list tbody tr th.right,::ng-deep .fs-list tfoot .fs-list-row .fs-list-col.right,::ng-deep .fs-list tfoot .fs-list-row td.right,::ng-deep .fs-list tfoot .fs-list-row th.right,::ng-deep .fs-list tfoot tr .fs-list-col.right,::ng-deep .fs-list tfoot tr td.right,::ng-deep .fs-list tfoot tr th.right,::ng-deep .fs-list thead .fs-list-row .fs-list-col.right,::ng-deep .fs-list thead .fs-list-row td.right,::ng-deep .fs-list thead .fs-list-row th.right,::ng-deep .fs-list thead tr .fs-list-col.right,::ng-deep .fs-list thead tr td.right,::ng-deep .fs-list thead tr th.right{text-align:right}::ng-deep .fs-list .fs-list-body .fs-list-row.draggable,::ng-deep .fs-list .fs-list-body tr.draggable,::ng-deep .fs-list .fs-list-footer .fs-list-row.draggable,::ng-deep .fs-list .fs-list-footer tr.draggable,::ng-deep .fs-list .fs-list-head .fs-list-row.draggable,::ng-deep .fs-list .fs-list-head tr.draggable,::ng-deep .fs-list tbody .fs-list-row.draggable,::ng-deep .fs-list tbody tr.draggable,::ng-deep .fs-list tfoot .fs-list-row.draggable,::ng-deep .fs-list tfoot tr.draggable,::ng-deep .fs-list thead .fs-list-row.draggable,::ng-deep .fs-list thead tr.draggable{position:fixed;z-index:9999;box-shadow:2px 2px 2px 0 rgba(158,158,158,.65);border-radius:5px}::ng-deep .fs-list .fs-list-body .fs-list-row.draggable .fs-list-col,::ng-deep .fs-list .fs-list-body .fs-list-row.draggable td,::ng-deep .fs-list .fs-list-body tr.draggable .fs-list-col,::ng-deep .fs-list .fs-list-body tr.draggable td,::ng-deep .fs-list .fs-list-footer .fs-list-row.draggable .fs-list-col,::ng-deep .fs-list .fs-list-footer .fs-list-row.draggable td,::ng-deep .fs-list .fs-list-footer tr.draggable .fs-list-col,::ng-deep .fs-list .fs-list-footer tr.draggable td,::ng-deep .fs-list .fs-list-head .fs-list-row.draggable .fs-list-col,::ng-deep .fs-list .fs-list-head .fs-list-row.draggable td,::ng-deep .fs-list .fs-list-head tr.draggable .fs-list-col,::ng-deep .fs-list .fs-list-head tr.draggable td,::ng-deep .fs-list tbody .fs-list-row.draggable .fs-list-col,::ng-deep .fs-list tbody .fs-list-row.draggable td,::ng-deep .fs-list tbody tr.draggable .fs-list-col,::ng-deep .fs-list tbody tr.draggable td,::ng-deep .fs-list tfoot .fs-list-row.draggable .fs-list-col,::ng-deep .fs-list tfoot .fs-list-row.draggable td,::ng-deep .fs-list tfoot tr.draggable .fs-list-col,::ng-deep .fs-list tfoot tr.draggable td,::ng-deep .fs-list thead .fs-list-row.draggable .fs-list-col,::ng-deep .fs-list thead .fs-list-row.draggable td,::ng-deep .fs-list thead tr.draggable .fs-list-col,::ng-deep .fs-list thead tr.draggable td{background-color:#f6f6f6;border:none}::ng-deep .fs-list .fs-list-header .heading-container{font-weight:600;font-size:18px;color:#212537;display:flex;flex-direction:column;justify-content:center}::ng-deep .fs-list .fs-list-header .heading{margin:0;line-height:36px}::ng-deep .fs-list .fs-list-header .subheading{display:block;font-size:14px;color:#929292;font-weight:400}::ng-deep .fs-list .fs-list-header .fs-list-actions{white-space:nowrap;float:right}::ng-deep .fs-list .fs-list-header .fs-list-actions .menu-button{width:36px;height:36px;line-height:36px}::ng-deep .fs-list .fs-list-header .action-button{margin-left:5px}::ng-deep .fs-list .fs-list-header .action-button:first-child{margin-left:0}::ng-deep .fs-list .fs-list-header .mat-button{margin-top:0;margin-bottom:0;margin-right:0}::ng-deep .fs-list .fs-list-container{width:100%}::ng-deep .fs-list .fs-list-container:not(.has-filters):not(.has-actions):not(.has-heading) .fs-list-header-container{display:none}::ng-deep .fs-list .fs-list-container.has-dragging thead th{border-bottom:2px solid #ddd}::ng-deep .fs-list .fs-list-container.has-dragging tbody tr:nth-child(2) td{border-top:none}::ng-deep .fs-list tfoot td{padding:8px}::ng-deep .reorder-in-progress{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}::ng-deep .draggable-elem td{opacity:.2}::ng-deep .hidden-mobile-menu-action{display:none!important}::ng-deep .hidden-mobile{display:none!important}@media only screen and (max-width:600px){::ng-deep .fs-list-filter .inline-actions{top:initial!important;position:initial!important}::ng-deep .fs-list-filter .inline-actions .action-filter{margin-bottom:0!important}::ng-deep .fs-list-header .filter-input-field .mat-form-field-wrapper{padding:0!important}::ng-deep .fs-list-header.has-filters{flex-flow:row wrap}}@media only screen and (max-width:768px){::ng-deep .show-mobile{display:inline-block!important}::ng-deep .fs-list-actions .action-button{display:none}::ng-deep .row-inline-action.mobile-hide{display:none}::ng-deep .hidden-mobile-menu-action{display:block!important}}"]}),k(2,e.Optional()),k(2,e.Inject(yt)),k(3,e.Optional()),k(12,e.Optional()),k(13,e.Optional()),F("design:paramtypes",[lt,e.ElementRef,Object,h.FsScrollService,_.SelectionDialog,l.MatDialog,e.ChangeDetectorRef,pt,n.Router,n.ActivatedRoute,bt,i.Location,l.MatDialogRef,R.DrawerRef])],t)}(),_t=function(){function i(t,e,i,n){this._cdRef=t,this._zone=e,this._containerElement=i,this._reorderController=n,this._dragToHandler=this.dragTo.bind(this),this._dragEndHandler=this.dragEnd.bind(this),this._windowTouchMoveHandler=function(){},this._dragInProgress=!1,this._dragStart$=new b.Subject,this._dragEnd$=new b.Subject,this._destroy$=new b.Subject}return Object.defineProperty(i.prototype,"dragStart$",{get:function(){return this._dragStart$.pipe(v.takeUntil(this._destroy$))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dragEnd$",{get:function(){return this._dragEnd$.pipe(v.takeUntil(this._destroy$))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"draggableItem",{get:function(){return this._rows[this._draggableElementIndex]},enumerable:!0,configurable:!0}),i.prototype.dragStart=function(e){var i=this;this._dragInProgress||(this._reorderController.startCallback&&this._reorderController.strategy===t.ReorderStrategy.Always&&this._reorderController.startCallback(),this._dragInProgress=!0,window.document.body.classList.add("reorder-in-progress"),this._draggableElement=e,this.prepareElements(),this.initDraggableElement(),this._draggableElement.classList.add("draggable-elem"),this._zone.runOutsideAngular((function(){window.addEventListener("touchmove",i._windowTouchMoveHandler,{passive:!0}),window.document.addEventListener("mousemove",i._dragToHandler,{passive:!0}),window.document.addEventListener("touchmove",i._dragToHandler,{passive:!1}),window.document.addEventListener("mouseup",i._dragEndHandler),window.document.addEventListener("touchend",i._dragEndHandler),window.document.addEventListener("touchcancel",i._dragEndHandler)})),this._dragStart$.next())},i.prototype.dragTo=function(t){this.touchFix(t);var e=this.lookupElementUnder(t),i=this._rows[e];(0===e||e===this._rows.length-1)&&i.isGroup&&this.draggableItem.isChild||null!==e&&(i.readyToSwap?(this.swapWithIndex(e),this._draggableElementPreview.classList.remove("fs-list-no-drop")):this._draggableElementPreview.classList.add("fs-list-no-drop"));var n=(t.y||t.clientY)-this._draggableElementHeight/2;this._draggableElementPreview.style.top=n+"px"},i.prototype.dragEnd=function(){var e=this;this._dragInProgress=!1,this._reorderController.movedCallback&&this._reorderController.movedCallback(this._reorderController.dataController.reorderData),this._reorderController.strategy===t.ReorderStrategy.Always&&this._zone.run((function(){if(e._reorderController.doneCallback){var t=e._reorderController.doneCallback(e._reorderController.dataController.reorderData);e._waitUntilIsNotDone(t)}})),this._draggableElement.classList.remove("draggable-elem"),window.document.body.classList.remove("reorder-in-progress"),this._draggableElementPreview.remove(),this._draggableElement=null,this._draggableElementPreview=null,this._draggableElementHeight=null,this._draggableElementIndex=null,window.removeEventListener("touchmove",this._windowTouchMoveHandler),window.document.removeEventListener("mousemove",this._dragToHandler),window.document.removeEventListener("touchmove",this._dragToHandler),window.document.removeEventListener("mouseup",this._dragEndHandler),window.document.removeEventListener("touchend",this._dragEndHandler),window.document.removeEventListener("touchcancel",this._dragEndHandler),this._dragEnd$.next()},i.prototype.prepareElements=function(){this.lookupChildElements(),this.calcElementsDimensions()},i.prototype.lookupChildElements=function(){var t=this;this._childRowElements=Array.from(this._containerElement.nativeElement.querySelectorAll("tr")).reduce((function(e,i,n){var o={target:i};return i===t._draggableElement&&(t._draggableElementIndex=n,o.active=!0),e.push(o),e}),[])},i.prototype.calcElementsDimensions=function(){this._childRowElements.forEach((function(t,e){var i=t.target.getBoundingClientRect();t.top=i.top,t.height=i.height,t.center=i.top+i.height/2,t.index=e}))},i.prototype.initDraggableElement=function(){var t=this._draggableElement.cloneNode(!0),e=this._draggableElement.getBoundingClientRect();t.style.width=e.width+"px",t.style.left=e.left+"px",t.style.top=e.top+"px",t.classList.add("draggable"),this._containerElement.nativeElement.insertAdjacentElement("afterbegin",t),this._draggableElementPreview=t,this._draggableElementHeight=e.height,this.updateDraggableDims()},i.prototype.lookupElementUnder=function(t){for(var e=t.y||t.clientY,i=t.y||t.clientY,n=null,o=0;o<this._childRowElements.length;o++){var s=this._childRowElements[o];s.active||(e<s.center+s.height/2&&s.index<this._draggableElementIndex||i>s.center-s.height/2&&s.index>this._draggableElementIndex)&&(n=o)}return n},i.prototype.swapWithIndex=function(t){var e=this._draggableElementIndex;this._reorderController.dataController.swapRows(this._rows[e],this._rows[t]);var i=this._rows[e];this._rows[e]=this._rows[t],this._rows[t]=i;var n=this._childRowElements[e].target;this._childRowElements[e].active=!1,this._childRowElements[e].target=this._childRowElements[t].target,this._childRowElements[t].target=n,this._childRowElements[t].active=!0,this._draggableElementIndex=t,this._cdRef.detectChanges()},i.prototype.updateDraggableDims=function(){var t=Array.from(this._draggableElementPreview.querySelectorAll("td"));Array.from(this._draggableElementPreview.querySelectorAll("td")).forEach((function(e,i){var n=e.getBoundingClientRect();t[i].style.width=n.width+"px"}))},i.prototype._waitUntilIsNotDone=function(t){var e=this;t instanceof b.Observable&&(this._reorderController.disableReorderAction(),t.pipe(v.takeUntil(this._destroy$)).subscribe((function(){console.log("enable"),e._reorderController.enableReorderAction()})))},i.prototype.touchFix=function(t){if(!("clientX"in t)&&!("clientY"in t)){var e=t.touches||t.originalEvent.touches;e&&e.length&&(t.clientX=e[0].clientX,t.clientY=e[0].clientY),t.preventDefault()}},i.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.NgZone},{type:e.ElementRef},{type:lt}]},D([e.Input("rows"),F("design:type",Array)],i.prototype,"_rows",void 0),i=D([e.Directive({selector:"[fsListDraggableList]"}),F("design:paramtypes",[e.ChangeDetectorRef,e.NgZone,e.ElementRef,lt])],i)}(),Ct=function(){function i(e,i,n,o,s,r){this.el=e,this.reorderController=i,this._cdRef=n,this._differs=o,this._renderer=s,this._draggableList=r,this.role="row",this.rowActionsRaw=[],this.groupActionsRaw=[],this.hasRowActions=!1,this.rowEvents={},this.restoreMode=!1,this.ReorderPosition=t.ReorderPosition,this.ReorderStrategy=t.ReorderStrategy,this.rowActions=[],this.menuRowActions=[],this.inlineRowActions=[],this.selected=!1,this.indeterminateSelected=!1,this._eventListeners=[],this._destroy$=new b.Subject,this._rowDiffer=o.find({}).create()}return Object.defineProperty(i.prototype,"rowCssClass",{get:function(){var t,e,i="fs-list-row";if(this.rowIndex%2!=0&&(i+=" fs-list-row-odd"),this.rowIndex%2==0&&(i+=" fs-list-row-even"),this.row&&this.row.isGroup&&(i+=" fs-list-row-group"),this.rowClass){var n=this.rowClass(this.row.data);if("string"==typeof n)i+=" "+n;else if("object"==typeof n){var o=Object.keys(n);try{for(var s=I(o),r=s.next();!r.done;r=s.next()){var l=r.value;!0===n[l]&&(i+=" "+l)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}}}return i},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dragCellVisible",{get:function(){return!this.row.isGroup},enumerable:!0,configurable:!0}),i.prototype.ngOnInit=function(){this.initRowEvents(),this.initSelection(),this.row&&this.row.isGroup?this.row&&this.row.isGroup&&this.groupActionsRaw&&(this.rowActions=this.groupActionsRaw.map((function(t){return new U(t)})),this.filterActionsByCategories()):this.rowActionsRaw&&(this.rowActions=this.rowActionsRaw.map((function(t){return new U(t)})),this.filterActionsByCategories())},i.prototype.ngDoCheck=function(){var t=this;this._rowDiffer.diff(this.row)&&(this.rowActions&&(this.rowActions.forEach((function(e){e.checkShowStatus(t.row.data,t.rowIndex),e.updateLink(t.row.data)})),this.filterActionsByCategories()),this._cdRef.markForCheck())},i.prototype.ngOnDestroy=function(){this._eventListeners.forEach((function(t){t()})),this._destroy$.next(),this._destroy$.complete()},i.prototype.selectRow=function(t){this.selection.rowSelectionChange(this.row,t.checked),this._cdRef.markForCheck()},i.prototype.trackByFn=function(t){return t},i.prototype.dragStart=function(t){this.reorderController.enabled&&(t.preventDefault(),t.stopPropagation(),this._draggableList.dragStart(this.el.nativeElement))},i.prototype.initRowEvents=function(){var t=this,e=function(e){if(i.rowEvents.hasOwnProperty(e)){var n=i._renderer.listen(i.el.nativeElement,e,(function(i){t.reorderController.enabled||t.rowEvents[e]({event:i,row:t.row.data,rowIndex:t.rowIndex})}));i._eventListeners.push(n)}},i=this;for(var n in this.rowEvents)e(n)},i.prototype.initSelection=function(){var t=this;this.selection&&(this.selected=this.row&&this.selection.isRowSelected(this.row.data),this.selection.selectionChange$.pipe(v.takeUntil(this._destroy$)).subscribe((function(){var e;if(t.selected=t.row&&t.selection.isRowSelected(t.row.data),null===(e=t.row)||void 0===e?void 0:e.isGroup){var i=t.selection.isGroupSelected(t.row);"indeterminate"===i?(t.selected=!0,t.indeterminateSelected=!0):(t.selected=i,t.indeterminateSelected=!1)}t._cdRef.markForCheck()})))},i.prototype.filterActionsByCategories=function(){var t=this;this.menuRowActions=[],this.inlineRowActions=[],this.restoreAction=null,this.rowActions.forEach((function(e){e.isShown&&(e.menu&&!e.restore?t.menuRowActions.push(e):e.menu||e.restore?e.restore&&(t.restoreAction=e):t.inlineRowActions.push(e))}))},i.ctorParameters=function(){return[{type:e.ElementRef},{type:lt},{type:e.ChangeDetectorRef},{type:e.KeyValueDiffers},{type:e.Renderer2},{type:_t}]},D([e.HostBinding("attr.role"),F("design:type",Object)],i.prototype,"role",void 0),D([e.Input(),F("design:type",Y)],i.prototype,"row",void 0),D([e.Input(),F("design:type",Array)],i.prototype,"rowActionsRaw",void 0),D([e.Input(),F("design:type",Array)],i.prototype,"groupActionsRaw",void 0),D([e.Input(),F("design:type",Object)],i.prototype,"hasRowActions",void 0),D([e.Input(),F("design:type",Object)],i.prototype,"rowEvents",void 0),D([e.Input(),F("design:type",Object)],i.prototype,"rowClass",void 0),D([e.Input(),F("design:type",Object)],i.prototype,"restoreMode",void 0),D([e.Input(),F("design:type",Number)],i.prototype,"rowIndex",void 0),D([e.Input(),F("design:type",Array)],i.prototype,"columns",void 0),D([e.Input(),F("design:type",nt)],i.prototype,"selection",void 0),D([e.Input(),F("design:type",e.EventEmitter)],i.prototype,"rowRemoved",void 0),D([e.ViewChildren("td"),F("design:type",Object)],i.prototype,"cellRefs",void 0),D([e.HostBinding("class"),F("design:type",Object),F("design:paramtypes",[])],i.prototype,"rowCssClass",null),i=D([e.Component({selector:"[fs-list-row]",template:'\x3c!-- Drag --\x3e\n<ng-container *ngIf="reorderController.leftReorderActivated$ | async">\n <ng-container *ngTemplateOutlet="dragCell"></ng-container>\n</ng-container>\n\n\x3c!-- Selection --\x3e\n<ng-container *ngIf="selection">\n <td class="fs-list-col fs-list-col-selection">\n <mat-checkbox (change)="selectRow($event)"\n [checked]="selected"\n [indeterminate]="indeterminateSelected">\n </mat-checkbox>\n </td>\n</ng-container>\n\n\x3c!-- Content --\x3e\n<ng-container *ngFor="let column of columns; trackBy: trackByFn; let isFirst = first">\n <td fs-cell\n *ngIf="(row.isGroup && !column.groupCellColspanned) || (!row.isGroup && !column.cellColspanned)"\n [column]="column"\n [row]="row"\n [rowIndex]="rowIndex"\n [class]="column.cellConfigs.classesString"\n [ngClass]="{ \'primary-col\': isFirst }"\n [attr.colspan]="(row.isGroup && column.groupCellConfigs.colspan) || column.cellConfigs.colspan"\n [attr.width]="column.width"\n >\n </td>\n</ng-container>\n\n\x3c!-- Drag --\x3e\n<ng-container *ngIf="reorderController.rightReorderActivated$ | async">\n <ng-container *ngTemplateOutlet="dragCell"></ng-container>\n</ng-container>\n\n\x3c!-- Row Actions --\x3e\n<td *ngIf="hasRowActions && !(reorderController.manualReorderActivated$ | async)" class="fs-list-col row-actions">\n <fs-list-row-actions [row]="row"\n [index]="rowIndex"\n [rowActions]="rowActions"\n [menuRowActions]="menuRowActions"\n [inlineRowActions]="inlineRowActions"\n [restoreAction]="restoreAction"\n [restoreMode]="restoreMode"\n [rowRemoved]="rowRemoved"\n ></fs-list-row-actions>\n</td>\n\n<ng-template #dragCell>\n <ng-container *ngIf="dragCellVisible; else emptyCell">\n <td class="fs-list-col drag-col"\n (mousedown)="dragStart($event)"\n (touchstart)="dragStart($event)"\n >\n <mat-icon>drag_handle</mat-icon>\n </td>\n </ng-container>\n <ng-template #emptyCell>\n <td class="fs-list-col drag-col"></td>\n </ng-template>\n</ng-template>\n',changeDetection:e.ChangeDetectionStrategy.OnPush}),F("design:paramtypes",[e.ElementRef,lt,e.ChangeDetectorRef,e.KeyValueDiffers,e.Renderer2,_t])],i)}(),Rt=function(){function t(t,e,i,n){this.reorderContoller=t,this.el=e,this.cdRef=i,this.differs=n,this.columns=[],this.hasFooter=!1,this.rowActionsRaw=[],this.groupActionsRaw=[],this.rowEvents={},this.hasRowActions=!1,this.restoreMode=!1,this._destroy$=new b.Subject,this._rowsDiffer=n.find([]).create(null)}return t.prototype.ngDoCheck=function(){this._rowsDiffer.diff(this.rows)&&this.cdRef.markForCheck()},t.prototype.ngOnDestroy=function(){this._destroy$.next(),this._destroy$.complete()},t.ctorParameters=function(){return[{type:lt},{type:e.ElementRef},{type:e.ChangeDetectorRef},{type:e.IterableDiffers}]},D([e.Input(),F("design:type",Array)],t.prototype,"rows",void 0),D([e.Input(),F("design:type",Array)],t.prototype,"columns",void 0),D([e.Input(),F("design:type",Object)],t.prototype,"hasFooter",void 0),D([e.Input(),F("design:type",Array)],t.prototype,"rowActionsRaw",void 0),D([e.Input(),F("design:type",Array)],t.prototype,"groupActionsRaw",void 0),D([e.Input(),F("design:type",Object)],t.prototype,"rowEvents",void 0),D([e.Input(),F("design:type",Object)],t.prototype,"rowClass",void 0),D([e.Input(),F("design:type",Object)],t.prototype,"hasRowActions",void 0),D([e.Input(),F("design:type",nt)],t.prototype,"selection",void 0),D([e.Input(),F("design:type",Object)],t.prototype,"restoreMode",void 0),D([e.Input(),F("design:type",e.EventEmitter)],t.prototype,"rowRemoved",void 0),D([e.ViewChild("rowsContainer",{read:e.ViewContainerRef,static:!0}),F("design:type",Object)],t.prototype,"rowsContainer",void 0),D([e.ContentChild(Ct,{read:e.TemplateRef,static:!0}),F("design:type",e.TemplateRef)],t.prototype,"headerTemplate",void 0),t=D([e.Component({selector:"[fs-list-body]",template:'<ng-container *ngFor="let row of rows; let i = index;">\n <tr fs-list-row\n fsListDraggableRow\n [row]="row"\n [rowIndex]="i"\n [columns]="columns"\n [rowActionsRaw]="rowActionsRaw"\n [groupActionsRaw]="groupActionsRaw"\n [hasRowActions]="hasRowActions"\n [rowEvents]="rowEvents"\n [rowClass]="rowClass"\n [selection]="selection"\n [restoreMode]="restoreMode"\n [ngClass]="{ \'drag-row\': reorderContoller.enabled }"\n [rowRemoved]="rowRemoved"\n #activeRow>\n </tr>\n</ng-container>\n',changeDetection:e.ChangeDetectionStrategy.OnPush}),F("design:paramtypes",[lt,e.ElementRef,e.ChangeDetectorRef,e.IterableDiffers])],t)}(),St=function(){function t(){this.isColl=!0,this.role="gridcell",this.cellContext={},this._destroy$=new b.Subject}return t.prototype.ngOnInit=function(){this._initCellContext(),this._initCellTemplate(),this._listenGroupOpen()},t.prototype.ngOnChanges=function(t){t.rowIndex&&(this.cellContext.index=this.rowIndex)},t.prototype.ngOnDestroy=function(){this._destroy$.next(),this._destroy$.complete()},t.prototype._initCellContext=function(){this.cellContext.index=this.rowIndex,this.row&&(this.row.isGroup?this.cellContext.groupIndex=this.row.index:this.row.isChild&&(this.cellContext.groupChildIndex=this.row.index)),this.cellContext.column=this.column,this.row&&(this.cellContext.$implicit=this.row.data,this.cellContext.row=this.row.data,this.cellContext.value=this.row.data[this.column.name],this.cellContext.expanded=this.row.expanded)},t.prototype._initCellTemplate=function(){this.row&&this.row.isGroup?this.cellTemplate=this.column.groupCellTemplate||this.column.cellTemplate:this.cellTemplate=this.column.cellTemplate},t.prototype._listenGroupOpen=function(){var t=this;this.row&&this.row.isGroup&&this.row.expanded$.pipe(v.takeUntil(this._destroy$)).subscribe((function(e){t.cellContext.expanded=e}))},D([e.HostBinding("class.fs-list-col"),F("design:type",Object)],t.prototype,"isColl",void 0),D([e.HostBinding("attr.role"),F("design:type",Object)],t.prototype,"role",void 0),D([e.Input(),F("design:type",B)],t.prototype,"column",void 0),D([e.Input(),F("design:type",Y)],t.prototype,"row",void 0),D([e.Input(),F("design:type",Number)],t.prototype,"rowIndex",void 0),t=D([e.Component({selector:"[fs-cell]",template:'<ng-template [ngTemplateOutlet]="cellTemplate || defaultCellTemplate" [ngTemplateOutletContext]="cellContext"></ng-template>\n\n<ng-template #defaultCellTemplate let-value="value">\n {{value}}\n</ng-template>\n',changeDetection:e.ChangeDetectionStrategy.OnPush}),F("design:paramtypes",[])],t)}(),xt=function(){function i(e,i){this.reorderController=e,this.cdRef=i,this.selectedAll=!1,this.ReorderPosition=t.ReorderPosition,this.ReorderStrategy=t.ReorderStrategy,this._destroy$=new b.Subject}return i.prototype.ngOnInit=function(){this.initSorting(),this.initSelection()},i.prototype.ngOnDestroy=function(){this._destroy$.next(),this._destroy$.complete()},i.prototype.selectAll=function(t){this.selection.selectAllVisibleRows(t.checked)},i.prototype.trackByFn=function(t){return t},i.prototype.initSorting=function(){var t=this;this.sorting.sortingChanged$.pipe(v.takeUntil(this._destroy$)).subscribe((function(){t.cdRef.detectChanges()}))},i.prototype.initSelection=function(){var e=this;this.selection&&this.selection.selectionChange$.pipe(v.filter((function(e){var i=e.type;return i===t.SelectionChangeType.AllVisibleSelectionChange||i===t.SelectionChangeType.SelectedAll||i===t.SelectionChangeType.RowSelectionChange})),v.takeUntil(this._destroy$)).subscribe((function(t){t.type;var i=t.payload;e.selectedAll=i,e.cdRef.markForCheck()}))},i.ctorParameters=function(){return[{type:lt},{type:e.ChangeDetectorRef}]},D([e.Input(),F("design:type",ot)],i.prototype,"sorting",void 0),D([e.Input(),F("design:type",Array)],i.prototype,"columns",void 0),D([e.Input(),F("design:type",Boolean)],i.prototype,"hasRowActions",void 0),D([e.Input(),F("design:type",nt)],i.prototype,"selection",void 0),D([e.ViewChild("rowsContainer",{read:e.ViewContainerRef,static:!0}),F("design:type",Object)],i.prototype,"rowsContainer",void 0),i=D([e.Component({selector:"[fs-list-head]",template:'<tr class="fs-list-row">\n \x3c!-- Drag --\x3e\n <th *ngIf="reorderController.leftReorderActivated$ | async" class="fs-list-col drag-col"></th>\n\n \x3c!-- Selection --\x3e\n <th *ngIf="selection" class="fs-list-col fs-list-col-selection">\n <mat-checkbox (change)="selectAll($event)" [checked]="selectedAll"></mat-checkbox>\n </th>\n\n \x3c!-- Content --\x3e\n <th fs-head-cell *ngFor="let column of columns; trackBy: trackByFn"\n (click)="$event.stopPropagation(); sorting.sortBy(column)"\n [column]="column"\n [class.sorting]="column.sortable"\n [ngClass]="column.headerConfigs.classesArray"\n [attr.colspan]="column.headerConfigs.colspan"\n [attr.width]="column.width"></th>\n\n \x3c!-- Drag --\x3e\n <th *ngIf="reorderController.rightReorderActivated$ | async" class="fs-list-col drag-col"></th>\n\n \x3c!-- Row Actions --\x3e\n <th *ngIf="hasRowActions && !(reorderController.manualReorderActivated$ | async)" class="fs-list-col row-actions"></th>\n</tr>\n',changeDetection:e.ChangeDetectionStrategy.OnPush}),F("design:paramtypes",[lt,e.ChangeDetectorRef])],i)}(),At=function(t){function i(e,i){var n=t.call(this)||this;return n.cdRef=e,n.differs=i,n.cellContext={},n._columnDiffer=i.find({}).create(),n}return P(i,t),i.prototype.ngDoCheck=function(){this._columnDiffer.diff(this.column)&&this.cdRef.markForCheck()},i.prototype.initCellContext=function(){this.cellContext.value=this.column.title},i.ctorParameters=function(){return[{type:e.ChangeDetectorRef},{type:e.KeyValueDiffers}]},i=D([e.Component({selector:"[fs-head-cell]",template:'<div class="wrap">\n <span class="title">\n <ng-template [ngIf]="!column.headerTemplate">{{column.title}}</ng-template>\n <ng-template\n [ngIf]="column.headerTemplate"\n [ngTemplateOutlet]="column.headerTemplate"\n [ngTemplateOutletContext]="cellContext">\n </ng-template>\n </span>\n <div class="direction" *ngIf="column.ordered" [ngSwitch]="column.sortingDirection">\n <mat-icon class="material-icons" role="img" aria-label="arrow_downward" *ngSwitchCase="\'asc\'">arrow_downward</mat-icon>\n <mat-icon class="material-icons" role="img" aria-label="arrow_upward" *ngSwitchCase="\'desc\'">arrow_upward</mat-icon>\n </div>\n</div>\n',changeDetection:e.ChangeDetectionStrategy.OnPush}),F("design:paramtypes",[e.ChangeDetectorRef,e.KeyValueDiffers])],i)}(St),Pt=function(){function t(){this.columns=[]}return D([e.Input(),F("design:type",Boolean)],t.prototype,"hasRowActions",void 0),D([e.Input(),F("design:type",Array)],t.prototype,"columns",void 0),D([e.Input(),F("design:type",nt)],t.prototype,"selection",void 0),t=D([e.Component({selector:"[fs-list-footer]",template:'<tr fs-list-footer-row\n [columns]="columns"\n [hasRowActions]="hasRowActions"\n [selection]="selection"\n></tr>\n',changeDetection:e.ChangeDetectionStrategy.OnPush}),F("design:paramtypes",[])],t)}(),Ot=function(i){function n(e,n,o,s,r){var l=i.call(this,e,n,o,s,r,null)||this;return l.ReorderPosition=t.ReorderPosition,l}return P(n,i),n.ctorParameters=function(){return[{type:e.ElementRef},{type:lt},{type:e.ChangeDetectorRef},{type:e.KeyValueDiffers},{type:e.Renderer2}]},D([e.Input(),F("design:type",Boolean)],n.prototype,"hasRowActions",void 0),n=D([e.Component({selector:"[fs-list-footer-row]",template:'<td *ngIf="reorderController.leftReorderActivated$ | async" class="fs-list-col drag-col"></td>\n\n<td *ngIf="selection" class="fs-list-col fs-list-col-selection"></td>\n<ng-container *ngFor="let column of columns; trackBy: trackByFn">\n <td fs-list-footer-cell\n *ngIf="!column.footerColspanned"\n [column]="column"\n [row]="row"\n [rowIndex]="rowIndex"\n [ngClass]="column.footerConfigs.classesArray"\n [attr.colspan]="column.footerConfigs.colspan"\n [attr.width]="column.width">\n </td>\n</ng-container>\n\n\x3c!-- Drag --\x3e\n<td *ngIf="reorderController.rightReorderActivated$ | async" class="fs-list-col row-actions"></td>\n\n\x3c!-- Row Actions --\x3e\n<td *ngIf="hasRowActions && !(reorderController.enabled && reorderController.strategy === ReorderStrategy.Manual)" class="fs-list-col drag-col"></td>\n',changeDetection:e.ChangeDetectionStrategy.OnPush}),F("design:paramtypes",[e.ElementRef,lt,e.ChangeDetectorRef,e.KeyValueDiffers,e.Renderer2])],n)}(Ct),Dt=function(t){function i(){return t.call(this)||this}return P(i,t),i=D([e.Component({selector:"[fs-list-footer-cell]",template:'<ng-template [ngTemplateOutlet]="column.footerTemplate || cell" [ngTemplateOutletContext]="cellContext"></ng-template>\n\n<ng-template #cell let-value="value">\n {{value}}\n</ng-template>\n',changeDetection:e.ChangeDetectionStrategy.OnPush}),F("design:paramtypes",[])],i)}(St),kt=function(){function i(t){this._cdRef=t,this._destroy$=new b.Subject}return i.prototype.ngOnInit=function(){var t=this;this.sorting.sortingChanged$.pipe(v.takeUntil(this._destroy$)).subscribe((function(){t._cdRef.markForCheck()}))},i.prototype.ngOnDestroy=function(){this._destroy$.next(),this._destroy$.complete()},i.prototype.toggleDirection=function(){"asc"===this.sorting.sortingColumn.direction?this.sorting.sortDirection(t.SortingDirection.desc):this.sorting.sortDirection(t.SortingDirection.asc)},i.prototype.setSortableColumn=function(t){this.sorting.sortingColumn!==t&&this.sorting.sortBy(t)},i.prototype.setLimit=function(t){this.paging.setLimit(t)},i.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]},D([e.Input(),F("design:type",tt)],i.prototype,"paging",void 0),D([e.Input(),F("design:type",ot)],i.prototype,"sorting",void 0),D([e.Input(),F("design:type",Object)],i.prototype,"rows",void 0),D([e.Input(),F("design:type",Object)],i.prototype,"scrollable",void 0),D([e.Input(),e.HostBinding("class.first-load"),e.HostBinding("class.fs-skeleton-placeholder"),F("design:type",Boolean)],i.prototype,"firstLoad",void 0),i=D([e.Component({selector:"fs-list-status",template:'<div class="status">\n <ng-container *ngIf="paging.enabled && !scrollable">\n <ng-container *ngIf="paging.records > 0; else emptyResults">\n Showing <a [fsMenuTriggerFor]="limitsMenu">{{ paging.statusLabel }}</a> of {{ paging.records | number:\'1.0\':\'en-US\' }} results\n </ng-container>\n <ng-template #emptyResults>\n Showing <a [fsMenuTriggerFor]="limitsMenu">0</a> results\n </ng-template>\n <ng-container *ngTemplateOutlet="sortedBy"></ng-container>\x3c!--\n--\x3e</ng-container>\x3c!--\n\n--\x3e<ng-container *ngIf="(!paging.enabled || scrollable) && paging.displayed > 0">\n <ng-container *ngIf="!scrollable; else scrollable">\n Showing\n <span *ngIf="paging.displayed == 1">{{ paging.displayed }} result </span>\n <span *ngIf="paging.displayed > 1">{{ paging.displayed | number:\'1.0\':\'en-US\' }} results </span>\n </ng-container>\n\n <ng-template #scrollable>\n <span *ngIf="paging.records == 1">{{ paging.records }} result </span>\n <span *ngIf="paging.records > 1">{{ paging.records | number:\'1.0\':\'en-US\' }} results </span>\n </ng-template>\n <ng-container *ngTemplateOutlet="sortedBy"></ng-container>\x3c!--\n--\x3e</ng-container>\x3c!--\n\n--\x3e<fs-list-saved-filters class="saved-filters"></fs-list-saved-filters>\n\n <fs-menu [hidden]="!paging.enabled || scrollable" #limitsMenu>\n <ng-template\n ngFor\n let-limit\n [ngForOf]="paging.limits"\n >\n <ng-template fs-menu-item (click)="setLimit(limit)">\n {{ limit }}\n </ng-template>\n </ng-template>\n </fs-menu>\n\n <fs-menu [hidden]="!sorting.sortingColumn || paging.displayed === 0" #orderColumnsMenu>\n \x3c!-- Real sorting columns --\x3e\n <ng-template\n ngFor\n let-column\n [ngForOf]="sorting.sortingColumns"\n >\n <ng-template fs-menu-item (click)="setSortableColumn(column)">\n <ng-container *ngIf="column.title; else sortByTemplate">\n {{ column.title }}\n </ng-container>\n <ng-template #sortByTemplate>\n <ng-template [ngTemplateOutlet]="column.headerTemplate"></ng-template>\n </ng-template>\n </ng-template>\n </ng-template>\n\n \x3c!-- Fake sorting columns --\x3e\n <ng-template\n ngFor\n let-column\n [ngForOf]="sorting.fakeSortingColumns"\n >\n <ng-template fs-menu-item (click)="setSortableColumn(column)">\n {{ column.title }}\n </ng-template>\n </ng-template>\n </fs-menu>\n\n <ng-template #sortedBy>\n <ng-container *ngIf="sorting.sortingColumn">\n sorted by\n <ng-container *ngIf="sorting.sortingColumn.title; else sortByTemplate">\n <a class="order-toggle" [fsMenuTriggerFor]="orderColumnsMenu">{{ sorting.sortingColumn.title }}</a>,\n </ng-container>\n <ng-template #sortByTemplate>\n <a class="order-toggle" [fsMenuTriggerFor]="orderColumnsMenu">\n <ng-template [ngTemplateOutlet]="sorting.sortingColumn.headerTemplate"></ng-template>\n </a>,\n </ng-template>\n <a class="order-toggle" (click)="toggleDirection()">{{ sorting.sortingColumn.fullNameDirection }}</a>\x3c!--\n --\x3e</ng-container>\x3c!--\n--\x3e</ng-template>\n</div>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,preserveWhitespaces:!0,styles:[":host{display:inline-block}:host.first-load .status{visibility:hidden}.order-toggle{white-space:nowrap}a{cursor:pointer}"]}),F("design:paramtypes",[e.ChangeDetectorRef])],i)}(),Ft=function(){function t(t){this.cdRef=t,this._destroy$=new b.Subject}return t.prototype.ngOnInit=function(){var t=this;b.merge(this.pagination.pageChanged$,this.pagination.pages$).pipe(v.takeUntil(this._destroy$)).subscribe((function(){t.cdRef.markForCheck()}))},t.prototype.ngOnDestroy=function(){this._destroy$.next(),this._destroy$.complete()},t.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]},D([e.Input(),F("design:type",tt)],t.prototype,"pagination",void 0),D([e.Input(),F("design:type",Object)],t.prototype,"rows",void 0),t=D([e.Component({selector:"fs-list-pagination",template:'<ng-container *ngIf="!pagination.loadMoreEnabled; else loadMoreButton">\n <div class="paging" *ngIf="pagination?.pages">\n <div class="records"></div>\n <div fxFlex>\n <div class="pages">\n <a matRipple matRippleRadius="15" [matRippleCentered]="true" class="first" [class.disabled]="!pagination.hasPrevPage" (click)="pagination.goFirst()">\n <i class="material-icons">first_page</i>\n </a>\n\n <a matRipple matRippleRadius="15" [matRippleCentered]="true" class="previous" [class.disabled]="!pagination.hasPrevPage" (click)="pagination.goPrev()">\n <i class="material-icons">keyboard_arrow_left</i>\n </a>\n\n <div class="number">\n {{ pagination.page }} of {{ pagination.pages }}\n </div>\n\n <a matRipple matRippleRadius="15" [matRippleCentered]="true" class="next" [class.disabled]="!pagination.hasNextPage" (click)="pagination.goNext()">\n <i class="material-icons">keyboard_arrow_right</i>\n </a>\n\n <a matRipple matRippleRadius="15" [matRippleCentered]="true" class="last" [class.disabled]="!pagination.hasNextPage" (click)="pagination.goLast()">\n <i class="material-icons">last_page</i>\n </a>\n\n </div>\n </div>\n </div>\n</ng-container>\n\n<ng-template #loadMoreButton>\n <div class="fs-list-load-more" *ngIf="pagination.hasNextPage">\n <button mat-button (click)="pagination.goNext()">{{ pagination.loadMoreText }}</button>\n </div>\n</ng-template>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:[":host{display:block}.paging{display:flex}.paging .pages{display:flex;justify-content:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.paging .pages a{text-align:center;color:rgba(0,0,0,.87);text-decoration:none;font-size:15px;cursor:pointer;display:flex}.paging .pages a:not(.page){padding:10px}.paging .pages a.disabled{pointer-events:none;cursor:default;color:#d8d8d8}.paging .pages .number{font-size:90%}.fs-list-load-more button{width:100%;margin-top:10px}"]}),F("design:paramtypes",[e.ChangeDetectorRef])],t)}(),It=function(){function t(){this.placeholderWidths=[[],[],[]],this.widths=[],this.cols=[],this.rows=[]}return t.prototype.ngOnInit=function(){this.cols=this.columns>5?this.columns.splice(0,5):this.columns;for(var t=this.cols.length,e=t;e>=0;e--)this.widths[e]=e?w.random(15,100/t,!1):0;for(var i=0;i<3;i++)for(var n=0;n<t;n++)this.placeholderWidths[i].push(w.random(50,90))},t.prototype.ngOnChanges=function(t){t.loaderLines&&(this.rows=new Array(this.loaderLines))},D([e.Input(),F("design:type",Object)],t.prototype,"columns",void 0),D([e.Input(),F("design:type",Number)],t.prototype,"loaderLines",void 0),t=D([e.Component({selector:"fs-list-loader",template:'<table>\n <thead>\n <tr>\n <th *ngFor="let col of cols; let column = index" [width]="widths[column] + \'%\'">\n <div class="fs-skeleton-placeholder" [style.width]="(placeholderWidths[0][column]/2) + \'%\'"></div>\n </th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor="let row of rows; let index=index">\n <td *ngFor="let col of cols; let column = index">\n <div class="fs-skeleton-placeholder" [style.width]="placeholderWidths[index][column] + \'%\'"></div>\n </td>\n </tr>\n </tbody>\n</table>\n',changeDetection:e.ChangeDetectionStrategy.OnPush,styles:["table{width:100%;border-spacing:0}.fs-skeleton-placeholder{opacity:.5}:host ::ng-deep tbody tr:hover td{background:0 0}"]})],t)}(),$t=function(){function t(t){this._fsPrompt=t,this.restoreMode=!1,this.rowActions=[],this.menuRowActions=[],this.inlineRowActions=[],this._destroy$=new b.Subject}return t.prototype.actionClick=function(t,e,i,n){var o=this;t.remove?"boolean"==typeof t.remove?this.removeAction(t,e.data,i,this.index):this._fsPrompt.confirm({title:t.remove.title,template:t.remove.template}).pipe(v.take(1),v.takeUntil(this._destroy$)).subscribe({next:function(){o.removeAction(t,e.data,i,o.index)},error:function(){}}):t.click(e.data,i,this.index,n)},t.prototype.trackByFn=function(t){return t},t.prototype.clickOnTrigger=function(t){var e=this;t.stopPropagation(),this.rowActions.forEach((function(t){return t.updateLabel(e.row.data)}))},t.prototype.removeAction=function(t,e,i,n){var o=this,s=t.click(e,i,n);s&&s instanceof b.Observable&&s.pipe(v.take(1),v.takeUntil(this._destroy$)).subscribe((function(){o.rowRemoved.emit(e)}))},t.ctorParameters=function(){return[{type:y.FsPrompt}]},D([e.Input(),F("design:type",Y)],t.prototype,"row",void 0),D([e.Input(),F("design:type",Number)],t.prototype,"index",void 0),D([e.Input(),F("design:type",Object)],t.prototype,"restoreMode",void 0),D([e.Input(),F("design:type",Array)],t.prototype,"rowActions",void 0),D([e.Input(),F("design:type",e.EventEmitter)],t.prototype,"rowRemoved",void 0),D([e.Input(),F("design:type",Array)],t.prototype,"menuRowActions",void 0),D([e.Input(),F("design:type",Array)],t.prototype,"inlineRowActions",void 0),D([e.Input(),F("design:type",U)],t.prototype,"restoreAction",void 0),t=D([e.Component({selector:"fs-list-row-actions",template:'<ng-container *ngIf="!restoreMode || (restoreMode && !restoreAction)">\n <ng-container *ngFor="let action of inlineRowActions; trackBy: trackByFn">\n <fs-list-row-inline-action class="row-inline-action row-inline-action-{{action.type}}"\n [action]="action"\n [ngClass]="{\'mobile-hide\': action.menu === undefined}"\n (clicked)="actionClick(action, row, $event)"\n (fileSelect)="action.fileUploadFn($event, row, index)">\n </fs-list-row-inline-action>\n </ng-container>\n</ng-container>\n\n\x3c!-- Menu --\x3e\n<fs-menu class="row-menu-action"\n *ngIf="menuRowActions.length || (restoreMode && restoreAction)"\n (click)="clickOnTrigger($event)"\n #menuRef\n>\n \x3c!-- Case when we have usual menu actions --\x3e\n <ng-container *ngIf="!restoreMode || (restoreMode && !restoreAction)">\n <ng-container *ngFor="let action of inlineRowActions; trackBy: trackByFn">\n <ng-template class="hidden-mobile-menu-action"\n fs-menu-item\n [link]="action.routerLink?.link"\n [queryParams]="action.routerLink?.queryParams"\n [target]="action.routerLink?.target"\n [hidden]="action.menu !== undefined && !action.isShown">\n <fs-list-row-menu-action\n [icon]="action.icon"\n [label]="action.label"\n [file]="!!action.fileUploadFn"\n [fileMultiple]="action.fileMultiple"\n (fileSelect)="action.fileUploadFn($event, row, index)"\n (fileError)="action.fileUploadErrorFn && action.fileUploadErrorFn($event)">\n </fs-list-row-menu-action>\n </ng-template>\n </ng-container>\n\n <ng-container *ngFor="let action of menuRowActions; trackBy: trackByFn">\n <ng-container *ngIf="action.isGroup else simpleMenuItem">\n <fs-menu-group [label]="action.label">\n <ng-container *ngFor="let subAction of action.rowActions">\n <ng-template fs-menu-item\n [link]="subAction.routerLink?.link"\n [queryParams]="subAction.routerLink?.queryParams"\n [target]="subAction.routerLink?.target"\n [hidden]="!subAction.isShown"\n (click)="actionClick(subAction, row, $event, menuRef);">\n <fs-list-row-menu-action\n [icon]="subAction.icon"\n [label]="subAction.label"\n [file]="!!subAction.fileUploadFn"\n [fileMultiple]="subAction.fileMultiple"\n (fileSelect)="subAction.fileUploadFn($event, row, index)"\n (fileError)="subAction.fileUploadErrorFn && subAction.fileUploadErrorFn($event)">\n </fs-list-row-menu-action>\n </ng-template>\n </ng-container>\n </fs-menu-group>\n </ng-container>\n <ng-template #simpleMenuItem>\n <ng-template fs-menu-item\n [link]="action.routerLink?.link"\n [queryParams]="action.routerLink?.queryParams"\n [target]="action.routerLink?.target"\n [hidden]="!action.isShown"\n (click)="actionClick(action, row, $event, menuRef);">\n <fs-list-row-menu-action\n [icon]="action.icon"\n [label]="action.label"\n [file]="!!action.fileUploadFn"\n [fileMultiple]="action.fileMultiple"\n (fileSelect)="action.fileUploadFn($event, row, index)"\n (fileError)="action.fileUploadErrorFn && action.fileUploadErrorFn($event)">\n </fs-list-row-menu-action>\n </ng-template>\n </ng-template>\n </ng-container>\n </ng-container>\n\n \x3c!-- Case when we have restore mode enabled and must hide menu actions --\x3e\n <ng-container *ngIf="restoreMode && restoreAction">\n <ng-template fs-menu-item (click)="actionClick(restoreAction, row, $event, menuRef)">\n <mat-icon *ngIf="restoreAction.icon">{{restoreAction.icon}}</mat-icon>\n {{restoreAction.label}}\n </ng-template>\n </ng-container>\n</fs-menu>\n',changeDetection:e.ChangeDetectionStrategy.OnPush}),F("design:paramtypes",[y.FsPrompt])],t)}(),Et=function(){function t(t){this._fsPrompt=t,this.clicked=new e.EventEmitter,this.fileSelect=new e.EventEmitter}return t.prototype.actionClick=function(t){this.clicked.emit(t)},t.prototype.fileSelected=function(t){this.fileSelect.emit(t)},t.ctorParameters=function(){return[{type:y.FsPrompt}]},D([e.Input(),F("design:type",U)],t.prototype,"action",void 0),D([e.Output(),F("design:type",Object)],t.prototype,"clicked",void 0),D([e.Output(),F("design:type",Object)],t.prototype,"fileSelect",void 0),t=D([e.Component({selector:"fs-list-row-inline-action",template:'<ng-container *ngIf="action.isShown" [ngSwitch]="action.type">\n \x3c!-- Basic button --\x3e\n <ng-container *ngSwitchCase="\'basic\'">\n <ng-container *ngIf="!action.routerLink; else link">\n <button type="button"\n mat-button\n (click)="actionClick($event)"\n [ngClass]="action.classArray"\n >\n <ng-template [ngTemplateOutlet]="buttonContent"></ng-template>\n </button>\n </ng-container>\n <ng-template #link>\n <a mat-button\n [routerLink]="action.routerLink.link"\n [queryParams]="action.routerLink.queryParams">\n <ng-template [ngTemplateOutlet]="buttonContent"></ng-template>\n </a>\n </ng-template>\n </ng-container>\n\n \x3c!-- Raised button --\x3e\n <ng-container *ngSwitchCase="\'raised\'">\n <ng-container *ngIf="!action.routerLink; else link">\n <button type="button"\n mat-raised-button\n (click)="actionClick($event)"\n [ngClass]="action.classArray"\n >\n <ng-template [ngTemplateOutlet]="buttonContent"></ng-template>\n </button>\n </ng-container>\n <ng-template #link>\n <a mat-raised-button\n [routerLink]="action.routerLink.link"\n [queryParams]="action.routerLink.queryParams">\n <ng-template [ngTemplateOutlet]="buttonContent"></ng-template>\n </a>\n </ng-template>\n </ng-container>\n\n \x3c!-- Icon button --\x3e\n <ng-container *ngSwitchCase="\'icon\'">\n <ng-container *ngIf="!action.routerLink; else link">\n <button type="button"\n mat-icon-button\n (click)="actionClick($event)"\n [ngClass]="action.classArray"\n >\n <ng-template [ngTemplateOutlet]="buttonContent"></ng-template>\n </button>\n </ng-container>\n <ng-template #link>\n <a mat-icon-button\n [routerLink]="action.routerLink.link"\n [queryParams]="action.routerLink.queryParams">\n <ng-template [ngTemplateOutlet]="buttonContent"></ng-template>\n </a>\n </ng-template>\n </ng-container>\n\n \x3c!-- Fab button --\x3e\n <ng-container *ngSwitchCase="\'fab\'">\n <ng-container *ngIf="!action.routerLink; else link">\n <button type="button"\n mat-fab\n (click)="actionClick($event)"\n [ngClass]="action.classArray"\n >\n <ng-template [ngTemplateOutlet]="buttonContent"></ng-template>\n </button>\n </ng-container>\n <ng-template #link>\n <a mat-fab\n [routerLink]="action.routerLink.link"\n [queryParams]="action.routerLink.queryParams">\n <ng-template [ngTemplateOutlet]="buttonContent"></ng-template>\n </a>\n </ng-template>\n </ng-container>\n\n \x3c!-- Mini Fab button --\x3e\n <ng-container *ngSwitchCase="\'mini-fab\'">\n <ng-container *ngIf="!action.routerLink; else link">\n <button type="button"\n mat-mini-fab\n (click)="actionClick($event)"\n [ngClass]="action.classArray"\n >\n <ng-template [ngTemplateOutlet]="buttonContent"></ng-template>\n </button>\n </ng-container>\n <ng-template #link>\n <a mat-mini-fab\n [routerLink]="action.routerLink.link"\n [queryParams]="action.routerLink.queryParams">\n <ng-template [ngTemplateOutlet]="buttonContent"></ng-template>\n </a>\n </ng-template>\n </ng-container>\n\n <ng-template #buttonContent>\n <ng-container *ngIf="!action.fileUploadFn else uploadFileBtn">\n <mat-icon *ngIf="action.icon">{{action.icon}}</mat-icon>\n {{action.label}}\n </ng-container>\n\n <ng-template #uploadFileBtn>\n <fs-file\n class="action-button"\n [multiple]="action.fileMultiple"\n (select)="fileSelected($event)"\n (error)="action.fileUploadErrorFn && action.fileUploadErrorFn($event)">\n <mat-icon *ngIf="action.icon">{{action.icon}}</mat-icon>\n {{action.label}}\n </fs-file>\n </ng-template>\n </ng-template>\n</ng-container>\n',changeDetection:e.ChangeDetectionStrategy.OnPush}),F("design:paramtypes",[y.FsPrompt])],t)}(),jt=function(){function t(){this.fileSelect=new e.EventEmitter,this.fileError=new e.EventEmitter}return D([e.Input(),F("design:type",String)],t.prototype,"icon",void 0),D([e.Input(),F("design:type",String)],t.prototype,"label",void 0),D([e.Input(),F("design:type",Boolean)],t.prototype,"file",void 0),D([e.Input(),F("design:type",Boolean)],t.prototype,"fileMultiple",void 0),D([e.Output(),F("design:type",Object)],t.prototype,"fileSelect",void 0),D([e.Output(),F("design:type",Object)],t.prototype,"fileError",void 0),t=D([e.Component({selector:"fs-list-row-menu-action",template:'<ng-container *ngIf="!file else withFile">\n <mat-icon *ngIf="icon">{{icon}}</mat-icon>\n {{label}}\n</ng-container>\n\n<ng-template #withFile>\n <fs-file\n class="action-button"\n [multiple]="fileMultiple"\n (select)="fileSelect.emit($event)"\n (error)="fileError.emit($event)">\n <mat-icon *ngIf="icon">{{icon}}</mat-icon>\n {{label}}\n </fs-file>\n</ng-template>\n',changeDetection:e.ChangeDetectionStrategy.OnPush})],t)}(),Tt=function(){function i(t){this._externalParams=t,this._reorderReady=!0,this._initList()}return Object.defineProperty(i.prototype,"savedFiltersController",{get:function(){return this._externalParams.savedFiltersController},enumerable:!0,configurable:!0}),i.prototype._initList=function(){var e=this;this.config={status:!1,filterInput:!1,queryParam:!1,persist:!1,paging:!1,reorder:{position:t.ReorderPosition.Left,strategy:t.ReorderStrategy.Always,moveDrop:function(){return e._reorderReady},done:function(t){e._reorderReady=!1;var i=t.map((function(t){return t.data}));e.savedFiltersController.order(i).pipe(v.tap((function(){e._reorderReady=!0}))).subscribe((function(){}))}},rowActions:[{label:"Apply",click:function(t){e._externalParams.setActiveSavedFilter(t)}},{label:"Delete",remove:{title:"Confirm",template:"Are you sure you want to delete this filter?"},click:function(t){return e.savedFiltersController.delete(t)}}],fetch:function(t){return e.savedFiltersController.load().pipe(v.map((function(t){return{data:t}})))}}},i.ctorParameters=function(){return[{type:g.ExternalParamsController}]},i=D([e.Component({template:'<h1 mat-dialog-title>\n Manage Saved Filters\n</h1>\n<div mat-dialog-content>\n <fs-list [config]="config">\n <fs-list-column name="name" title="Name">\n <ng-template fs-list-cell let-row="row">\n {{ row.name }}\n </ng-template>\n </fs-list-column>\n </fs-list>\n</div>\n<div mat-dialog-actions>\n <button mat-button\n [mat-dialog-close]="null"\n type="button"\n color="primary">\n Done\n </button>\n</div>\n'}),F("design:paramtypes",[g.ExternalParamsController])],i)}(),Lt=function(){function t(t,e,i){this._dialog=t,this._externalParams=e,this._vcRef=i}return Object.defineProperty(t.prototype,"savedFiltersEnabled$",{get:function(){return this._externalParams.savedFiltersController.enabled$},enumerable:!0,configurable:!0}),t.prototype.showManageDialog=function(){this._dialog.open(Tt,{viewContainerRef:this._vcRef})},t.ctorParameters=function(){return[{type:l.MatDialog},{type:g.ExternalParamsController},{type:e.ViewContainerRef}]},t=D([e.Component({selector:"fs-list-saved-filters",template:'<ng-container *ngIf="savedFiltersEnabled$ | async">\x3c!--\n --\x3e, saved filter\n <fs-filter-saved-filters-menu (manage)="showManageDialog()"></fs-filter-saved-filters-menu>\n</ng-container>\n'}),F("design:paramtypes",[l.MatDialog,g.ExternalParamsController,e.ViewContainerRef])],t)}(),Mt=function(){function t(t,e,i,n){this._el=t,this._renderer=e,this._reorderController=i,this._draggableList=n,this._destroy$=new b.Subject}return t.prototype.ngOnInit=function(){this._reorderController.moveDropCallback&&this._listenDragEvents()},t.prototype.ngOnDestroy=function(){this._destroy$.next(),this._destroy$.complete()},t.prototype._listenDragEvents=function(){var t=this;this._draggableList.dragStart$.pipe(v.takeUntil(this._destroy$)).subscribe((function(){t._markReadyToSwapRows()})),this._draggableList.dragEnd$.pipe(v.takeUntil(this._destroy$)).subscribe((function(){t._unmarkRows()}))},t.prototype._markReadyToSwapRows=function(){var t,e,i,n,o,s,r=this.row,l=this._draggableList.draggableItem;r.isChild&&r.parent,l.isChild&&l.parent;this.row.readyToSwap=this._reorderController.moveDropCallback({row1:null===(t=r)||void 0===t?void 0:t.data,row2:null===(e=l)||void 0===e?void 0:e.data,group1:null===(n=null===(i=r)||void 0===i?void 0:i.parent)||void 0===n?void 0:n.data,group2:null===(s=null===(o=l)||void 0===o?void 0:o.parent)||void 0===s?void 0:s.data}),this.row.readyToSwap||this._renderer.addClass(this._el.nativeElement,"fs-list-swap-restricted")},t.prototype._unmarkRows=function(){this.row.readyToSwap||this._renderer.removeClass(this._el.nativeElement,"fs-list-swap-restricted")},t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer2},{type:lt},{type:_t}]},D([e.Input(),F("design:type",Y)],t.prototype,"row",void 0),t=D([e.Directive({selector:"[fsListDraggableRow]"}),F("design:paramtypes",[e.ElementRef,e.Renderer2,lt,_t])],t)}(),Bt=function(){function t(){}var w;return w=t,t.forRoot=function(t){return void 0===t&&(t={}),{ngModule:w,providers:[{provide:mt,useValue:t},{provide:yt,useFactory:Nt,deps:[mt]}]}},t=w=D([e.NgModule({imports:[i.CommonModule,n.RouterModule,o.MatButtonModule,a.MatIconModule,c.MatMenuModule,f.MatProgressSpinnerModule,s.MatCheckboxModule,r.MatRippleModule,g.FsFilterModule,u.FsMenuModule,p.FlexLayoutModule,h.FsScrollModule,y.FsPromptModule,l.MatDialogModule,d.MatTooltipModule,m.FsFileModule],declarations:[vt,Ct,$t,Et,jt,St,Ot,Dt,kt,It,Lt,Tt,xt,At,Rt,Pt,Ft,ht,ct,at,dt,ft,gt,_t,Mt,ut,wt],entryComponents:[wt],providers:[],exports:[vt,Ct,St,It,ht,ct,at,dt,ft,gt,ut]})],t)}();function Nt(t){return w.merge({noResults:{message:"No Results Found"}},t)}t.Column=B,t.FS_LIST_CONFIG=mt,t.FS_LIST_DEFAULT_CONFIG=yt,t.FsBodyComponent=Rt,t.FsCellComponent=St,t.FsFooterCellComponent=Dt,t.FsFooterComponent=Pt,t.FsFooterRowComponent=Ot,t.FsHeadCellComponent=At,t.FsHeadComponent=xt,t.FsListCellDirective=ct,t.FsListColumnDirective=ht,t.FsListComponent=vt,t.FsListEmptyStateDirective=ut,t.FsListFooterDirective=dt,t.FsListHeaderDirective=at,t.FsListModule=Bt,t.FsPaginationComponent=Ft,t.FsRowComponent=Ct,t.FsStatusComponent=kt,t.List=rt,t.PaginationController=tt,t.ReorderController=lt,t.RowAction=U,t.SelectionController=nt,t.SortingController=ot,t.StyleConfig=T,t.ɵa=Nt,t.ɵb=pt,t.ɵc=bt,t.ɵd=ft,t.ɵe=gt,t.ɵf=_t,t.ɵg=$t,t.ɵh=Et,t.ɵi=jt,t.ɵj=It,t.ɵk=Lt,t.ɵl=Tt,t.ɵm=Mt,t.ɵn=wt,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
16
16
|
//# sourceMappingURL=firestitch-list.umd.min.js.map
|