@energycap/components 0.27.2-ECAPID-381-Title-Updates.20220119-1621 → 0.27.2-ECAPID-377-Implement-Sidebar.20220120-1419
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 +52 -5
- 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 +8 -4
- 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 +49 -6
- package/fesm2015/energycap-components.js.map +1 -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
|
@@ -7496,6 +7496,31 @@ IfViewportWidthDirective.propDecorators = {
|
|
|
7496
7496
|
width: [{ type: Input, args: ['ecIfViewportWidth',] }]
|
|
7497
7497
|
};
|
|
7498
7498
|
|
|
7499
|
+
class HighlightTextPipe {
|
|
7500
|
+
transform(value, searchText) {
|
|
7501
|
+
let transformedValue = '';
|
|
7502
|
+
if (value && searchText) {
|
|
7503
|
+
const regex = new RegExp(this.escapeRegex(searchText), 'gi');
|
|
7504
|
+
transformedValue = value.replace(regex, this.strongWrap);
|
|
7505
|
+
}
|
|
7506
|
+
else {
|
|
7507
|
+
transformedValue = value;
|
|
7508
|
+
}
|
|
7509
|
+
return transformedValue;
|
|
7510
|
+
}
|
|
7511
|
+
strongWrap(match) {
|
|
7512
|
+
return `<strong class="text-highlight">${match}</strong>`;
|
|
7513
|
+
}
|
|
7514
|
+
escapeRegex(value) {
|
|
7515
|
+
return value.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
|
|
7516
|
+
}
|
|
7517
|
+
}
|
|
7518
|
+
HighlightTextPipe.decorators = [
|
|
7519
|
+
{ type: Pipe, args: [{
|
|
7520
|
+
name: 'highlightText'
|
|
7521
|
+
},] }
|
|
7522
|
+
];
|
|
7523
|
+
|
|
7499
7524
|
/**
|
|
7500
7525
|
* Format a time to the user's preference for display
|
|
7501
7526
|
*/
|
|
@@ -7582,7 +7607,7 @@ class PageTitleComponent {
|
|
|
7582
7607
|
PageTitleComponent.decorators = [
|
|
7583
7608
|
{ type: Component, args: [{
|
|
7584
7609
|
selector: 'app-page-title',
|
|
7585
|
-
template: "<i *ngIf=\"titleIcon\"\r\n class=\"flex-shrink mr-1 my-1 ec-icon ec-icon-md {{titleIcon}}\"></i>\r\n<div
|
|
7610
|
+
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 class=\"text-title-1 mb-0 py-1 text-truncate\">{{title}}</h1>\r\n <p *ngIf=\"subTitle\"\r\n class=\"text-caption-1 mb-0 mt-n1 text-truncate\">{{subTitle}}</p>\r\n</div>",
|
|
7586
7611
|
host: {
|
|
7587
7612
|
class: 'd-flex'
|
|
7588
7613
|
}
|
|
@@ -7647,7 +7672,7 @@ class PageViewComponent {
|
|
|
7647
7672
|
PageViewComponent.decorators = [
|
|
7648
7673
|
{ type: Component, args: [{
|
|
7649
7674
|
selector: 'ec-page-view',
|
|
7650
|
-
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
|
|
7675
|
+
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",
|
|
7651
7676
|
host: {
|
|
7652
7677
|
class: "flex-grow"
|
|
7653
7678
|
},
|
|
@@ -7958,7 +7983,8 @@ ComponentsModule.decorators = [
|
|
|
7958
7983
|
HierarchyTreeComponent,
|
|
7959
7984
|
TreeComponent,
|
|
7960
7985
|
RelativeDatePipe,
|
|
7961
|
-
ResizableComponent
|
|
7986
|
+
ResizableComponent,
|
|
7987
|
+
HighlightTextPipe
|
|
7962
7988
|
],
|
|
7963
7989
|
imports: [
|
|
7964
7990
|
CommonModule,
|
|
@@ -7976,7 +8002,8 @@ ComponentsModule.decorators = [
|
|
|
7976
8002
|
TimeDisplayPipe,
|
|
7977
8003
|
MockDateDisplayPipe,
|
|
7978
8004
|
RowCountPipe,
|
|
7979
|
-
RelativeDatePipe
|
|
8005
|
+
RelativeDatePipe,
|
|
8006
|
+
HighlightTextPipe
|
|
7980
8007
|
],
|
|
7981
8008
|
exports: [
|
|
7982
8009
|
ButtonComponent,
|
|
@@ -8031,7 +8058,8 @@ ComponentsModule.decorators = [
|
|
|
8031
8058
|
HierarchyTreeComponent,
|
|
8032
8059
|
TreeComponent,
|
|
8033
8060
|
RelativeDatePipe,
|
|
8034
|
-
ResizableComponent
|
|
8061
|
+
ResizableComponent,
|
|
8062
|
+
HighlightTextPipe
|
|
8035
8063
|
]
|
|
8036
8064
|
},] }
|
|
8037
8065
|
];
|
|
@@ -8182,6 +8210,10 @@ class PageBaseComponent {
|
|
|
8182
8210
|
* Default unknown save error message, override if a more specific message is needed
|
|
8183
8211
|
*/
|
|
8184
8212
|
this.defaultUnknownSaveError = 'PageBaseUnknownSaveError_SC';
|
|
8213
|
+
/**
|
|
8214
|
+
* Used to opt out of hiding the splash screen when the page is loaded
|
|
8215
|
+
*/
|
|
8216
|
+
this.skipHideSplashOnComplete = false;
|
|
8185
8217
|
/**
|
|
8186
8218
|
* Used to unsubscribe from observables
|
|
8187
8219
|
*/
|
|
@@ -8203,6 +8235,7 @@ class PageBaseComponent {
|
|
|
8203
8235
|
this.router = injector.get(Router);
|
|
8204
8236
|
this.activatedRoute = injector.get(ActivatedRoute);
|
|
8205
8237
|
this.dialogService = injector.get(DialogService);
|
|
8238
|
+
this.splashService = injector.get(SplashService);
|
|
8206
8239
|
}
|
|
8207
8240
|
get errors() {
|
|
8208
8241
|
return this._errors;
|
|
@@ -8250,6 +8283,9 @@ class PageBaseComponent {
|
|
|
8250
8283
|
if (this.status.status === 'pending') {
|
|
8251
8284
|
this.showStatus(PageStatus.Loaded);
|
|
8252
8285
|
}
|
|
8286
|
+
if (!this.skipHideSplashOnComplete) {
|
|
8287
|
+
this.splashService.hideSplash();
|
|
8288
|
+
}
|
|
8253
8289
|
this.setUpRouterSubscriptions();
|
|
8254
8290
|
}
|
|
8255
8291
|
catch (error) {
|
|
@@ -8600,6 +8636,13 @@ PageBaseComponentTestInjectorFactory.CoreProviders = [
|
|
|
8600
8636
|
return new MockActivatedRoute();
|
|
8601
8637
|
},
|
|
8602
8638
|
deps: [],
|
|
8639
|
+
},
|
|
8640
|
+
{
|
|
8641
|
+
provide: SplashService,
|
|
8642
|
+
useFactory: () => {
|
|
8643
|
+
return SpyFactory.createSpy(SplashService);
|
|
8644
|
+
},
|
|
8645
|
+
deps: []
|
|
8603
8646
|
}
|
|
8604
8647
|
];
|
|
8605
8648
|
/**
|
|
@@ -8969,5 +9012,5 @@ class HierarchyBaseTestInjectorFactory {
|
|
|
8969
9012
|
* Generated bundle index. Do not edit.
|
|
8970
9013
|
*/
|
|
8971
9014
|
|
|
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 };
|
|
9015
|
+
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
9016
|
//# sourceMappingURL=energycap-components.js.map
|