intelica-library-project 20.0.14 → 20.0.15

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.
@@ -13,7 +13,7 @@ import { TooltipModule, Tooltip } from 'primeng/tooltip';
13
13
  import { GlobalTermService, TermPipe, FormatDateConstants, ConfigService, AlertService, GlobalFavoriteService, Color, getColor } from 'intelica-library-base';
14
14
  import * as i4 from 'primeng/button';
15
15
  import { ButtonModule, Button } from 'primeng/button';
16
- import { Subscription, Subject, BehaviorSubject, firstValueFrom, map, distinctUntilChanged, of, tap, shareReplay, throwError } from 'rxjs';
16
+ import { Subscription, Subject, BehaviorSubject, firstValueFrom, map, distinctUntilChanged, shareReplay, throwError } from 'rxjs';
17
17
  import { BadgeModule } from 'primeng/badge';
18
18
  import * as i6 from 'primeng/checkbox';
19
19
  import { CheckboxModule } from 'primeng/checkbox';
@@ -2552,29 +2552,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImpo
2552
2552
  args: [{ selector: "intelica-add-favorites", imports: [Button, TermPipe, NgClass], template: "<p-button class=\"prButton\" severity=\"secondary\" [disabled]=\"isToggling\" (onClick)=\"toggleFavorite()\">\n\t<i class=\"icon p-button-icon-left\" [ngClass]=\"iconClass\" pButtonIcon></i>\n\t<span pButtonLabel>{{ \"ADD_TO_FAVORITES\" | term : termService.languageCode }}</span>\n</p-button>\n" }]
2553
2553
  }], propDecorators: { favoriteChanged: [{ type: i0.Output, args: ["favoriteChanged"] }] } });
2554
2554
 
2555
- class PageElementService {
2556
- _http = inject(HttpClient);
2555
+ class ElementHTTPService {
2556
+ httpClient = inject(HttpClient);
2557
2557
  _configService = inject(ConfigService);
2558
2558
  GetElements(pageRoot) {
2559
- return this._http.get(`${this._configService.environment?.securityPath}/Page/GetAvailableElementsByPageRoot/${pageRoot}`);
2559
+ return this.httpClient.get(`${this._configService.environment?.securityPath}/Page/GetAvailableElementsByPageRoot/${pageRoot}`);
2560
2560
  }
2561
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PageElementService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2562
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PageElementService, providedIn: "root" });
2561
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ElementHTTPService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2562
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ElementHTTPService, providedIn: "root" });
2563
2563
  }
2564
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PageElementService, decorators: [{
2564
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ElementHTTPService, decorators: [{
2565
2565
  type: Injectable,
2566
2566
  args: [{ providedIn: "root" }]
2567
2567
  }] });
2568
2568
 
2569
2569
  class ElementService {
2570
2570
  Elements = [];
2571
- PageRoot = "";
2572
- pageElementService = inject(PageElementService);
2573
- Initialize$(pageRootValue) {
2574
- if (!pageRootValue)
2575
- return of();
2576
- this.PageRoot = pageRootValue;
2577
- return this.pageElementService.GetElements(this.PageRoot).pipe(tap(elements => (this.Elements = elements)), map(() => void 0));
2571
+ ElementsReady = signal(false, ...(ngDevMode ? [{ debugName: "ElementsReady" }] : []));
2572
+ elementService = inject(ElementHTTPService);
2573
+ Initialize(pageRoot) {
2574
+ if (pageRoot == "")
2575
+ this.ElementsReady.set(true);
2576
+ this.elementService.GetElements(pageRoot).subscribe(response => {
2577
+ this.Elements = response;
2578
+ this.ElementsReady.set(true);
2579
+ });
2578
2580
  }
2579
2581
  HasElement(description) {
2580
2582
  return this.Elements.some(x => x.elementDescription === description);
@@ -3389,5 +3391,5 @@ class PageInformation {
3389
3391
  * Generated bundle index. Do not edit.
3390
3392
  */
3391
3393
 
3392
- export { AddFavoritesComponent, AddFavoritesService, BreadCrumbComponent, ColumnComponent, ColumnGroupComponent, DashboardQsComponent, DashboardQsInteractiveComponent, EchartComponent, EchartService, ElementService, FormatAmountPipe, FormatCellPipe, OrderConstants, PageElementService, PageInformation, QUICKSIGHT_AUTH_ERROR_CODES, QuicksightEventName, RequestCacheService, RowResumenComponent, SearchComponent, SearchInputEnum, Shared, SharedService, SkeletonTableComponent, SortingComponent, TableComponent, TableFetchComponent, TitleComponent, TruncatePipe, darkenColor, dispatchQuicksightEvent, isQuicksightSessionExpiredEvent };
3394
+ export { AddFavoritesComponent, AddFavoritesService, BreadCrumbComponent, ColumnComponent, ColumnGroupComponent, DashboardQsComponent, DashboardQsInteractiveComponent, EchartComponent, EchartService, ElementHTTPService, ElementService, FormatAmountPipe, FormatCellPipe, OrderConstants, PageInformation, QUICKSIGHT_AUTH_ERROR_CODES, QuicksightEventName, RequestCacheService, RowResumenComponent, SearchComponent, SearchInputEnum, Shared, SharedService, SkeletonTableComponent, SortingComponent, TableComponent, TableFetchComponent, TitleComponent, TruncatePipe, darkenColor, dispatchQuicksightEvent, isQuicksightSessionExpiredEvent };
3393
3395
  //# sourceMappingURL=intelica-library-project.mjs.map