mis-crystal-design-system 2.1.2 → 2.2.2

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.
Files changed (109) hide show
  1. package/async-search-dropdown/async-dropdown.component.d.ts +60 -0
  2. package/async-search-dropdown/async-dropdown.module.d.ts +2 -0
  3. package/async-search-dropdown/index.d.ts +1 -0
  4. package/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.d.ts +4 -0
  5. package/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.metadata.json +1 -0
  6. package/async-search-dropdown/package.json +11 -0
  7. package/async-search-dropdown/public_api.d.ts +2 -0
  8. package/bundles/mis-crystal-design-system-async-search-dropdown.umd.js +211 -0
  9. package/bundles/mis-crystal-design-system-async-search-dropdown.umd.js.map +1 -0
  10. package/bundles/mis-crystal-design-system-async-search-dropdown.umd.min.js +2 -0
  11. package/bundles/mis-crystal-design-system-async-search-dropdown.umd.min.js.map +1 -0
  12. package/bundles/mis-crystal-design-system-button.umd.js +60 -2
  13. package/bundles/mis-crystal-design-system-button.umd.js.map +1 -1
  14. package/bundles/mis-crystal-design-system-button.umd.min.js +1 -1
  15. package/bundles/mis-crystal-design-system-button.umd.min.js.map +1 -1
  16. package/bundles/mis-crystal-design-system-datepicker.umd.js +3 -1
  17. package/bundles/mis-crystal-design-system-datepicker.umd.js.map +1 -1
  18. package/bundles/mis-crystal-design-system-datepicker.umd.min.js +1 -1
  19. package/bundles/mis-crystal-design-system-datepicker.umd.min.js.map +1 -1
  20. package/bundles/mis-crystal-design-system-dropdown.umd.js.map +1 -1
  21. package/bundles/mis-crystal-design-system-dropdown.umd.min.js.map +1 -1
  22. package/bundles/mis-crystal-design-system-input.umd.js +111 -0
  23. package/bundles/mis-crystal-design-system-input.umd.js.map +1 -0
  24. package/bundles/mis-crystal-design-system-input.umd.min.js +2 -0
  25. package/bundles/mis-crystal-design-system-input.umd.min.js.map +1 -0
  26. package/bundles/mis-crystal-design-system-modal.umd.js +165 -0
  27. package/bundles/mis-crystal-design-system-modal.umd.js.map +1 -0
  28. package/bundles/mis-crystal-design-system-modal.umd.min.js +2 -0
  29. package/bundles/mis-crystal-design-system-modal.umd.min.js.map +1 -0
  30. package/bundles/mis-crystal-design-system-table.umd.js +35 -49
  31. package/bundles/mis-crystal-design-system-table.umd.js.map +1 -1
  32. package/bundles/mis-crystal-design-system-table.umd.min.js +2 -2
  33. package/bundles/mis-crystal-design-system-table.umd.min.js.map +1 -1
  34. package/button/button.directive.d.ts +12 -0
  35. package/button/button.directive.scss +69 -0
  36. package/button/mis-crystal-design-system-button.d.ts +1 -0
  37. package/button/mis-crystal-design-system-button.metadata.json +1 -1
  38. package/datepicker/mis-crystal-design-system-datepicker.metadata.json +1 -1
  39. package/dropdown/mis-crystal-design-system-dropdown.metadata.json +1 -1
  40. package/esm2015/async-search-dropdown/async-dropdown.component.js +176 -0
  41. package/esm2015/async-search-dropdown/async-dropdown.module.js +15 -0
  42. package/esm2015/async-search-dropdown/index.js +2 -0
  43. package/esm2015/async-search-dropdown/mis-crystal-design-system-async-search-dropdown.js +5 -0
  44. package/esm2015/async-search-dropdown/public_api.js +3 -0
  45. package/esm2015/button/button.directive.js +57 -0
  46. package/esm2015/button/button.module.js +4 -3
  47. package/esm2015/button/mis-crystal-design-system-button.js +2 -1
  48. package/esm2015/datepicker/bs-datepicker.module.js +6 -2
  49. package/esm2015/dropdown/dropdown.component.js +1 -1
  50. package/esm2015/input/directives/input/input.directive.js +38 -0
  51. package/esm2015/input/index.js +2 -0
  52. package/esm2015/input/mis-crystal-design-system-input.js +5 -0
  53. package/esm2015/input/mis-input.component.js +40 -0
  54. package/esm2015/input/mis-input.module.js +15 -0
  55. package/esm2015/input/public_api.js +4 -0
  56. package/esm2015/modal/index.js +2 -0
  57. package/esm2015/modal/mis-crystal-design-system-modal.js +6 -0
  58. package/esm2015/modal/modal-constants.js +4 -0
  59. package/esm2015/modal/modal-ref.js +16 -0
  60. package/esm2015/modal/modal.module.js +32 -0
  61. package/esm2015/modal/modal.service.js +72 -0
  62. package/esm2015/modal/module-wrapper/module-wrapper.component.js +33 -0
  63. package/esm2015/modal/public_api.js +5 -0
  64. package/esm2015/table/custom-table-cell.directive.js +3 -2
  65. package/esm2015/table/filter/filter.component.js +20 -22
  66. package/esm2015/table/mis-crystal-design-system-table.js +2 -1
  67. package/esm2015/table/public_api.js +1 -2
  68. package/esm2015/table/sub-table/sub-table.component.js +3 -3
  69. package/esm2015/table/table.component.js +7 -10
  70. package/esm2015/table/table.module.js +3 -3
  71. package/fesm2015/mis-crystal-design-system-async-search-dropdown.js +194 -0
  72. package/fesm2015/mis-crystal-design-system-async-search-dropdown.js.map +1 -0
  73. package/fesm2015/mis-crystal-design-system-button.js +60 -4
  74. package/fesm2015/mis-crystal-design-system-button.js.map +1 -1
  75. package/fesm2015/mis-crystal-design-system-datepicker.js +3 -1
  76. package/fesm2015/mis-crystal-design-system-datepicker.js.map +1 -1
  77. package/fesm2015/mis-crystal-design-system-dropdown.js.map +1 -1
  78. package/fesm2015/mis-crystal-design-system-input.js +94 -0
  79. package/fesm2015/mis-crystal-design-system-input.js.map +1 -0
  80. package/fesm2015/mis-crystal-design-system-modal.js +151 -0
  81. package/fesm2015/mis-crystal-design-system-modal.js.map +1 -0
  82. package/fesm2015/mis-crystal-design-system-table.js +32 -36
  83. package/fesm2015/mis-crystal-design-system-table.js.map +1 -1
  84. package/input/directives/input/input.directive.d.ts +15 -0
  85. package/input/index.d.ts +1 -0
  86. package/input/mis-crystal-design-system-input.d.ts +4 -0
  87. package/input/mis-crystal-design-system-input.metadata.json +1 -0
  88. package/input/mis-input.component.d.ts +15 -0
  89. package/input/mis-input.module.d.ts +2 -0
  90. package/input/package.json +11 -0
  91. package/input/public_api.d.ts +3 -0
  92. package/modal/index.d.ts +1 -0
  93. package/modal/mis-crystal-design-system-modal.d.ts +5 -0
  94. package/modal/mis-crystal-design-system-modal.metadata.json +1 -0
  95. package/modal/modal-constants.d.ts +3 -0
  96. package/modal/modal-ref.d.ts +9 -0
  97. package/modal/modal.module.d.ts +5 -0
  98. package/modal/modal.scss +9 -0
  99. package/modal/modal.service.d.ts +22 -0
  100. package/modal/module-wrapper/module-wrapper.component.d.ts +9 -0
  101. package/modal/package.json +11 -0
  102. package/modal/public_api.d.ts +4 -0
  103. package/package.json +1 -1
  104. package/table/filter/filter.component.d.ts +3 -5
  105. package/table/mis-crystal-design-system-table.d.ts +1 -0
  106. package/table/mis-crystal-design-system-table.metadata.json +1 -1
  107. package/table/public_api.d.ts +1 -1
  108. package/table/sub-table/sub-table.component.d.ts +1 -0
  109. package/table/table.component.d.ts +2 -5
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@angular/forms"),require("mis-crystal-design-system/checkbox"),require("mis-crystal-design-system/button")):"function"==typeof define&&define.amd?define("mis-crystal-design-system/table",["exports","@angular/core","@angular/common","@angular/forms","mis-crystal-design-system/checkbox","mis-crystal-design-system/button"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self)["mis-crystal-design-system"]=e["mis-crystal-design-system"]||{},e["mis-crystal-design-system"].table={}),e.ng.core,e.ng.common,e.ng.forms,e["mis-crystal-design-system"].checkbox,e["mis-crystal-design-system"].button)}(this,(function(e,t,n,i,o,r){"use strict";
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("mis-crystal-design-system/checkbox"),require("@angular/cdk/scrolling")):"function"==typeof define&&define.amd?define("mis-crystal-design-system/table",["exports","@angular/core","@angular/common","mis-crystal-design-system/checkbox","@angular/cdk/scrolling"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self)["mis-crystal-design-system"]=e["mis-crystal-design-system"]||{},e["mis-crystal-design-system"].table={}),e.ng.core,e.ng.common,e["mis-crystal-design-system"].checkbox,e.ng.cdk.scrolling)}(this,(function(e,t,n,i,o){"use strict";
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -12,5 +12,5 @@
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */Object.create;function a(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function s(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e}Object.create;var c=function(){function e(e){this.renderer=e,this.showFilter=!1,this.filterName="",this.filterData=[],this.filterContainerStyles={},this.appliedFilters={},this.filtersUpdated=new t.EventEmitter,this.selectedPage=1,this.pages=[],this.pageSelected=new t.EventEmitter,this.tableData=[],this.subTableData=[]}return e.prototype.ngOnInit=function(){var e=this;this.initializeFilters(),this.config.paginationConfig&&this.initializePagination(),document.addEventListener("click",(function(t){if(e.filter){var n=!1;"checkmark"===t.target.className&&(n=!0),e.filter.container.nativeElement.contains(t.target)||n||e.toggleFilter(e.filterName)}}))},e.prototype.ngAfterViewInit=function(){if(this.config.paginationConfig){var e=this.table.nativeElement.offsetHeight;this.renderer.setStyle(this.table.nativeElement,"height",e-56+"px")}},e.prototype.initializeFilters=function(){var e,t,n,i;try{for(var o=a(this.config.colHeaderConfig),r=o.next();!r.done;r=o.next()){var l=r.value;if(l.filters){var s=[];try{for(var c=(n=void 0,a(l.filters)),d=c.next();!d.done;d=c.next()){var p=d.value;p.checked&&s.push({name:p.name,value:p.value})}}catch(e){n={error:e}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}s.length>0&&(this.appliedFilters[l.data]=s)}}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}},e.prototype.toggleFilter=function(e,t){var n,i;if(this.showFilter)this.filterName="",this.filterData=[],this.showFilter=!1;else{this.filterName=e,this.filterData=s(t),this.showFilter=!0;var o=0,r=this.colHeaders.toArray().reverse();try{for(var l=a(r),c=l.next();!c.done;c=l.next()){var d=c.value;if(d.nativeElement.innerText===e)break;o+=d.nativeElement.offsetWidth}}catch(e){n={error:e}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}this.filterContainerStyles={top:"44px",right:o>0?o-116+"px":"12px"}}},e.prototype.getAppliedFilters=function(e){return this.appliedFilters[e]?s(this.appliedFilters[e]):[]},e.prototype.updateAppliedFilters=function(e){0==e.length?delete this.appliedFilters[this.filterName]:this.appliedFilters[this.filterName]=e,this.filtersUpdated.emit(Object.assign({},this.appliedFilters)),this.toggleFilter(this.filterName)},e.prototype.initializePagination=function(){if(this.config.paginationConfig){var e=this.config.paginationConfig.noOfPages;if(e<=7)for(var t=1;t<=e;t++)this.pages.push(t);else this.pages=[1,2,3,4,0,e]}},e.prototype.updateSelectedPage=function(e){if(!(e<1||e>this.config.paginationConfig.noOfPages)){this.selectedPage=e;var t=this.config.paginationConfig.noOfPages;t>7&&(e-2<=1?this.pages=[1,2,3,4,0,t]:e-2>1&&e+2<t?this.pages=[1,0,e-1,e,e+1,0,t]:e+2>=t&&(this.pages=[1,0,t-3,t-2,t-1,t])),this.pageSelected.emit(this.selectedPage)}},e.prototype.getContainerHeight=function(){return this.config.height?this.config.height:""},e.prototype.getContainerWidth=function(){return this.config.width?this.config.width:""},e.prototype.getColHeadersRowHeight=function(){return this.config.colHeadersRowConfig&&this.config.colHeadersRowConfig.height?this.config.colHeadersRowConfig.height:"44px"},e.prototype.getColHeadersRowBorderTop=function(){var e,t;return this.config.colHeadersRowConfig&&(null===(e=this.config.colHeadersRowConfig.style)||void 0===e?void 0:e.borderTop)?null===(t=this.config.colHeadersRowConfig.style)||void 0===t?void 0:t.borderTop:""},e.prototype.getColHeadersRowBorderBottom=function(){var e,t;return this.config.colHeadersRowConfig&&(null===(e=this.config.colHeadersRowConfig.style)||void 0===e?void 0:e.borderBottom)?null===(t=this.config.colHeadersRowConfig.style)||void 0===t?void 0:t.borderBottom:"1px solid #E0E0E0"},e}();c.decorators=[{type:t.Component,args:[{selector:"mis-table",template:'<div\n [ngStyle]="{\n height: getContainerHeight(),\n width: getContainerWidth()\n }"\n id="main-container"\n>\n <mis-table-filter\n #filter\n (filtersApplied)="updateAppliedFilters($event)"\n *ngIf="showFilter"\n [containerStyles]="filterContainerStyles"\n [filtersData]="filterData"\n [appliedFilters]="getAppliedFilters(filterName)"\n ></mis-table-filter>\n <div #table id="table-container">\n <div\n [ngStyle]="{\n height: getColHeadersRowHeight(),\n \'border-top\': getColHeadersRowBorderTop(),\n \'border-bottom\': getColHeadersRowBorderBottom()\n }"\n id="col-headers-container"\n >\n <div\n #colHeader\n (click)="colHeader?.action ? colHeader?.action(colHeader) : null"\n *ngFor="let colHeader of config?.colHeaderConfig"\n class="col-header"\n [style]="colHeader?.style"\n [ngStyle]="{\n width: colHeader?.style?.width || \'\',\n cursor: colHeader.action ? \'pointer\' : \'default\',\n \'justify-content\': colHeader?.style?.justifyContent ? colHeader?.style?.justifyContent :\n colHeader.type === \'number\'\n ? \'flex-end\'\n : \'space-between\'\n }">\n <p *ngIf="colHeader?.type !== \'custom\'" class="col-header-text">\n {{ colHeader?.data || " " }}\n </p>\n <span\n (click)="\n toggleFilter(colHeader.data, colHeader.filters);\n $event.stopPropagation()\n "\n *ngIf="\n colHeader?.type !== \'custom\' &&\n colHeader?.filters &&\n colHeader?.filters?.length > 0\n "\n class="filter-icon"\n >\n <span *ngIf="appliedFilters[colHeader.data]?.length > 0" id="filter-active"></span>\n <svg\n fill="none"\n height="10"\n viewBox="0 0 13 10"\n width="13"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n clip-rule="evenodd"\n d="M4.97546 10H7.64213V8H4.97546V10ZM0.308472 0V2H12.3085V0H0.308472ZM2.30847 6H10.3085V4H2.30847V6Z"\n fill="#181F33"\n fill-rule="evenodd"\n />\n </svg>\n </span>\n <ng-template\n *ngIf="colHeader?.type === \'custom\'"\n [customComponent]="colHeader?.componentRef"\n [data]="colHeader.data"\n customTableCell\n ></ng-template>\n </div>\n </div>\n <div id="data-container">\n <div *ngFor="let row of tableData; let i = index" class="row-wrapper">\n <div class="t-row">\n <div\n (click)="\n config?.colConfig[i]?.action\n ? config?.colConfig[i]?.action(col)\n : null\n "\n *ngFor="let col of row; let i = index"\n [ngStyle]="{\n width: config?.colConfig[i]?.style?.width || config?.colHeaderConfig[i]?.style?.width || \'\'\n }"\n class="t-col-container"\n >\n <div\n class="t-col"\n [style]="config.colConfig[i]?.style"\n [ngStyle]="{\n width: \'100%\',\n cursor: config.colConfig[i].action ? \'pointer\' : \'default\',\n \'justify-content\': config.colConfig[i]?.style?.justifyContent ? config.colConfig[i]?.style?.justifyContent :\n config.colConfig[i].type === \'number\'\n ? \'flex-end\'\n : \'space-between\'\n }">\n <p\n *ngIf="config.colConfig[i].type !== \'custom\'"\n [ngStyle]="{\n color: config?.colConfig[i]?.style?.color\n ? config?.colConfig[i]?.style?.color\n : \'\'\n }"\n class="t-col-text"\n >\n {{ col }}\n </p>\n <ng-template\n *ngIf="config.colConfig[i].type === \'custom\'"\n [customComponent]="config.colConfig[i].componentRef"\n [data]="col"\n customTableCell\n ></ng-template>\n </div>\n </div>\n </div>\n <div *ngIf="config?.canExpand && expandedIndex === i" class="sub-row">\n <ng-container *ngIf="subTableDataLoading">\n <div\n style="\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 16px;\n "\n >\n Loading...\n </div>\n </ng-container>\n <ng-container *ngIf="!subTableDataLoading && subTableData.length === 0">\n <div\n style="\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 16px;\n "\n >\n No Data Available...\n </div>\n </ng-container>\n <ng-container *ngIf="!subTableDataLoading && subTableData.length > 0">\n <sub-table [config]="subTableconfig" [tableData]="subTableData"></sub-table>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n <div *ngIf="config?.paginationConfig" id="pagination-container">\n <p id="pagination-text">\n Showing\n {{ (selectedPage - 1) * config.paginationConfig.rowsPerPage + 1 }}-{{\n (selectedPage - 1) * config.paginationConfig.rowsPerPage +\n tableData.length\n }}\n of {{ config.paginationConfig.totalNoOfRows }} items\n </p>\n <div id="pages-container">\n <span (click)="updateSelectedPage(selectedPage - 1)" class="page">\n <svg\n fill="none"\n height="10"\n viewBox="0 0 7 10"\n width="7"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n clip-rule="evenodd"\n d="M0.857405 5.56295C0.855794 5.56139 0.854188 5.55982 0.852588 5.55824C0.695955 5.40408 0.617641 5.20203 0.617647 4.99998C0.617641 4.79793 0.695955 4.59588 0.852588 4.44172C0.854188 4.44014 0.855794 4.43858 0.857404 4.43702L5.13066 0.231231C5.44392 -0.0770771 5.9518 -0.0770771 6.26506 0.231231C6.57831 0.53954 6.57831 1.03941 6.26506 1.34772L2.5542 4.99998L6.26506 8.65225C6.57831 8.96055 6.57831 9.46042 6.26506 9.76873C5.9518 10.077 5.44392 10.077 5.13066 9.76873L0.857405 5.56295Z"\n fill="#181F33"\n fill-rule="evenodd"\n />\n </svg>\n </span>\n <div *ngFor="let pageNumber of pages">\n <span\n (click)="updateSelectedPage(pageNumber)"\n *ngIf="pageNumber != 0"\n [ngClass]="{ \'page-active\': pageNumber == selectedPage }"\n class="page"\n >{{ pageNumber }}</span\n >\n <span *ngIf="pageNumber == 0" class="page-seperator">\n <div style="display: flex">\n <span class="dot" style="margin-right: 4px"></span>\n <span class="dot" style="margin-right: 4px"></span>\n <span class="dot"></span>\n </div>\n </span>\n </div>\n <span (click)="updateSelectedPage(selectedPage + 1)" class="page">\n <svg\n fill="none"\n height="10"\n viewBox="0 0 7 10"\n width="7"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n clip-rule="evenodd"\n d="M6.1426 5.56295C6.14421 5.56139 6.14581 5.55982 6.14741 5.55824C6.30405 5.40408 6.38236 5.20203 6.38236 4.99998C6.38236 4.79793 6.30405 4.59588 6.14741 4.44172C6.14581 4.44014 6.14421 4.43858 6.1426 4.43702L1.86934 0.231231C1.55608 -0.0770771 1.0482 -0.0770771 0.734942 0.231231C0.421688 0.53954 0.421688 1.03941 0.734942 1.34772L4.4458 4.99998L0.734941 8.65225C0.421686 8.96055 0.421686 9.46042 0.734941 9.76873C1.0482 10.077 1.55608 10.077 1.86934 9.76873L6.1426 5.56295Z"\n fill="#181F33"\n fill-rule="evenodd"\n />\n </svg>\n </span>\n </div>\n </div>\n</div>\n',styles:["#main-container{font-family:Lato,sans-serif;position:relative}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background:#9aa7b4;border-radius:4px}#table-container{height:inherit;overflow-y:auto}#col-headers-container{display:flex;position:-webkit-sticky;position:sticky;background-color:#fff;height:44px;width:100%;border-bottom:1px solid #e0e0e0;top:0;left:0;right:0}.col-header{padding:0 16px;height:100%}.col-header,.col-header-text{display:flex;align-items:center}.col-header-text{font-style:normal;font-weight:700;font-size:14px;line-height:20px;letter-spacing:.2px;margin:0}.filter-icon{margin-left:8px;padding:0 8px;position:relative;cursor:pointer}#filter-active{height:8px;width:8px;background:#16cbbc;border-radius:50%;position:absolute;top:0;right:4px}.sub-row{height:auto;border-bottom:none}.loader ::ng-deep .mat-progress-spinner circle,.mat-spinner circle{stroke:#0937b2}.t-row{display:flex;align-items:center;background-color:#fff;height:44px;width:100%;border-bottom:1px solid #e0e0e0}.t-row:hover{background-color:#f1fdf8}.t-col-container{padding:0 16px;height:100%}.t-col{height:100%}.t-col,.t-col-text{display:flex;align-items:center}.t-col-text{font-style:normal;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.2px;margin:0}#pagination-container{display:flex;justify-content:flex-end;align-items:center;height:56px}#pagination-text{font-style:normal;font-weight:400;font-size:12px;line-height:18px;letter-spacing:.4px;color:#6a737d;margin:0 96px 0 0}#pages-container{display:flex;margin-right:32px}.page{border:1px solid #6a737d;box-sizing:border-box;border-radius:4px;font-size:14px;line-height:20px;letter-spacing:.2px;color:#6a737d;cursor:pointer}.page,.page-seperator{display:flex;justify-content:center;align-items:center;width:32px;height:32px;margin-right:8px}.dot{height:3px;width:3px;border-radius:50%;background:#6a737d}.page-active{color:#0937b2;border:1px solid #0937b2}"]}]}],c.ctorParameters=function(){return[{type:t.Renderer2}]},c.propDecorators={filtersUpdated:[{type:t.Output}],filter:[{type:t.ViewChild,args:["filter"]}],colHeaders:[{type:t.ViewChildren,args:["colHeader"]}],pageSelected:[{type:t.Output}],config:[{type:t.Input,args:["tableConfig"]}],subTableconfig:[{type:t.Input}],tableDataLoading:[{type:t.Input}],expandedIndex:[{type:t.Input}],tableData:[{type:t.Input}],subTableData:[{type:t.Input}],subTableDataLoading:[{type:t.Input}],table:[{type:t.ViewChild,args:["table"]}]};var d=function(){function e(e,t){this.viewContainerRef=e,this.componentFactoryResolver=t}return Object.defineProperty(e.prototype,"customComponent",{set:function(e){this.component=e,this.createComponent()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{set:function(e){this.cellData=e,this.ref&&(this.ref.instance.data=this.cellData)},enumerable:!1,configurable:!0}),e.prototype.createComponent=function(){if(this.component){var e=this.componentFactoryResolver.resolveComponentFactory(this.component);this.viewContainerRef.clear(),this.ref=this.viewContainerRef.createComponent(e),this.setData()}},e.prototype.setData=function(){this.ref.instance.data=this.cellData},e}();d.decorators=[{type:t.Directive,args:[{selector:"[customTableCell]"}]}],d.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.ComponentFactoryResolver}]},d.propDecorators={customComponent:[{type:t.Input}],data:[{type:t.Input}]};var p=function(){function e(e){this.renderer=e,this.selectedPage=1,this.pages=[],this.tableData=[]}return e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){if(this.config.paginationConfig){var e=this.table.nativeElement.offsetHeight;this.renderer.setStyle(this.table.nativeElement,"height",e-56+"px")}},e.prototype.getContainerHeight=function(){return this.config.height?this.config.height:""},e.prototype.getContainerWidth=function(){return this.config.width?this.config.width:""},e.prototype.getColHeadersRowHeight=function(){return this.config.colHeadersRowConfig&&this.config.colHeadersRowConfig.height?this.config.colHeadersRowConfig.height:"44px"},e.prototype.getColHeadersRowBorderTop=function(){var e,t;return this.config.colHeadersRowConfig&&(null===(e=this.config.colHeadersRowConfig.style)||void 0===e?void 0:e.borderTop)?null===(t=this.config.colHeadersRowConfig.style)||void 0===t?void 0:t.borderTop:""},e.prototype.getColHeadersRowBorderBottom=function(){var e,t;return this.config.colHeadersRowConfig&&(null===(e=this.config.colHeadersRowConfig.style)||void 0===e?void 0:e.borderBottom)?null===(t=this.config.colHeadersRowConfig.style)||void 0===t?void 0:t.borderBottom:"1px solid #E0E0E0"},e}();p.decorators=[{type:t.Component,args:[{selector:"sub-table",template:'<div\n id="main-container"\n [ngStyle]="{\n height: getContainerHeight(),\n width: getContainerWidth()\n }"\n>\n <div id="table-container" #table>\n <div\n id="col-headers-container"\n *ngIf="!!config.showHeader"\n [ngStyle]="{\n height: getColHeadersRowHeight(),\n \'border-top\': getColHeadersRowBorderTop(),\n \'border-bottom\': getColHeadersRowBorderBottom()\n }"\n >\n <div\n class="col-header"\n (click)="colHeader?.action ? colHeader?.action(colHeader) : null"\n *ngFor="let colHeader of config?.colHeaderConfig"\n [style]="colHeader?.style"\n [ngStyle]="{\n width: colHeader?.style?.width || \'\',\n cursor: colHeader.action ? \'pointer\' : \'default\',\n \'justify-content\': colHeader?.style?.justifyContent ? colHeader?.style?.justifyContent :\n colHeader.type === \'number\'\n ? \'flex-end\'\n : \'space-between\'\n }">\n <p *ngIf="colHeader?.type !== \'custom\'" class="col-header-text">\n {{ colHeader?.data || " " }}\n </p>\n <ng-template\n *ngIf="colHeader?.type === \'custom\'"\n customTableCell\n [customComponent]="colHeader?.componentRef"\n [data]="colHeader.data"\n ></ng-template>\n </div>\n </div>\n <div id="data-container">\n <div\n class="row-wrapper"\n *ngFor="let row of tableData; let i = index"\n [ngStyle]="{\n backgroundColor: i % 2 === 0 ? \'rgba(0, 0, 0, 0.04)\' : null\n }"\n >\n <div class="t-row">\n <div\n (click)="\n config?.colConfig[i]?.action\n ? config?.colConfig[i]?.action(col)\n : null\n "\n *ngFor="let col of row; let i = index"\n [ngStyle]="{\n width: config?.colConfig[i]?.style?.width || config?.colHeaderConfig[i]?.style?.width || \'\'\n }"\n class="t-col-container"\n >\n <div\n class="t-col"\n [style]="config.colConfig[i]?.style"\n [ngStyle]="{\n width: \'100%\',\n cursor: config.colConfig[i].action ? \'pointer\' : \'default\',\n \'justify-content\': config.colConfig[i]?.style?.justifyContent ? config.colConfig[i]?.style?.justifyContent :\n config.colConfig[i].type === \'number\'\n ? \'flex-end\'\n : \'space-between\'\n }">\n <p\n *ngIf="config.colConfig[i].type !== \'custom\'"\n [ngStyle]="{\n color: config?.colConfig[i]?.style?.color\n ? config?.colConfig[i]?.style?.color\n : \'\'\n }"\n class="t-col-text"\n >\n {{ col }}\n </p>\n <ng-template\n *ngIf="config.colConfig[i].type === \'custom\'"\n [customComponent]="config.colConfig[i].componentRef"\n [data]="col"\n customTableCell\n ></ng-template>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n',styles:["#main-container{font-family:Lato,sans-serif}#table-container{height:inherit}#col-headers-container{display:flex;background-color:#fff;height:36px;border-bottom:1px solid #e0e0e0}.col-header{height:100%;width:160px;padding:0 16px}.col-header,.col-header-text{display:flex;align-items:center}.col-header-text{font-style:normal;font-weight:700;font-size:14px;line-height:20px;letter-spacing:.25px;margin:0}.t-row{display:flex;align-items:center;background-color:#fff;height:36px;width:100%;border-bottom:1px solid #e0e0e0}.t-row:hover{background-color:#f1fdf8}.t-col-container{padding:0 16px;height:100%}.t-col{height:100%}.t-col,.t-col-text{display:flex;align-items:center}.t-col-text{font-style:normal;font-weight:400;font-size:14px;line-height:20px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;letter-spacing:.2px;margin:0}"]}]}],p.ctorParameters=function(){return[{type:t.Renderer2}]},p.propDecorators={config:[{type:t.Input}],tableData:[{type:t.Input}],table:[{type:t.ViewChild,args:["table"]}]};var g=function(){function e(){this.filtersData=[],this.containerStyles={},this.filtersApplied=new t.EventEmitter,this.filtersMap={},this.searchValue="",this.mySort=function(e,t){return e.checked&&!t.checked?-1:e.checked||t.checked?e.name<t.name?-1:t.name<e.name?1:0:1}}return e.prototype.ngOnInit=function(){var e,t,n=this;this.filtersData.forEach((function(e){e.checked=!1,e.formControl=new i.FormControl(!1),n.filtersMap[e.value]=e}));try{for(var o=a(this.appliedFilters),r=o.next();!r.done;r=o.next()){var l=r.value;this.filtersMap[l.value].checked=!0,this.filtersMap[l.value].formControl.setValue(!0)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}},e.prototype.resetFilters=function(){var e=this;this.filtersData.forEach((function(t){e.filtersMap[t.value].checked=!1})),this.filtersApplied.emit([])},e.prototype.applyFilters=function(){var e=Object.values(this.filtersMap).filter((function(e){return e.formControl.value})).map((function(e){return{name:e.name,value:e.value}}));this.filtersApplied.emit(e)},e.prototype.updateSearchValue=function(e){this.searchValue=e.target.value},e.prototype.getFiltersBasedOnSearchValue=function(){var e=this,t=Object.values(this.filtersMap);return(t=t.filter((function(t){return t.name.match(new RegExp(e.searchValue,"i"))}))).sort(this.mySort)},e}();g.decorators=[{type:t.Component,args:[{selector:"mis-table-filter",template:'<div id="main-container"\n #mainContainer\n [ngStyle]="containerStyles"\n>\n <div id="search-bar-container">\n <input (keyup)="updateSearchValue($event)" type="text" placeholder="Search">\n <svg id="search-icon" width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M1.21496 8.14563C1.21496 4.3179 4.33709 1.21165 8.19249 1.21165C12.0479 1.21165 15.17 4.3179 15.17 8.14563C15.17 9.69308 14.6598 11.1226 13.797 12.2767L12.3684 13.7013C11.2043 14.5668 9.75891 15.0796 8.19249 15.0796C4.33709 15.0796 1.21496 11.9734 1.21496 8.14563ZM12.9419 14.7835C11.602 15.7329 9.96259 16.2913 8.19249 16.2913C3.66965 16.2913 -0.00012207 12.6461 -0.00012207 8.14563C-0.00012207 3.64512 3.66965 0 8.19249 0C12.7153 0 16.3851 3.64512 16.3851 8.14563C16.3851 9.93713 15.8036 11.5931 14.8183 12.9375L16.836 14.4048C17.6704 14.912 18.7553 15.6543 17.2453 17.215C15.7352 18.7756 15.0098 17.6663 14.499 16.8364L12.9419 14.7835Z" fill="#6A737D"/>\n </svg>\n </div>\n <div id="filters-main-container">\n <div class="filters-wrapper">\n <div *ngFor="let filter of getFiltersBasedOnSearchValue()">\n <div class="filter">\n <mis-checkbox\n [formControl]="filter.formControl"\n ></mis-checkbox>\n <span class="filter-text">{{filter.name}}</span>\n </div>\n </div>\n <div id="no-results-container" *ngIf="getFiltersBasedOnSearchValue().length < 1">\n <span class="filter-text">No matches found</span>\n </div>\n </div>\n <div class="separator" style="margin: 16px 0px;"></div>\n <div id="buttons-container">\n <div style="width: calc(50% - 4px);">\n <mis-button\n [name]="\'Reset\'"\n [type]="\'Text\'"\n [width]="\'100%\'"\n (click)="resetFilters()"\n ></mis-button>\n </div>\n <div style="width: calc(50% - 4px);">\n <mis-button\n [name]="\'Apply\'"\n [type]="\'Solid\'"\n [width]="\'100%\'"\n (click)="applyFilters()"\n ></mis-button>\n </div>\n </div>\n </div>\n</div>\n',styles:["#main-container{position:absolute;background:#fff;z-index:2;right:calc(50% - 128px);width:256px;padding:16px;font-family:Lato,sans-serif;box-shadow:0 12px 24px rgba(0,0,0,.12),0 4px 8px rgba(0,0,0,.12);border-radius:8px}::-webkit-scrollbar{width:4px;height:4px}::-webkit-scrollbar-thumb{background:#9aa7b4;border-radius:2px}#search-bar-container{width:100%;position:relative;margin-bottom:8px}input{box-sizing:border-box;width:100%;padding:12px 12px 12px 42px;border:1px solid #000;border-radius:4px;height:44px;box-shadow:none;outline:none;font-style:normal;font-weight:400;font-size:15px;line-height:20px;letter-spacing:.1px;color:#181f33}input:focus{border:1px solid #0937b2}#search-icon{position:absolute;top:50%;transform:translateY(-50%);left:12px}.filters-wrapper{max-height:200px;overflow-y:auto}.filter{height:36px;display:flex;justify-content:flex-start;align-items:center}.filter-text{margin-left:8px;font-size:14px;line-height:20px;letter-spacing:.2px;color:#181f33;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}#no-results-container{height:36px;display:flex;justify-content:center;align-items:center}.separator{border:1px solid #e0e0e0}#buttons-container{display:flex;justify-content:space-between;align-items:center}"]}]}],g.ctorParameters=function(){return[]},g.propDecorators={filtersData:[{type:t.Input}],appliedFilters:[{type:t.Input}],containerStyles:[{type:t.Input}],filtersApplied:[{type:t.Output}],container:[{type:t.ViewChild,args:["mainContainer"]}]};var f=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[]}},e}();f.decorators=[{type:t.NgModule,args:[{declarations:[c,p,g,d],imports:[n.CommonModule,o.CheckboxModule,r.ButtonModule],exports:[c,p,g,d]}]}],e.CustomTableCellDirective=d,e.SubTableComponent=p,e.TableComponent=c,e.TableFilterComponent=g,e.TableModule=f,Object.defineProperty(e,"__esModule",{value:!0})}));
15
+ ***************************************************************************** */Object.create;function r(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}Object.create;var a=function(){function e(e){this.renderer=e,this.showFilter=!1,this.filterName="",this.filterData=[],this.filterContainerStyles={},this.appliedFilters={},this.filtersUpdated=new t.EventEmitter,this.selectedPage=1,this.pages=[],this.pageSelected=new t.EventEmitter,this.tableData=[],this.subTableData=[]}return e.prototype.ngOnInit=function(){var e=this;this.initializeFilters(),this.config.paginationConfig&&this.initializePagination(),void 0===this.config.canScrollHorizontally&&(this.config.canScrollHorizontally=!1),document.addEventListener("click",(function(t){if(e.filter){var n=!1;"checkmark"===t.target.className&&(n=!0),e.filter.container.nativeElement.contains(t.target)||n||e.toggleFilter(e.filterName)}}))},e.prototype.ngAfterViewInit=function(){if(this.config.paginationConfig){var e=this.table.nativeElement.offsetHeight;this.renderer.setStyle(this.table.nativeElement,"height",e-56+"px")}},e.prototype.initializeFilters=function(){var e,t,n,i;try{for(var o=r(this.config.colHeaderConfig),a=o.next();!a.done;a=o.next()){var l=a.value;if(l.filters){var s=[];try{for(var c=(n=void 0,r(l.filters)),d=c.next();!d.done;d=c.next()){var g=d.value;g.checked&&s.push({name:g.name,value:g.value})}}catch(e){n={error:e}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}s.length>0&&(this.appliedFilters[l.data]=s)}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}},e.prototype.toggleFilter=function(e){var t,n;if(this.showFilter)this.filterName="",this.filterData=[],this.showFilter=!1;else{this.filterName=e,this.showFilter=!0;var i=0,o=this.colHeaders.toArray().reverse();try{for(var a=r(o),l=a.next();!l.done;l=a.next()){var s=l.value;if(s.nativeElement.innerText===e)break;i+=s.nativeElement.offsetWidth}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}this.filterContainerStyles={top:"44px",right:i>0?i-116+"px":"12px"}}},e.prototype.updateAppliedFilters=function(e){0==e.length?delete this.appliedFilters[this.filterName]:this.appliedFilters[this.filterName]=e,this.filtersUpdated.emit(Object.assign({},this.appliedFilters)),this.toggleFilter(this.filterName)},e.prototype.initializePagination=function(){if(this.config.paginationConfig){var e=this.config.paginationConfig.noOfPages;if(e<=7)for(var t=1;t<=e;t++)this.pages.push(t);else this.pages=[1,2,3,4,0,e]}},e.prototype.updateSelectedPage=function(e){if(!(e<1||e>this.config.paginationConfig.noOfPages)){this.selectedPage=e;var t=this.config.paginationConfig.noOfPages;t>7&&(e-2<=1?this.pages=[1,2,3,4,0,t]:e-2>1&&e+2<t?this.pages=[1,0,e-1,e,e+1,0,t]:e+2>=t&&(this.pages=[1,0,t-3,t-2,t-1,t])),this.pageSelected.emit(this.selectedPage)}},e.prototype.getContainerHeight=function(){return this.config.height?this.config.height:""},e.prototype.getContainerWidth=function(){return this.config.width?this.config.width:""},e.prototype.getColHeadersRowHeight=function(){return this.config.colHeadersRowConfig&&this.config.colHeadersRowConfig.height?this.config.colHeadersRowConfig.height:"44px"},e.prototype.getColHeadersRowBorderTop=function(){var e,t;return this.config.colHeadersRowConfig&&(null===(e=this.config.colHeadersRowConfig.style)||void 0===e?void 0:e.borderTop)?null===(t=this.config.colHeadersRowConfig.style)||void 0===t?void 0:t.borderTop:""},e.prototype.getColHeadersRowBorderBottom=function(){var e,t;return this.config.colHeadersRowConfig&&(null===(e=this.config.colHeadersRowConfig.style)||void 0===e?void 0:e.borderBottom)?null===(t=this.config.colHeadersRowConfig.style)||void 0===t?void 0:t.borderBottom:"1px solid #E0E0E0"},e}();a.decorators=[{type:t.Component,args:[{selector:"mis-table",template:'<div\n [ngStyle]="{\n height: getContainerHeight(),\n width: getContainerWidth(),\n \'overflow-x\': config.canScrollHorizontally ? \'auto\' : \'unset\'\n }"\n id="main-container"\n>\n <mis-table-filter\n #filter\n (filtersApplied)="updateAppliedFilters($event)"\n *ngIf="showFilter"\n [containerStyles]="filterContainerStyles"\n [filtersData]="filterData"\n ></mis-table-filter>\n <div #table id="table-container" [ngClass]="{ \'scrollbar\': expandedIndex < 0, \'no-scrollbar\': !(expandedIndex < 0), \'scroll-horizontally\': config.canScrollHorizontally }">\n <div\n [ngStyle]="{\n \'min-height\': getColHeadersRowHeight(),\n \'border-top\': getColHeadersRowBorderTop(),\n \'border-bottom\': getColHeadersRowBorderBottom()\n }"\n id="col-headers-container"\n >\n <div\n #colHeader\n (click)="colHeader?.action ? colHeader?.action(colHeader) : null"\n *ngFor="let colHeader of config?.colHeaderConfig"\n class="col-header"\n [style]="colHeader?.style"\n [ngStyle]="{\n width: colHeader?.style?.width || \'\',\n cursor: colHeader.action ? \'pointer\' : \'default\',\n \'justify-content\': colHeader?.style?.justifyContent ? colHeader?.style?.justifyContent :\n colHeader.type === \'number\'\n ? \'flex-end\'\n : \'space-between\'\n }">\n <p *ngIf="colHeader?.type !== \'custom\'" class="col-header-text">\n {{ colHeader?.data || " " }}\n </p>\n <span\n (click)="\n filterData = colHeader.filters;\n toggleFilter(colHeader.data);\n $event.stopPropagation()\n "\n *ngIf="\n colHeader?.type !== \'custom\' &&\n colHeader?.filters &&\n colHeader?.filters?.length > 0\n "\n class="filter-icon"\n >\n <span *ngIf="appliedFilters[colHeader.data]?.length > 0" id="filter-active"></span>\n <svg\n fill="none"\n height="10"\n viewBox="0 0 13 10"\n width="13"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n clip-rule="evenodd"\n d="M4.97546 10H7.64213V8H4.97546V10ZM0.308472 0V2H12.3085V0H0.308472ZM2.30847 6H10.3085V4H2.30847V6Z"\n fill="#181F33"\n fill-rule="evenodd"\n />\n </svg>\n </span>\n <ng-template\n *ngIf="colHeader?.type === \'custom\'"\n [customComponent]="colHeader?.componentRef"\n [data]="colHeader.data"\n customTableCell\n ></ng-template>\n </div>\n </div>\n <div id="data-container">\n <div class="row-wrapper" *ngFor="let row of tableData; let i = index">\n <div class="t-row" [ngStyle]="{\'min-height\': (config?.rowConfig?.height) ? config.rowConfig.height: \'44px\'}">\n <div\n (click)="\n config?.colConfig[i]?.action\n ? config?.colConfig[i]?.action(col)\n : null\n "\n *ngFor="let col of row; let i = index"\n [ngStyle]="{\n width: config?.colConfig[i]?.style?.width || config?.colHeaderConfig[i]?.style?.width || \'\'\n }"\n class="t-col-container"\n >\n <div\n class="t-col"\n [style]="config.colConfig[i]?.style"\n [ngStyle]="{\n width: \'100%\',\n cursor: config.colConfig[i].action ? \'pointer\' : \'default\',\n \'justify-content\': config.colConfig[i]?.style?.justifyContent ? config.colConfig[i]?.style?.justifyContent :\n config.colConfig[i].type === \'number\'\n ? \'flex-end\'\n : \'space-between\'\n }">\n <p\n *ngIf="config.colConfig[i].type !== \'custom\'"\n [ngStyle]="{\n color: config?.colConfig[i]?.style?.color\n ? config?.colConfig[i]?.style?.color\n : \'\'\n }"\n class="t-col-text"\n >\n {{ col }}\n </p>\n <ng-template\n *ngIf="config.colConfig[i].type === \'custom\'"\n [customComponent]="config.colConfig[i].componentRef"\n [data]="col"\n customTableCell\n ></ng-template>\n </div>\n </div>\n </div>\n <div *ngIf="config?.canExpand && expandedIndex === i" class="sub-row">\n <ng-container *ngIf="subTableDataLoading">\n <div\n style="\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 16px;\n "\n >\n Loading...\n </div>\n </ng-container>\n <ng-container *ngIf="!subTableDataLoading && subTableData.length === 0">\n <div\n style="\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 16px;\n "\n >\n No Data Available...\n </div>\n </ng-container>\n <ng-container *ngIf="!subTableDataLoading && subTableData.length > 0">\n <sub-table [config]="subTableconfig" [tableData]="subTableData"></sub-table>\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n <div *ngIf="config?.paginationConfig" id="pagination-container">\n <p id="pagination-text">\n Showing\n {{ (selectedPage - 1) * config.paginationConfig.rowsPerPage + 1 }}-{{\n (selectedPage - 1) * config.paginationConfig.rowsPerPage +\n tableData.length\n }}\n of {{ config.paginationConfig.totalNoOfRows }} items\n </p>\n <div id="pages-container">\n <span (click)="updateSelectedPage(selectedPage - 1)" class="page">\n <svg\n fill="none"\n height="10"\n viewBox="0 0 7 10"\n width="7"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n clip-rule="evenodd"\n d="M0.857405 5.56295C0.855794 5.56139 0.854188 5.55982 0.852588 5.55824C0.695955 5.40408 0.617641 5.20203 0.617647 4.99998C0.617641 4.79793 0.695955 4.59588 0.852588 4.44172C0.854188 4.44014 0.855794 4.43858 0.857404 4.43702L5.13066 0.231231C5.44392 -0.0770771 5.9518 -0.0770771 6.26506 0.231231C6.57831 0.53954 6.57831 1.03941 6.26506 1.34772L2.5542 4.99998L6.26506 8.65225C6.57831 8.96055 6.57831 9.46042 6.26506 9.76873C5.9518 10.077 5.44392 10.077 5.13066 9.76873L0.857405 5.56295Z"\n fill="#181F33"\n fill-rule="evenodd"\n />\n </svg>\n </span>\n <div *ngFor="let pageNumber of pages">\n <span\n (click)="updateSelectedPage(pageNumber)"\n *ngIf="pageNumber != 0"\n [ngClass]="{ \'page-active\': pageNumber == selectedPage }"\n class="page"\n >{{ pageNumber }}</span\n >\n <span *ngIf="pageNumber == 0" class="page-seperator">\n <div style="display: flex">\n <span class="dot" style="margin-right: 4px"></span>\n <span class="dot" style="margin-right: 4px"></span>\n <span class="dot"></span>\n </div>\n </span>\n </div>\n <span (click)="updateSelectedPage(selectedPage + 1)" class="page">\n <svg\n fill="none"\n height="10"\n viewBox="0 0 7 10"\n width="7"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n clip-rule="evenodd"\n d="M6.1426 5.56295C6.14421 5.56139 6.14581 5.55982 6.14741 5.55824C6.30405 5.40408 6.38236 5.20203 6.38236 4.99998C6.38236 4.79793 6.30405 4.59588 6.14741 4.44172C6.14581 4.44014 6.14421 4.43858 6.1426 4.43702L1.86934 0.231231C1.55608 -0.0770771 1.0482 -0.0770771 0.734942 0.231231C0.421688 0.53954 0.421688 1.03941 0.734942 1.34772L4.4458 4.99998L0.734941 8.65225C0.421686 8.96055 0.421686 9.46042 0.734941 9.76873C1.0482 10.077 1.55608 10.077 1.86934 9.76873L6.1426 5.56295Z"\n fill="#181F33"\n fill-rule="evenodd"\n />\n </svg>\n </span>\n </div>\n </div>\n</div>\n',styles:["#main-container{font-family:Lato,sans-serif;position:relative}.no-scrollbar::-webkit-scrollbar{width:0}.scrollbar::-webkit-scrollbar{width:8px;height:8px}.scrollbar::-webkit-scrollbar-thumb{background:#9aa7b4}#table-container{height:inherit;overflow-y:auto}.scroll-horizontally{height:inherit;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;overflow-y:unset!important;overflow-x:visible}#col-headers-container{display:flex;align-items:center;position:-webkit-sticky;position:sticky;background-color:#fff;width:100%;z-index:1;min-height:44px;border-bottom:1px solid #e0e0e0;top:0;left:0;right:0}.col-header{padding:0 16px;height:100%}.col-header,.col-header-text{display:flex;align-items:center}.col-header-text{font-style:normal;font-weight:700;font-size:14px;line-height:20px;letter-spacing:.2px;margin:0}.filter-icon{margin-left:8px;padding:0 8px;position:relative;cursor:pointer}#filter-active{height:8px;width:8px;background:#16cbbc;border-radius:50%;position:absolute;top:4px;right:4px}.sub-row{height:auto;border-bottom:none}.loader ::ng-deep .mat-progress-spinner circle,.mat-spinner circle{stroke:#0937b2}.t-row{display:flex;align-items:center;min-height:44px;background-color:#fff;width:100%;border-bottom:1px solid #e0e0e0}.t-row:hover{background-color:#f1fdf8}.t-col-container{padding:0 16px;height:100%}.t-col{height:100%}.t-col,.t-col-text{display:flex;align-items:center}.t-col-text{font-style:normal;font-weight:400;font-size:14px;line-height:20px;letter-spacing:.2px;margin:0}#pagination-container{display:flex;justify-content:flex-end;align-items:center;height:56px}#pagination-text{font-style:normal;font-weight:400;font-size:12px;line-height:18px;letter-spacing:.4px;color:#6a737d;margin:0 96px 0 0}#pages-container{display:flex;margin-right:32px}.page{border:1px solid #6a737d;box-sizing:border-box;border-radius:4px;font-size:14px;line-height:20px;letter-spacing:.2px;color:#6a737d;cursor:pointer}.page,.page-seperator{display:flex;justify-content:center;align-items:center;width:32px;height:32px;margin-right:8px}.dot{height:3px;width:3px;border-radius:50%;background:#6a737d}.page-active{color:#0937b2;border:1px solid #0937b2}"]}]}],a.ctorParameters=function(){return[{type:t.Renderer2}]},a.propDecorators={filtersUpdated:[{type:t.Output}],filter:[{type:t.ViewChild,args:["filter"]}],colHeaders:[{type:t.ViewChildren,args:["colHeader"]}],pageSelected:[{type:t.Output}],config:[{type:t.Input,args:["tableConfig"]}],subTableconfig:[{type:t.Input}],tableDataLoading:[{type:t.Input}],expandedIndex:[{type:t.Input}],tableData:[{type:t.Input}],subTableData:[{type:t.Input}],subTableDataLoading:[{type:t.Input}],table:[{type:t.ViewChild,args:["table"]}]};var l=function(){function e(e,t){this.viewContainerRef=e,this.componentFactoryResolver=t}return Object.defineProperty(e.prototype,"customComponent",{set:function(e){this.component=e,this.createComponent()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{set:function(e){this.cellData=e,this.ref&&(this.ref.instance.data=this.cellData)},enumerable:!1,configurable:!0}),e.prototype.createComponent=function(){if(this.component){var e=this.componentFactoryResolver.resolveComponentFactory(this.component);this.viewContainerRef.clear(),this.ref=this.viewContainerRef.createComponent(e),this.setData()}},e.prototype.setData=function(){this.ref.instance.data=this.cellData},e}();l.decorators=[{type:t.Directive,args:[{selector:"[customTableCell]"}]}],l.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.ComponentFactoryResolver}]},l.propDecorators={customComponent:[{type:t.Input}],data:[{type:t.Input}]};var s=function(){function e(e){this.renderer=e,this.selectedPage=1,this.pages=[],this.tableData=[]}return e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){if(this.config.paginationConfig){var e=this.table.nativeElement.offsetHeight;this.renderer.setStyle(this.table.nativeElement,"height",e-56+"px")}},e.prototype.getContainerHeight=function(){return this.config.height?this.config.height:""},e.prototype.getContainerWidth=function(){return this.config.width?this.config.width:""},e.prototype.getColHeadersRowHeight=function(){return this.config.colHeadersRowConfig&&this.config.colHeadersRowConfig.height?this.config.colHeadersRowConfig.height:"44px"},e.prototype.getColHeadersRowBorderTop=function(){var e,t;return this.config.colHeadersRowConfig&&(null===(e=this.config.colHeadersRowConfig.style)||void 0===e?void 0:e.borderTop)?null===(t=this.config.colHeadersRowConfig.style)||void 0===t?void 0:t.borderTop:""},e.prototype.getColHeadersRowBorderBottom=function(){var e,t;return this.config.colHeadersRowConfig&&(null===(e=this.config.colHeadersRowConfig.style)||void 0===e?void 0:e.borderBottom)?null===(t=this.config.colHeadersRowConfig.style)||void 0===t?void 0:t.borderBottom:"1px solid #E0E0E0"},e}();s.decorators=[{type:t.Component,args:[{selector:"sub-table",template:'<div\n id="main-container"\n [ngStyle]="{\n height: getContainerHeight(),\n width: getContainerWidth()\n }"\n>\n <div id="table-container" #table>\n <div\n id="col-headers-container"\n *ngIf="!!config.showHeader"\n [ngStyle]="{\n height: getColHeadersRowHeight(),\n \'border-top\': getColHeadersRowBorderTop(),\n \'border-bottom\': getColHeadersRowBorderBottom()\n }"\n >\n <div\n class="col-header"\n (click)="colHeader?.action ? colHeader?.action(colHeader) : null"\n *ngFor="let colHeader of config?.colHeaderConfig"\n [style]="colHeader?.style"\n [ngStyle]="{\n width: colHeader?.style?.width || \'\',\n cursor: colHeader.action ? \'pointer\' : \'default\',\n \'justify-content\': colHeader?.style?.justifyContent ? colHeader?.style?.justifyContent :\n colHeader.type === \'number\'\n ? \'flex-end\'\n : \'space-between\'\n }">\n <p *ngIf="colHeader?.type !== \'custom\'" class="col-header-text">\n {{ colHeader?.data || " " }}\n </p>\n <ng-template\n *ngIf="colHeader?.type === \'custom\'"\n customTableCell\n [customComponent]="colHeader?.componentRef"\n [data]="colHeader.data"\n ></ng-template>\n </div>\n </div>\n <div>\n <cdk-virtual-scroll-viewport [minBufferPx]="config.dataContainerMaxHeight || \'400\'" [maxBufferPx]="config.dataContainerMaxHeight + 200 || \'600\'" [style.overflow]="\'overlay\'" [style.height]="config.dataContainerMaxHeight || \'400px\'" itemSize="50" id="data-container">\n <div\n class="row-wrapper"\n *cdkVirtualFor="let row of tableData; let i = index"\n [ngStyle]="{\n backgroundColor: i % 2 === 0 ? \'#FAFAFA\' : null\n }"\n >\n <div class="t-row">\n <div\n (click)="\n config?.colConfig[i]?.action\n ? config?.colConfig[i]?.action(col)\n : null\n "\n *ngFor="let col of row; let i = index"\n [ngStyle]="{\n width: config?.colConfig[i]?.style?.width || config?.colHeaderConfig[i]?.style?.width || \'\'\n }"\n class="t-col-container"\n >\n <div\n class="t-col"\n [style]="config.colConfig[i]?.style"\n [ngStyle]="{\n width: \'100%\',\n cursor: config.colConfig[i].action ? \'pointer\' : \'default\',\n \'justify-content\': config.colConfig[i]?.style?.justifyContent ? config.colConfig[i]?.style?.justifyContent :\n config.colConfig[i].type === \'number\'\n ? \'flex-end\'\n : \'space-between\'\n }">\n <p\n *ngIf="config.colConfig[i].type !== \'custom\'"\n [ngStyle]="{\n color: config?.colConfig[i]?.style?.color\n ? config?.colConfig[i]?.style?.color\n : \'\'\n }"\n class="t-col-text"\n >\n {{ col }}\n </p>\n <ng-template\n *ngIf="config.colConfig[i].type === \'custom\'"\n [customComponent]="config.colConfig[i].componentRef"\n [data]="col"\n customTableCell\n ></ng-template>\n </div>\n </div>\n </div>\n </div>\n </cdk-virtual-scroll-viewport>\n </div>\n </div>\n</div>\n',styles:["#main-container{font-family:Lato,sans-serif}#table-container{height:inherit}#col-headers-container{display:flex;background-color:#fff;height:36px;border-bottom:1px solid #e0e0e0}#data-container{overflow:scroll;width:100%}#data-container::-webkit-scrollbar{width:8px}#data-container::-webkit-scrollbar-thumb{background:#9aa7b4}.col-header{height:100%;width:160px;padding:0 16px}.col-header,.col-header-text{display:flex;align-items:center}.col-header-text{font-style:normal;font-weight:700;font-size:14px;line-height:20px;letter-spacing:.25px;margin:0}.t-row{display:flex;align-items:center;height:36px;width:100%;border-bottom:1px solid #e0e0e0}.t-row:hover{background-color:#f1fdf8}.t-col-container{padding:0 16px;height:100%}.t-col{height:100%}.t-col,.t-col-text{display:flex;align-items:center}.t-col-text{font-style:normal;font-weight:400;font-size:14px;line-height:20px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;letter-spacing:.2px;margin:0}"]}]}],s.ctorParameters=function(){return[{type:t.Renderer2}]},s.propDecorators={config:[{type:t.Input}],tableData:[{type:t.Input}],table:[{type:t.ViewChild,args:["table"]}]};var c=function(){function e(){this.filtersData=[],this.containerStyles={},this.filtersApplied=new t.EventEmitter,this.filtersMap={},this.searchValue="",this.mySort=function(e,t){return e.name<t.name?-1:t.name<e.name?1:0}}return e.prototype.ngOnInit=function(){var e=this;this.filtersData.forEach((function(t){e.filtersMap[t.value]=t}))},e.prototype.resetFilters=function(){var e=this;this.filtersData.forEach((function(t){e.filtersMap[t.value].checked=!1})),this.filtersApplied.emit([])},e.prototype.applyFilters=function(){var e=Object.values(this.filtersMap).filter((function(e){return e.checked})).map((function(e){return{name:e.name,value:e.value}}));this.filtersApplied.emit(e)},e.prototype.updateSearchValue=function(e){this.searchValue=e.target.value},e.prototype.updateFilter=function(e){this.filtersMap[e.name]&&(this.filtersMap[e.name].checked=!this.filtersMap[e.name].checked)},e.prototype.getFiltersBasedOnSearchValue=function(){var e=this,t=Object.values(this.filtersMap);return(t=t.filter((function(t){return t.name.match(new RegExp(e.searchValue,"i"))}))).sort(this.mySort)},e.prototype.getCheckedFilters=function(){var e=Object.values(this.filtersMap);return e=e.filter((function(e){return e.checked})).sort(this.mySort)},e}();c.decorators=[{type:t.Component,args:[{selector:"mis-table-filter",template:'<div id="main-container"\n #mainContainer\n [ngStyle]="containerStyles"\n>\n <div id="search-bar-container">\n <input (keyup)="updateSearchValue($event)" type="text" placeholder="Search">\n <svg id="search-icon" width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M1.21496 8.14563C1.21496 4.3179 4.33709 1.21165 8.19249 1.21165C12.0479 1.21165 15.17 4.3179 15.17 8.14563C15.17 9.69308 14.6598 11.1226 13.797 12.2767L12.3684 13.7013C11.2043 14.5668 9.75891 15.0796 8.19249 15.0796C4.33709 15.0796 1.21496 11.9734 1.21496 8.14563ZM12.9419 14.7835C11.602 15.7329 9.96259 16.2913 8.19249 16.2913C3.66965 16.2913 -0.00012207 12.6461 -0.00012207 8.14563C-0.00012207 3.64512 3.66965 0 8.19249 0C12.7153 0 16.3851 3.64512 16.3851 8.14563C16.3851 9.93713 15.8036 11.5931 14.8183 12.9375L16.836 14.4048C17.6704 14.912 18.7553 15.6543 17.2453 17.215C15.7352 18.7756 15.0098 17.6663 14.499 16.8364L12.9419 14.7835Z" fill="#6A737D"/>\n </svg>\n </div>\n <div id="filters-main-container">\n <div class="filters-sub-container">\n <div *ngFor="let filter of getCheckedFilters()">\n <div class="filter">\n <mis-checkbox\n [checked]="true"\n [name]="filter.value"\n (valueChange)="updateFilter($event)"\n ></mis-checkbox>\n <span class="filter-text">{{filter.name}}</span>\n </div>\n </div>\n </div>\n <div class="separator" style="margin: 16px 0px;" *ngIf="getCheckedFilters().length && (getCheckedFilters().length < filtersData.length)"></div>\n <div class="filters-sub-container">\n <div *ngFor="let filter of getFiltersBasedOnSearchValue()">\n <div class="filter" *ngIf="!filter.checked">\n <mis-checkbox\n [checked]="false"\n [name]="filter.value"\n (valueChange)="updateFilter($event)"\n ></mis-checkbox>\n <span class="filter-text">{{filter.name}}</span>\n </div>\n </div>\n <div id="no-results-container" *ngIf="getFiltersBasedOnSearchValue().length < 1">\n <span class="filter-text">No matches found</span>\n </div>\n </div>\n <div class="separator" style="margin: 16px 0px;"></div>\n <div id="buttons-container">\n <button id="reset-btn" style="margin-right: 8px;" (click)="resetFilters()">Reset</button>\n <button id="apply-btn" (click)="applyFilters()">Apply</button>\n </div>\n </div>\n</div>\n',styles:["#main-container{position:absolute;background:#fff;z-index:2;right:calc(50% - 128px);width:256px;padding:16px;font-family:Lato,sans-serif;box-shadow:0 12px 24px rgba(0,0,0,.12),0 4px 8px rgba(0,0,0,.12);border-radius:8px}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background:#9aa7b4}#search-bar-container{width:100%;position:relative;margin-bottom:8px}input{width:100%;padding:12px 12px 12px 42px;border:1px solid #000;border-radius:4px;height:48px;box-shadow:none;outline:none;font-style:normal;font-weight:400;font-size:15px;line-height:20px;letter-spacing:.1px;color:#181f33}input:focus{border:1px solid #0937b2}#search-icon{position:absolute;top:15px;left:12px}.filters-sub-container{max-height:144px;overflow-y:auto}.filter{height:36px;display:flex;justify-content:flex-start;align-items:center}.filter-text{font-size:14px;line-height:20px;letter-spacing:.2px;color:#181f33;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}#no-results-container{height:36px;display:flex;justify-content:center;align-items:center}.separator{border:1px solid #e0e0e0}#buttons-container{display:flex;justify-content:center;align-items:center}button{width:calc(50% - 4px);border:none;box-shadow:none;outline:none;font-size:16px;line-height:24px;text-align:center;letter-spacing:.2px;padding:10px 30px;background:none;border-radius:8px}#apply-btn{background:#0937b2;color:#fff}#reset-btn{background:#fff;color:#0937b2}"]}]}],c.ctorParameters=function(){return[]},c.propDecorators={filtersData:[{type:t.Input}],containerStyles:[{type:t.Input}],filtersApplied:[{type:t.Output}],container:[{type:t.ViewChild,args:["mainContainer"]}]};var d=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[]}},e}();d.decorators=[{type:t.NgModule,args:[{declarations:[a,s,c,l],imports:[n.CommonModule,i.CheckboxModule,o.ScrollingModule],exports:[a,s,c,l]}]}],e.CustomTableCellDirective=l,e.TableComponent=a,e.TableFilterComponent=c,e.TableModule=d,e.ɵa=s,Object.defineProperty(e,"__esModule",{value:!0})}));
16
16
  //# sourceMappingURL=mis-crystal-design-system-table.umd.min.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","../../../projects/mis-components/table/table.component.ts","../../../projects/mis-components/table/custom-table-cell.directive.ts","../../../projects/mis-components/table/sub-table/sub-table.component.ts","../../../projects/mis-components/table/filter/filter.component.ts","../../../projects/mis-components/table/table.module.ts"],"names":["Object","create","__values","o","s","Symbol","iterator","m","i","call","length","next","value","done","TypeError","__read","n","r","e","ar","push","error","__spread","arguments","concat","TableComponent","renderer","this","showFilter","filterName","filterData","filterContainerStyles","appliedFilters","filtersUpdated","EventEmitter","selectedPage","pages","pageSelected","tableData","subTableData","prototype","ngOnInit","_this","initializeFilters","config","paginationConfig","initializePagination","document","addEventListener","event","filter","isCheckBoxClicked","target","className","container","nativeElement","contains","toggleFilter","ngAfterViewInit","height","table","offsetHeight","setStyle","_e","colHeaderConfig","_f","colHeader","filters","_g","e_2","_h","checked","name","data","offSet","colHeadersReversed","colHeaders","toArray","reverse","colHeadersReversed_1","colHeadersReversed_1_1","header","innerText","offsetWidth","top","right","getAppliedFilters","updateAppliedFilters","emit","assign","len","noOfPages","updateSelectedPage","pageNumber","getContainerHeight","getContainerWidth","width","getColHeadersRowHeight","colHeadersRowConfig","getColHeadersRowBorderTop","_a","style","borderTop","_b","getColHeadersRowBorderBottom","borderBottom","Component","args","selector","template","Renderer2","Output","ViewChild","ViewChildren","Input","CustomTableCellDirective","viewContainerRef","componentFactoryResolver","defineProperty","component","createComponent","cellData","ref","instance","cmpFactoryResolver","resolveComponentFactory","clear","setData","Directive","ViewContainerRef","ComponentFactoryResolver","SubTableComponent","TableFilterComponent","filtersData","containerStyles","filtersApplied","filtersMap","searchValue","mySort","a","b","forEach","FormControl","_c","formControl","setValue","resetFilters","applyFilters","list","values","map","updateSearchValue","getFiltersBasedOnSearchValue","match","RegExp","sort","TableModule","forRoot","ngModule","providers","NgModule","declarations","imports","CommonModule","CheckboxModule","ButtonModule","exports"],"mappings":";;;;;;;;;;;;;;oFA2G6BA,OAAOC,gBAYpBC,EAASC,GACrB,IAAIC,EAAsB,mBAAXC,QAAyBA,OAAOC,SAAUC,EAAIH,GAAKD,EAAEC,GAAII,EAAI,EAC5E,GAAID,EAAG,OAAOA,EAAEE,KAAKN,GACrB,GAAIA,GAAyB,iBAAbA,EAAEO,O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,KAAA,CAAC,qCCKb,SAAAiD,YACSA,EAAAC,QAAP,WACE,MAAO,CAAEC,SAAUF,EAAaG,UAAW,8BArB9CC,EAAAA,SAAQrD,KAAA,CAAC,CACRsD,aAAc,CACZxI,EACA0G,EACAC,EACAjB,GAEF+C,QAAS,CACPC,EAAAA,aACAC,EAAAA,eACAC,EAAAA,cAEFC,QAAS,CACP7I,EACA0G,EACAC,EACAjB","sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","import {\n AfterViewInit,\n Component,\n ElementRef,\n EventEmitter,\n Input,\n OnInit,\n Output,\n QueryList,\n Renderer2,\n ViewChild,\n ViewChildren,\n} from '@angular/core';\nimport { Filter, TableFilterComponent } from './filter/filter.component';\n\n@Component({\n selector: 'mis-table',\n templateUrl: 'table.component.html',\n styleUrls: ['table.component.css'],\n})\nexport class TableComponent implements OnInit, AfterViewInit {\n // Filter related variables\n showFilter: boolean = false;\n filterName: string = '';\n filterData: Array<Filter> = [];\n filterContainerStyles: any = {};\n appliedFilters: { [key: string]: Array<{ name: string; value: string }> } =\n {};\n @Output() filtersUpdated = new EventEmitter<{\n [key: string]: Array<{ name: string; value: string }>;\n }>();\n\n @ViewChild('filter') filter: TableFilterComponent | any;\n @ViewChildren('colHeader') colHeaders: QueryList<ElementRef> | any;\n\n // Pagination related variables\n selectedPage = 1;\n pages: Array<number> = [];\n\n @Output() pageSelected = new EventEmitter<number>();\n\n @Input('tableConfig') config: TableConfig | any;\n @Input() subTableconfig: TableConfig | any;\n @Input() tableDataLoading: boolean | any;\n @Input() expandedIndex: number | any;\n @Input() tableData: Array<Array<any>> = [];\n @Input() subTableData: Array<Array<any>> = [];\n @Input() subTableDataLoading: boolean | any;\n @ViewChild('table') table: ElementRef | any;\n\n constructor(private renderer: Renderer2) {}\n\n ngOnInit(): void {\n this.initializeFilters()\n if (this.config.paginationConfig) {\n this.initializePagination();\n }\n document.addEventListener('click', (event) => {\n if (this.filter) {\n let isCheckBoxClicked = false;\n let targetElement = event.target as HTMLSpanElement;\n if (targetElement.className === 'checkmark') {\n isCheckBoxClicked = true;\n }\n let isClickInsideElement = this.filter.container.nativeElement.contains(\n event.target\n );\n if (!isClickInsideElement && !isCheckBoxClicked) {\n this.toggleFilter(this.filterName);\n }\n }\n });\n }\n ngAfterViewInit() {\n if (this.config.paginationConfig) {\n let height = this.table.nativeElement.offsetHeight;\n this.renderer.setStyle(\n this.table.nativeElement,\n 'height',\n (height - 56) + 'px'\n );\n }\n }\n\n // Filter related functions\n initializeFilters(){\n for(let colHeader of this.config.colHeaderConfig){\n if(colHeader.filters){\n let filters = []\n for(let filter of colHeader.filters){\n if(filter.checked){\n filters.push({\n name: filter.name,\n value: filter.value\n })\n }\n }\n if(filters.length > 0) this.appliedFilters[colHeader.data] = filters\n }\n }\n }\n toggleFilter(filterName: string, filterData?: any){\n if(!this.showFilter){\n this.filterName = filterName\n this.filterData = [...filterData]\n this.showFilter = true\n\n let offSet = 0;\n let colHeadersReversed = this.colHeaders.toArray().reverse();\n\n for (let header of colHeadersReversed) {\n if (header.nativeElement.innerText === filterName) break;\n offSet += header.nativeElement.offsetWidth;\n }\n this.filterContainerStyles = {\n top: '44px',\n right: offSet > 0 ? offSet - 116 + 'px' : '12px',\n };\n } else {\n this.filterName = '';\n this.filterData = [];\n this.showFilter = false;\n }\n }\n getAppliedFilters(filterName: string){\n if(this.appliedFilters[filterName])\n return [...this.appliedFilters[filterName]]\n return []\n }\n updateAppliedFilters(appliedFilters: Array<{ name: string; value: string }>) {\n if (appliedFilters.length == 0) {\n delete this.appliedFilters[this.filterName];\n } else {\n this.appliedFilters[this.filterName] = appliedFilters;\n }\n this.filtersUpdated.emit({ ...this.appliedFilters });\n this.toggleFilter(this.filterName);\n }\n\n // Pagination related functions\n initializePagination() {\n if (this.config.paginationConfig) {\n let len = this.config.paginationConfig.noOfPages;\n if (len <= 7) {\n for (let i = 1; i <= len; i++) {\n this.pages.push(i);\n }\n } else {\n this.pages = [1, 2, 3, 4, 0, len];\n }\n }\n }\n updateSelectedPage(pageNumber: number) {\n if (pageNumber < 1 || pageNumber > this.config.paginationConfig.noOfPages)\n return;\n this.selectedPage = pageNumber;\n let len = this.config.paginationConfig.noOfPages;\n if (len > 7) {\n if (pageNumber - 2 <= 1) {\n this.pages = [1, 2, 3, 4, 0, len];\n } else if (pageNumber - 2 > 1 && pageNumber + 2 < len) {\n this.pages = [1, 0, pageNumber - 1, pageNumber, pageNumber + 1, 0, len];\n } else if (pageNumber + 2 >= len) {\n this.pages = [1, 0, len - 3, len - 2, len - 1, len];\n }\n }\n this.pageSelected.emit(this.selectedPage);\n }\n\n // Main container related functions\n getContainerHeight() {\n if (this.config.height) return this.config.height;\n else return '';\n }\n getContainerWidth() {\n if (this.config.width) return this.config.width;\n else return '';\n }\n\n // Column Headers related functions\n getColHeadersRowHeight() {\n if (\n this.config.colHeadersRowConfig &&\n this.config.colHeadersRowConfig.height\n ) {\n return this.config.colHeadersRowConfig.height;\n } else return '44px';\n }\n getColHeadersRowBorderTop() {\n if (\n this.config.colHeadersRowConfig &&\n this.config.colHeadersRowConfig.style?.borderTop\n ) {\n return this.config.colHeadersRowConfig.style?.borderTop;\n } else return '';\n }\n getColHeadersRowBorderBottom() {\n if (\n this.config.colHeadersRowConfig &&\n this.config.colHeadersRowConfig.style?.borderBottom\n ) {\n return this.config.colHeadersRowConfig.style?.borderBottom;\n } else return '1px solid #E0E0E0';\n }\n}\n\nexport interface TableConfig {\n height: string | '100%';\n width: string | '100%';\n paginationConfig?: PaginationConfig | undefined | null;\n colHeadersRowConfig: RowConfig | undefined | null;\n rowConfig: RowConfig | undefined | null;\n colHeaderConfig: Array<ColHeaderConfig>;\n colConfig: Array<ColConfig>;\n canExpand?: boolean | false;\n}\n\nexport interface PaginationConfig {\n noOfPages: number;\n rowsPerPage: number;\n totalNoOfRows: number;\n}\nexport interface RowConfig {\n height?: string | undefined | null;\n style?: {};\n}\nexport interface ColHeaderConfig {\n type: 'text' | 'number' | 'custom';\n data: any;\n componentRef?: any;\n filters?: Array<Filter> | null;\n style?: {};\n action?: any;\n}\nexport interface ColConfig {\n type: 'text' | 'number' | 'custom';\n componentRef?: any;\n style?: {};\n action?: any;\n}\n","import {\n ComponentFactoryResolver,\n Directive,\n Input,\n OnChanges,\n ViewContainerRef,\n} from '@angular/core';\n\n@Directive({\n selector: '[customTableCell]',\n})\nexport class CustomTableCellDirective {\n private ref: any;\n private component: any;\n private cellData: any;\n\n @Input() set customComponent(value: any) {\n this.component = value;\n this.createComponent();\n }\n @Input() set data(value: any) {\n this.cellData = value;\n if (this.ref) this.ref.instance.data = this.cellData;\n }\n\n\n constructor(\n private viewContainerRef: ViewContainerRef,\n private componentFactoryResolver: ComponentFactoryResolver\n ) { }\n\n createComponent() {\n if (this.component) {\n const cmpFactoryResolver =\n this.componentFactoryResolver.resolveComponentFactory(this.component);\n this.viewContainerRef.clear();\n this.ref = <any>this.viewContainerRef.createComponent(cmpFactoryResolver);\n this.setData();\n }\n }\n setData() {\n this.ref.instance.data = this.cellData;\n }\n}\n","import {\n AfterViewInit,\n Component,\n ElementRef,\n Input,\n OnInit,\n Renderer2,\n ViewChild,\n} from '@angular/core';\n\n@Component({\n selector: 'sub-table',\n templateUrl: 'sub-table.component.html',\n styleUrls: ['sub-table.component.css'],\n})\nexport class SubTableComponent implements OnInit, AfterViewInit {\n selectedPage = 1;\n pages: Array<number> = [];\n\n @Input() config: SubTableConfig | any;\n @Input() tableData: Array<Array<any>> = [];\n @ViewChild('table') table: ElementRef | any;\n\n constructor(private renderer: Renderer2) { }\n\n ngOnInit() { }\n\n ngAfterViewInit() {\n if (this.config.paginationConfig) {\n let height = this.table.nativeElement.offsetHeight;\n this.renderer.setStyle(\n this.table.nativeElement,\n 'height',\n height - 56 + 'px'\n );\n }\n }\n\n // Main container related functions\n getContainerHeight() {\n if (this.config.height) return this.config.height;\n else return '';\n }\n getContainerWidth() {\n if (this.config.width) return this.config.width;\n else return '';\n }\n\n // Column Headers related functions\n getColHeadersRowHeight() {\n if (\n this.config.colHeadersRowConfig &&\n this.config.colHeadersRowConfig.height\n ) {\n return this.config.colHeadersRowConfig.height;\n } else return '44px';\n }\n getColHeadersRowBorderTop() {\n if (\n this.config.colHeadersRowConfig &&\n this.config.colHeadersRowConfig.style?.borderTop\n ) {\n return this.config.colHeadersRowConfig.style?.borderTop;\n } else return '';\n }\n getColHeadersRowBorderBottom() {\n if (\n this.config.colHeadersRowConfig &&\n this.config.colHeadersRowConfig.style?.borderBottom\n ) {\n return this.config.colHeadersRowConfig.style?.borderBottom;\n } else return '1px solid #E0E0E0';\n }\n}\n\nexport interface SubTableConfig {\n height: string | '100%';\n width: string | '100%';\n showHeader?: boolean | undefined;\n rowConfig: SubTableRowConfig | undefined | null;\n colHeaderConfig?: Array<SubTableColHeaderConfig>;\n colConfig: Array<SubTableColConfig>;\n}\n\nexport interface SubTableRowConfig {\n height?: string | undefined | null;\n style?: {};\n}\nexport interface SubTableColHeaderConfig {\n type: 'text' | 'number' | 'custom';\n data: any;\n componentRef?: any;\n style?: {};\n action?: any;\n}\nexport interface SubTableColConfig {\n type: 'text' | 'number' | 'custom';\n componentRef?: any;\n style?: {};\n action?: any;\n}\n","import {\n Component,\n ElementRef,\n EventEmitter,\n Input,\n OnInit,\n Output,\n ViewChild,\n} from '@angular/core';\nimport {FormControl} from '@angular/forms';\n\n@Component({\n selector: 'mis-table-filter',\n templateUrl: 'filter.component.html',\n styleUrls: ['filter.component.css'],\n})\nexport class TableFilterComponent implements OnInit {\n @Input() filtersData: Array<Filter> = [];\n @Input() appliedFilters: Array<{name: string, value: string}>\n @Input() containerStyles: any = {};\n\n @Output() filtersApplied = new EventEmitter<any>();\n\n @ViewChild('mainContainer') container: ElementRef | undefined;\n\n filtersMap: any = {};\n searchValue: string = '';\n\n constructor() {}\n\n ngOnInit(): void {\n this.filtersData.forEach((filter) => {\n filter.checked = false\n filter['formControl'] = new FormControl(false)\n this.filtersMap[filter.value] = filter;\n });\n for(let filter of this.appliedFilters){\n this.filtersMap[filter.value].checked = true\n this.filtersMap[filter.value].formControl.setValue(true)\n }\n }\n resetFilters() {\n this.filtersData.forEach((filter) => {\n this.filtersMap[filter.value].checked = false;\n });\n this.filtersApplied.emit([]);\n }\n applyFilters() {\n let list = Object.values(this.filtersMap)\n .filter((filter: Filter | any) => filter.formControl.value)\n .map((filter: Filter | any) => {\n return {\n name: filter.name,\n value: filter.value,\n };\n });\n this.filtersApplied.emit(list);\n }\n updateSearchValue(event: any) {\n this.searchValue = event.target.value;\n }\n getFiltersBasedOnSearchValue() {\n let list = Object.values(this.filtersMap);\n list = list.filter((filter: Filter | any) => {\n return filter.name.match(new RegExp(this.searchValue, 'i'));\n });\n return list.sort(this.mySort);\n }\n mySort = (a: Filter | any, b: Filter | any) => {\n if(a.checked && !b.checked) return -1\n else if(!a.checked && !b.checked) return 1;\n else {\n if (a.name < b.name) return -1;\n else if (b.name < a.name) return 1;\n else return 0;\n }\n };\n}\nexport interface Filter {\n name: string;\n value: string;\n checked: boolean;\n}\n","import { ModuleWithProviders, NgModule } from \"@angular/core\";\nimport { TableComponent } from \"./table.component\";\nimport { CustomTableCellDirective } from \"./custom-table-cell.directive\";\nimport { SubTableComponent } from './sub-table/sub-table.component';\nimport { CommonModule } from \"@angular/common\";\nimport { TableFilterComponent } from \"./filter/filter.component\";\nimport { CheckboxModule } from 'mis-crystal-design-system/checkbox';\nimport { ButtonModule } from 'mis-crystal-design-system/button';\n\n@NgModule({\n declarations: [\n TableComponent,\n SubTableComponent,\n TableFilterComponent,\n CustomTableCellDirective,\n ],\n imports: [\n CommonModule,\n CheckboxModule,\n ButtonModule\n ],\n exports: [\n TableComponent,\n SubTableComponent,\n TableFilterComponent,\n CustomTableCellDirective\n ]\n})\nexport class TableModule {\n static forRoot(): ModuleWithProviders<TableModule> {\n return { ngModule: TableModule, providers: [] };\n }\n}\n"]}
1
+ {"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","../../../projects/mis-components/table/table.component.ts","../../../projects/mis-components/table/custom-table-cell.directive.ts","../../../projects/mis-components/table/sub-table/sub-table.component.ts","../../../projects/mis-components/table/filter/filter.component.ts","../../../projects/mis-components/table/table.module.ts"],"names":["Object","create","__values","o","s","Symbol","iterator","m","i","call","length","next","value","done","TypeError","TableComponent","renderer","this","showFilter","filterName","filterData","filterContainerStyles","appliedFilters","filtersUpdated","EventEmitter","selectedPage","pages","pageSelected","tableData","subTableData","prototype","ngOnInit","_this","initializeFilters","config","paginationConfig","initializePagination","undefined","canScrollHorizontally","document","addEventListener","event","filter","isCheckBoxClicked","target","className","container","nativeElement","contains","toggleFilter","ngAfterViewInit","height","table","offsetHeight","setStyle","_e","colHeaderConfig","_f","colHeader","filters","_g","e_2","_h","checked","push","name","data","offSet","colHeadersReversed","colHeaders","toArray","reverse","colHeadersReversed_1","colHeadersReversed_1_1","header","innerText","offsetWidth","top","right","updateAppliedFilters","emit","assign","len","noOfPages","updateSelectedPage","pageNumber","getContainerHeight","getContainerWidth","width","getColHeadersRowHeight","colHeadersRowConfig","getColHeadersRowBorderTop","_a","style","borderTop","_b","getColHeadersRowBorderBottom","borderBottom","Component","args","selector","template","Renderer2","Output","ViewChild","ViewChildren","Input","CustomTableCellDirective","viewContainerRef","componentFactoryResolver","defineProperty","component","createComponent","cellData","ref","instance","cmpFactoryResolver","resolveComponentFactory","clear","setData","Directive","ViewContainerRef","ComponentFactoryResolver","SubTableComponent","TableFilterComponent","filtersData","containerStyles","filtersApplied","filtersMap","searchValue","mySort","a","b","forEach","resetFilters","applyFilters","list","values","map","updateSearchValue","updateFilter","getFiltersBasedOnSearchValue","match","RegExp","sort","getCheckedFilters","TableModule","forRoot","ngModule","providers","NgModule","declarations","imports","CommonModule","CheckboxModule","ScrollingModule","exports"],"mappings":";;;;;;;;;;;;;;oFA2G6BA,OAAOC,gBAYpBC,EAASC,GACrB,IAAIC,EAAsB,mBAAXC,QAAyBA,OAAOC,SAAUC,EAAIH,GAAKD,EAAEC,GAAII,EAAI,EAC5E,GAAID,EAAG,OAAOA,EAAEE,KAAKN,GACrB,GAAIA,GAAyB,iBAAbA,EAAEO,OAAqB,MAAO,CAC1CC,KAAM,WAEF,OADIR,GAAKK,GAAKL,EAAEO,SAAQP,OAAI,GACrB,CAAES,MAAOT,GAAKA,EAAEK,KAAMK,MAAOV,KAG5C,MAAM,IAAIW,UAAUV,EAAI,0BAA4B,mCAiF/BJ,OAAOC,wBC/J9B,SAAAc,EAAoBC,GAAAC,KAAAD,SAAAA,EA5BpBC,KAAAC,YAAsB,EACtBD,KAAAE,WAAqB,GACrBF,KAAAG,WAA4B,GAC5BH,KAAAI,sBAA6B,GAC7BJ,KAAAK,eACE,GACQL,KAAAM,eAAiB,IAAIC,EAAAA,aAQ/BP,KAAAQ,aAAe,EACfR,KAAAS,MAAuB,GAEbT,KAAAU,aAAe,IAAIH,EAAAA,aAMpBP,KAAAW,UAA+B,GAC/BX,KAAAY,aAA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,UAASL,KAAA,CAAC,qCCOb,SAAA+C,YACSA,EAAAC,QAAP,WACE,MAAO,CAAEC,SAAUF,EAAaG,UAAW,8BArB9CC,EAAAA,SAAQnD,KAAA,CAAC,CACRoD,aAAc,CACZxI,EACA4G,EACAC,EACAjB,GAEF6C,QAAS,CACPC,EAAAA,aACAC,EAAAA,eACAC,EAAAA,iBAEFC,QAAS,CACP7I,EACA4G,EACAC,EACAjB","sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","import {\n AfterViewInit,\n Component,\n ElementRef,\n EventEmitter,\n Input,\n OnInit,\n Output,\n QueryList,\n Renderer2,\n ViewChild,\n ViewChildren,\n} from '@angular/core';\nimport { Filter, TableFilterComponent } from './filter/filter.component';\n\n@Component({\n selector: 'mis-table',\n templateUrl: 'table.component.html',\n styleUrls: ['table.component.css'],\n})\nexport class TableComponent implements OnInit, AfterViewInit {\n // Filter related variables\n showFilter: boolean = false;\n filterName: string = '';\n filterData: Array<Filter> = [];\n filterContainerStyles: any = {};\n appliedFilters: { [key: string]: Array<{ name: string; value: string }> } =\n {};\n @Output() filtersUpdated = new EventEmitter<{\n [key: string]: Array<{ name: string; value: string }>;\n }>();\n\n @ViewChild('filter') filter: TableFilterComponent | any;\n @ViewChildren('colHeader') colHeaders: QueryList<ElementRef> | any;\n\n // Pagination related variables\n selectedPage = 1;\n pages: Array<number> = [];\n\n @Output() pageSelected = new EventEmitter<number>();\n\n @Input('tableConfig') config: TableConfig | any;\n @Input() subTableconfig: TableConfig | any;\n @Input() tableDataLoading: boolean | any;\n @Input() expandedIndex: number | any;\n @Input() tableData: Array<Array<any>> = [];\n @Input() subTableData: Array<Array<any>> = [];\n @Input() subTableDataLoading: boolean | any;\n @ViewChild('table') table: ElementRef | any;\n\n constructor(private renderer: Renderer2) {}\n\n ngOnInit(): void {\n this.initializeFilters()\n if (this.config.paginationConfig) {\n this.initializePagination();\n }\n if (this.config.canScrollHorizontally === undefined) {\n this.config.canScrollHorizontally = false;\n }\n document.addEventListener('click', (event) => {\n if (this.filter) {\n let isCheckBoxClicked = false;\n let targetElement = event.target as HTMLSpanElement;\n if (targetElement.className === 'checkmark') {\n isCheckBoxClicked = true;\n }\n let isClickInsideElement = this.filter.container.nativeElement.contains(\n event.target\n );\n if (!isClickInsideElement && !isCheckBoxClicked) {\n this.toggleFilter(this.filterName);\n }\n }\n });\n }\n ngAfterViewInit() {\n if (this.config.paginationConfig) {\n let height = this.table.nativeElement.offsetHeight;\n this.renderer.setStyle(\n this.table.nativeElement,\n 'height',\n (height - 56) + 'px'\n );\n }\n }\n\n // Filter related functions\n initializeFilters(){\n for(let colHeader of this.config.colHeaderConfig){\n if(colHeader.filters){\n let filters = []\n for(let filter of colHeader.filters){\n if(filter.checked){\n filters.push({\n name: filter.name,\n value: filter.value\n })\n }\n }\n if(filters.length > 0) this.appliedFilters[colHeader.data] = filters\n }\n }\n }\n toggleFilter(filterName: string){\n if(!this.showFilter){\n this.filterName = filterName\n this.showFilter = true\n\n let offSet = 0;\n let colHeadersReversed = this.colHeaders.toArray().reverse();\n\n for (let header of colHeadersReversed) {\n if (header.nativeElement.innerText === filterName) break;\n offSet += header.nativeElement.offsetWidth;\n }\n this.filterContainerStyles = {\n top: '44px',\n right: offSet > 0 ? offSet - 116 + 'px' : '12px',\n };\n } else {\n this.filterName = '';\n this.filterData = [];\n this.showFilter = false;\n }\n }\n updateAppliedFilters(appliedFilters: Array<{ name: string; value: string }>) {\n if (appliedFilters.length == 0) {\n delete this.appliedFilters[this.filterName];\n } else {\n this.appliedFilters[this.filterName] = appliedFilters;\n }\n this.filtersUpdated.emit({ ...this.appliedFilters });\n this.toggleFilter(this.filterName);\n }\n\n // Pagination related functions\n initializePagination() {\n if (this.config.paginationConfig) {\n let len = this.config.paginationConfig.noOfPages;\n if (len <= 7) {\n for (let i = 1; i <= len; i++) {\n this.pages.push(i);\n }\n } else {\n this.pages = [1, 2, 3, 4, 0, len];\n }\n }\n }\n updateSelectedPage(pageNumber: number) {\n if (pageNumber < 1 || pageNumber > this.config.paginationConfig.noOfPages)\n return;\n this.selectedPage = pageNumber;\n let len = this.config.paginationConfig.noOfPages;\n if (len > 7) {\n if (pageNumber - 2 <= 1) {\n this.pages = [1, 2, 3, 4, 0, len];\n } else if (pageNumber - 2 > 1 && pageNumber + 2 < len) {\n this.pages = [1, 0, pageNumber - 1, pageNumber, pageNumber + 1, 0, len];\n } else if (pageNumber + 2 >= len) {\n this.pages = [1, 0, len - 3, len - 2, len - 1, len];\n }\n }\n this.pageSelected.emit(this.selectedPage);\n }\n\n // Main container related functions\n getContainerHeight() {\n if (this.config.height) return this.config.height;\n else return '';\n }\n getContainerWidth() {\n if (this.config.width) return this.config.width;\n else return '';\n }\n\n // Column Headers related functions\n getColHeadersRowHeight() {\n if (\n this.config.colHeadersRowConfig &&\n this.config.colHeadersRowConfig.height\n ) {\n return this.config.colHeadersRowConfig.height;\n } else return '44px';\n }\n getColHeadersRowBorderTop() {\n if (\n this.config.colHeadersRowConfig &&\n this.config.colHeadersRowConfig.style?.borderTop\n ) {\n return this.config.colHeadersRowConfig.style?.borderTop;\n } else return '';\n }\n getColHeadersRowBorderBottom() {\n if (\n this.config.colHeadersRowConfig &&\n this.config.colHeadersRowConfig.style?.borderBottom\n ) {\n return this.config.colHeadersRowConfig.style?.borderBottom;\n } else return '1px solid #E0E0E0';\n }\n}\n\nexport interface TableConfig {\n height: string | '100%';\n width: string | '100%';\n paginationConfig?: PaginationConfig | undefined | null;\n colHeadersRowConfig: RowConfig | undefined | null;\n rowConfig: RowConfig | undefined | null;\n colHeaderConfig: Array<ColHeaderConfig>;\n colConfig: Array<ColConfig>;\n canExpand?: boolean | false;\n canScrollHorizontally?: boolean | false;\n}\nexport interface PaginationConfig {\n noOfPages: number;\n rowsPerPage: number;\n totalNoOfRows: number;\n}\nexport interface RowConfig {\n height?: string | undefined | null;\n style?: {};\n}\nexport interface ColHeaderConfig {\n type: 'text' | 'number' | 'custom';\n data: any;\n componentRef?: any;\n filters?: Array<Filter> | null;\n style?: {};\n action?: any;\n}\nexport interface ColConfig {\n type: 'text' | 'number' | 'custom';\n componentRef?: any;\n style?: {};\n action?: any;\n}\n","import {\n ComponentFactoryResolver,\n Directive,\n Input,\n ViewContainerRef,\n} from '@angular/core';\n\n@Directive({\n selector: '[customTableCell]',\n})\nexport class CustomTableCellDirective {\n private ref: any;\n private component: any;\n private cellData: any;\n\n @Input() set customComponent(value: any) {\n this.component = value;\n this.createComponent();\n }\n @Input() set data(value: any) {\n this.cellData = value;\n if (this.ref) { this.ref.instance.data = this.cellData; }\n }\n\n\n constructor(\n private viewContainerRef: ViewContainerRef,\n private componentFactoryResolver: ComponentFactoryResolver\n ) { }\n\n createComponent() {\n if (this.component) {\n const cmpFactoryResolver =\n this.componentFactoryResolver.resolveComponentFactory(this.component);\n this.viewContainerRef.clear();\n this.ref = this.viewContainerRef.createComponent(cmpFactoryResolver);\n this.setData();\n }\n }\n setData() {\n this.ref.instance.data = this.cellData;\n }\n}\n","import {\n AfterViewInit,\n Component,\n ElementRef,\n Input,\n OnInit,\n Renderer2,\n ViewChild,\n} from '@angular/core';\n\n@Component({\n selector: 'sub-table',\n templateUrl: 'sub-table.component.html',\n styleUrls: ['sub-table.component.css'],\n})\nexport class SubTableComponent implements OnInit, AfterViewInit {\n selectedPage = 1;\n pages: Array<number> = [];\n\n @Input() config: SubTableConfig | any;\n @Input() tableData: Array<Array<any>> = [];\n @ViewChild('table') table: ElementRef | any;\n constructor(private renderer: Renderer2) { }\n\n ngOnInit() { }\n\n ngAfterViewInit() {\n if (this.config.paginationConfig) {\n let height = this.table.nativeElement.offsetHeight;\n this.renderer.setStyle(\n this.table.nativeElement,\n 'height',\n height - 56 + 'px'\n );\n }\n }\n\n // Main container related functions\n getContainerHeight() {\n if (this.config.height) return this.config.height;\n else return '';\n }\n getContainerWidth() {\n if (this.config.width) return this.config.width;\n else return '';\n }\n\n // Column Headers related functions\n getColHeadersRowHeight() {\n if (\n this.config.colHeadersRowConfig &&\n this.config.colHeadersRowConfig.height\n ) {\n return this.config.colHeadersRowConfig.height;\n } else return '44px';\n }\n getColHeadersRowBorderTop() {\n if (\n this.config.colHeadersRowConfig &&\n this.config.colHeadersRowConfig.style?.borderTop\n ) {\n return this.config.colHeadersRowConfig.style?.borderTop;\n } else return '';\n }\n getColHeadersRowBorderBottom() {\n if (\n this.config.colHeadersRowConfig &&\n this.config.colHeadersRowConfig.style?.borderBottom\n ) {\n return this.config.colHeadersRowConfig.style?.borderBottom;\n } else return '1px solid #E0E0E0';\n }\n}\n\nexport interface SubTableConfig {\n height: string | '100%';\n width: string | '100%';\n dataContainerMaxHeight: string | '400px';\n showHeader?: boolean | undefined;\n rowConfig: SubTableRowConfig | undefined | null;\n colHeaderConfig?: Array<SubTableColHeaderConfig>;\n colConfig: Array<SubTableColConfig>;\n}\n\nexport interface SubTableRowConfig {\n height?: string | undefined | null;\n style?: {};\n}\nexport interface SubTableColHeaderConfig {\n type: 'text' | 'number' | 'custom';\n data: any;\n componentRef?: any;\n style?: {};\n action?: any;\n}\nexport interface SubTableColConfig {\n type: 'text' | 'number' | 'custom';\n componentRef?: any;\n style?: {};\n action?: any;\n}\n","import {\n Component,\n ElementRef,\n EventEmitter,\n Input,\n OnInit,\n Output,\n ViewChild,\n} from '@angular/core';\n\n@Component({\n selector: 'mis-table-filter',\n templateUrl: 'filter.component.html',\n styleUrls: ['filter.component.css'],\n})\nexport class TableFilterComponent implements OnInit {\n @Input() filtersData: Array<Filter> = [];\n @Input() containerStyles: any = {};\n\n @Output() filtersApplied = new EventEmitter<any>();\n\n @ViewChild('mainContainer') container: ElementRef | undefined;\n\n filtersMap: any = {};\n searchValue: string = '';\n\n constructor() { }\n\n ngOnInit(): void {\n this.filtersData.forEach((filter) => {\n this.filtersMap[filter.value] = filter;\n });\n }\n resetFilters() {\n this.filtersData.forEach((filter) => {\n this.filtersMap[filter.value].checked = false;\n });\n this.filtersApplied.emit([]);\n }\n applyFilters() {\n let list = Object.values(this.filtersMap)\n .filter((filter: Filter | any) => filter.checked)\n .map((filter: Filter | any) => {\n return {\n name: filter.name,\n value: filter.value,\n };\n });\n this.filtersApplied.emit(list);\n }\n updateSearchValue(event: any) {\n this.searchValue = event.target.value;\n }\n updateFilter(data: any) {\n if (this.filtersMap[data.name]) {\n this.filtersMap[data.name].checked = !this.filtersMap[data.name].checked;\n }\n }\n getFiltersBasedOnSearchValue(): Filter[] | any {\n let list = Object.values(this.filtersMap);\n list = list.filter((filter: Filter | any) => {\n return filter.name.match(new RegExp(this.searchValue, 'i'));\n });\n return list.sort(this.mySort);\n }\n getCheckedFilters(): Filter[] | any {\n let list = Object.values(this.filtersMap);\n list = list\n .filter((filter: Filter | any) => filter.checked)\n .sort(this.mySort);\n return list;\n }\n mySort = (a: Filter | any, b: Filter | any) => {\n if (a.name < b.name) return -1;\n else if (b.name < a.name) return 1;\n else return 0;\n };\n}\nexport interface Filter {\n name: string;\n value: string;\n checked: boolean;\n}\n","import { ModuleWithProviders, NgModule } from \"@angular/core\";\nimport { TableComponent } from \"./table.component\";\nimport { CustomTableCellDirective } from \"./custom-table-cell.directive\";\nimport { SubTableComponent } from './sub-table/sub-table.component';\nimport { CommonModule } from \"@angular/common\";\nimport { TableFilterComponent } from \"./filter/filter.component\";\nimport { CheckboxModule } from 'mis-crystal-design-system/checkbox';\nimport { ScrollingModule } from '@angular/cdk/scrolling';\n\n@NgModule({\n declarations: [\n TableComponent,\n SubTableComponent,\n TableFilterComponent,\n CustomTableCellDirective,\n ],\n imports: [\n CommonModule,\n CheckboxModule,\n ScrollingModule\n ],\n exports: [\n TableComponent,\n SubTableComponent,\n TableFilterComponent,\n CustomTableCellDirective\n ]\n})\nexport class TableModule {\n static forRoot(): ModuleWithProviders<TableModule> {\n return { ngModule: TableModule, providers: [] };\n }\n}\n"]}
@@ -0,0 +1,12 @@
1
+ import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
2
+ export declare class ButtonDirective implements AfterViewInit {
3
+ private el;
4
+ private renderer;
5
+ type: 'primary' | 'outline' | 'none';
6
+ size: 'sm' | 'md' | 'lg';
7
+ elementClass: string;
8
+ constructor(el: ElementRef, renderer: Renderer2);
9
+ ngAfterViewInit(): void;
10
+ private bindTypeClass;
11
+ private bindSizeClass;
12
+ }
@@ -0,0 +1,69 @@
1
+ .mis-btn {
2
+ background: none;
3
+ outline: none;
4
+ border: none;
5
+ cursor: pointer;
6
+ border-radius: 4px;
7
+ vertical-align: middle;
8
+ text-align: center;
9
+ box-sizing: border-box;
10
+ display: flex;
11
+ align-items: center;
12
+ text-decoration: none;
13
+ justify-content: center;
14
+
15
+ span,
16
+ img {
17
+ margin-right: 8px;
18
+ }
19
+
20
+ padding: 10px 16px;
21
+ font-size: 16px;
22
+ line-height: 24px;
23
+ &.mis-btn-lg {
24
+ padding: 16px;
25
+ font-weight: bold;
26
+ }
27
+ &.mis-btn-sm {
28
+ padding: 6px 12px;
29
+ font-size: 14px;
30
+ line-height: 20px;
31
+ }
32
+
33
+ background-color: transparent;
34
+ color: #0937b2;
35
+ &:hover {
36
+ background-color: #f0f3fa;
37
+ }
38
+ &:focus {
39
+ background-color: #dae1f3;
40
+ }
41
+ &:disabled {
42
+ color: #929dab;
43
+ pointer-events: none;
44
+ }
45
+
46
+ &.mis-outline {
47
+ border: 1px solid #0937b2;
48
+
49
+ &:disabled {
50
+ color: #929dab;
51
+ border-color: #929dab;
52
+ }
53
+ }
54
+
55
+ &.mis-primary {
56
+ background-color: #0937b2;
57
+ color: #ffffff;
58
+ &:hover {
59
+ background-color: #062a99;
60
+ }
61
+ &:focus {
62
+ background-color: #041f80;
63
+ }
64
+ &:disabled {
65
+ background-color: #e0e0e0;
66
+ color: #929dab;
67
+ }
68
+ }
69
+ }
@@ -2,3 +2,4 @@
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
4
  export * from './index';
5
+ export { ButtonDirective as ɵa } from './button.directive';
@@ -1 +1 @@
1
- {"__symbolic":"module","version":4,"metadata":{"ButtonComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"mis-button","template":"<button\n (click)=\"onClick($event);\"\n [disabled]=\"disabled\"\n [ngClass]=\"{\n 'solid': type === 'Solid',\n 'outline': type === 'Outline',\n 'text': type === 'Text',\n 'large': size === 'Large',\n 'medium': size === 'Medium',\n 'small': size === 'Small',\n 'large-mobile': size === 'Large-M',\n 'small-mobile': size === 'Small-M'\n }\"\n [ngStyle]=\"{\n 'border-top-left-radius': disableLeftBorderRadius ? '0px': '',\n 'border-bottom-left-radius': disableLeftBorderRadius ? '0px': '',\n 'border-top-right-radius': disableRightBorderRadius ? '0px': '',\n 'border-bottom-right-radius': disableRightBorderRadius ? '0px': '',\n 'width': width\n }\"\n>\n <span id=\"left-icon\" *ngIf=\"showIcon && iconPosition === 'Left'\">\n <img [src]=\"iconUrl\" alt=\"\">\n </span>\n {{name}}\n <span id=\"right-icon\" *ngIf=\"showIcon && iconPosition === 'Right'\">\n <img [src]=\"iconUrl\" alt=\"\">\n </span>\n</button>\n","styles":["button{font-family:Lato,sans-serif!important;border:none;padding:0;margin:0;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#181f33;background-color:#fff}.solid{color:#fff;background:#0937b2}.solid:hover:enabled{background:#062a99}.solid:active:enabled{background:#041f80}.solid:disabled{color:#929dab;background:#f5f5f5}.outline{border:1px solid #0937b2;color:#0937b2;background:#fff}.outline:hover:enabled{background:#f0f3fa}.outline:active:enabled{background:#dae1f3}.outline:disabled{color:#929dab;border:1px solid #929dab}.text{color:#181f33;background:#fff}.text:hover:enabled{background:#f0f3fa}.text:active:enabled{background:#dae1f3}.text:disabled{color:#929dab}.large{height:56px;padding:16px;border-radius:10px;font-weight:700;letter-spacing:.5px}.large,.medium{font-style:normal;font-size:16px;line-height:24px}.medium{height:44px;padding:10px 16px;border-radius:8px;font-weight:400;letter-spacing:.2px}.small{height:32px;padding:6px 16px;border-radius:6px;font-weight:400;letter-spacing:.25px}.large-mobile,.small{font-style:normal;font-size:14px;line-height:20px}.large-mobile{height:44px;padding:12px}.large-mobile,.small-mobile{border-radius:8px;font-weight:700;letter-spacing:.1px}.small-mobile{height:32px;padding:6px 12px;font-style:normal;font-size:14px;line-height:20px}span{display:flex;justify-content:center;align-items:center}#left-icon{margin-right:8px}#right-icon{margin-left:8px}"]}]}],"members":{"name":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":9,"character":3}}]}],"type":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}],"size":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":11,"character":3}}]}],"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":12,"character":3}}]}],"showIcon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":14,"character":3}}]}],"iconUrl":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":15,"character":3}}]}],"iconPosition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":16,"character":3}}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":18,"character":3}}]}],"disableLeftBorderRadius":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":19,"character":3}}]}],"disableRightBorderRadius":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":20,"character":3}}]}],"click":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":23,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}],"onClick":[{"__symbolic":"method"}]}},"ButtonModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":5,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ButtonComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":7,"character":12}],"exports":[{"__symbolic":"reference","name":"ButtonComponent"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"ButtonModule"},"providers":[]}}}}},"origins":{"ButtonComponent":"./button.component","ButtonModule":"./button.module"},"importAs":"mis-crystal-design-system/button"}
1
+ {"__symbolic":"module","version":4,"metadata":{"ButtonComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"mis-button","template":"<button\n (click)=\"onClick($event);\"\n [disabled]=\"disabled\"\n [ngClass]=\"{\n 'solid': type === 'Solid',\n 'outline': type === 'Outline',\n 'text': type === 'Text',\n 'large': size === 'Large',\n 'medium': size === 'Medium',\n 'small': size === 'Small',\n 'large-mobile': size === 'Large-M',\n 'small-mobile': size === 'Small-M'\n }\"\n [ngStyle]=\"{\n 'border-top-left-radius': disableLeftBorderRadius ? '0px': '',\n 'border-bottom-left-radius': disableLeftBorderRadius ? '0px': '',\n 'border-top-right-radius': disableRightBorderRadius ? '0px': '',\n 'border-bottom-right-radius': disableRightBorderRadius ? '0px': '',\n 'width': width\n }\"\n>\n <span id=\"left-icon\" *ngIf=\"showIcon && iconPosition === 'Left'\">\n <img [src]=\"iconUrl\" alt=\"\">\n </span>\n {{name}}\n <span id=\"right-icon\" *ngIf=\"showIcon && iconPosition === 'Right'\">\n <img [src]=\"iconUrl\" alt=\"\">\n </span>\n</button>\n","styles":["button{font-family:Lato,sans-serif!important;border:none;padding:0;margin:0;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#181f33;background-color:#fff}.solid{color:#fff;background:#0937b2}.solid:hover:enabled{background:#062a99}.solid:active:enabled{background:#041f80}.solid:disabled{color:#929dab;background:#f5f5f5}.outline{border:1px solid #0937b2;color:#0937b2;background:#fff}.outline:hover:enabled{background:#f0f3fa}.outline:active:enabled{background:#dae1f3}.outline:disabled{color:#929dab;border:1px solid #929dab}.text{color:#181f33;background:#fff}.text:hover:enabled{background:#f0f3fa}.text:active:enabled{background:#dae1f3}.text:disabled{color:#929dab}.large{height:56px;padding:16px;border-radius:10px;font-weight:700;letter-spacing:.5px}.large,.medium{font-style:normal;font-size:16px;line-height:24px}.medium{height:44px;padding:10px 16px;border-radius:8px;font-weight:400;letter-spacing:.2px}.small{height:32px;padding:6px 16px;border-radius:6px;font-weight:400;letter-spacing:.25px}.large-mobile,.small{font-style:normal;font-size:14px;line-height:20px}.large-mobile{height:44px;padding:12px}.large-mobile,.small-mobile{border-radius:8px;font-weight:700;letter-spacing:.1px}.small-mobile{height:32px;padding:6px 12px;font-style:normal;font-size:14px;line-height:20px}span{display:flex;justify-content:center;align-items:center}#left-icon{margin-right:8px}#right-icon{margin-left:8px}"]}]}],"members":{"name":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":9,"character":3}}]}],"type":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}],"size":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":11,"character":3}}]}],"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":12,"character":3}}]}],"showIcon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":14,"character":3}}]}],"iconUrl":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":15,"character":3}}]}],"iconPosition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":16,"character":3}}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":18,"character":3}}]}],"disableLeftBorderRadius":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":19,"character":3}}]}],"disableRightBorderRadius":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":20,"character":3}}]}],"click":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":23,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}],"onClick":[{"__symbolic":"method"}]}},"ButtonModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":5,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ButtonComponent"},{"__symbolic":"reference","name":"ɵa"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":7,"character":12}],"exports":[{"__symbolic":"reference","name":"ButtonComponent"},{"__symbolic":"reference","name":"ɵa"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"ButtonModule"},"providers":[]}}}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":9,"character":1},"arguments":[{"selector":"[mis-button]"}]}],"members":{"type":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":13,"character":3}}]}],"size":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":14,"character":3}}]}],"elementClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":15,"character":3},"arguments":["class"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":17,"character":26},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":17,"character":56}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"bindTypeClass":[{"__symbolic":"method"}],"bindSizeClass":[{"__symbolic":"method"}]}}},"origins":{"ButtonComponent":"./button.component","ButtonModule":"./button.module","ɵa":"./button.directive"},"importAs":"mis-crystal-design-system/button"}