@energycap/components 0.27.3-ECAPID-377-Nav-Item-Test.20220125-1720 → 0.27.4-ECAPID-377-Implement-Sidebar.20220126-0948
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/energycap-components.umd.js +59 -57
- package/bundles/energycap-components.umd.js.map +1 -1
- package/bundles/energycap-components.umd.min.js +1 -1
- package/bundles/energycap-components.umd.min.js.map +1 -1
- package/energycap-components.metadata.json +1 -1
- package/esm2015/lib/components.module.js +1 -1
- package/esm2015/lib/controls/menu/menu.component.js +2 -7
- package/esm2015/lib/controls/navigation/nav-item-active.directive.js +2 -3
- package/esm2015/lib/display/table/searchable-table.component.js +15 -7
- package/fesm2015/energycap-components.js +58 -56
- package/fesm2015/energycap-components.js.map +1 -1
- package/lib/controls/menu/menu.component.d.ts +0 -4
- package/lib/controls/navigation/nav-item-active.directive.d.ts +1 -6
- package/lib/display/table/searchable-table.component.d.ts +9 -5
- package/package.json +1 -1
|
@@ -2682,10 +2682,6 @@
|
|
|
2682
2682
|
*/
|
|
2683
2683
|
this.lastSelected = null;
|
|
2684
2684
|
}
|
|
2685
|
-
MenuComponent.prototype.onRouterLinkActivated = function (event) {
|
|
2686
|
-
this.selectItem(event.event, event.item);
|
|
2687
|
-
console.log(event);
|
|
2688
|
-
};
|
|
2689
2685
|
/**
|
|
2690
2686
|
* Sets & displays the interalized template based on
|
|
2691
2687
|
* the set template.
|
|
@@ -2766,7 +2762,6 @@
|
|
|
2766
2762
|
this.onSelection(item);
|
|
2767
2763
|
}
|
|
2768
2764
|
if (this.maintainSelectedItem) {
|
|
2769
|
-
console.log(item);
|
|
2770
2765
|
this.selected = item;
|
|
2771
2766
|
this.lastSelected = item;
|
|
2772
2767
|
}
|
|
@@ -2994,7 +2989,7 @@
|
|
|
2994
2989
|
MenuComponent.decorators = [
|
|
2995
2990
|
{ type: i0.Component, args: [{
|
|
2996
2991
|
selector: 'ec-menu',
|
|
2997
|
-
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 [
|
|
2992
|
+
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>",
|
|
2998
2993
|
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}"]
|
|
2999
2994
|
},] }
|
|
3000
2995
|
];
|
|
@@ -3824,7 +3819,7 @@
|
|
|
3824
3819
|
if (this._url && this.classValue) {
|
|
3825
3820
|
if (this.router.isActive(this._url, this._exact)) {
|
|
3826
3821
|
this.renderer.addClass(this.el.nativeElement, this.classValue);
|
|
3827
|
-
this.routerLinkActivated.emit(
|
|
3822
|
+
this.routerLinkActivated.emit(new Event('routerLinkActivated'));
|
|
3828
3823
|
}
|
|
3829
3824
|
else {
|
|
3830
3825
|
this.renderer.removeClass(this.el.nativeElement, this.classValue);
|
|
@@ -3848,7 +3843,6 @@
|
|
|
3848
3843
|
classValue: [{ type: i0.Input, args: ['ecNavItemActive',] }],
|
|
3849
3844
|
exact: [{ type: i0.Input, args: ['ecNavItemActiveExactMatch',] }],
|
|
3850
3845
|
queryParams: [{ type: i0.Input, args: ['ecNavItemActiveQueryParams',] }],
|
|
3851
|
-
currentItem: [{ type: i0.Input, args: ['ecNavItemCurrentItem',] }],
|
|
3852
3846
|
url: [{ type: i0.Input, args: ['ecNavItemActiveUrl',] }],
|
|
3853
3847
|
routerLinkActivated: [{ type: i0.Output }]
|
|
3854
3848
|
};
|
|
@@ -6537,6 +6531,52 @@
|
|
|
6537
6531
|
];
|
|
6538
6532
|
ErrorService.ctorParameters = function () { return []; };
|
|
6539
6533
|
|
|
6534
|
+
var RowCountPipe = /** @class */ (function () {
|
|
6535
|
+
function RowCountPipe(translateService) {
|
|
6536
|
+
this.translateService = translateService;
|
|
6537
|
+
}
|
|
6538
|
+
/**
|
|
6539
|
+
* Get the formatted row count for the results.
|
|
6540
|
+
*
|
|
6541
|
+
* Provide maxItemCount if the normal row count is needed.
|
|
6542
|
+
* Provide pagingInfo if the paged row count is needed.
|
|
6543
|
+
*/
|
|
6544
|
+
//Note that totalPagedItemCount is not necessarily equal to pagingInfo.pageSize since the last page could have less than pageSize rows.
|
|
6545
|
+
RowCountPipe.prototype.transform = function (results, objectType, maxItemCount, pagingInfo) {
|
|
6546
|
+
var translated = this.translateService.instant(objectType || 'results');
|
|
6547
|
+
if (maxItemCount !== undefined) {
|
|
6548
|
+
return this.getResultsCount(results, translated, maxItemCount);
|
|
6549
|
+
}
|
|
6550
|
+
else if (pagingInfo) {
|
|
6551
|
+
return this.getPagedResultsCount(results, translated, pagingInfo);
|
|
6552
|
+
}
|
|
6553
|
+
return '';
|
|
6554
|
+
};
|
|
6555
|
+
RowCountPipe.prototype.getResultsCount = function (results, objectType, maxItemCount) {
|
|
6556
|
+
// If the filtered results count of rows is greater than the maximum number
|
|
6557
|
+
// of results we want to show, we have already pared the results down,
|
|
6558
|
+
// so tell user we are displaying the first `maxItemCount` results out of the total
|
|
6559
|
+
// count of filtered results.
|
|
6560
|
+
if (results.totalItems > maxItemCount) {
|
|
6561
|
+
return maxItemCount + " " + this.translateService.instant('of') + " " + results.totalItems;
|
|
6562
|
+
}
|
|
6563
|
+
return results.totalItems + " " + objectType;
|
|
6564
|
+
};
|
|
6565
|
+
RowCountPipe.prototype.getPagedResultsCount = function (results, objectType, pagingInfo) {
|
|
6566
|
+
var prefix = "" + (pagingInfo.skip + 1) + (results.totalItems > 1 ? "-" + (pagingInfo.skip + results.totalItems) + " " : ' ');
|
|
6567
|
+
return prefix + (this.translateService.instant('of') + " " + results.totalItemsBeforePaging + " " + objectType);
|
|
6568
|
+
};
|
|
6569
|
+
return RowCountPipe;
|
|
6570
|
+
}());
|
|
6571
|
+
RowCountPipe.decorators = [
|
|
6572
|
+
{ type: i0.Pipe, args: [{
|
|
6573
|
+
name: 'rowCount'
|
|
6574
|
+
},] }
|
|
6575
|
+
];
|
|
6576
|
+
RowCountPipe.ctorParameters = function () { return [
|
|
6577
|
+
{ type: i1.TranslateService }
|
|
6578
|
+
]; };
|
|
6579
|
+
|
|
6540
6580
|
var TablePaginationComponent = /** @class */ (function () {
|
|
6541
6581
|
function TablePaginationComponent(el) {
|
|
6542
6582
|
this.el = el;
|
|
@@ -6687,52 +6727,6 @@
|
|
|
6687
6727
|
pageChanged: [{ type: i0.Output }]
|
|
6688
6728
|
};
|
|
6689
6729
|
|
|
6690
|
-
var RowCountPipe = /** @class */ (function () {
|
|
6691
|
-
function RowCountPipe(translateService) {
|
|
6692
|
-
this.translateService = translateService;
|
|
6693
|
-
}
|
|
6694
|
-
/**
|
|
6695
|
-
* Get the formatted row count for the results.
|
|
6696
|
-
*
|
|
6697
|
-
* Provide maxItemCount if the normal row count is needed.
|
|
6698
|
-
* Provide pagingInfo if the paged row count is needed.
|
|
6699
|
-
*/
|
|
6700
|
-
//Note that totalPagedItemCount is not necessarily equal to pagingInfo.pageSize since the last page could have less than pageSize rows.
|
|
6701
|
-
RowCountPipe.prototype.transform = function (results, objectType, maxItemCount, pagingInfo) {
|
|
6702
|
-
var translated = this.translateService.instant(objectType || 'results');
|
|
6703
|
-
if (maxItemCount !== undefined) {
|
|
6704
|
-
return this.getResultsCount(results, translated, maxItemCount);
|
|
6705
|
-
}
|
|
6706
|
-
else if (pagingInfo) {
|
|
6707
|
-
return this.getPagedResultsCount(results, translated, pagingInfo);
|
|
6708
|
-
}
|
|
6709
|
-
return '';
|
|
6710
|
-
};
|
|
6711
|
-
RowCountPipe.prototype.getResultsCount = function (results, objectType, maxItemCount) {
|
|
6712
|
-
// If the filtered results count of rows is greater than the maximum number
|
|
6713
|
-
// of results we want to show, we have already pared the results down,
|
|
6714
|
-
// so tell user we are displaying the first `maxItemCount` results out of the total
|
|
6715
|
-
// count of filtered results.
|
|
6716
|
-
if (results.totalItems > maxItemCount) {
|
|
6717
|
-
return maxItemCount + " " + this.translateService.instant('of') + " " + results.totalItems;
|
|
6718
|
-
}
|
|
6719
|
-
return results.totalItems + " " + objectType;
|
|
6720
|
-
};
|
|
6721
|
-
RowCountPipe.prototype.getPagedResultsCount = function (results, objectType, pagingInfo) {
|
|
6722
|
-
var prefix = "" + (pagingInfo.skip + 1) + (results.totalItems > 1 ? "-" + (pagingInfo.skip + results.totalItems) + " " : ' ');
|
|
6723
|
-
return prefix + (this.translateService.instant('of') + " " + results.totalItemsBeforePaging + " " + objectType);
|
|
6724
|
-
};
|
|
6725
|
-
return RowCountPipe;
|
|
6726
|
-
}());
|
|
6727
|
-
RowCountPipe.decorators = [
|
|
6728
|
-
{ type: i0.Pipe, args: [{
|
|
6729
|
-
name: 'rowCount'
|
|
6730
|
-
},] }
|
|
6731
|
-
];
|
|
6732
|
-
RowCountPipe.ctorParameters = function () { return [
|
|
6733
|
-
{ type: i1.TranslateService }
|
|
6734
|
-
]; };
|
|
6735
|
-
|
|
6736
6730
|
var SearchableTableComponent = /** @class */ (function () {
|
|
6737
6731
|
function SearchableTableComponent(errorService, translateService, rowCountPipe) {
|
|
6738
6732
|
this.errorService = errorService;
|
|
@@ -6847,6 +6841,13 @@
|
|
|
6847
6841
|
enumerable: false,
|
|
6848
6842
|
configurable: true
|
|
6849
6843
|
});
|
|
6844
|
+
SearchableTableComponent.prototype.ngOnChanges = function (changes) {
|
|
6845
|
+
if (changes.pageSize && !changes.pageSize.firstChange && this.pageable) {
|
|
6846
|
+
// If the pageSize changes, reset to the first page and refresh.
|
|
6847
|
+
this.pageInfo = TablePaginationComponent.getPagingInfo(1, this.pageSize);
|
|
6848
|
+
this.onPageChange(this.pageInfo);
|
|
6849
|
+
}
|
|
6850
|
+
};
|
|
6850
6851
|
SearchableTableComponent.prototype.ngOnInit = function () {
|
|
6851
6852
|
var _this = this;
|
|
6852
6853
|
this.status.setStatus('pending', 'Loading');
|
|
@@ -6969,8 +6970,8 @@
|
|
|
6969
6970
|
SearchableTableComponent.decorators = [
|
|
6970
6971
|
{ type: i0.Component, args: [{
|
|
6971
6972
|
selector: 'ec-searchable-table',
|
|
6972
|
-
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=\"
|
|
6973
|
-
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{
|
|
6973
|
+
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>",
|
|
6974
|
+
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}"]
|
|
6974
6975
|
},] }
|
|
6975
6976
|
];
|
|
6976
6977
|
SearchableTableComponent.ctorParameters = function () { return [
|
|
@@ -7011,7 +7012,8 @@
|
|
|
7011
7012
|
selectionToolbarTemplate: [{ type: i0.Input }],
|
|
7012
7013
|
resizableColumns: [{ type: i0.ContentChildren, args: [ResizableColumnComponent, { descendants: true },] }],
|
|
7013
7014
|
additionalCountText: [{ type: i0.Input }],
|
|
7014
|
-
selectable: [{ type: i0.Input }]
|
|
7015
|
+
selectable: [{ type: i0.Input }],
|
|
7016
|
+
customContentTemplate: [{ type: i0.Input }]
|
|
7015
7017
|
};
|
|
7016
7018
|
|
|
7017
7019
|
var TableDetailRowComponent = /** @class */ (function () {
|