intelica-library-components 1.1.99 → 1.1.101

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.
@@ -53,6 +53,7 @@ import { SkeletonModule } from 'primeng/skeleton';
53
53
  import * as i1$3 from 'primeng/confirmdialog';
54
54
  import { ConfirmDialogModule } from 'primeng/confirmdialog';
55
55
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
56
+ import { ActivatedRoute } from '@angular/router';
56
57
  import * as XLSX from 'xlsx';
57
58
  import { Workbook } from 'exceljs';
58
59
  import { saveAs } from 'file-saver';
@@ -6365,6 +6366,45 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
6365
6366
  args: [{ selector: "itl-context-selector", imports: [CommonModule, FormsModule, Button, Popover, MultiSelect, Select, TermPipe], template: "<div class=\"lyFilterbar__wrap\">\r\n\t<p-button class=\"prButton u-hide-adjacent\" (click)=\"popoverFilterLayout.toggle($event)\" severity=\"secondary\" label=\"{{ buttonTerm() | term: globalTermService.languageCode }}\" />\r\n\t<p-popover styleClass=\"prPopover prPopover--compact\" [style]=\"{ '--custom-width': '20.5rem' }\" [focusOnShow]=\"false\" #popoverFilterLayout>\r\n\t\t<div class=\"prPopover__header\">{{ popoverTerm() | term: globalTermService.languageCode }}</div>\r\n\t\t<div class=\"prPopover__body\">\r\n\t\t\t<div class=\"u-display-flex u-flex-column u-gap-sm\">\r\n\t\t\t\t@if (showRegion()) {\r\n\t\t\t\t\t<p-select\r\n\t\t\t\t\t\tclass=\"prSelect\"\r\n\t\t\t\t\t\t[options]=\"regions()\"\r\n\t\t\t\t\t\t[ngModel]=\"selectedRegionId\"\r\n\t\t\t\t\t\t(ngModelChange)=\"onRegionChange($event)\"\r\n\t\t\t\t\t\toptionValue=\"id\"\r\n\t\t\t\t\t\toptionLabel=\"label\"\r\n\t\t\t\t\t\tplaceholder=\"{{ regionPlaceholderTerm() | term: globalTermService.languageCode }}\"\r\n\t\t\t\t\t\tshowClear=\"true\"\r\n\t\t\t\t\t\tdropdownIcon=\"icon icon-arrow-down\"\r\n\t\t\t\t\t\tfilter=\"false\"\r\n\t\t\t\t\t\tfiltericon=\"icon icon-cancel\"\r\n\t\t\t\t\t/>\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@if (showCountry()) {\r\n\t\t\t\t\t<p-multiselect\r\n\t\t\t\t\t\tclass=\"prMultiselect\"\r\n\t\t\t\t\t\t[options]=\"filteredCountries\"\r\n\t\t\t\t\t\t[ngModel]=\"selectedCountryIds\"\r\n\t\t\t\t\t\t(ngModelChange)=\"onCountriesChange($event)\"\r\n\t\t\t\t\t\t[maxSelectedLabels]=\"3\"\r\n\t\t\t\t\t\toptionLabel=\"label\"\r\n\t\t\t\t\t\toptionValue=\"id\"\r\n\t\t\t\t\t\tplaceholder=\"{{ countryPlaceholderTerm() | term: globalTermService.languageCode }}\"\r\n\t\t\t\t\t\tshowClear=\"true\"\r\n\t\t\t\t\t\tdropdownIcon=\"icon icon-arrow-down\"\r\n\t\t\t\t\t\tshowToggleAll=\"false\"\r\n\t\t\t\t\t\tfilter=\"false\"\r\n\t\t\t\t\t\tfiltericon=\"icon icon-cancel\"\r\n\t\t\t\t\t/>\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@if (showClient()) {\r\n\t\t\t\t\t<p-select\r\n\t\t\t\t\t\tclass=\"prSelect\"\r\n\t\t\t\t\t\t[options]=\"filteredClients\"\r\n\t\t\t\t\t\t[ngModel]=\"selectedClientId\"\r\n\t\t\t\t\t\t(ngModelChange)=\"onClientChange($event)\"\r\n\t\t\t\t\t\toptionValue=\"id\"\r\n\t\t\t\t\t\toptionLabel=\"label\"\r\n\t\t\t\t\t\t[placeholder]=\"clientPlaceholderTerm()\"\r\n\t\t\t\t\t\tshowClear=\"true\"\r\n\t\t\t\t\t\tdropdownIcon=\"icon icon-arrow-down\"\r\n\t\t\t\t\t\tfilter=\"false\"\r\n\t\t\t\t\t\tfiltericon=\"icon icon-cancel\"\r\n\t\t\t\t\t/>\r\n\t\t\t\t}\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</p-popover>\r\n</div>\r\n" }]
6366
6367
  }], ctorParameters: () => [], propDecorators: { regions: [{ type: i0.Input, args: [{ isSignal: true, alias: "regions", required: false }] }], countries: [{ type: i0.Input, args: [{ isSignal: true, alias: "countries", required: false }] }], clients: [{ type: i0.Input, args: [{ isSignal: true, alias: "clients", required: false }] }], selection: [{ type: i0.Input, args: [{ isSignal: true, alias: "selection", required: false }] }], showRegion: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRegion", required: false }] }], showCountry: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCountry", required: false }] }], showClient: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClient", required: false }] }], buttonTerm: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonTerm", required: false }] }], popoverTerm: [{ type: i0.Input, args: [{ isSignal: true, alias: "popoverTerm", required: false }] }], regionTerm: [{ type: i0.Input, args: [{ isSignal: true, alias: "regionTerm", required: false }] }], countryTerm: [{ type: i0.Input, args: [{ isSignal: true, alias: "countryTerm", required: false }] }], clientTerm: [{ type: i0.Input, args: [{ isSignal: true, alias: "clientTerm", required: false }] }], regionPlaceholderTerm: [{ type: i0.Input, args: [{ isSignal: true, alias: "regionPlaceholderTerm", required: false }] }], countryPlaceholderTerm: [{ type: i0.Input, args: [{ isSignal: true, alias: "countryPlaceholderTerm", required: false }] }], clientPlaceholderTerm: [{ type: i0.Input, args: [{ isSignal: true, alias: "clientPlaceholderTerm", required: false }] }], selectionChange: [{ type: i0.Output, args: ["selectionChange"] }], regionChange: [{ type: i0.Output, args: ["regionChange"] }], countriesChange: [{ type: i0.Output, args: ["countriesChange"] }], clientChange: [{ type: i0.Output, args: ["clientChange"] }] } });
6367
6368
 
6369
+ class SetsesioninformationComponent {
6370
+ ActivatedRoute = inject(ActivatedRoute);
6371
+ Http = inject(HttpClient);
6372
+ ConfigService = inject(ConfigService);
6373
+ constructor() {
6374
+ let businessUserID = this.ActivatedRoute.snapshot.params["id"];
6375
+ const headers = new HttpHeaders({ "Skip-Interceptor": "true" });
6376
+ let url = `${this.ConfigService.environment?.authenticationPath}/Authenticate/ignore/auth/cache/${businessUserID}`;
6377
+ this.Http.get(url, { headers }).subscribe(response => {
6378
+ let data = JSON.stringify(response.authenticationData);
6379
+ setCookie("token", response.jwtToken, CookieAttributesGeneral);
6380
+ setCookie("refreshToken", response.refreshToken, CookieAttributesGeneral);
6381
+ setCookie("data", data, CookieAttributesGeneral);
6382
+ setCookie("businessUserClientGroupID", response.businessUserClientGroupID, CookieAttributesGeneral);
6383
+ setCookie("language", response.languageCode, CookieAttributesGeneral);
6384
+ if (response.clientID != null)
6385
+ setCookie("defaultClientID", response.clientID, CookieAttributesGeneral);
6386
+ setCookie("defaultClientGroupID", response.clientGroupID, CookieAttributesGeneral);
6387
+ response.businessUserAuthClient.forEach(element => {
6388
+ setCookie(element.authClientID, element.compressedPages, CookieAttributesGeneral);
6389
+ });
6390
+ setCookie("profile", response.profile, CookieAttributesGeneral);
6391
+ setCookie("itl", response.refreshToken, CookieAttributesGeneral);
6392
+ this.ConfigService.SetSessionInformation();
6393
+ window.location.href = window.location.origin;
6394
+ });
6395
+ }
6396
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SetsesioninformationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6397
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: SetsesioninformationComponent, isStandalone: true, selector: "security-setsesioninformation", ngImport: i0, template: "", isInline: true });
6398
+ }
6399
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SetsesioninformationComponent, decorators: [{
6400
+ type: Component,
6401
+ args: [{
6402
+ selector: "security-setsesioninformation",
6403
+ imports: [],
6404
+ template: "",
6405
+ }]
6406
+ }], ctorParameters: () => [] });
6407
+
6368
6408
  class CheckboxFilterDirective extends FilterDirective {
6369
6409
  constructor() {
6370
6410
  super(FilterTypeEnum.Checkbox);
@@ -8426,6 +8466,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
8426
8466
  args: [{ providedIn: "root" }]
8427
8467
  }] });
8428
8468
 
8469
+ class GoogleTaskManagerService {
8470
+ loadGTM(id) {
8471
+ const w = window;
8472
+ w["dataLayer"] = w["dataLayer"] || [];
8473
+ w["dataLayer"].push({ "gtm.start": new Date().getTime(), event: "gtm.js" });
8474
+ const script = document.createElement("script");
8475
+ script.async = true;
8476
+ script.src = `https://www.googletagmanager.com/gtm.js?id=${id}`;
8477
+ document.head.insertBefore(script, document.head.firstChild);
8478
+ }
8479
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: GoogleTaskManagerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
8480
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: GoogleTaskManagerService, providedIn: "root" });
8481
+ }
8482
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: GoogleTaskManagerService, decorators: [{
8483
+ type: Injectable,
8484
+ args: [{ providedIn: "root" }]
8485
+ }] });
8486
+
8429
8487
  /**
8430
8488
  * Función de comparación genérica para ordenar objetos por un campo específico.
8431
8489
  *
@@ -11399,5 +11457,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
11399
11457
  * Generated bundle index. Do not edit.
11400
11458
  */
11401
11459
 
11402
- export { ALERT_DEFAULTS, ALERT_ICON_OVERRIDES, ALERT_ICON_PATHS, ALERT_TYPE_CONFIG, ActionDirective, ActionsMenuComponent, AddFavoritesComponent, AlertButtonMode, AlertService, AlertType, ButtonSplitComponent, CheckboxFilterDirective, ClientContextSelector, Color, ColumnComponent, ColumnGroupComponent, CompareByField, ConfigService, CookieAttributesGeneral, DATEPICKER_BUTTON_TYPES, DataDirective, DateFilterDirective, DateModeOptions, DatepickerComponent, DynamicInputValidation, EchartComponent, EchartService, ElementService, EmailInputValidation, ErrorInterceptor, FeatureFlagService, FilterChipsComponent, FiltersComponent, FormatAmountPipe, GetCookieAttributes, GlobalFavoriteService, GlobalFeatureFlagService, GlobalMenuService, GlobalTermService, HtmlToExcelService, InitializeConfigService, InputValidation, IntelicaAlertComponent, IntelicaCellCheckboxDirective, IntelicaSessionService, IntelicaTheme, ItemSplitDirective, LanguageService, MatrixColumnComponent, MatrixColumnGroupComponent, MatrixTableComponent, ModalDialogComponent, MultiSelectComponent, NotificationJobService, NotificationOrchestratorService, NotificationService, NotificationSignalRService, OrderConstants, PageInformation, PageRootChildGuard, PaginatorComponent, Patterns, PopoverComponent, ProfileService, RecordPerPageComponent, RefreshTokenInterceptor, RequestCacheService, ResponseHeadersInterceptor, RouteGuard, RowResumenComponent, RowResumenTreeComponent, SearchComponent, SelectDetailFilterDirective, SelectFilterDirective, SharedService, SkeletonChartComponent, SkeletonComponent, SkeletonService, SkeletonTableComponent, SortingComponent, SpinnerComponent, SpinnerService, SweetAlertService, TableComponent, TableFetchComponent, TableSortOrder, TemplateDirective, TemplateMenuComponent, TermGuard, TermPipe, TermService, TextAreaFilterDirective, TextFilterDirective, TextRangeFilterDirective, TreeColumnComponent, TreeColumnGroupComponent, TreeTableComponent, TruncatePipe, decryptData, encryptData, getColor };
11460
+ export { ALERT_DEFAULTS, ALERT_ICON_OVERRIDES, ALERT_ICON_PATHS, ALERT_TYPE_CONFIG, ActionDirective, ActionsMenuComponent, AddFavoritesComponent, AlertButtonMode, AlertService, AlertType, ButtonSplitComponent, CheckboxFilterDirective, ClientContextSelector, Color, ColumnComponent, ColumnGroupComponent, CompareByField, ConfigService, CookieAttributesGeneral, DATEPICKER_BUTTON_TYPES, DataDirective, DateFilterDirective, DateModeOptions, DatepickerComponent, DynamicInputValidation, EchartComponent, EchartService, ElementService, EmailInputValidation, ErrorInterceptor, FeatureFlagService, FilterChipsComponent, FiltersComponent, FormatAmountPipe, GetCookieAttributes, GlobalFavoriteService, GlobalFeatureFlagService, GlobalMenuService, GlobalTermService, GoogleTaskManagerService, HtmlToExcelService, InitializeConfigService, InputValidation, IntelicaAlertComponent, IntelicaCellCheckboxDirective, IntelicaSessionService, IntelicaTheme, ItemSplitDirective, LanguageService, MatrixColumnComponent, MatrixColumnGroupComponent, MatrixTableComponent, ModalDialogComponent, MultiSelectComponent, NotificationJobService, NotificationOrchestratorService, NotificationService, NotificationSignalRService, OrderConstants, PageInformation, PageRootChildGuard, PaginatorComponent, Patterns, PopoverComponent, ProfileService, RecordPerPageComponent, RefreshTokenInterceptor, RequestCacheService, ResponseHeadersInterceptor, RouteGuard, RowResumenComponent, RowResumenTreeComponent, SearchComponent, SelectDetailFilterDirective, SelectFilterDirective, SetsesioninformationComponent, SharedService, SkeletonChartComponent, SkeletonComponent, SkeletonService, SkeletonTableComponent, SortingComponent, SpinnerComponent, SpinnerService, SweetAlertService, TableComponent, TableFetchComponent, TableSortOrder, TemplateDirective, TemplateMenuComponent, TermGuard, TermPipe, TermService, TextAreaFilterDirective, TextFilterDirective, TextRangeFilterDirective, TreeColumnComponent, TreeColumnGroupComponent, TreeTableComponent, TruncatePipe, decryptData, encryptData, getColor };
11403
11461
  //# sourceMappingURL=intelica-library-components.mjs.map