@energycap/components 0.27.3-ECAPID-377-Nav-Item-Test.20220125-1644 → 0.27.4-ECAPID-402-MultiSelect-Component.20220125-1937

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.
@@ -2653,12 +2653,6 @@
2653
2653
  * Item currently highlighted by keyboard navigation
2654
2654
  */
2655
2655
  this.highlightedItem = null;
2656
- /**
2657
- * Tells the menu to maintain the selected/lastSelected item. Turning this off is useful for
2658
- * action type menus that are displayed on the screen at all times and you do not
2659
- * want the item to be selected when clicked.
2660
- */
2661
- this.maintainSelectedItem = true;
2662
2656
  /**
2663
2657
  * Emitted when `selected` is changed. Emits the referenced object.
2664
2658
  *
@@ -2682,9 +2676,6 @@
2682
2676
  */
2683
2677
  this.lastSelected = null;
2684
2678
  }
2685
- MenuComponent.prototype.onRouterLinkActivated = function (event) {
2686
- // this.selectItem(event.event, event.item);
2687
- };
2688
2679
  /**
2689
2680
  * Sets & displays the interalized template based on
2690
2681
  * the set template.
@@ -2764,14 +2755,8 @@
2764
2755
  else {
2765
2756
  this.onSelection(item);
2766
2757
  }
2767
- if (this.maintainSelectedItem) {
2768
- this.selected = item;
2769
- this.lastSelected = item;
2770
- }
2771
- else {
2772
- this.selected = null;
2773
- this.lastSelected = null;
2774
- }
2758
+ this.selected = item;
2759
+ this.lastSelected = item;
2775
2760
  }
2776
2761
  };
2777
2762
  /**
@@ -2992,7 +2977,7 @@
2992
2977
  MenuComponent.decorators = [
2993
2978
  { type: i0.Component, args: [{
2994
2979
  selector: 'ec-menu',
2995
- template: "<nav>\r\n <div class=\"parent\"\r\n [class.no-data]=\"showNoItems && (!items || items.length === 0)\">\r\n <header id=\"{{id}}_header\"\r\n class=\"item-wrapper\"\r\n [class.is-selected]=\"highlightedItemIndex === -1\"\r\n *ngIf=\"parent\"\r\n (click)=\"back($event)\">\r\n <i class=\"ec-icon icon-angle-down rotate-90 flex-shrink\"></i>\r\n <span class=\"label text-truncate flex-grow\">{{parent?.label}}</span>\r\n </header>\r\n\r\n <ul id=\"{{id}}_list\">\r\n <li *ngFor=\"let item of items; index as i\"\r\n id=\"{{item.id || id + '_item' + i}}\"\r\n class=\"{{item.display || 'item'}} {{item.classList}}\"\r\n [attr.disabled]=\"item.disabled\"\r\n [hidden]=\"item.hidden\"\r\n ecNavItemActive=\"is-selected\"\r\n [ecNavItemCurrentItem]=\"item\"\r\n [ecNavItemActiveQueryParams]=\"item.queryParams\"\r\n [ecNavItemActiveUrl]=\"item.url\"\r\n [ecNavItemActiveExactMatch]='item.isActiveExactMatch'\r\n (routerLinkActivated)=\"onRouterLinkActivated($event)\"\r\n [ngClass]=\"{'is-highlighted':(selected === item && item?.display !== 'heading') || highlightedItem === item, 'is-link': item.url, 'is-disabled': item.disabled, 'is-readonly': item.readonly, 'is-checked': item.checked}\"\r\n (click)=\"selectItem($event, item)\">\r\n\r\n <a *ngIf=\"item.url && !item.externalLink\"\r\n id=\"{{item.id}}_link\"\r\n class=\"item-wrapper\"\r\n [routerLink]=\"item.url\"\r\n [queryParams]=\"item.queryParams || null\"\r\n target=\"{{item.target || '_self'}}\">\r\n\r\n <ng-container *ngTemplateOutlet=\"internalizedTemplate; context: {$implicit: item}\"></ng-container>\r\n </a>\r\n\r\n <a *ngIf=\"item.url && item.externalLink\"\r\n id=\"{{item.id}}_link\"\r\n class=\"item-wrapper\"\r\n href=\"{{item.url}}\"\r\n target=\"{{item.target || '_self'}}\">\r\n\r\n <ng-container *ngTemplateOutlet=\"internalizedTemplate; context: {$implicit: item}\"></ng-container>\r\n </a>\r\n\r\n <div *ngIf=\"!item.url\"\r\n class=\"item-wrapper\">\r\n <ng-container *ngTemplateOutlet=\"internalizedTemplate; context: {$implicit: item}\"></ng-container>\r\n </div>\r\n </li>\r\n </ul>\r\n\r\n <p class=\"no-data-message\">{{noDataText | translate}}</p>\r\n </div>\r\n\r\n <!-- Child menu (Rendered to the right) -->\r\n <ec-menu *ngIf=\"selected?.items\"\r\n id=\"{{id}}_child\"\r\n class=\"child\"\r\n [parent]=\"selected\"\r\n [items]=\"selected?.items\"\r\n [showNoItems]=\"true\"\r\n [templateType]=\"templateType\"\r\n [enableKeyNav]=\"true\"\r\n (selectedChanged)=\"onSelection($event)\"\r\n (menuClosed)=\"toggleChildMenu(false)\">\r\n </ec-menu>\r\n</nav>\r\n\r\n<!-- 'label' Item Template -->\r\n<ng-template #label\r\n let-item>\r\n <span id=\"{{item.id}}_label\"\r\n class=\"label\">{{item.label}}</span>\r\n\r\n <i class=\"ec-icon icon-angle-down rotate-270\" *ngIf=\"item?.items\"></i>\r\n</ng-template>\r\n\r\n<!-- 'checkAndLabel' Item Template -->\r\n<ng-template #checkAndLabel\r\n let-item>\r\n\r\n <i class=\"ec-icon icon-check ec-icon-sm\" *ngIf=\"item.display !== 'heading'\"></i>\r\n\r\n <i class=\"ec-icon {{item.icon}} ml-2\" *ngIf=\"item.icon\"></i>\r\n\r\n <span id=\"{{item.id}}_label\"\r\n class=\"label\">{{item.label}}</span>\r\n\r\n <i class=\"ec-icon icon-angle-down rotate-270\" *ngIf=\"item?.items\"></i>\r\n</ng-template>\r\n\r\n<!-- 'iconAndLabel' Item Template -->\r\n<ng-template #iconAndLabel\r\n let-item>\r\n\r\n <i class=\"ec-icon {{item.icon}}\"></i>\r\n\r\n <span id=\"{{item.id}}_label\"\r\n class=\"label\">{{item.label}}</span>\r\n\r\n <i class=\"ec-icon icon-angle-down rotate-270\" *ngIf=\"item?.items\"></i>\r\n</ng-template>",
2980
+ template: "<nav>\r\n <div class=\"parent\"\r\n [class.no-data]=\"showNoItems && (!items || items.length === 0)\">\r\n <header id=\"{{id}}_header\"\r\n class=\"item-wrapper\"\r\n [class.is-selected]=\"highlightedItemIndex === -1\"\r\n *ngIf=\"parent\"\r\n (click)=\"back($event)\">\r\n <i class=\"ec-icon icon-angle-down rotate-90 flex-shrink\"></i>\r\n <span class=\"label text-truncate flex-grow\">{{parent?.label}}</span>\r\n </header>\r\n\r\n <ul id=\"{{id}}_list\">\r\n <li *ngFor=\"let item of items; index as i\"\r\n id=\"{{item.id || id + '_item' + i}}\"\r\n class=\"{{item.display || 'item'}} {{item.classList}}\"\r\n [attr.disabled]=\"item.disabled\"\r\n [hidden]=\"item.hidden\"\r\n ecNavItemActive=\"is-selected\"\r\n [ecNavItemActiveQueryParams]=\"item.queryParams\"\r\n [ecNavItemActiveUrl]=\"item.url\"\r\n [ecNavItemActiveExactMatch]='item.isActiveExactMatch'\r\n (routerLinkActivated)=\"selectItem($event, item)\"\r\n [ngClass]=\"{'is-highlighted':(selected === item && item?.display !== 'heading') || highlightedItem === item, 'is-link': item.url, 'is-disabled': item.disabled, 'is-readonly': item.readonly, 'is-checked': item.checked}\"\r\n (click)=\"selectItem($event, item)\">\r\n\r\n <a *ngIf=\"item.url && !item.externalLink\"\r\n id=\"{{item.id}}_link\"\r\n class=\"item-wrapper\"\r\n [routerLink]=\"item.url\"\r\n [queryParams]=\"item.queryParams || null\"\r\n target=\"{{item.target || '_self'}}\">\r\n\r\n <ng-container *ngTemplateOutlet=\"internalizedTemplate; context: {$implicit: item}\"></ng-container>\r\n </a>\r\n\r\n <a *ngIf=\"item.url && item.externalLink\"\r\n id=\"{{item.id}}_link\"\r\n class=\"item-wrapper\"\r\n href=\"{{item.url}}\"\r\n target=\"{{item.target || '_self'}}\">\r\n\r\n <ng-container *ngTemplateOutlet=\"internalizedTemplate; context: {$implicit: item}\"></ng-container>\r\n </a>\r\n\r\n <div *ngIf=\"!item.url\"\r\n class=\"item-wrapper\">\r\n <ng-container *ngTemplateOutlet=\"internalizedTemplate; context: {$implicit: item}\"></ng-container>\r\n </div>\r\n </li>\r\n </ul>\r\n\r\n <p class=\"no-data-message\">{{noDataText | translate}}</p>\r\n </div>\r\n\r\n <!-- Child menu (Rendered to the right) -->\r\n <ec-menu *ngIf=\"selected?.items\"\r\n id=\"{{id}}_child\"\r\n class=\"child\"\r\n [parent]=\"selected\"\r\n [items]=\"selected?.items\"\r\n [showNoItems]=\"true\"\r\n [templateType]=\"templateType\"\r\n [enableKeyNav]=\"true\"\r\n (selectedChanged)=\"onSelection($event)\"\r\n (menuClosed)=\"toggleChildMenu(false)\">\r\n </ec-menu>\r\n</nav>\r\n\r\n<!-- 'label' Item Template -->\r\n<ng-template #label\r\n let-item>\r\n <span id=\"{{item.id}}_label\"\r\n class=\"label\">{{item.label}}</span>\r\n\r\n <i class=\"ec-icon icon-angle-down rotate-270\" *ngIf=\"item?.items\"></i>\r\n</ng-template>\r\n\r\n<!-- 'checkAndLabel' Item Template -->\r\n<ng-template #checkAndLabel\r\n let-item>\r\n\r\n <i class=\"ec-icon icon-check ec-icon-sm\" *ngIf=\"item.display !== 'heading'\"></i>\r\n\r\n <i class=\"ec-icon {{item.icon}} ml-2\" *ngIf=\"item.icon\"></i>\r\n\r\n <span id=\"{{item.id}}_label\"\r\n class=\"label\">{{item.label}}</span>\r\n\r\n <i class=\"ec-icon icon-angle-down rotate-270\" *ngIf=\"item?.items\"></i>\r\n</ng-template>\r\n\r\n<!-- 'iconAndLabel' Item Template -->\r\n<ng-template #iconAndLabel\r\n let-item>\r\n\r\n <i class=\"ec-icon {{item.icon}}\"></i>\r\n\r\n <span id=\"{{item.id}}_label\"\r\n class=\"label\">{{item.label}}</span>\r\n\r\n <i class=\"ec-icon icon-angle-down rotate-270\" *ngIf=\"item?.items\"></i>\r\n</ng-template>",
2996
2981
  styles: ["@-webkit-keyframes spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}:host{background-color:#fff;display:block;font-size:.875rem;font-weight:400}:host.open>nav>.child,:host.open>nav>.parent{height:100%;left:0;position:absolute;right:0;top:0;transition:transform .25s ease}:host.open>nav>.parent{transform:translateX(0)}:host.open>nav>.child{transform:translateX(100%)}:host.open-active>nav>.parent{transform:translateX(-100%)}:host.open-active>nav>.child{transform:translateX(0)}:host(.bg-transparent){background-color:transparent}:host-context(.is-always-open){height:100%}:host-context(.is-always-open) .item-wrapper{padding-left:1rem;padding-right:1rem}nav{height:100%;overflow:hidden}.parent,nav{display:flex;position:relative}.parent{flex:auto;flex-direction:column;max-width:100%}.parent>header{background-color:#dee2e4;color:rgba(26,26,35,.66);cursor:pointer}.parent>header.is-highlighted,.parent>header.is-selected{background-color:#d9edf2}.parent>header:hover{background-color:#bfe0e9}.parent.no-data ul{display:none}.parent.no-data .no-data-message{display:block}ul{flex:auto;height:100%;list-style:none;margin:0;overflow-y:auto;padding:0}ul li{cursor:pointer}ul li.is-highlighted,ul li.is-selected{background-color:#d9edf2}ul li:hover{background-color:#bfe0e9}ul li:focus{background-color:rgba(26,26,35,.38);outline:none}ul li:active{background-color:#0084a9;color:#fff}ul li.is-disabled,ul li:disabled{color:rgba(26,26,35,.66);cursor:default;opacity:.65}ul li a{border-bottom:0;color:inherit;text-decoration:none}ul li.heading{background-color:#dee2e4;color:rgba(26,26,35,.66)}ul li.heading .item-wrapper{cursor:default}ul li.divider{border-bottom:1px solid #d2d7d9}ul li.is-disabled,ul li.is-readonly{background-color:transparent;color:inherit;cursor:default}ul li.is-checked .icon-check{opacity:1}.item-wrapper{color:inherit;cursor:inherit;display:flex;line-height:1.25rem;min-height:1.75rem;padding:.25rem .5rem}.item-wrapper .label{margin-right:auto}.item-wrapper .label+.ec-icon{margin-left:.5rem}.item-wrapper .ec-icon{flex:none;margin-top:.125rem}.item-wrapper .ec-icon+.label{margin-left:.5rem}.item-wrapper .ec-icon-sm{margin-top:.25rem}.item-wrapper .icon-check{opacity:0}.no-data-message{color:rgba(26,26,35,.38);display:none;font-size:1rem;margin-bottom:0;padding:1rem;text-align:center}:host-context(ec-tree) ul{overflow-x:hidden}:host-context(ec-tree) li{white-space:nowrap}:host-context(ec-tree) li.is-highlighted,:host-context(ec-tree) li.is-selected{font-weight:700}:host-context(ec-tree) li.is-highlighted:not(:hover),:host-context(ec-tree) li.is-selected:not(:hover){background-color:transparent}"]
2997
2982
  },] }
2998
2983
  ];
@@ -3015,7 +3000,6 @@
3015
3000
  noDataText: [{ type: i0.Input }],
3016
3001
  enableKeyNav: [{ type: i0.Input }],
3017
3002
  highlightedItem: [{ type: i0.Input }],
3018
- maintainSelectedItem: [{ type: i0.Input }],
3019
3003
  selectedChanged: [{ type: i0.Output }],
3020
3004
  menuClosed: [{ type: i0.Output }],
3021
3005
  labelTemplate: [{ type: i0.ViewChild, args: ['label', { static: true },] }],
@@ -3822,7 +3806,7 @@
3822
3806
  if (this._url && this.classValue) {
3823
3807
  if (this.router.isActive(this._url, this._exact)) {
3824
3808
  this.renderer.addClass(this.el.nativeElement, this.classValue);
3825
- this.routerLinkActivated.emit({ event: new Event('routerLinkActivated'), item: this.currentItem });
3809
+ this.routerLinkActivated.emit(new Event('routerLinkActivated'));
3826
3810
  }
3827
3811
  else {
3828
3812
  this.renderer.removeClass(this.el.nativeElement, this.classValue);
@@ -3846,7 +3830,6 @@
3846
3830
  classValue: [{ type: i0.Input, args: ['ecNavItemActive',] }],
3847
3831
  exact: [{ type: i0.Input, args: ['ecNavItemActiveExactMatch',] }],
3848
3832
  queryParams: [{ type: i0.Input, args: ['ecNavItemActiveQueryParams',] }],
3849
- currentItem: [{ type: i0.Input, args: ['ecNavItemCurrentItem',] }],
3850
3833
  url: [{ type: i0.Input, args: ['ecNavItemActiveUrl',] }],
3851
3834
  routerLinkActivated: [{ type: i0.Output }]
3852
3835
  };
@@ -6535,6 +6518,52 @@
6535
6518
  ];
6536
6519
  ErrorService.ctorParameters = function () { return []; };
6537
6520
 
6521
+ var RowCountPipe = /** @class */ (function () {
6522
+ function RowCountPipe(translateService) {
6523
+ this.translateService = translateService;
6524
+ }
6525
+ /**
6526
+ * Get the formatted row count for the results.
6527
+ *
6528
+ * Provide maxItemCount if the normal row count is needed.
6529
+ * Provide pagingInfo if the paged row count is needed.
6530
+ */
6531
+ //Note that totalPagedItemCount is not necessarily equal to pagingInfo.pageSize since the last page could have less than pageSize rows.
6532
+ RowCountPipe.prototype.transform = function (results, objectType, maxItemCount, pagingInfo) {
6533
+ var translated = this.translateService.instant(objectType || 'results');
6534
+ if (maxItemCount !== undefined) {
6535
+ return this.getResultsCount(results, translated, maxItemCount);
6536
+ }
6537
+ else if (pagingInfo) {
6538
+ return this.getPagedResultsCount(results, translated, pagingInfo);
6539
+ }
6540
+ return '';
6541
+ };
6542
+ RowCountPipe.prototype.getResultsCount = function (results, objectType, maxItemCount) {
6543
+ // If the filtered results count of rows is greater than the maximum number
6544
+ // of results we want to show, we have already pared the results down,
6545
+ // so tell user we are displaying the first `maxItemCount` results out of the total
6546
+ // count of filtered results.
6547
+ if (results.totalItems > maxItemCount) {
6548
+ return maxItemCount + " " + this.translateService.instant('of') + " " + results.totalItems;
6549
+ }
6550
+ return results.totalItems + " " + objectType;
6551
+ };
6552
+ RowCountPipe.prototype.getPagedResultsCount = function (results, objectType, pagingInfo) {
6553
+ var prefix = "" + (pagingInfo.skip + 1) + (results.totalItems > 1 ? "-" + (pagingInfo.skip + results.totalItems) + " " : ' ');
6554
+ return prefix + (this.translateService.instant('of') + " " + results.totalItemsBeforePaging + " " + objectType);
6555
+ };
6556
+ return RowCountPipe;
6557
+ }());
6558
+ RowCountPipe.decorators = [
6559
+ { type: i0.Pipe, args: [{
6560
+ name: 'rowCount'
6561
+ },] }
6562
+ ];
6563
+ RowCountPipe.ctorParameters = function () { return [
6564
+ { type: i1.TranslateService }
6565
+ ]; };
6566
+
6538
6567
  var TablePaginationComponent = /** @class */ (function () {
6539
6568
  function TablePaginationComponent(el) {
6540
6569
  this.el = el;
@@ -6685,52 +6714,6 @@
6685
6714
  pageChanged: [{ type: i0.Output }]
6686
6715
  };
6687
6716
 
6688
- var RowCountPipe = /** @class */ (function () {
6689
- function RowCountPipe(translateService) {
6690
- this.translateService = translateService;
6691
- }
6692
- /**
6693
- * Get the formatted row count for the results.
6694
- *
6695
- * Provide maxItemCount if the normal row count is needed.
6696
- * Provide pagingInfo if the paged row count is needed.
6697
- */
6698
- //Note that totalPagedItemCount is not necessarily equal to pagingInfo.pageSize since the last page could have less than pageSize rows.
6699
- RowCountPipe.prototype.transform = function (results, objectType, maxItemCount, pagingInfo) {
6700
- var translated = this.translateService.instant(objectType || 'results');
6701
- if (maxItemCount !== undefined) {
6702
- return this.getResultsCount(results, translated, maxItemCount);
6703
- }
6704
- else if (pagingInfo) {
6705
- return this.getPagedResultsCount(results, translated, pagingInfo);
6706
- }
6707
- return '';
6708
- };
6709
- RowCountPipe.prototype.getResultsCount = function (results, objectType, maxItemCount) {
6710
- // If the filtered results count of rows is greater than the maximum number
6711
- // of results we want to show, we have already pared the results down,
6712
- // so tell user we are displaying the first `maxItemCount` results out of the total
6713
- // count of filtered results.
6714
- if (results.totalItems > maxItemCount) {
6715
- return maxItemCount + " " + this.translateService.instant('of') + " " + results.totalItems;
6716
- }
6717
- return results.totalItems + " " + objectType;
6718
- };
6719
- RowCountPipe.prototype.getPagedResultsCount = function (results, objectType, pagingInfo) {
6720
- var prefix = "" + (pagingInfo.skip + 1) + (results.totalItems > 1 ? "-" + (pagingInfo.skip + results.totalItems) + " " : ' ');
6721
- return prefix + (this.translateService.instant('of') + " " + results.totalItemsBeforePaging + " " + objectType);
6722
- };
6723
- return RowCountPipe;
6724
- }());
6725
- RowCountPipe.decorators = [
6726
- { type: i0.Pipe, args: [{
6727
- name: 'rowCount'
6728
- },] }
6729
- ];
6730
- RowCountPipe.ctorParameters = function () { return [
6731
- { type: i1.TranslateService }
6732
- ]; };
6733
-
6734
6717
  var SearchableTableComponent = /** @class */ (function () {
6735
6718
  function SearchableTableComponent(errorService, translateService, rowCountPipe) {
6736
6719
  this.errorService = errorService;
@@ -6845,6 +6828,13 @@
6845
6828
  enumerable: false,
6846
6829
  configurable: true
6847
6830
  });
6831
+ SearchableTableComponent.prototype.ngOnChanges = function (changes) {
6832
+ if (changes.pageSize && !changes.pageSize.firstChange && this.pageable) {
6833
+ // If the pageSize changes, reset to the first page and refresh.
6834
+ this.pageInfo = TablePaginationComponent.getPagingInfo(1, this.pageSize);
6835
+ this.onPageChange(this.pageInfo);
6836
+ }
6837
+ };
6848
6838
  SearchableTableComponent.prototype.ngOnInit = function () {
6849
6839
  var _this = this;
6850
6840
  this.status.setStatus('pending', 'Loading');
@@ -6967,8 +6957,8 @@
6967
6957
  SearchableTableComponent.decorators = [
6968
6958
  { type: i0.Component, args: [{
6969
6959
  selector: 'ec-searchable-table',
6970
- template: "<header *ngIf=\"!hideHeader\"\r\n class=\"d-flex flex-shrink align-items-center mb-3\">\r\n <ec-textbox id=\"{{id}}_searchbox\"\r\n *ngIf=\"!hideSearchControl\"\r\n class=\"mb-0 flex-grow mr-2\"\r\n [autofocus]=\"autofocus\"\r\n [formModel]=\"searchModel\"\r\n [tabindex]=\"searchboxTabIndex\"\r\n [placeholder]=\"searchboxPlaceholder\"\r\n [readonly]=\"searchboxReadonly\"></ec-textbox>\r\n <div class=\"flex-grow\">\r\n <ng-content select=\".searchable-table-controls\"></ng-content>\r\n </div>\r\n</header>\r\n<section id=\"{{id}}_card\"\r\n class=\"card m-0 d-flex flex-column bg-content\"\r\n [class.is-translucent]=\"status.status !== 'error'\"\r\n [class.has-mask]=\"status.status !== 'hasData'\"\r\n ecOverlay\r\n [status]=\"status.status\"\r\n [message]=\"status.message\"\r\n [displayAsMask]=\"true\">\r\n <ng-content select=\".card-header\"></ng-content>\r\n <ec-table id=\"{{id}}_table\"\r\n class=\"flex-shrink-max {{tableClasses}}\"\r\n [class.is-fixed]=\"tableLayoutFixed\"\r\n [sortable]=\"sortable\"\r\n [sort]=\"sort\"\r\n (sortChange)=\"onSortChange($event)\"\r\n [resizable]=\"resizable\"\r\n [scrollable]=\"true\"\r\n [selectable]=\"selectable\"\r\n [selectionContext]=\"selectionContext\"\r\n [selectionToolbarTemplate]=\"selectionToolbarTemplate\"\r\n [resizableColumns]=\"resizableColumns\">\r\n <ng-content></ng-content>\r\n </ec-table>\r\n\r\n <!-- pagination footer visible if table is page-able and there are more than one page of results -->\r\n <footer *ngIf=\"!hideFooter && pageable && searchResults.totalItemsBeforePaging! > pageSize!\" class=\"d-flex flex-shrink align-items-center border-top\">\r\n <ec-table-pagination id=\"{{id}}_pager\"\r\n class=\"font-color-primary\"\r\n [totalItems]=\"searchResults.totalItemsBeforePaging\"\r\n [pageSize]=\"pageSize\"\r\n [maxTabs]=\"maxTabs\"\r\n [pageNumber]=\"pageInfo?.pageNumber\"\r\n (pageChanged)=\"onPageChange($event)\">\r\n </ec-table-pagination>\r\n <div id=\"resultsCount\"\r\n *ngIf=\"searchResults?.items?.length\"\r\n class=\"ml-auto mr-2 font-color-hint text-truncate\" \r\n title=\"{{resultsCount}} {{additionalCountText}}\">{{resultsCount}} {{additionalCountText}}</div>\r\n </footer>\r\n\r\n <!-- default footer: visible if hideFooter is false and table is not page-able or there are only one page of results (always shows if there is a caption to indicate no results) -->\r\n <footer *ngIf=\"(!hideFooter && (!pageable || searchResults.totalItemsBeforePaging! <= pageSize!)) || tableCaption\"\r\n class=\"p-2 d-flex\"\r\n [class.has-results]=\"searchResults?.items?.length\">\r\n <ng-content *ngIf=\"!tableCaption\"\r\n select=\".searchable-table-footer\"></ng-content>\r\n <div id=\"tableCaption\"\r\n *ngIf=\"tableCaption\"\r\n [innerHTML]=\"tableCaption\"></div>\r\n <div id=\"resultsCount\"\r\n *ngIf=\"searchResults?.items?.length\"\r\n class=\"ml-auto text-truncate\"\r\n title=\"{{resultsCount}} {{additionalCountText}}\">{{resultsCount}} {{additionalCountText}}</div>\r\n </footer>\r\n</section>",
6971
- styles: ["@-webkit-keyframes spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}:host{display:flex;flex:1 1;flex-direction:column;min-height:0}:host ::ng-deep .card-header+ec-table.is-selectable th{height:2.5rem;padding-bottom:.9375rem}:host ::ng-deep .card-header+ec-table.is-selectable th.is-resizable .handle{padding-top:.5rem}:host ::ng-deep .card-header+ec-table.is-selectable th.is-resizable .handle:before{top:.5rem}:host ::ng-deep .card-header+ec-table.is-selectable .selectable-table-toolbar{height:2.5rem;padding-bottom:.5rem}footer{font-size:.75rem;line-height:1rem}footer.has-results{border-top:1px solid rgba(26,26,35,.18);color:rgba(26,26,35,.38);text-align:right}.card.has-mask{min-height:15rem}"]
6960
+ template: "<header *ngIf=\"!hideHeader\"\r\n class=\"d-flex flex-shrink align-items-center mb-3\">\r\n <ec-textbox id=\"{{id}}_searchbox\"\r\n *ngIf=\"!hideSearchControl\"\r\n class=\"mb-0 flex-grow mr-2\"\r\n [autofocus]=\"autofocus\"\r\n [formModel]=\"searchModel\"\r\n [tabindex]=\"searchboxTabIndex\"\r\n [placeholder]=\"searchboxPlaceholder\"\r\n [readonly]=\"searchboxReadonly\"></ec-textbox>\r\n <div class=\"flex-grow\">\r\n <ng-content select=\".searchable-table-controls\"></ng-content>\r\n </div>\r\n</header>\r\n<section id=\"{{id}}_card\"\r\n class=\"d-flex flex-column flex-grow\"\r\n [ngClass]=\"{'is-translucent': status.status !== 'error', 'has-mask': status.status !== 'hasData', 'card m-0 bg-content': !customContentTemplate, 'bg-body': customContentTemplate}\"\r\n ecOverlay\r\n [status]=\"status.status\"\r\n [message]=\"status.message\"\r\n [displayAsMask]=\"true\">\r\n <ng-content select=\".card-header\"></ng-content>\r\n <ng-container *ngTemplateOutlet=\"customContentTemplate || defaultContentTemplate\">\r\n </ng-container>\r\n\r\n <!-- the default template is an ec-table with proxied-over searchable table inputs. \r\n If that doesn't work for you then you can specify a customContentTemplate to use instead\r\n and still retain all the event handling, header, footer pagination, etc support -->\r\n <ng-template #defaultContentTemplate>\r\n <ec-table id=\"{{id}}_table\"\r\n class=\"flex-shrink-max {{tableClasses}}\"\r\n [class.is-fixed]=\"tableLayoutFixed\"\r\n [sortable]=\"sortable\"\r\n [sort]=\"sort\"\r\n (sortChange)=\"onSortChange($event)\"\r\n [resizable]=\"resizable\"\r\n [scrollable]=\"true\"\r\n [selectable]=\"selectable\"\r\n [selectionContext]=\"selectionContext\"\r\n [selectionToolbarTemplate]=\"selectionToolbarTemplate\"\r\n [resizableColumns]=\"resizableColumns\">\r\n <ng-content></ng-content>\r\n </ec-table>\r\n </ng-template>\r\n\r\n <!-- pagination footer visible if table is page-able and there are more than one page of results -->\r\n <footer *ngIf=\"!hideFooter && pageable && searchResults.totalItemsBeforePaging! > pageSize!\"\r\n class=\"d-flex flex-shrink align-items-center\"\r\n [class.border-top]=\"!customContentTemplate\">\r\n <ec-table-pagination id=\"{{id}}_pager\"\r\n class=\"font-color-primary\"\r\n [totalItems]=\"searchResults.totalItemsBeforePaging\"\r\n [pageSize]=\"pageSize\"\r\n [maxTabs]=\"maxTabs\"\r\n [pageNumber]=\"pageInfo?.pageNumber\"\r\n (pageChanged)=\"onPageChange($event)\">\r\n </ec-table-pagination>\r\n <div id=\"resultsCount\"\r\n *ngIf=\"searchResults?.items?.length\"\r\n class=\"ml-auto mr-2 font-color-hint text-truncate\" \r\n title=\"{{resultsCount}} {{additionalCountText}}\">{{resultsCount}} {{additionalCountText}}</div>\r\n </footer>\r\n\r\n <!-- default footer: visible if hideFooter is false and table is not page-able or there are only one page of results (always shows if there is a caption to indicate no results) -->\r\n <footer *ngIf=\"(!hideFooter && (!pageable || searchResults.totalItemsBeforePaging! <= pageSize!)) || tableCaption\"\r\n class=\"p-2 d-flex\"\r\n [ngClass]=\"{'has-results': searchResults?.items?.length, 'border-top': searchResults?.items?.length && !customContentTemplate}\">\r\n <ng-content *ngIf=\"!tableCaption\"\r\n select=\".searchable-table-footer\"></ng-content>\r\n <div id=\"tableCaption\"\r\n *ngIf=\"tableCaption\"\r\n [innerHTML]=\"tableCaption\"></div>\r\n <div id=\"resultsCount\"\r\n *ngIf=\"searchResults?.items?.length\"\r\n class=\"ml-auto text-truncate\"\r\n title=\"{{resultsCount}} {{additionalCountText}}\">{{resultsCount}} {{additionalCountText}}</div>\r\n </footer>\r\n</section>",
6961
+ styles: ["@-webkit-keyframes spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}:host{display:flex;flex:1 1;flex-direction:column;min-height:0}:host ::ng-deep .card-header+ec-table.is-selectable th{height:2.5rem;padding-bottom:.9375rem}:host ::ng-deep .card-header+ec-table.is-selectable th.is-resizable .handle{padding-top:.5rem}:host ::ng-deep .card-header+ec-table.is-selectable th.is-resizable .handle:before{top:.5rem}:host ::ng-deep .card-header+ec-table.is-selectable .selectable-table-toolbar{height:2.5rem;padding-bottom:.5rem}footer{font-size:.75rem;line-height:1rem}footer.has-results{color:rgba(26,26,35,.38);text-align:right}.card.has-mask{min-height:15rem}"]
6972
6962
  },] }
6973
6963
  ];
6974
6964
  SearchableTableComponent.ctorParameters = function () { return [
@@ -7009,7 +6999,8 @@
7009
6999
  selectionToolbarTemplate: [{ type: i0.Input }],
7010
7000
  resizableColumns: [{ type: i0.ContentChildren, args: [ResizableColumnComponent, { descendants: true },] }],
7011
7001
  additionalCountText: [{ type: i0.Input }],
7012
- selectable: [{ type: i0.Input }]
7002
+ selectable: [{ type: i0.Input }],
7003
+ customContentTemplate: [{ type: i0.Input }]
7013
7004
  };
7014
7005
 
7015
7006
  var TableDetailRowComponent = /** @class */ (function () {
@@ -8163,34 +8154,6 @@
8163
8154
  width: [{ type: i0.Input, args: ['ecIfViewportWidth',] }]
8164
8155
  };
8165
8156
 
8166
- var HighlightTextPipe = /** @class */ (function () {
8167
- function HighlightTextPipe() {
8168
- }
8169
- HighlightTextPipe.prototype.transform = function (value, searchText) {
8170
- var transformedValue = '';
8171
- if (value && searchText) {
8172
- var regex = new RegExp(this.escapeRegex(searchText), 'gi');
8173
- transformedValue = value.replace(regex, this.strongWrap);
8174
- }
8175
- else {
8176
- transformedValue = value;
8177
- }
8178
- return transformedValue;
8179
- };
8180
- HighlightTextPipe.prototype.strongWrap = function (match) {
8181
- return "<strong class=\"text-highlight\">" + match + "</strong>";
8182
- };
8183
- HighlightTextPipe.prototype.escapeRegex = function (value) {
8184
- return value.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
8185
- };
8186
- return HighlightTextPipe;
8187
- }());
8188
- HighlightTextPipe.decorators = [
8189
- { type: i0.Pipe, args: [{
8190
- name: 'highlightText'
8191
- },] }
8192
- ];
8193
-
8194
8157
  /**
8195
8158
  * Format a time to the user's preference for display
8196
8159
  */
@@ -8595,6 +8558,28 @@
8595
8558
  currentTab: [{ type: i0.Input }]
8596
8559
  };
8597
8560
 
8561
+ var MultiselectComponent = /** @class */ (function (_super) {
8562
+ __extends(MultiselectComponent, _super);
8563
+ function MultiselectComponent(validationMessageService, formGroupHelper) {
8564
+ var _this = _super.call(this, validationMessageService, formGroupHelper) || this;
8565
+ _this.validationMessageService = validationMessageService;
8566
+ _this.formGroupHelper = formGroupHelper;
8567
+ return _this;
8568
+ }
8569
+ return MultiselectComponent;
8570
+ }(FormControlBase));
8571
+ MultiselectComponent.decorators = [
8572
+ { type: i0.Component, args: [{
8573
+ selector: 'ec-multiselect',
8574
+ template: "<p>multiselect works!</p>\r\n",
8575
+ styles: [""]
8576
+ },] }
8577
+ ];
8578
+ MultiselectComponent.ctorParameters = function () { return [
8579
+ { type: ValidationMessageService },
8580
+ { type: FormGroupHelper }
8581
+ ]; };
8582
+
8598
8583
  var ComponentsModule = /** @class */ (function () {
8599
8584
  function ComponentsModule() {
8600
8585
  }
@@ -8675,7 +8660,7 @@
8675
8660
  TreeComponent,
8676
8661
  RelativeDatePipe,
8677
8662
  ResizableComponent,
8678
- HighlightTextPipe
8663
+ MultiselectComponent
8679
8664
  ],
8680
8665
  imports: [
8681
8666
  common.CommonModule,
@@ -8693,8 +8678,7 @@
8693
8678
  TimeDisplayPipe,
8694
8679
  MockDateDisplayPipe,
8695
8680
  RowCountPipe,
8696
- RelativeDatePipe,
8697
- HighlightTextPipe
8681
+ RelativeDatePipe
8698
8682
  ],
8699
8683
  exports: [
8700
8684
  ButtonComponent,
@@ -8749,8 +8733,7 @@
8749
8733
  HierarchyTreeComponent,
8750
8734
  TreeComponent,
8751
8735
  RelativeDatePipe,
8752
- ResizableComponent,
8753
- HighlightTextPipe
8736
+ ResizableComponent
8754
8737
  ]
8755
8738
  },] }
8756
8739
  ];
@@ -9894,7 +9877,6 @@
9894
9877
  exports.HierarchyBaseTestInjectorFactory = HierarchyBaseTestInjectorFactory;
9895
9878
  exports.HierarchyItem = HierarchyItem;
9896
9879
  exports.HierarchyTreeComponent = HierarchyTreeComponent;
9897
- exports.HighlightTextPipe = HighlightTextPipe;
9898
9880
  exports.IfViewportWidthDirective = IfViewportWidthDirective;
9899
9881
  exports.ItemDisplayComponent = ItemDisplayComponent;
9900
9882
  exports.JsonDisplayComponent = JsonDisplayComponent;
@@ -9986,6 +9968,7 @@
9986
9968
  exports.ɵa = ResizableTableDirective;
9987
9969
  exports.ɵb = AvatarService;
9988
9970
  exports.ɵc = TableDetailRowComponent;
9971
+ exports.ɵd = MultiselectComponent;
9989
9972
 
9990
9973
  Object.defineProperty(exports, '__esModule', { value: true });
9991
9974