@energycap/components 0.27.2 → 0.27.3-ECAPID-377-Nav-Item-Test.20220125-1644
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 +241 -177
- 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 +9 -5
- package/esm2015/lib/controls/menu/menu.component.js +20 -4
- package/esm2015/lib/controls/navigation/nav-item-active.directive.js +3 -2
- package/esm2015/lib/display/hierarchy/hierarchy-base.js +1 -1
- package/esm2015/lib/shared/display/pipes/highlight-text.pipe.js +26 -0
- package/esm2015/lib/shared/page/page-base/page-base.component.js +10 -1
- package/esm2015/lib/shared/page/page-title/page-title.component.js +2 -2
- package/esm2015/lib/shared/page/page-view/page-view.component.js +2 -2
- package/esm2015/lib/shared/testing/page-base-component-test-injector-factory.spec.js +9 -1
- package/esm2015/public-api.js +2 -1
- package/fesm2015/energycap-components.js +227 -167
- package/fesm2015/energycap-components.js.map +1 -1
- package/lib/controls/menu/menu.component.d.ts +10 -0
- package/lib/controls/navigation/nav-item-active.directive.d.ts +6 -1
- package/lib/display/hierarchy/hierarchy-base.d.ts +5 -0
- package/lib/shared/display/pipes/highlight-text.pipe.d.ts +6 -0
- package/lib/shared/page/page-base/page-base.component.d.ts +6 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -2402,6 +2402,12 @@ class MenuComponent {
|
|
|
2402
2402
|
* Item currently highlighted by keyboard navigation
|
|
2403
2403
|
*/
|
|
2404
2404
|
this.highlightedItem = null;
|
|
2405
|
+
/**
|
|
2406
|
+
* Tells the menu to maintain the selected/lastSelected item. Turning this off is useful for
|
|
2407
|
+
* action type menus that are displayed on the screen at all times and you do not
|
|
2408
|
+
* want the item to be selected when clicked.
|
|
2409
|
+
*/
|
|
2410
|
+
this.maintainSelectedItem = true;
|
|
2405
2411
|
/**
|
|
2406
2412
|
* Emitted when `selected` is changed. Emits the referenced object.
|
|
2407
2413
|
*
|
|
@@ -2425,6 +2431,9 @@ class MenuComponent {
|
|
|
2425
2431
|
*/
|
|
2426
2432
|
this.lastSelected = null;
|
|
2427
2433
|
}
|
|
2434
|
+
onRouterLinkActivated(event) {
|
|
2435
|
+
// this.selectItem(event.event, event.item);
|
|
2436
|
+
}
|
|
2428
2437
|
/**
|
|
2429
2438
|
* Sets & displays the interalized template based on
|
|
2430
2439
|
* the set template.
|
|
@@ -2503,8 +2512,14 @@ class MenuComponent {
|
|
|
2503
2512
|
else {
|
|
2504
2513
|
this.onSelection(item);
|
|
2505
2514
|
}
|
|
2506
|
-
this.
|
|
2507
|
-
|
|
2515
|
+
if (this.maintainSelectedItem) {
|
|
2516
|
+
this.selected = item;
|
|
2517
|
+
this.lastSelected = item;
|
|
2518
|
+
}
|
|
2519
|
+
else {
|
|
2520
|
+
this.selected = null;
|
|
2521
|
+
this.lastSelected = null;
|
|
2522
|
+
}
|
|
2508
2523
|
}
|
|
2509
2524
|
}
|
|
2510
2525
|
/**
|
|
@@ -2720,7 +2735,7 @@ class MenuComponent {
|
|
|
2720
2735
|
MenuComponent.decorators = [
|
|
2721
2736
|
{ type: Component, args: [{
|
|
2722
2737
|
selector: 'ec-menu',
|
|
2723
|
-
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)=\"
|
|
2738
|
+
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>",
|
|
2724
2739
|
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}"]
|
|
2725
2740
|
},] }
|
|
2726
2741
|
];
|
|
@@ -2743,6 +2758,7 @@ MenuComponent.propDecorators = {
|
|
|
2743
2758
|
noDataText: [{ type: Input }],
|
|
2744
2759
|
enableKeyNav: [{ type: Input }],
|
|
2745
2760
|
highlightedItem: [{ type: Input }],
|
|
2761
|
+
maintainSelectedItem: [{ type: Input }],
|
|
2746
2762
|
selectedChanged: [{ type: Output }],
|
|
2747
2763
|
menuClosed: [{ type: Output }],
|
|
2748
2764
|
labelTemplate: [{ type: ViewChild, args: ['label', { static: true },] }],
|
|
@@ -3481,7 +3497,7 @@ class NavItemActiveDirective {
|
|
|
3481
3497
|
if (this._url && this.classValue) {
|
|
3482
3498
|
if (this.router.isActive(this._url, this._exact)) {
|
|
3483
3499
|
this.renderer.addClass(this.el.nativeElement, this.classValue);
|
|
3484
|
-
this.routerLinkActivated.emit(new Event('routerLinkActivated'));
|
|
3500
|
+
this.routerLinkActivated.emit({ event: new Event('routerLinkActivated'), item: this.currentItem });
|
|
3485
3501
|
}
|
|
3486
3502
|
else {
|
|
3487
3503
|
this.renderer.removeClass(this.el.nativeElement, this.classValue);
|
|
@@ -3504,6 +3520,7 @@ NavItemActiveDirective.propDecorators = {
|
|
|
3504
3520
|
classValue: [{ type: Input, args: ['ecNavItemActive',] }],
|
|
3505
3521
|
exact: [{ type: Input, args: ['ecNavItemActiveExactMatch',] }],
|
|
3506
3522
|
queryParams: [{ type: Input, args: ['ecNavItemActiveQueryParams',] }],
|
|
3523
|
+
currentItem: [{ type: Input, args: ['ecNavItemCurrentItem',] }],
|
|
3507
3524
|
url: [{ type: Input, args: ['ecNavItemActiveUrl',] }],
|
|
3508
3525
|
routerLinkActivated: [{ type: Output }]
|
|
3509
3526
|
};
|
|
@@ -5273,110 +5290,6 @@ JsonDisplayComponent.propDecorators = {
|
|
|
5273
5290
|
maxLength: [{ type: Input }]
|
|
5274
5291
|
};
|
|
5275
5292
|
|
|
5276
|
-
/** Exposes the markup and styles that represent the spinner. No inputs or outputs defined because it is just a visual component*/
|
|
5277
|
-
class SpinnerComponent {
|
|
5278
|
-
}
|
|
5279
|
-
SpinnerComponent.decorators = [
|
|
5280
|
-
{ type: Component, args: [{
|
|
5281
|
-
selector: 'ec-spinner',
|
|
5282
|
-
template: "<div class=\"spinner\">\r\n <span class=\"spinner-dot\"></span>\r\n <span class=\"spinner-dot\"></span>\r\n <span class=\"spinner-dot\"></span>\r\n <span class=\"spinner-dot\"></span>\r\n</div>",
|
|
5283
|
-
styles: ["@-webkit-keyframes sk-bouncedelay{0%,80%,to{opacity:0}40%{opacity:1}}@keyframes sk-bouncedelay{0%,80%,to{opacity:0}40%{opacity:1}}.spinner{display:flex}.spinner-dot{-webkit-animation:sk-bouncedelay 1.7s ease-in-out infinite both;animation:sk-bouncedelay 1.7s ease-in-out infinite both;background-color:#0084a9;height:.75rem;margin-right:.25rem;width:.75rem}.spinner-dot:first-child{-webkit-animation-delay:-.6s;animation-delay:-.6s}.spinner-dot:nth-child(2){-webkit-animation-delay:-.4s;animation-delay:-.4s}.spinner-dot:nth-child(3){-webkit-animation-delay:-.2s;animation-delay:-.2s}:host(.spinner-small) .spinner-dot{-webkit-animation:sk-bouncedelay 1.7s ease-in-out infinite both;animation:sk-bouncedelay 1.7s ease-in-out infinite both;background-color:#0084a9;height:.5rem;margin-right:.1666666667rem;width:.5rem}:host(.spinner-small) .spinner-dot:first-child{-webkit-animation-delay:-.6s;animation-delay:-.6s}:host(.spinner-small) .spinner-dot:nth-child(2){-webkit-animation-delay:-.4s;animation-delay:-.4s}:host(.spinner-small) .spinner-dot:nth-child(3){-webkit-animation-delay:-.2s;animation-delay:-.2s}"]
|
|
5284
|
-
},] }
|
|
5285
|
-
];
|
|
5286
|
-
|
|
5287
|
-
class SplashService {
|
|
5288
|
-
constructor() {
|
|
5289
|
-
/** Used to interact with the splash component
|
|
5290
|
-
* The splash component will subscribe to this and any components
|
|
5291
|
-
* that wish to bring the splash visible can use this to communicate
|
|
5292
|
-
* with the splash component.
|
|
5293
|
-
*/
|
|
5294
|
-
this._splashVisibility = new Subject();
|
|
5295
|
-
this.splashVisibility = this._splashVisibility;
|
|
5296
|
-
}
|
|
5297
|
-
/**
|
|
5298
|
-
* Shows the splash screen
|
|
5299
|
-
*/
|
|
5300
|
-
showSplash() {
|
|
5301
|
-
this._splashVisibility.next(true);
|
|
5302
|
-
}
|
|
5303
|
-
/**
|
|
5304
|
-
* Hides the splash screen
|
|
5305
|
-
*/
|
|
5306
|
-
hideSplash() {
|
|
5307
|
-
this._splashVisibility.next(false);
|
|
5308
|
-
}
|
|
5309
|
-
}
|
|
5310
|
-
SplashService.ɵprov = ɵɵdefineInjectable({ factory: function SplashService_Factory() { return new SplashService(); }, token: SplashService, providedIn: "root" });
|
|
5311
|
-
SplashService.decorators = [
|
|
5312
|
-
{ type: Injectable, args: [{
|
|
5313
|
-
providedIn: 'root'
|
|
5314
|
-
},] }
|
|
5315
|
-
];
|
|
5316
|
-
SplashService.ctorParameters = () => [];
|
|
5317
|
-
|
|
5318
|
-
class SplashComponent {
|
|
5319
|
-
constructor(splashService) {
|
|
5320
|
-
this.splashService = splashService;
|
|
5321
|
-
/** Sets the visibility of the splash display */
|
|
5322
|
-
this.isVisible = true;
|
|
5323
|
-
this.stopAnimation = false;
|
|
5324
|
-
/** Emits when the service is destroyed */
|
|
5325
|
-
this.destroyed = new Subject();
|
|
5326
|
-
}
|
|
5327
|
-
ngOnInit() {
|
|
5328
|
-
this.splashService.splashVisibility.pipe(takeUntil(this.destroyed), tap((value) => __awaiter(this, void 0, void 0, function* () {
|
|
5329
|
-
if (value) {
|
|
5330
|
-
this.stopAnimation = false;
|
|
5331
|
-
}
|
|
5332
|
-
else {
|
|
5333
|
-
// Prevent animation from continuing after splash screen is hidden
|
|
5334
|
-
// but if we hide it then show while the timer is running, don't stop the animation after all
|
|
5335
|
-
timer(1000).pipe(takeUntil(this.splashService.splashVisibility)).subscribe(() => {
|
|
5336
|
-
this.stopAnimation = true;
|
|
5337
|
-
});
|
|
5338
|
-
}
|
|
5339
|
-
}))).subscribe(showSplash => {
|
|
5340
|
-
this.isVisible = showSplash;
|
|
5341
|
-
});
|
|
5342
|
-
}
|
|
5343
|
-
ngOnDestroy() {
|
|
5344
|
-
this.destroyed.next();
|
|
5345
|
-
this.destroyed.unsubscribe();
|
|
5346
|
-
}
|
|
5347
|
-
}
|
|
5348
|
-
SplashComponent.decorators = [
|
|
5349
|
-
{ type: Component, args: [{
|
|
5350
|
-
selector: 'ec-splash',
|
|
5351
|
-
template: "<div class=\"app-splash\"\r\n [class.app-loaded]=\"!isVisible\">\r\n\r\n <!-- This is the raw icon.svg file so we can animate it -->\r\n <svg [class.d-none]=\"stopAnimation\" \r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"50\"\r\n height=\"50\"\r\n viewBox=\"0 0 50 50\">\r\n <g>\r\n <g>\r\n <path fill=\"#A0AD39\"\r\n fill-rule=\"nonzero\"\r\n d=\"M34.93,32.25 L34.93,37.25 L15.21,37.25 L15.21,32.25 L34.93,32.25 Z M28.45,22.48 L28.45,27.48 L15.21,27.48 L15.21,22.48 L28.45,22.48 Z M34.93,12.71 L34.93,17.71 L15.21,17.71 L15.21,12.71 L34.93,12.71 Z\" />\r\n <path fill=\"#A0AD39\"\r\n d=\"M24.99,5 C31.1,5 36.56,7.75 40.23,12.07 L44.33,9.16 C39.75,3.57 32.78,0 24.99,0 C17.2,0 10.23,3.57 5.65,9.16 L9.75,12.07 C13.42,7.75 18.88,5 24.99,5 Z\" />\r\n </g>\r\n <path fill=\"#17303B\"\r\n d=\"M40.24,37.93 C36.57,42.25 31.11,45 25,45 C18.89,45 13.43,42.25 9.76,37.93 L9.78,37.92 C6.82,34.43 5,29.94 5,25 C5,21.86 5.74,18.91 7.03,16.26 L2.89,13.33 C1.05,16.81 0,20.78 0,25 C0,31.01 2.13,36.52 5.66,40.83 L5.66,40.83 C10.24,46.42 17.21,49.99 25,49.99 C32.79,49.99 39.76,46.42 44.34,40.83 L40.24,37.93 Z\" />\r\n </g>\r\n\r\n </svg>\r\n</div>"
|
|
5352
|
-
},] }
|
|
5353
|
-
];
|
|
5354
|
-
SplashComponent.ctorParameters = () => [
|
|
5355
|
-
{ type: SplashService }
|
|
5356
|
-
];
|
|
5357
|
-
|
|
5358
|
-
class ResizableColumnComponent {
|
|
5359
|
-
constructor(el) {
|
|
5360
|
-
this.el = el;
|
|
5361
|
-
this.onResize = new EventEmitter();
|
|
5362
|
-
}
|
|
5363
|
-
emitWidth(width) {
|
|
5364
|
-
this.onResize.emit(width);
|
|
5365
|
-
}
|
|
5366
|
-
}
|
|
5367
|
-
ResizableColumnComponent.decorators = [
|
|
5368
|
-
{ type: Component, args: [{
|
|
5369
|
-
selector: 'th.is-resizable',
|
|
5370
|
-
template: "<div class=\"content-wrapper\">\r\n <div class=\"content\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n<div class=\"handle\"></div>\r\n"
|
|
5371
|
-
},] }
|
|
5372
|
-
];
|
|
5373
|
-
ResizableColumnComponent.ctorParameters = () => [
|
|
5374
|
-
{ type: ElementRef }
|
|
5375
|
-
];
|
|
5376
|
-
ResizableColumnComponent.propDecorators = {
|
|
5377
|
-
onResize: [{ type: Output }]
|
|
5378
|
-
};
|
|
5379
|
-
|
|
5380
5293
|
class CacheService {
|
|
5381
5294
|
constructor() {
|
|
5382
5295
|
this.localStorageAvailable = false;
|
|
@@ -5595,6 +5508,163 @@ ResizableBase.propDecorators = {
|
|
|
5595
5508
|
id: [{ type: Input }]
|
|
5596
5509
|
};
|
|
5597
5510
|
|
|
5511
|
+
/**
|
|
5512
|
+
* Make an element resizable horizontally by wrapping it in the ResizableComponent.
|
|
5513
|
+
* Default widths / limits are applied but you can optionally override them
|
|
5514
|
+
* with min-width and max-width with style attributes
|
|
5515
|
+
* @example
|
|
5516
|
+
* <ec-resizable [style.width.px]="200"
|
|
5517
|
+
* [style.min-width.px]="75"
|
|
5518
|
+
* [style.max-width.px]="300">
|
|
5519
|
+
* <div> ... </div>
|
|
5520
|
+
* </ec-resizable>
|
|
5521
|
+
*/
|
|
5522
|
+
class ResizableComponent extends ResizableBase {
|
|
5523
|
+
constructor(el, renderer, cacheService, document) {
|
|
5524
|
+
super(renderer, cacheService, document);
|
|
5525
|
+
this.el = el;
|
|
5526
|
+
//default rememberWidth to true for standard resizable, resizable tables default to false
|
|
5527
|
+
this.rememberWidth = true;
|
|
5528
|
+
}
|
|
5529
|
+
/** Store the host element to reference later */
|
|
5530
|
+
ngOnInit() {
|
|
5531
|
+
this.currentEl = this.el.nativeElement;
|
|
5532
|
+
}
|
|
5533
|
+
/**
|
|
5534
|
+
* Set the new width of the element and emit the new width to subscribers
|
|
5535
|
+
*/
|
|
5536
|
+
setWidth(width) {
|
|
5537
|
+
this.renderer.setStyle(this.currentEl, 'width', width + 'px');
|
|
5538
|
+
this.saveWidths([width]);
|
|
5539
|
+
}
|
|
5540
|
+
/**Called from the base class when cached widths are available and restoring
|
|
5541
|
+
* width is enabled. We only care about the first one because we only have one width
|
|
5542
|
+
*/
|
|
5543
|
+
restoreWidths(widths) {
|
|
5544
|
+
this.setWidth(widths[0]);
|
|
5545
|
+
}
|
|
5546
|
+
}
|
|
5547
|
+
ResizableComponent.decorators = [
|
|
5548
|
+
{ type: Component, args: [{
|
|
5549
|
+
selector: 'ec-resizable',
|
|
5550
|
+
template: `<div class="content">
|
|
5551
|
+
<ng-content></ng-content>
|
|
5552
|
+
</div>
|
|
5553
|
+
<div class="handle" (mousedown)="startDrag($event)"></div>`,
|
|
5554
|
+
styles: ["@-webkit-keyframes spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}:host{border-right:1px solid #d2d7d9;display:flex;max-width:480px;min-width:100px;position:relative;width:240px}:host.is-active{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;user-select:none}:host.is-active .handle:after{background-color:#0084a9}.handle{height:100%;padding:0 5px;position:absolute;right:-7px;top:0;width:13px;z-index:30}.handle:after{content:\"\";display:block;height:100%;position:relative;transition:background-color .3s ease}.handle:hover{cursor:col-resize}.handle:hover:after{background-color:#0084a9}.content{display:flex;overflow:hidden}.content,.content ::ng-deep>*{flex:1 1;min-height:0;min-width:0}"]
|
|
5555
|
+
},] }
|
|
5556
|
+
];
|
|
5557
|
+
ResizableComponent.ctorParameters = () => [
|
|
5558
|
+
{ type: ElementRef },
|
|
5559
|
+
{ type: Renderer2 },
|
|
5560
|
+
{ type: CacheService },
|
|
5561
|
+
{ type: Document, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
|
|
5562
|
+
];
|
|
5563
|
+
|
|
5564
|
+
/** Exposes the markup and styles that represent the spinner. No inputs or outputs defined because it is just a visual component*/
|
|
5565
|
+
class SpinnerComponent {
|
|
5566
|
+
}
|
|
5567
|
+
SpinnerComponent.decorators = [
|
|
5568
|
+
{ type: Component, args: [{
|
|
5569
|
+
selector: 'ec-spinner',
|
|
5570
|
+
template: "<div class=\"spinner\">\r\n <span class=\"spinner-dot\"></span>\r\n <span class=\"spinner-dot\"></span>\r\n <span class=\"spinner-dot\"></span>\r\n <span class=\"spinner-dot\"></span>\r\n</div>",
|
|
5571
|
+
styles: ["@-webkit-keyframes sk-bouncedelay{0%,80%,to{opacity:0}40%{opacity:1}}@keyframes sk-bouncedelay{0%,80%,to{opacity:0}40%{opacity:1}}.spinner{display:flex}.spinner-dot{-webkit-animation:sk-bouncedelay 1.7s ease-in-out infinite both;animation:sk-bouncedelay 1.7s ease-in-out infinite both;background-color:#0084a9;height:.75rem;margin-right:.25rem;width:.75rem}.spinner-dot:first-child{-webkit-animation-delay:-.6s;animation-delay:-.6s}.spinner-dot:nth-child(2){-webkit-animation-delay:-.4s;animation-delay:-.4s}.spinner-dot:nth-child(3){-webkit-animation-delay:-.2s;animation-delay:-.2s}:host(.spinner-small) .spinner-dot{-webkit-animation:sk-bouncedelay 1.7s ease-in-out infinite both;animation:sk-bouncedelay 1.7s ease-in-out infinite both;background-color:#0084a9;height:.5rem;margin-right:.1666666667rem;width:.5rem}:host(.spinner-small) .spinner-dot:first-child{-webkit-animation-delay:-.6s;animation-delay:-.6s}:host(.spinner-small) .spinner-dot:nth-child(2){-webkit-animation-delay:-.4s;animation-delay:-.4s}:host(.spinner-small) .spinner-dot:nth-child(3){-webkit-animation-delay:-.2s;animation-delay:-.2s}"]
|
|
5572
|
+
},] }
|
|
5573
|
+
];
|
|
5574
|
+
|
|
5575
|
+
class SplashService {
|
|
5576
|
+
constructor() {
|
|
5577
|
+
/** Used to interact with the splash component
|
|
5578
|
+
* The splash component will subscribe to this and any components
|
|
5579
|
+
* that wish to bring the splash visible can use this to communicate
|
|
5580
|
+
* with the splash component.
|
|
5581
|
+
*/
|
|
5582
|
+
this._splashVisibility = new Subject();
|
|
5583
|
+
this.splashVisibility = this._splashVisibility;
|
|
5584
|
+
}
|
|
5585
|
+
/**
|
|
5586
|
+
* Shows the splash screen
|
|
5587
|
+
*/
|
|
5588
|
+
showSplash() {
|
|
5589
|
+
this._splashVisibility.next(true);
|
|
5590
|
+
}
|
|
5591
|
+
/**
|
|
5592
|
+
* Hides the splash screen
|
|
5593
|
+
*/
|
|
5594
|
+
hideSplash() {
|
|
5595
|
+
this._splashVisibility.next(false);
|
|
5596
|
+
}
|
|
5597
|
+
}
|
|
5598
|
+
SplashService.ɵprov = ɵɵdefineInjectable({ factory: function SplashService_Factory() { return new SplashService(); }, token: SplashService, providedIn: "root" });
|
|
5599
|
+
SplashService.decorators = [
|
|
5600
|
+
{ type: Injectable, args: [{
|
|
5601
|
+
providedIn: 'root'
|
|
5602
|
+
},] }
|
|
5603
|
+
];
|
|
5604
|
+
SplashService.ctorParameters = () => [];
|
|
5605
|
+
|
|
5606
|
+
class SplashComponent {
|
|
5607
|
+
constructor(splashService) {
|
|
5608
|
+
this.splashService = splashService;
|
|
5609
|
+
/** Sets the visibility of the splash display */
|
|
5610
|
+
this.isVisible = true;
|
|
5611
|
+
this.stopAnimation = false;
|
|
5612
|
+
/** Emits when the service is destroyed */
|
|
5613
|
+
this.destroyed = new Subject();
|
|
5614
|
+
}
|
|
5615
|
+
ngOnInit() {
|
|
5616
|
+
this.splashService.splashVisibility.pipe(takeUntil(this.destroyed), tap((value) => __awaiter(this, void 0, void 0, function* () {
|
|
5617
|
+
if (value) {
|
|
5618
|
+
this.stopAnimation = false;
|
|
5619
|
+
}
|
|
5620
|
+
else {
|
|
5621
|
+
// Prevent animation from continuing after splash screen is hidden
|
|
5622
|
+
// but if we hide it then show while the timer is running, don't stop the animation after all
|
|
5623
|
+
timer(1000).pipe(takeUntil(this.splashService.splashVisibility)).subscribe(() => {
|
|
5624
|
+
this.stopAnimation = true;
|
|
5625
|
+
});
|
|
5626
|
+
}
|
|
5627
|
+
}))).subscribe(showSplash => {
|
|
5628
|
+
this.isVisible = showSplash;
|
|
5629
|
+
});
|
|
5630
|
+
}
|
|
5631
|
+
ngOnDestroy() {
|
|
5632
|
+
this.destroyed.next();
|
|
5633
|
+
this.destroyed.unsubscribe();
|
|
5634
|
+
}
|
|
5635
|
+
}
|
|
5636
|
+
SplashComponent.decorators = [
|
|
5637
|
+
{ type: Component, args: [{
|
|
5638
|
+
selector: 'ec-splash',
|
|
5639
|
+
template: "<div class=\"app-splash\"\r\n [class.app-loaded]=\"!isVisible\">\r\n\r\n <!-- This is the raw icon.svg file so we can animate it -->\r\n <svg [class.d-none]=\"stopAnimation\" \r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"50\"\r\n height=\"50\"\r\n viewBox=\"0 0 50 50\">\r\n <g>\r\n <g>\r\n <path fill=\"#A0AD39\"\r\n fill-rule=\"nonzero\"\r\n d=\"M34.93,32.25 L34.93,37.25 L15.21,37.25 L15.21,32.25 L34.93,32.25 Z M28.45,22.48 L28.45,27.48 L15.21,27.48 L15.21,22.48 L28.45,22.48 Z M34.93,12.71 L34.93,17.71 L15.21,17.71 L15.21,12.71 L34.93,12.71 Z\" />\r\n <path fill=\"#A0AD39\"\r\n d=\"M24.99,5 C31.1,5 36.56,7.75 40.23,12.07 L44.33,9.16 C39.75,3.57 32.78,0 24.99,0 C17.2,0 10.23,3.57 5.65,9.16 L9.75,12.07 C13.42,7.75 18.88,5 24.99,5 Z\" />\r\n </g>\r\n <path fill=\"#17303B\"\r\n d=\"M40.24,37.93 C36.57,42.25 31.11,45 25,45 C18.89,45 13.43,42.25 9.76,37.93 L9.78,37.92 C6.82,34.43 5,29.94 5,25 C5,21.86 5.74,18.91 7.03,16.26 L2.89,13.33 C1.05,16.81 0,20.78 0,25 C0,31.01 2.13,36.52 5.66,40.83 L5.66,40.83 C10.24,46.42 17.21,49.99 25,49.99 C32.79,49.99 39.76,46.42 44.34,40.83 L40.24,37.93 Z\" />\r\n </g>\r\n\r\n </svg>\r\n</div>"
|
|
5640
|
+
},] }
|
|
5641
|
+
];
|
|
5642
|
+
SplashComponent.ctorParameters = () => [
|
|
5643
|
+
{ type: SplashService }
|
|
5644
|
+
];
|
|
5645
|
+
|
|
5646
|
+
class ResizableColumnComponent {
|
|
5647
|
+
constructor(el) {
|
|
5648
|
+
this.el = el;
|
|
5649
|
+
this.onResize = new EventEmitter();
|
|
5650
|
+
}
|
|
5651
|
+
emitWidth(width) {
|
|
5652
|
+
this.onResize.emit(width);
|
|
5653
|
+
}
|
|
5654
|
+
}
|
|
5655
|
+
ResizableColumnComponent.decorators = [
|
|
5656
|
+
{ type: Component, args: [{
|
|
5657
|
+
selector: 'th.is-resizable',
|
|
5658
|
+
template: "<div class=\"content-wrapper\">\r\n <div class=\"content\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n<div class=\"handle\"></div>\r\n"
|
|
5659
|
+
},] }
|
|
5660
|
+
];
|
|
5661
|
+
ResizableColumnComponent.ctorParameters = () => [
|
|
5662
|
+
{ type: ElementRef }
|
|
5663
|
+
];
|
|
5664
|
+
ResizableColumnComponent.propDecorators = {
|
|
5665
|
+
onResize: [{ type: Output }]
|
|
5666
|
+
};
|
|
5667
|
+
|
|
5598
5668
|
/**
|
|
5599
5669
|
* Add the ability to resize columns to a standard HTML table.
|
|
5600
5670
|
* Specify a column as resizable by adding the .is-resizable class to a <th>.
|
|
@@ -7443,6 +7513,31 @@ IfViewportWidthDirective.propDecorators = {
|
|
|
7443
7513
|
width: [{ type: Input, args: ['ecIfViewportWidth',] }]
|
|
7444
7514
|
};
|
|
7445
7515
|
|
|
7516
|
+
class HighlightTextPipe {
|
|
7517
|
+
transform(value, searchText) {
|
|
7518
|
+
let transformedValue = '';
|
|
7519
|
+
if (value && searchText) {
|
|
7520
|
+
const regex = new RegExp(this.escapeRegex(searchText), 'gi');
|
|
7521
|
+
transformedValue = value.replace(regex, this.strongWrap);
|
|
7522
|
+
}
|
|
7523
|
+
else {
|
|
7524
|
+
transformedValue = value;
|
|
7525
|
+
}
|
|
7526
|
+
return transformedValue;
|
|
7527
|
+
}
|
|
7528
|
+
strongWrap(match) {
|
|
7529
|
+
return `<strong class="text-highlight">${match}</strong>`;
|
|
7530
|
+
}
|
|
7531
|
+
escapeRegex(value) {
|
|
7532
|
+
return value.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
|
|
7533
|
+
}
|
|
7534
|
+
}
|
|
7535
|
+
HighlightTextPipe.decorators = [
|
|
7536
|
+
{ type: Pipe, args: [{
|
|
7537
|
+
name: 'highlightText'
|
|
7538
|
+
},] }
|
|
7539
|
+
];
|
|
7540
|
+
|
|
7446
7541
|
/**
|
|
7447
7542
|
* Format a time to the user's preference for display
|
|
7448
7543
|
*/
|
|
@@ -7529,7 +7624,7 @@ class PageTitleComponent {
|
|
|
7529
7624
|
PageTitleComponent.decorators = [
|
|
7530
7625
|
{ type: Component, args: [{
|
|
7531
7626
|
selector: 'app-page-title',
|
|
7532
|
-
template: "<i *ngIf=\"titleIcon\"\r\n class=\"flex-shrink mr-1 my-1 ec-icon ec-icon-md {{titleIcon}}\"></i>\r\n<div>\r\n <h1 *ngIf=\"title\"\r\n
|
|
7627
|
+
template: "<i *ngIf=\"titleIcon\"\r\n class=\"flex-shrink mr-1 my-1 ec-icon ec-icon-md {{titleIcon}}\"></i>\r\n<div class=\"text-truncate\">\r\n <h1 *ngIf=\"title\"\r\n class=\"text-title-1 mb-0 py-1 text-truncate\"\r\n title=\"{{title}}\">{{title}}</h1>\r\n <p *ngIf=\"subTitle\"\r\n class=\"text-caption-1 mb-0 mt-n1 text-truncate\">{{subTitle}}</p>\r\n</div>",
|
|
7533
7628
|
host: {
|
|
7534
7629
|
class: 'd-flex'
|
|
7535
7630
|
}
|
|
@@ -7594,7 +7689,7 @@ class PageViewComponent {
|
|
|
7594
7689
|
PageViewComponent.decorators = [
|
|
7595
7690
|
{ type: Component, args: [{
|
|
7596
7691
|
selector: 'ec-page-view',
|
|
7597
|
-
template: "<div ecOverlay\r\n [status]=\"status?.status\"\r\n [message]=\"status?.message\"\r\n [displayAsMask]=\"true\"\r\n class=\"bg-body flex-grow d-flex\">\r\n <div id=\"PageViewScrollContainer\" \r\n class=\"d-flex flex-column flex-grow scroll-y\" \r\n [class.is-dialog]=\"isDialog\"\r\n [class.fit-content]=\"fitContent\"\r\n [class.sticky-footer]=\"stickyFooter && !!footerTemplate\"\r\n [class.overlay-visible]=\"status?.status !== 'hasData'\">\r\n <section>\r\n <ng-content></ng-content> \r\n </section>\r\n \r\n <footer>\r\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\r\n </footer>\r\n\r\n <header *ngIf=\"showHeader\">\r\n \r\n <ol id=\"breadcrumbs\"\r\n *ngIf=\"breadcrumbs?.length && !isDialog\">\r\n <li *ngFor=\"let crumb of breadcrumbs; last as isLast\">\r\n <a *ngIf=\"crumb.url; else label\"\r\n [routerLink]=\"crumb.url\">\r\n <ng-container *ngTemplateOutlet=\"label\"></ng-container>\r\n </a>\r\n <ng-template #label>{{crumb.label}}</ng-template>\r\n </li>\r\n </ol>\r\n \r\n <div *ngIf=\"!customHeaderTemplate; else customHeaderOutlet\" class=\"titlebar\">\r\n <app-page-title *ngIf=\"!customTitleTemplate; else customTitle\" \r\n [title]=\"title\"\r\n [subTitle]=\"subTitle\"\r\n [titleIcon]=\"titleIcon\"\r\n class=\"title\">\r\n </app-page-title>\r\n \r\n <ng-template #customTitle>\r\n <div class=\"title\">\r\n <ng-container *ngTemplateOutlet=\"customTitleTemplate\"></ng-container>\r\n </div>\r\n </ng-template>\r\n \r\n <div class=\"actions\">\r\n <ec-button id=\"primaryAction\"\r\n class=\"ml-2\"\r\n *ngIf=\"!hidePrimaryAction && onPrimaryAction.observers?.length\"\r\n [disabled]=\"status?.status === 'pending'\"\r\n type=\"primary\"\r\n [label]=\"primaryActionLabel\"\r\n (clicked)=\"primaryAction($event)\">\r\n </ec-button>\r\n <ec-button id=\"secondaryAction\"\r\n class=\"ml-2\"\r\n *ngIf=\"!hideSecondaryAction && onSecondaryAction.observers?.length\"\r\n type=\"secondary\"\r\n [label]=\"secondaryActionLabel\"\r\n (clicked)=\"secondaryAction($event)\">\r\n </ec-button>\r\n <ec-dropdown id=\"moreActions\"\r\n *ngIf=\"moreActions?.length\"\r\n [disabled]=\"status?.status === 'pending'\"\r\n class=\"ml-2\"\r\n buttonType=\"secondary\"\r\n [label]=\"moreActionsLabel\"\r\n [items]=\"moreActions\">\r\n </ec-dropdown>\r\n <ng-container *ngTemplateOutlet=\"customActionsTemplate\"></ng-container>\r\n </div>\r\n </div>\r\n \r\n <ng-template #customHeaderOutlet> \r\n <div class=\"page-header\">\r\n <ng-container *ngTemplateOutlet=\"customHeaderTemplate\"></ng-container>\r\n </div>\r\n </ng-template>\r\n \r\n <ec-banner *ngIf=\"errors\"\r\n id=\"pageViewErrors\"\r\n [class.border-bottom-0]=\"!isDialog\">\r\n <div [innerHtml]=\"errors\"></div>\r\n </ec-banner>\r\n </header>\r\n </div>\r\n</div>\r\n\r\n",
|
|
7692
|
+
template: "<div ecOverlay\r\n [status]=\"status?.status\"\r\n [message]=\"status?.message\"\r\n [displayAsMask]=\"true\"\r\n class=\"bg-body flex-grow d-flex\">\r\n <div id=\"PageViewScrollContainer\" \r\n class=\"d-flex flex-column flex-grow scroll-y\" \r\n [class.is-dialog]=\"isDialog\"\r\n [class.fit-content]=\"fitContent\"\r\n [class.sticky-footer]=\"stickyFooter && !!footerTemplate\"\r\n [class.overlay-visible]=\"status?.status !== 'hasData'\">\r\n <section>\r\n <ng-content></ng-content> \r\n </section>\r\n \r\n <footer>\r\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\r\n </footer>\r\n\r\n <header *ngIf=\"showHeader\">\r\n \r\n <ol id=\"breadcrumbs\"\r\n *ngIf=\"breadcrumbs?.length && !isDialog\">\r\n <li *ngFor=\"let crumb of breadcrumbs; last as isLast\">\r\n <a *ngIf=\"crumb.url; else label\"\r\n [routerLink]=\"crumb.url\">\r\n <ng-container *ngTemplateOutlet=\"label\"></ng-container>\r\n </a>\r\n <ng-template #label>{{crumb.label}}</ng-template>\r\n </li>\r\n </ol>\r\n \r\n <div *ngIf=\"!customHeaderTemplate; else customHeaderOutlet\" class=\"titlebar\">\r\n <app-page-title *ngIf=\"!customTitleTemplate; else customTitle\" \r\n [title]=\"title\"\r\n [subTitle]=\"subTitle\"\r\n [titleIcon]=\"titleIcon\"\r\n class=\"title text-truncate\">\r\n </app-page-title>\r\n \r\n <ng-template #customTitle>\r\n <div class=\"title\">\r\n <ng-container *ngTemplateOutlet=\"customTitleTemplate\"></ng-container>\r\n </div>\r\n </ng-template>\r\n \r\n <div class=\"actions\">\r\n <ec-button id=\"primaryAction\"\r\n class=\"ml-2\"\r\n *ngIf=\"!hidePrimaryAction && onPrimaryAction.observers?.length\"\r\n [disabled]=\"status?.status === 'pending'\"\r\n type=\"primary\"\r\n [label]=\"primaryActionLabel\"\r\n (clicked)=\"primaryAction($event)\">\r\n </ec-button>\r\n <ec-button id=\"secondaryAction\"\r\n class=\"ml-2\"\r\n *ngIf=\"!hideSecondaryAction && onSecondaryAction.observers?.length\"\r\n type=\"secondary\"\r\n [label]=\"secondaryActionLabel\"\r\n (clicked)=\"secondaryAction($event)\">\r\n </ec-button>\r\n <ec-dropdown id=\"moreActions\"\r\n *ngIf=\"moreActions?.length\"\r\n [disabled]=\"status?.status === 'pending'\"\r\n class=\"ml-2\"\r\n buttonType=\"secondary\"\r\n [label]=\"moreActionsLabel\"\r\n [items]=\"moreActions\">\r\n </ec-dropdown>\r\n <ng-container *ngTemplateOutlet=\"customActionsTemplate\"></ng-container>\r\n </div>\r\n </div>\r\n \r\n <ng-template #customHeaderOutlet> \r\n <div class=\"page-header\">\r\n <ng-container *ngTemplateOutlet=\"customHeaderTemplate\"></ng-container>\r\n </div>\r\n </ng-template>\r\n \r\n <ec-banner *ngIf=\"errors\"\r\n id=\"pageViewErrors\"\r\n [class.border-bottom-0]=\"!isDialog\">\r\n <div [innerHtml]=\"errors\"></div>\r\n </ec-banner>\r\n </header>\r\n </div>\r\n</div>\r\n\r\n",
|
|
7598
7693
|
host: {
|
|
7599
7694
|
class: "flex-grow"
|
|
7600
7695
|
},
|
|
@@ -7905,7 +8000,8 @@ ComponentsModule.decorators = [
|
|
|
7905
8000
|
HierarchyTreeComponent,
|
|
7906
8001
|
TreeComponent,
|
|
7907
8002
|
RelativeDatePipe,
|
|
7908
|
-
ResizableComponent
|
|
8003
|
+
ResizableComponent,
|
|
8004
|
+
HighlightTextPipe
|
|
7909
8005
|
],
|
|
7910
8006
|
imports: [
|
|
7911
8007
|
CommonModule,
|
|
@@ -7923,7 +8019,8 @@ ComponentsModule.decorators = [
|
|
|
7923
8019
|
TimeDisplayPipe,
|
|
7924
8020
|
MockDateDisplayPipe,
|
|
7925
8021
|
RowCountPipe,
|
|
7926
|
-
RelativeDatePipe
|
|
8022
|
+
RelativeDatePipe,
|
|
8023
|
+
HighlightTextPipe
|
|
7927
8024
|
],
|
|
7928
8025
|
exports: [
|
|
7929
8026
|
ButtonComponent,
|
|
@@ -7978,7 +8075,8 @@ ComponentsModule.decorators = [
|
|
|
7978
8075
|
HierarchyTreeComponent,
|
|
7979
8076
|
TreeComponent,
|
|
7980
8077
|
RelativeDatePipe,
|
|
7981
|
-
ResizableComponent
|
|
8078
|
+
ResizableComponent,
|
|
8079
|
+
HighlightTextPipe
|
|
7982
8080
|
]
|
|
7983
8081
|
},] }
|
|
7984
8082
|
];
|
|
@@ -8057,59 +8155,6 @@ class Tag {
|
|
|
8057
8155
|
}
|
|
8058
8156
|
;
|
|
8059
8157
|
|
|
8060
|
-
/**
|
|
8061
|
-
* Make an element resizable horizontally by wrapping it in the ResizableComponent.
|
|
8062
|
-
* Default widths / limits are applied but you can optionally override them
|
|
8063
|
-
* with min-width and max-width with style attributes
|
|
8064
|
-
* @example
|
|
8065
|
-
* <ec-resizable [style.width.px]="200"
|
|
8066
|
-
* [style.min-width.px]="75"
|
|
8067
|
-
* [style.max-width.px]="300">
|
|
8068
|
-
* <div> ... </div>
|
|
8069
|
-
* </ec-resizable>
|
|
8070
|
-
*/
|
|
8071
|
-
class ResizableComponent extends ResizableBase {
|
|
8072
|
-
constructor(el, renderer, cacheService, document) {
|
|
8073
|
-
super(renderer, cacheService, document);
|
|
8074
|
-
this.el = el;
|
|
8075
|
-
//default rememberWidth to true for standard resizable, resizable tables default to false
|
|
8076
|
-
this.rememberWidth = true;
|
|
8077
|
-
}
|
|
8078
|
-
/** Store the host element to reference later */
|
|
8079
|
-
ngOnInit() {
|
|
8080
|
-
this.currentEl = this.el.nativeElement;
|
|
8081
|
-
}
|
|
8082
|
-
/**
|
|
8083
|
-
* Set the new width of the element and emit the new width to subscribers
|
|
8084
|
-
*/
|
|
8085
|
-
setWidth(width) {
|
|
8086
|
-
this.renderer.setStyle(this.currentEl, 'width', width + 'px');
|
|
8087
|
-
this.saveWidths([width]);
|
|
8088
|
-
}
|
|
8089
|
-
/**Called from the base class when cached widths are available and restoring
|
|
8090
|
-
* width is enabled. We only care about the first one because we only have one width
|
|
8091
|
-
*/
|
|
8092
|
-
restoreWidths(widths) {
|
|
8093
|
-
this.setWidth(widths[0]);
|
|
8094
|
-
}
|
|
8095
|
-
}
|
|
8096
|
-
ResizableComponent.decorators = [
|
|
8097
|
-
{ type: Component, args: [{
|
|
8098
|
-
selector: 'ec-resizable',
|
|
8099
|
-
template: `<div class="content">
|
|
8100
|
-
<ng-content></ng-content>
|
|
8101
|
-
</div>
|
|
8102
|
-
<div class="handle" (mousedown)="startDrag($event)"></div>`,
|
|
8103
|
-
styles: ["@-webkit-keyframes spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}:host{border-right:1px solid #d2d7d9;display:flex;max-width:480px;min-width:100px;position:relative;width:240px}:host.is-active{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;user-select:none}:host.is-active .handle:after{background-color:#0084a9}.handle{height:100%;padding:0 5px;position:absolute;right:-7px;top:0;width:13px;z-index:30}.handle:after{content:\"\";display:block;height:100%;position:relative;transition:background-color .3s ease}.handle:hover{cursor:col-resize}.handle:hover:after{background-color:#0084a9}.content{display:flex;overflow:hidden}.content,.content ::ng-deep>*{flex:1 1;min-height:0;min-width:0}"]
|
|
8104
|
-
},] }
|
|
8105
|
-
];
|
|
8106
|
-
ResizableComponent.ctorParameters = () => [
|
|
8107
|
-
{ type: ElementRef },
|
|
8108
|
-
{ type: Renderer2 },
|
|
8109
|
-
{ type: CacheService },
|
|
8110
|
-
{ type: Document, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
|
|
8111
|
-
];
|
|
8112
|
-
|
|
8113
8158
|
class CustomValidators {
|
|
8114
8159
|
}
|
|
8115
8160
|
/**
|
|
@@ -8182,6 +8227,10 @@ class PageBaseComponent {
|
|
|
8182
8227
|
* Default unknown save error message, override if a more specific message is needed
|
|
8183
8228
|
*/
|
|
8184
8229
|
this.defaultUnknownSaveError = 'PageBaseUnknownSaveError_SC';
|
|
8230
|
+
/**
|
|
8231
|
+
* Used to opt out of hiding the splash screen when the page is loaded
|
|
8232
|
+
*/
|
|
8233
|
+
this.skipHideSplashOnComplete = false;
|
|
8185
8234
|
/**
|
|
8186
8235
|
* Used to unsubscribe from observables
|
|
8187
8236
|
*/
|
|
@@ -8203,6 +8252,7 @@ class PageBaseComponent {
|
|
|
8203
8252
|
this.router = injector.get(Router);
|
|
8204
8253
|
this.activatedRoute = injector.get(ActivatedRoute);
|
|
8205
8254
|
this.dialogService = injector.get(DialogService);
|
|
8255
|
+
this.splashService = injector.get(SplashService);
|
|
8206
8256
|
}
|
|
8207
8257
|
get errors() {
|
|
8208
8258
|
return this._errors;
|
|
@@ -8250,6 +8300,9 @@ class PageBaseComponent {
|
|
|
8250
8300
|
if (this.status.status === 'pending') {
|
|
8251
8301
|
this.showStatus(PageStatus.Loaded);
|
|
8252
8302
|
}
|
|
8303
|
+
if (!this.skipHideSplashOnComplete) {
|
|
8304
|
+
this.splashService.hideSplash();
|
|
8305
|
+
}
|
|
8253
8306
|
this.setUpRouterSubscriptions();
|
|
8254
8307
|
}
|
|
8255
8308
|
catch (error) {
|
|
@@ -8600,6 +8653,13 @@ PageBaseComponentTestInjectorFactory.CoreProviders = [
|
|
|
8600
8653
|
return new MockActivatedRoute();
|
|
8601
8654
|
},
|
|
8602
8655
|
deps: [],
|
|
8656
|
+
},
|
|
8657
|
+
{
|
|
8658
|
+
provide: SplashService,
|
|
8659
|
+
useFactory: () => {
|
|
8660
|
+
return SpyFactory.createSpy(SplashService);
|
|
8661
|
+
},
|
|
8662
|
+
deps: []
|
|
8603
8663
|
}
|
|
8604
8664
|
];
|
|
8605
8665
|
/**
|
|
@@ -8969,5 +9029,5 @@ class HierarchyBaseTestInjectorFactory {
|
|
|
8969
9029
|
* Generated bundle index. Do not edit.
|
|
8970
9030
|
*/
|
|
8971
9031
|
|
|
8972
|
-
export { AppBarComponent, AvatarComponent, BannerComponent, ButtonComponent, CacheService, CheckboxComponent, ClickAreaForDirective, CollapsibleToggleComponent, ComboboxComponent, ComponentsModule, ConfirmComponent, ConfirmDialogContext, CopyButtonDirective, CustomValidators, DateDisplayPipe, DateTimeHelper, DialogCloseDuration, DialogCloseEvent, DialogCloseLatestEvent, DialogComponent, DialogEvent, DialogGroupComponent, DialogOpenDuration, DialogOpenEndEvent, DialogOpenStartEvent, DialogResult, DialogService, DropdownComponent, ErrorService, FileTypeExtensions, FileUploadComponent, FormControlBase, FormControlComponent, FormGroupComponent, FormGroupHelper, HierarchyBase, HierarchyBaseTestInjectorFactory, HierarchyItem, HierarchyMocks, HierarchyTreeComponent, IfViewportWidthDirective, ItemDisplayComponent, JsonDisplayComponent, JsonHelper, MenuComponent, MockActivatedRoute, MockDateDisplayPipe, MockDialog, MockDialogContent, MockTranslateService, MockTranslationHelperService, NavGroup, NavItemActiveDirective, NumericboxComponent, Overlay, PageBaseComponent, PageBaseComponentTestHelper, PageBaseComponentTestInjectorFactory, PageInitResult, PageStatus, PageStatuses, PageTitleComponent, PageViewComponent, PanelCloseDuration, PanelOpenDuration, PopoverComponent, PopupContainerDirective, RadioButtonComponent, RadioButtonOption, RelativeDatePipe, ResizableBase, ResizableColumnComponent, ResizableComponent, RowCountPipe, ScrollService, SearchableTableComponent, SelectComponent, SpinnerComponent, SplashComponent, SplashService, SpyFactory, TableComponent, TableLockedColumnComponent, TableMasterHeaderRowComponent, TableMasterRowComponent, TablePaginationComponent, TableSelectableRowComponent, TableSelectableRowContext, TabsComponent, Tag, TagsComponent, TelemetryService, TelemetryTrackerService, TextboxComponent, TimeDisplayPipe, ToastComponent, ToastEvent, ToastService, ToasterComponent, TreeComponent, UnicodeStrings, UserPreferenceService, ValidationMessageService, ViewOverlayComponent, WindowService, WizardBaseComponent, WizardButtonsComponent, WizardProgressComponent, canadianPostalCodeRegex, clickEvent, dateInputFormatRegex, findAllSpacesPattern, forEachFormControl, getApiError, getControlValue, getDecimalPattern, integerPattern, isApiError, menuAnimationSpeed, mockRouterFactory, numericboxValidation, orderByIgnoreCase, otherZipCodeRegex, phoneNumberValidationPattern, sortByIgnoreCase, textboxValidation, unitedStatesZipCodeRegex, urlValidationPattern, validateFormGroupValuesAreUnique, ResizableTableDirective as ɵa, AvatarService as ɵb, TableDetailRowComponent as ɵc };
|
|
9032
|
+
export { AppBarComponent, AvatarComponent, BannerComponent, ButtonComponent, CacheService, CheckboxComponent, ClickAreaForDirective, CollapsibleToggleComponent, ComboboxComponent, ComponentsModule, ConfirmComponent, ConfirmDialogContext, CopyButtonDirective, CustomValidators, DateDisplayPipe, DateTimeHelper, DialogCloseDuration, DialogCloseEvent, DialogCloseLatestEvent, DialogComponent, DialogEvent, DialogGroupComponent, DialogOpenDuration, DialogOpenEndEvent, DialogOpenStartEvent, DialogResult, DialogService, DropdownComponent, ErrorService, FileTypeExtensions, FileUploadComponent, FormControlBase, FormControlComponent, FormGroupComponent, FormGroupHelper, HierarchyBase, HierarchyBaseTestInjectorFactory, HierarchyItem, HierarchyMocks, HierarchyTreeComponent, HighlightTextPipe, IfViewportWidthDirective, ItemDisplayComponent, JsonDisplayComponent, JsonHelper, MenuComponent, MockActivatedRoute, MockDateDisplayPipe, MockDialog, MockDialogContent, MockTranslateService, MockTranslationHelperService, NavGroup, NavItemActiveDirective, NumericboxComponent, Overlay, PageBaseComponent, PageBaseComponentTestHelper, PageBaseComponentTestInjectorFactory, PageInitResult, PageStatus, PageStatuses, PageTitleComponent, PageViewComponent, PanelCloseDuration, PanelOpenDuration, PopoverComponent, PopupContainerDirective, RadioButtonComponent, RadioButtonOption, RelativeDatePipe, ResizableBase, ResizableColumnComponent, ResizableComponent, RowCountPipe, ScrollService, SearchableTableComponent, SelectComponent, SpinnerComponent, SplashComponent, SplashService, SpyFactory, TableComponent, TableLockedColumnComponent, TableMasterHeaderRowComponent, TableMasterRowComponent, TablePaginationComponent, TableSelectableRowComponent, TableSelectableRowContext, TabsComponent, Tag, TagsComponent, TelemetryService, TelemetryTrackerService, TextboxComponent, TimeDisplayPipe, ToastComponent, ToastEvent, ToastService, ToasterComponent, TreeComponent, UnicodeStrings, UserPreferenceService, ValidationMessageService, ViewOverlayComponent, WindowService, WizardBaseComponent, WizardButtonsComponent, WizardProgressComponent, canadianPostalCodeRegex, clickEvent, dateInputFormatRegex, findAllSpacesPattern, forEachFormControl, getApiError, getControlValue, getDecimalPattern, integerPattern, isApiError, menuAnimationSpeed, mockRouterFactory, numericboxValidation, orderByIgnoreCase, otherZipCodeRegex, phoneNumberValidationPattern, sortByIgnoreCase, textboxValidation, unitedStatesZipCodeRegex, urlValidationPattern, validateFormGroupValuesAreUnique, ResizableTableDirective as ɵa, AvatarService as ɵb, TableDetailRowComponent as ɵc };
|
|
8973
9033
|
//# sourceMappingURL=energycap-components.js.map
|