@abp/ng.theme.shared 9.3.6 → 10.0.0-rc.2
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/fesm2022/abp-ng.theme.shared.mjs +195 -182
- package/fesm2022/abp-ng.theme.shared.mjs.map +1 -1
- package/index.d.ts +60 -66
- package/package.json +2 -2
|
@@ -1,23 +1,19 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Input, Component, ChangeDetectionStrategy, EventEmitter, ViewChild, Output, InjectionToken,
|
|
3
|
-
import
|
|
4
|
-
import { formatDate, CommonModule, DOCUMENT } from '@angular/common';
|
|
2
|
+
import { Injectable, Input, Component, inject, ChangeDetectorRef, ChangeDetectionStrategy, Renderer2, EventEmitter, ViewChild, Output, InjectionToken, DestroyRef, createComponent, ViewEncapsulation, HostListener, RendererFactory2, Injector, EnvironmentInjector, ApplicationRef, model, input, viewChild, contentChild, output, effect, Directive, forwardRef, HostBinding, NgModule, ElementRef, ComponentFactoryResolver, PLATFORM_ID, ViewContainerRef, TemplateRef, provideAppInitializer, LOCALE_ID, makeEnvironmentProviders } from '@angular/core';
|
|
3
|
+
import { formatDate, NgTemplateOutlet, NgClass, AsyncPipe, DOCUMENT, CommonModule, NgStyle, isPlatformBrowser } from '@angular/common';
|
|
5
4
|
import { NgbDateAdapter, NgbTimeAdapter, NgbModal, NgbTooltip, NgbInputDatepickerConfig, NgbTypeaheadConfig, NgbDateParserFormatter } from '@ng-bootstrap/ng-bootstrap';
|
|
6
5
|
import { animation, style, animate, keyframes, trigger, state, transition, useAnimation, query } from '@angular/animations';
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import * as i2 from '@abp/ng.core';
|
|
10
|
-
import { LocalizationPipe, getRoutePath, SubscriptionService, PROJECTION_STRATEGY, SORT_COMPARE_FUNC, InternalStore, ContentProjectionService, RouterEvents, AuthService, SessionStateService, DomInsertionService, CONTENT_STRATEGY, ConfigStateService, uuid, AbstractNgModelComponent, InternetConnectionService, LocalizationModule, LocalizationService, getLocaleDirection, HttpErrorReporterService, RoutesService, TENANT_NOT_FOUND_BY_NAME } from '@abp/ng.core';
|
|
6
|
+
import { RouterLink, Router, ResolveEnd } from '@angular/router';
|
|
7
|
+
import { LocalizationPipe, RoutesService, SubscriptionService, RouterEvents, getRoutePath, HttpWaitService, RouterWaitService, ContentProjectionService, PROJECTION_STRATEGY, SORT_COMPARE_FUNC, InternalStore, AuthService, SessionStateService, DomInsertionService, CONTENT_STRATEGY, ConfigStateService, uuid, AbstractNgModelComponent, InternetConnectionService, LocalizationService, getLocaleDirection, HttpErrorReporterService, TENANT_NOT_FOUND_BY_NAME } from '@abp/ng.core';
|
|
11
8
|
import { startWith, map, debounceTime, filter, takeUntil, take, switchMap } from 'rxjs/operators';
|
|
12
9
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
13
10
|
import { fromEvent, Subscription, combineLatest, timer, ReplaySubject, Subject, BehaviorSubject, distinctUntilChanged, of, from, Observable, EMPTY } from 'rxjs';
|
|
14
11
|
import { HttpErrorResponse } from '@angular/common/http';
|
|
15
|
-
import * as
|
|
16
|
-
import { FormsModule,
|
|
17
|
-
import * as
|
|
12
|
+
import * as i1 from '@angular/forms';
|
|
13
|
+
import { FormsModule, NG_VALUE_ACCESSOR, NgControl, Validators } from '@angular/forms';
|
|
14
|
+
import * as i2 from '@ngx-validate/core';
|
|
18
15
|
import { NgxValidateCoreModule, normalizeDiacritics, VALIDATION_BLUEPRINTS, defaultMapErrorsFn, VALIDATION_MAP_ERRORS_FN, VALIDATION_VALIDATE_ON_SUBMIT } from '@ngx-validate/core';
|
|
19
|
-
import
|
|
20
|
-
import { ColumnMode, DatatableComponent, NgxDatatableModule } from '@swimlane/ngx-datatable';
|
|
16
|
+
import { DatatableComponent, ColumnMode, NgxDatatableModule } from '@swimlane/ngx-datatable';
|
|
21
17
|
|
|
22
18
|
class DateTimeAdapter {
|
|
23
19
|
fromModel(value) {
|
|
@@ -268,22 +264,22 @@ class BreadcrumbItemsComponent {
|
|
|
268
264
|
this.items = [];
|
|
269
265
|
}
|
|
270
266
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: BreadcrumbItemsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
271
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.7", type: BreadcrumbItemsComponent, isStandalone: true, selector: "abp-breadcrumb-items", inputs: { items: "items" }, ngImport: i0, template: "@if (items.length) {\r\n <ol class=\"breadcrumb\">\r\n <li class=\"breadcrumb-item\">\r\n <a routerLink=\"/\"><i class=\"fa fa-home\" aria-hidden=\"true\"></i> </a>\r\n </li>\r\n @for (item of items; track $index; let last = $last) {\r\n <li class=\"breadcrumb-item\" [class.active]=\"last\" aria-current=\"page\">\r\n <ng-container\r\n *ngTemplateOutlet=\"item.path ? linkTemplate : textTemplate; context: { $implicit: item }\"\r\n ></ng-container>\r\n </li>\r\n }\r\n </ol>\r\n}\r\n\r\n<ng-template #linkTemplate let-item>\r\n <a [routerLink]=\"item.path\"> {{ item.name | abpLocalization }}</a>\r\n</ng-template>\r\n\r\n<ng-template #textTemplate let-item>\r\n {{ item.name | abpLocalization }}\r\n</ng-template>\r\n", dependencies: [{ kind: "
|
|
267
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.7", type: BreadcrumbItemsComponent, isStandalone: true, selector: "abp-breadcrumb-items", inputs: { items: "items" }, ngImport: i0, template: "@if (items.length) {\r\n <ol class=\"breadcrumb\">\r\n <li class=\"breadcrumb-item\">\r\n <a routerLink=\"/\"><i class=\"fa fa-home\" aria-hidden=\"true\"></i> </a>\r\n </li>\r\n @for (item of items; track $index; let last = $last) {\r\n <li class=\"breadcrumb-item\" [class.active]=\"last\" aria-current=\"page\">\r\n <ng-container\r\n *ngTemplateOutlet=\"item.path ? linkTemplate : textTemplate; context: { $implicit: item }\"\r\n ></ng-container>\r\n </li>\r\n }\r\n </ol>\r\n}\r\n\r\n<ng-template #linkTemplate let-item>\r\n <a [routerLink]=\"item.path\"> {{ item.name | abpLocalization }}</a>\r\n</ng-template>\r\n\r\n<ng-template #textTemplate let-item>\r\n {{ item.name | abpLocalization }}\r\n</ng-template>\r\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
272
268
|
}
|
|
273
269
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: BreadcrumbItemsComponent, decorators: [{
|
|
274
270
|
type: Component,
|
|
275
|
-
args: [{ selector: 'abp-breadcrumb-items', imports: [
|
|
271
|
+
args: [{ selector: 'abp-breadcrumb-items', imports: [NgTemplateOutlet, RouterLink, LocalizationPipe], template: "@if (items.length) {\r\n <ol class=\"breadcrumb\">\r\n <li class=\"breadcrumb-item\">\r\n <a routerLink=\"/\"><i class=\"fa fa-home\" aria-hidden=\"true\"></i> </a>\r\n </li>\r\n @for (item of items; track $index; let last = $last) {\r\n <li class=\"breadcrumb-item\" [class.active]=\"last\" aria-current=\"page\">\r\n <ng-container\r\n *ngTemplateOutlet=\"item.path ? linkTemplate : textTemplate; context: { $implicit: item }\"\r\n ></ng-container>\r\n </li>\r\n }\r\n </ol>\r\n}\r\n\r\n<ng-template #linkTemplate let-item>\r\n <a [routerLink]=\"item.path\"> {{ item.name | abpLocalization }}</a>\r\n</ng-template>\r\n\r\n<ng-template #textTemplate let-item>\r\n {{ item.name | abpLocalization }}\r\n</ng-template>\r\n" }]
|
|
276
272
|
}], propDecorators: { items: [{
|
|
277
273
|
type: Input
|
|
278
274
|
}] } });
|
|
279
275
|
|
|
280
276
|
class BreadcrumbComponent {
|
|
281
|
-
constructor(
|
|
282
|
-
this.cdRef =
|
|
283
|
-
this.router =
|
|
284
|
-
this.routes =
|
|
285
|
-
this.subscription =
|
|
286
|
-
this.routerEvents =
|
|
277
|
+
constructor() {
|
|
278
|
+
this.cdRef = inject(ChangeDetectorRef);
|
|
279
|
+
this.router = inject(Router);
|
|
280
|
+
this.routes = inject(RoutesService);
|
|
281
|
+
this.subscription = inject(SubscriptionService);
|
|
282
|
+
this.routerEvents = inject(RouterEvents);
|
|
287
283
|
this.segments = [];
|
|
288
284
|
}
|
|
289
285
|
ngOnInit() {
|
|
@@ -301,24 +297,21 @@ class BreadcrumbComponent {
|
|
|
301
297
|
}
|
|
302
298
|
});
|
|
303
299
|
}
|
|
304
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: BreadcrumbComponent, deps: [
|
|
300
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: BreadcrumbComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
305
301
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.7", type: BreadcrumbComponent, isStandalone: true, selector: "abp-breadcrumb", providers: [SubscriptionService], ngImport: i0, template: "<abp-breadcrumb-items [items]=\"segments\"></abp-breadcrumb-items>\r\n", dependencies: [{ kind: "component", type: BreadcrumbItemsComponent, selector: "abp-breadcrumb-items", inputs: ["items"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
306
302
|
}
|
|
307
303
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: BreadcrumbComponent, decorators: [{
|
|
308
304
|
type: Component,
|
|
309
305
|
args: [{ selector: 'abp-breadcrumb', changeDetection: ChangeDetectionStrategy.OnPush, providers: [SubscriptionService], imports: [BreadcrumbItemsComponent], template: "<abp-breadcrumb-items [items]=\"segments\"></abp-breadcrumb-items>\r\n" }]
|
|
310
|
-
}]
|
|
306
|
+
}] });
|
|
311
307
|
function isAdministration(route) {
|
|
312
308
|
return route.name === "AbpUiNavigation::Menu:Administration" /* eThemeSharedRouteNames.Administration */;
|
|
313
309
|
}
|
|
314
310
|
|
|
315
311
|
/* eslint-disable @angular-eslint/no-output-native */
|
|
316
312
|
class ButtonComponent {
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
}
|
|
320
|
-
constructor(renderer) {
|
|
321
|
-
this.renderer = renderer;
|
|
313
|
+
constructor() {
|
|
314
|
+
this.renderer = inject(Renderer2);
|
|
322
315
|
this.buttonId = '';
|
|
323
316
|
this.buttonClass = 'btn btn-primary';
|
|
324
317
|
this.buttonType = 'button';
|
|
@@ -332,6 +325,9 @@ class ButtonComponent {
|
|
|
332
325
|
this.abpFocus = new EventEmitter();
|
|
333
326
|
this.abpBlur = new EventEmitter();
|
|
334
327
|
}
|
|
328
|
+
get icon() {
|
|
329
|
+
return `${this.loading ? 'fa fa-spinner fa-spin' : this.iconClass || 'd-none'}`;
|
|
330
|
+
}
|
|
335
331
|
ngOnInit() {
|
|
336
332
|
if (this.attributes) {
|
|
337
333
|
Object.keys(this.attributes).forEach(key => {
|
|
@@ -341,7 +337,7 @@ class ButtonComponent {
|
|
|
341
337
|
});
|
|
342
338
|
}
|
|
343
339
|
}
|
|
344
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ButtonComponent, deps: [
|
|
340
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
345
341
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.7", type: ButtonComponent, isStandalone: true, selector: "abp-button", inputs: { buttonId: "buttonId", buttonClass: "buttonClass", buttonType: "buttonType", formName: "formName", iconClass: "iconClass", loading: "loading", disabled: "disabled", attributes: "attributes" }, outputs: { click: "click", focus: "focus", blur: "blur", abpClick: "abpClick", abpFocus: "abpFocus", abpBlur: "abpBlur" }, viewQueries: [{ propertyName: "buttonRef", first: true, predicate: ["button"], descendants: true, static: true }], ngImport: i0, template: `
|
|
346
342
|
<button
|
|
347
343
|
#button
|
|
@@ -356,7 +352,7 @@ class ButtonComponent {
|
|
|
356
352
|
>
|
|
357
353
|
<i [ngClass]="icon" class="me-1" aria-hidden="true"></i><ng-content></ng-content>
|
|
358
354
|
</button>
|
|
359
|
-
`, isInline: true, dependencies: [{ kind: "
|
|
355
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
360
356
|
}
|
|
361
357
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
362
358
|
type: Component,
|
|
@@ -377,9 +373,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
|
377
373
|
<i [ngClass]="icon" class="me-1" aria-hidden="true"></i><ng-content></ng-content>
|
|
378
374
|
</button>
|
|
379
375
|
`,
|
|
380
|
-
imports: [
|
|
376
|
+
imports: [NgClass],
|
|
381
377
|
}]
|
|
382
|
-
}],
|
|
378
|
+
}], propDecorators: { buttonId: [{
|
|
383
379
|
type: Input
|
|
384
380
|
}], buttonClass: [{
|
|
385
381
|
type: Input
|
|
@@ -433,8 +429,8 @@ const DEFAULT_CONFIRMATION_ICONS = {
|
|
|
433
429
|
};
|
|
434
430
|
|
|
435
431
|
class ConfirmationComponent {
|
|
436
|
-
constructor(
|
|
437
|
-
this.icons =
|
|
432
|
+
constructor() {
|
|
433
|
+
this.icons = inject(CONFIRMATION_ICONS);
|
|
438
434
|
this.confirm = Confirmation.Status.confirm;
|
|
439
435
|
this.reject = Confirmation.Status.reject;
|
|
440
436
|
this.dismiss = Confirmation.Status.dismiss;
|
|
@@ -460,16 +456,13 @@ class ConfirmationComponent {
|
|
|
460
456
|
isIconTemplateExits({ options }) {
|
|
461
457
|
return !!(options && options.iconTemplate);
|
|
462
458
|
}
|
|
463
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ConfirmationComponent, deps: [
|
|
464
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.7", type: ConfirmationComponent, isStandalone: true, selector: "abp-confirmation", ngImport: i0, template: "@if (confirmation$ | async; as data) {\r\n <div class=\"confirmation\">\r\n <div\r\n class=\"confirmation-backdrop\"\r\n (click)=\"data.options?.dismissible ? close(dismiss) : null\"\r\n ></div>\r\n <div class=\"confirmation-dialog\">\r\n @if (data.severity || isCustomIconExists(data)) {\r\n <div class=\"icon-container\" [ngClass]=\"data.severity\">\r\n @if (isIconTemplateExits(data)) {\r\n <div [outerHTML]=\"data.options.iconTemplate\"></div>\r\n } @else {\r\n <i class=\"icon\" [ngClass]=\"getIconClass(data)\"></i>\r\n }\r\n </div>\r\n }\r\n <div class=\"content\">\r\n @if (data.title) {\r\n <h1\r\n class=\"title\"\r\n [innerHTML]=\"data.title | abpLocalization: data.options?.titleLocalizationParams\"\r\n ></h1>\r\n }\r\n @if (data.message) {\r\n <p\r\n class=\"message\"\r\n [innerHTML]=\"data.message | abpLocalization: data.options?.messageLocalizationParams\"\r\n ></p>\r\n }\r\n </div>\r\n <div class=\"footer\">\r\n @if (!data?.options?.hideCancelBtn) {\r\n <button\r\n id=\"cancel\"\r\n class=\"btn btn-outline-primary me-2\"\r\n [innerHTML]=\"data.options?.cancelText || 'AbpUi::Cancel' | abpLocalization\"\r\n (click)=\"close(reject)\"\r\n ></button>\r\n }\r\n @if (!data?.options?.hideYesBtn) {\r\n <button\r\n id=\"confirm\"\r\n class=\"btn btn-primary\"\r\n [innerHTML]=\"data.options?.yesText || 'AbpUi::Yes' | abpLocalization\"\r\n (click)=\"close(confirm)\"\r\n ></button>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n}\r\n", styles: [".confirmation{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:1060}.confirmation .confirmation-backdrop{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:1061!important}.confirmation .confirmation-dialog{display:flex;flex-direction:column;margin:20px auto;padding:0;width:450px;min-height:300px;z-index:1062!important}@media screen and (max-width:500px){.confirmation .confirmation-dialog{width:90vw}}.confirmation .confirmation-dialog .icon-container{display:flex;align-items:center;justify-content:center;padding:40px 20px 10px}.confirmation .confirmation-dialog .icon-container .icon{width:100px;height:100px;stroke-width:1;font-size:80px;text-align:center}.confirmation .confirmation-dialog .content{flex-grow:1;display:block}.confirmation .confirmation-dialog .content .title{display:block;margin:0;padding:0;font-size:27px;font-weight:600;text-align:center}.confirmation .confirmation-dialog .content .message{display:block;padding:8px 20px 20px;font-size:16px;font-weight:400;text-align:center;margin-bottom:0}.confirmation .confirmation-dialog .footer{display:flex;align-items:center;justify-content:flex-end;padding:20px;width:100%}\n"], dependencies: [{ kind: "
|
|
459
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ConfirmationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
460
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.7", type: ConfirmationComponent, isStandalone: true, selector: "abp-confirmation", ngImport: i0, template: "@if (confirmation$ | async; as data) {\r\n <div class=\"confirmation\">\r\n <div\r\n class=\"confirmation-backdrop\"\r\n (click)=\"data.options?.dismissible ? close(dismiss) : null\"\r\n ></div>\r\n <div class=\"confirmation-dialog\">\r\n @if (data.severity || isCustomIconExists(data)) {\r\n <div class=\"icon-container\" [ngClass]=\"data.severity\">\r\n @if (isIconTemplateExits(data)) {\r\n <div [outerHTML]=\"data.options.iconTemplate\"></div>\r\n } @else {\r\n <i class=\"icon\" [ngClass]=\"getIconClass(data)\"></i>\r\n }\r\n </div>\r\n }\r\n <div class=\"content\">\r\n @if (data.title) {\r\n <h1\r\n class=\"title\"\r\n [innerHTML]=\"data.title | abpLocalization: data.options?.titleLocalizationParams\"\r\n ></h1>\r\n }\r\n @if (data.message) {\r\n <p\r\n class=\"message\"\r\n [innerHTML]=\"data.message | abpLocalization: data.options?.messageLocalizationParams\"\r\n ></p>\r\n }\r\n </div>\r\n <div class=\"footer\">\r\n @if (!data?.options?.hideCancelBtn) {\r\n <button\r\n id=\"cancel\"\r\n class=\"btn btn-outline-primary me-2\"\r\n [innerHTML]=\"data.options?.cancelText || 'AbpUi::Cancel' | abpLocalization\"\r\n (click)=\"close(reject)\"\r\n ></button>\r\n }\r\n @if (!data?.options?.hideYesBtn) {\r\n <button\r\n id=\"confirm\"\r\n class=\"btn btn-primary\"\r\n [innerHTML]=\"data.options?.yesText || 'AbpUi::Yes' | abpLocalization\"\r\n (click)=\"close(confirm)\"\r\n ></button>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n}\r\n", styles: [".confirmation{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:1060}.confirmation .confirmation-backdrop{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:1061!important}.confirmation .confirmation-dialog{display:flex;flex-direction:column;margin:20px auto;padding:0;width:450px;min-height:300px;z-index:1062!important}@media screen and (max-width:500px){.confirmation .confirmation-dialog{width:90vw}}.confirmation .confirmation-dialog .icon-container{display:flex;align-items:center;justify-content:center;padding:40px 20px 10px}.confirmation .confirmation-dialog .icon-container .icon{width:100px;height:100px;stroke-width:1;font-size:80px;text-align:center}.confirmation .confirmation-dialog .content{flex-grow:1;display:block}.confirmation .confirmation-dialog .content .title{display:block;margin:0;padding:0;font-size:27px;font-weight:600;text-align:center}.confirmation .confirmation-dialog .content .message{display:block;padding:8px 20px 20px;font-size:16px;font-weight:400;text-align:center;margin-bottom:0}.confirmation .confirmation-dialog .footer{display:flex;align-items:center;justify-content:flex-end;padding:20px;width:100%}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
465
461
|
}
|
|
466
462
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ConfirmationComponent, decorators: [{
|
|
467
463
|
type: Component,
|
|
468
|
-
args: [{ selector: 'abp-confirmation', imports: [
|
|
469
|
-
}]
|
|
470
|
-
type: Inject,
|
|
471
|
-
args: [CONFIRMATION_ICONS]
|
|
472
|
-
}] }] });
|
|
464
|
+
args: [{ selector: 'abp-confirmation', imports: [NgClass, AsyncPipe, LocalizationPipe], template: "@if (confirmation$ | async; as data) {\r\n <div class=\"confirmation\">\r\n <div\r\n class=\"confirmation-backdrop\"\r\n (click)=\"data.options?.dismissible ? close(dismiss) : null\"\r\n ></div>\r\n <div class=\"confirmation-dialog\">\r\n @if (data.severity || isCustomIconExists(data)) {\r\n <div class=\"icon-container\" [ngClass]=\"data.severity\">\r\n @if (isIconTemplateExits(data)) {\r\n <div [outerHTML]=\"data.options.iconTemplate\"></div>\r\n } @else {\r\n <i class=\"icon\" [ngClass]=\"getIconClass(data)\"></i>\r\n }\r\n </div>\r\n }\r\n <div class=\"content\">\r\n @if (data.title) {\r\n <h1\r\n class=\"title\"\r\n [innerHTML]=\"data.title | abpLocalization: data.options?.titleLocalizationParams\"\r\n ></h1>\r\n }\r\n @if (data.message) {\r\n <p\r\n class=\"message\"\r\n [innerHTML]=\"data.message | abpLocalization: data.options?.messageLocalizationParams\"\r\n ></p>\r\n }\r\n </div>\r\n <div class=\"footer\">\r\n @if (!data?.options?.hideCancelBtn) {\r\n <button\r\n id=\"cancel\"\r\n class=\"btn btn-outline-primary me-2\"\r\n [innerHTML]=\"data.options?.cancelText || 'AbpUi::Cancel' | abpLocalization\"\r\n (click)=\"close(reject)\"\r\n ></button>\r\n }\r\n @if (!data?.options?.hideYesBtn) {\r\n <button\r\n id=\"confirm\"\r\n class=\"btn btn-primary\"\r\n [innerHTML]=\"data.options?.yesText || 'AbpUi::Yes' | abpLocalization\"\r\n (click)=\"close(confirm)\"\r\n ></button>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n}\r\n", styles: [".confirmation{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:1060}.confirmation .confirmation-backdrop{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:1061!important}.confirmation .confirmation-dialog{display:flex;flex-direction:column;margin:20px auto;padding:0;width:450px;min-height:300px;z-index:1062!important}@media screen and (max-width:500px){.confirmation .confirmation-dialog{width:90vw}}.confirmation .confirmation-dialog .icon-container{display:flex;align-items:center;justify-content:center;padding:40px 20px 10px}.confirmation .confirmation-dialog .icon-container .icon{width:100px;height:100px;stroke-width:1;font-size:80px;text-align:center}.confirmation .confirmation-dialog .content{flex-grow:1;display:block}.confirmation .confirmation-dialog .content .title{display:block;margin:0;padding:0;font-size:27px;font-weight:600;text-align:center}.confirmation .confirmation-dialog .content .message{display:block;padding:8px 20px 20px;font-size:16px;font-weight:400;text-align:center;margin-bottom:0}.confirmation .confirmation-dialog .footer{display:flex;align-items:center;justify-content:flex-end;padding:20px;width:100%}\n"] }]
|
|
465
|
+
}] });
|
|
473
466
|
|
|
474
467
|
class HttpErrorWrapperComponent {
|
|
475
468
|
constructor() {
|
|
@@ -478,8 +471,8 @@ class HttpErrorWrapperComponent {
|
|
|
478
471
|
this.window = this.document.defaultView;
|
|
479
472
|
this.router = inject(Router);
|
|
480
473
|
this.status = 0;
|
|
481
|
-
this.title = 'Oops!';
|
|
482
|
-
this.details = 'Sorry, an error has occured.';
|
|
474
|
+
this.title = '_::Oops!';
|
|
475
|
+
this.details = '_::Sorry, an error has occured.';
|
|
483
476
|
this.customComponent = undefined;
|
|
484
477
|
this.hideCloseIcon = false;
|
|
485
478
|
this.isHomeShow = true;
|
|
@@ -539,22 +532,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
|
539
532
|
}] } });
|
|
540
533
|
|
|
541
534
|
class LoaderBarComponent {
|
|
542
|
-
|
|
543
|
-
this.
|
|
544
|
-
this.
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
return this._isLoading;
|
|
548
|
-
}
|
|
549
|
-
get boxShadow() {
|
|
550
|
-
return `0 0 10px rgba(${this.color}, 0.5)`;
|
|
551
|
-
}
|
|
552
|
-
constructor(router, cdRef, subscription, httpWaitService, routerWaitService) {
|
|
553
|
-
this.router = router;
|
|
554
|
-
this.cdRef = cdRef;
|
|
555
|
-
this.subscription = subscription;
|
|
556
|
-
this.httpWaitService = httpWaitService;
|
|
557
|
-
this.routerWaitService = routerWaitService;
|
|
535
|
+
constructor() {
|
|
536
|
+
this.cdRef = inject(ChangeDetectorRef);
|
|
537
|
+
this.subscription = inject(SubscriptionService);
|
|
538
|
+
this.httpWaitService = inject(HttpWaitService);
|
|
539
|
+
this.routerWaitService = inject(RouterWaitService);
|
|
558
540
|
this.containerClass = 'abp-loader-bar';
|
|
559
541
|
this.color = '#77b6ff';
|
|
560
542
|
this.progressLevel = 0;
|
|
@@ -582,6 +564,16 @@ class LoaderBarComponent {
|
|
|
582
564
|
this.cdRef.detectChanges();
|
|
583
565
|
};
|
|
584
566
|
}
|
|
567
|
+
set isLoading(value) {
|
|
568
|
+
this._isLoading = value;
|
|
569
|
+
this.cdRef.detectChanges();
|
|
570
|
+
}
|
|
571
|
+
get isLoading() {
|
|
572
|
+
return this._isLoading;
|
|
573
|
+
}
|
|
574
|
+
get boxShadow() {
|
|
575
|
+
return `0 0 10px rgba(${this.color}, 0.5)`;
|
|
576
|
+
}
|
|
585
577
|
ngOnInit() {
|
|
586
578
|
this.subscribeLoading();
|
|
587
579
|
}
|
|
@@ -613,7 +605,7 @@ class LoaderBarComponent {
|
|
|
613
605
|
return;
|
|
614
606
|
this.timer = timer(this.stopDelay).subscribe(this.clearProgress);
|
|
615
607
|
}
|
|
616
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: LoaderBarComponent, deps: [
|
|
608
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: LoaderBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
617
609
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.7", type: LoaderBarComponent, isStandalone: true, selector: "abp-loader-bar", inputs: { isLoading: "isLoading", containerClass: "containerClass", color: "color" }, providers: [SubscriptionService], ngImport: i0, template: `
|
|
618
610
|
<div id="abp-loader-bar" [ngClass]="containerClass" [class.is-loading]="isLoading">
|
|
619
611
|
<div
|
|
@@ -626,7 +618,7 @@ class LoaderBarComponent {
|
|
|
626
618
|
}"
|
|
627
619
|
></div>
|
|
628
620
|
</div>
|
|
629
|
-
`, isInline: true, styles: [".abp-loader-bar{left:0;opacity:0;position:fixed;top:0;transition:opacity .4s linear .4s;z-index:99999}.abp-loader-bar.is-loading{opacity:1;transition:none}.abp-loader-bar .abp-progress{height:3px;left:0;position:fixed;top:0}.abp-loader-bar .abp-progress.progressing{transition:width .4s ease}\n"], dependencies: [{ kind: "
|
|
621
|
+
`, isInline: true, styles: [".abp-loader-bar{left:0;opacity:0;position:fixed;top:0;transition:opacity .4s linear .4s;z-index:99999}.abp-loader-bar.is-loading{opacity:1;transition:none}.abp-loader-bar .abp-progress{height:3px;left:0;position:fixed;top:0}.abp-loader-bar .abp-progress.progressing{transition:width .4s ease}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
630
622
|
}
|
|
631
623
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: LoaderBarComponent, decorators: [{
|
|
632
624
|
type: Component,
|
|
@@ -642,8 +634,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
|
642
634
|
}"
|
|
643
635
|
></div>
|
|
644
636
|
</div>
|
|
645
|
-
`, providers: [SubscriptionService], imports: [
|
|
646
|
-
}],
|
|
637
|
+
`, providers: [SubscriptionService], imports: [NgClass, NgStyle], styles: [".abp-loader-bar{left:0;opacity:0;position:fixed;top:0;transition:opacity .4s linear .4s;z-index:99999}.abp-loader-bar.is-loading{opacity:1;transition:none}.abp-loader-bar .abp-progress{height:3px;left:0;position:fixed;top:0}.abp-loader-bar .abp-progress.progressing{transition:width .4s ease}\n"] }]
|
|
638
|
+
}], propDecorators: { isLoading: [{
|
|
647
639
|
type: Input
|
|
648
640
|
}], containerClass: [{
|
|
649
641
|
type: Input
|
|
@@ -678,8 +670,9 @@ class UserMenu extends NavItem {
|
|
|
678
670
|
}
|
|
679
671
|
|
|
680
672
|
class ConfirmationService {
|
|
681
|
-
constructor(
|
|
682
|
-
this.contentProjectionService =
|
|
673
|
+
constructor() {
|
|
674
|
+
this.contentProjectionService = inject(ContentProjectionService);
|
|
675
|
+
this.document = inject(DOCUMENT);
|
|
683
676
|
this.confirmation$ = new ReplaySubject(1);
|
|
684
677
|
this.clear = (status = Confirmation.Status.dismiss) => {
|
|
685
678
|
this.confirmation$.next(null);
|
|
@@ -723,19 +716,19 @@ class ConfirmationService {
|
|
|
723
716
|
return this.status$;
|
|
724
717
|
}
|
|
725
718
|
listenToEscape() {
|
|
726
|
-
fromEvent(document, 'keyup')
|
|
719
|
+
fromEvent(this.document, 'keyup')
|
|
727
720
|
.pipe(takeUntil(this.status$), debounceTime(150), filter((key) => key && key.key === 'Escape'))
|
|
728
721
|
.subscribe(() => {
|
|
729
722
|
this.clear();
|
|
730
723
|
});
|
|
731
724
|
}
|
|
732
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ConfirmationService, deps: [
|
|
725
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ConfirmationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
733
726
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ConfirmationService, providedIn: 'root' }); }
|
|
734
727
|
}
|
|
735
728
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ConfirmationService, decorators: [{
|
|
736
729
|
type: Injectable,
|
|
737
730
|
args: [{ providedIn: 'root' }]
|
|
738
|
-
}]
|
|
731
|
+
}] });
|
|
739
732
|
|
|
740
733
|
class AbstractMenuService {
|
|
741
734
|
get items() {
|
|
@@ -865,11 +858,11 @@ class ToastComponent {
|
|
|
865
858
|
this.close();
|
|
866
859
|
}
|
|
867
860
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ToastComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
868
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.7", type: ToastComponent, isStandalone: true, selector: "abp-toast", inputs: { toast: "toast" }, outputs: { remove: "remove" }, ngImport: i0, template: "<div class=\"abp-toast\" [ngClass]=\"severityClass\" (click)=\"tap()\">\r\n <div class=\"abp-toast-icon\">\r\n <i class=\"bi icon\" [ngClass]=\"iconClass\" aria-hidden=\"true\"></i>\r\n </div>\r\n <div class=\"abp-toast-content\">\r\n @if (toast.options?.closable) {\r\n <button class=\"abp-toast-close-button\" (click)=\"close()\">\r\n <i class=\"bi bi-x fs-4\" aria-hidden=\"true\"></i>\r\n </button>\r\n }\r\n <div class=\"abp-toast-title\">\r\n {{ toast.title | abpLocalization: toast.options?.titleLocalizationParams }}\r\n </div>\r\n <p\r\n class=\"abp-toast-message\"\r\n [innerHTML]=\"toast.message | abpLocalization: toast.options?.messageLocalizationParams\"\r\n ></p>\r\n </div>\r\n</div>\r\n", styles: [".abp-toast{display:grid;grid-template-columns:35px 1fr;gap:5px;margin:5px 0;padding:7px;width:350px;-webkit-user-select:none;user-select:none;z-index:9999;color:#fff;border-radius:8px;font-size:14px;box-shadow:0 0 20px #4c577d05;border:2px solid #f0f0f0;background-color:#f0f0f0;color:#000;box-shadow:0 0 10px -5px #0006}.abp-toast:hover{border:2px solid #e4e4e4;background-color:#e4e4e4;box-shadow:0 0 15px -5px #0006}.abp-toast{opacity:1}.abp-toast.abp-toast-success{border:2px solid #4fbf67;background-color:#4fbf67;color:#fff;box-shadow:0 0 10px -5px #0006}.abp-toast.abp-toast-success:hover{border:2px solid rgb(69.1,187.4,94.45);background-color:#45bb5e;box-shadow:0 0 15px -5px #0006}.abp-toast.abp-toast-info{border:2px solid #438aa7;background-color:#438aa7;color:#fff;box-shadow:0 0 10px -5px #0006}.abp-toast.abp-toast-info:hover{border:2px solid rgb(63.65,131.1,158.65);background-color:#40839f;box-shadow:0 0 15px -5px #0006}.abp-toast.abp-toast-warning{border:2px solid #ff9f38;background-color:#ff9f38;color:#fff;box-shadow:0 0 10px -5px #0006}.abp-toast.abp-toast-warning:hover{border:2px solid rgb(255,151.4984924623,40.45);background-color:#ff9728;box-shadow:0 0 15px -5px #0006}.abp-toast.abp-toast-error{border:2px solid #c00d49;background-color:#c00d49;color:#fff;box-shadow:0 0 10px -5px #0006}.abp-toast.abp-toast-error:hover{border:2px solid rgb(182.4,12.35,69.35);background-color:#b60c45;box-shadow:0 0 15px -5px #0006}.abp-toast .abp-toast-icon{display:flex;align-items:center;justify-content:center}.abp-toast .abp-toast-icon .icon{font-size:32px}.abp-toast .abp-toast-content{position:relative;display:flex;align-self:center;flex-direction:column;word-break:break-word;padding-bottom:2px}.abp-toast .abp-toast-content .abp-toast-close-button{position:absolute;top:0;right:0;display:flex;align-items:center;justify-content:center;margin:0;padding:0 5px 0 0;width:25px;height:100%;border:none;border-radius:50%;background:transparent;color:inherit}.abp-toast .abp-toast-content .abp-toast-close-button:focus{outline:none}.abp-toast .abp-toast-content .abp-toast-title{margin:0;padding:0;font-size:1rem;font-weight:600}.abp-toast .abp-toast-content .abp-toast-message{margin:0;padding:0;max-width:240px}\n"], dependencies: [{ kind: "
|
|
861
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.7", type: ToastComponent, isStandalone: true, selector: "abp-toast", inputs: { toast: "toast" }, outputs: { remove: "remove" }, ngImport: i0, template: "<div class=\"abp-toast\" [ngClass]=\"severityClass\" (click)=\"tap()\">\r\n <div class=\"abp-toast-icon\">\r\n <i class=\"bi icon\" [ngClass]=\"iconClass\" aria-hidden=\"true\"></i>\r\n </div>\r\n <div class=\"abp-toast-content\">\r\n @if (toast.options?.closable) {\r\n <button class=\"abp-toast-close-button\" (click)=\"close()\">\r\n <i class=\"bi bi-x fs-4\" aria-hidden=\"true\"></i>\r\n </button>\r\n }\r\n <div class=\"abp-toast-title\">\r\n {{ toast.title | abpLocalization: toast.options?.titleLocalizationParams }}\r\n </div>\r\n <p\r\n class=\"abp-toast-message\"\r\n [innerHTML]=\"toast.message | abpLocalization: toast.options?.messageLocalizationParams\"\r\n ></p>\r\n </div>\r\n</div>\r\n", styles: [".abp-toast{display:grid;grid-template-columns:35px 1fr;gap:5px;margin:5px 0;padding:7px;width:350px;-webkit-user-select:none;user-select:none;z-index:9999;color:#fff;border-radius:8px;font-size:14px;box-shadow:0 0 20px #4c577d05;border:2px solid #f0f0f0;background-color:#f0f0f0;color:#000;box-shadow:0 0 10px -5px #0006}.abp-toast:hover{border:2px solid #e4e4e4;background-color:#e4e4e4;box-shadow:0 0 15px -5px #0006}.abp-toast{opacity:1}.abp-toast.abp-toast-success{border:2px solid #4fbf67;background-color:#4fbf67;color:#fff;box-shadow:0 0 10px -5px #0006}.abp-toast.abp-toast-success:hover{border:2px solid rgb(69.1,187.4,94.45);background-color:#45bb5e;box-shadow:0 0 15px -5px #0006}.abp-toast.abp-toast-info{border:2px solid #438aa7;background-color:#438aa7;color:#fff;box-shadow:0 0 10px -5px #0006}.abp-toast.abp-toast-info:hover{border:2px solid rgb(63.65,131.1,158.65);background-color:#40839f;box-shadow:0 0 15px -5px #0006}.abp-toast.abp-toast-warning{border:2px solid #ff9f38;background-color:#ff9f38;color:#fff;box-shadow:0 0 10px -5px #0006}.abp-toast.abp-toast-warning:hover{border:2px solid rgb(255,151.4984924623,40.45);background-color:#ff9728;box-shadow:0 0 15px -5px #0006}.abp-toast.abp-toast-error{border:2px solid #c00d49;background-color:#c00d49;color:#fff;box-shadow:0 0 10px -5px #0006}.abp-toast.abp-toast-error:hover{border:2px solid rgb(182.4,12.35,69.35);background-color:#b60c45;box-shadow:0 0 15px -5px #0006}.abp-toast .abp-toast-icon{display:flex;align-items:center;justify-content:center}.abp-toast .abp-toast-icon .icon{font-size:32px}.abp-toast .abp-toast-content{position:relative;display:flex;align-self:center;flex-direction:column;word-break:break-word;padding-bottom:2px}.abp-toast .abp-toast-content .abp-toast-close-button{position:absolute;top:0;right:0;display:flex;align-items:center;justify-content:center;margin:0;padding:0 5px 0 0;width:25px;height:100%;border:none;border-radius:50%;background:transparent;color:inherit}.abp-toast .abp-toast-content .abp-toast-close-button:focus{outline:none}.abp-toast .abp-toast-content .abp-toast-title{margin:0;padding:0;font-size:1rem;font-weight:600}.abp-toast .abp-toast-content .abp-toast-message{margin:0;padding:0;max-width:240px}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
869
862
|
}
|
|
870
863
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ToastComponent, decorators: [{
|
|
871
864
|
type: Component,
|
|
872
|
-
args: [{ selector: 'abp-toast', imports: [
|
|
865
|
+
args: [{ selector: 'abp-toast', imports: [NgClass, LocalizationPipe], template: "<div class=\"abp-toast\" [ngClass]=\"severityClass\" (click)=\"tap()\">\r\n <div class=\"abp-toast-icon\">\r\n <i class=\"bi icon\" [ngClass]=\"iconClass\" aria-hidden=\"true\"></i>\r\n </div>\r\n <div class=\"abp-toast-content\">\r\n @if (toast.options?.closable) {\r\n <button class=\"abp-toast-close-button\" (click)=\"close()\">\r\n <i class=\"bi bi-x fs-4\" aria-hidden=\"true\"></i>\r\n </button>\r\n }\r\n <div class=\"abp-toast-title\">\r\n {{ toast.title | abpLocalization: toast.options?.titleLocalizationParams }}\r\n </div>\r\n <p\r\n class=\"abp-toast-message\"\r\n [innerHTML]=\"toast.message | abpLocalization: toast.options?.messageLocalizationParams\"\r\n ></p>\r\n </div>\r\n</div>\r\n", styles: [".abp-toast{display:grid;grid-template-columns:35px 1fr;gap:5px;margin:5px 0;padding:7px;width:350px;-webkit-user-select:none;user-select:none;z-index:9999;color:#fff;border-radius:8px;font-size:14px;box-shadow:0 0 20px #4c577d05;border:2px solid #f0f0f0;background-color:#f0f0f0;color:#000;box-shadow:0 0 10px -5px #0006}.abp-toast:hover{border:2px solid #e4e4e4;background-color:#e4e4e4;box-shadow:0 0 15px -5px #0006}.abp-toast{opacity:1}.abp-toast.abp-toast-success{border:2px solid #4fbf67;background-color:#4fbf67;color:#fff;box-shadow:0 0 10px -5px #0006}.abp-toast.abp-toast-success:hover{border:2px solid rgb(69.1,187.4,94.45);background-color:#45bb5e;box-shadow:0 0 15px -5px #0006}.abp-toast.abp-toast-info{border:2px solid #438aa7;background-color:#438aa7;color:#fff;box-shadow:0 0 10px -5px #0006}.abp-toast.abp-toast-info:hover{border:2px solid rgb(63.65,131.1,158.65);background-color:#40839f;box-shadow:0 0 15px -5px #0006}.abp-toast.abp-toast-warning{border:2px solid #ff9f38;background-color:#ff9f38;color:#fff;box-shadow:0 0 10px -5px #0006}.abp-toast.abp-toast-warning:hover{border:2px solid rgb(255,151.4984924623,40.45);background-color:#ff9728;box-shadow:0 0 15px -5px #0006}.abp-toast.abp-toast-error{border:2px solid #c00d49;background-color:#c00d49;color:#fff;box-shadow:0 0 10px -5px #0006}.abp-toast.abp-toast-error:hover{border:2px solid rgb(182.4,12.35,69.35);background-color:#b60c45;box-shadow:0 0 15px -5px #0006}.abp-toast .abp-toast-icon{display:flex;align-items:center;justify-content:center}.abp-toast .abp-toast-icon .icon{font-size:32px}.abp-toast .abp-toast-content{position:relative;display:flex;align-self:center;flex-direction:column;word-break:break-word;padding-bottom:2px}.abp-toast .abp-toast-content .abp-toast-close-button{position:absolute;top:0;right:0;display:flex;align-items:center;justify-content:center;margin:0;padding:0 5px 0 0;width:25px;height:100%;border:none;border-radius:50%;background:transparent;color:inherit}.abp-toast .abp-toast-content .abp-toast-close-button:focus{outline:none}.abp-toast .abp-toast-content .abp-toast-title{margin:0;padding:0;font-size:1rem;font-weight:600}.abp-toast .abp-toast-content .abp-toast-message{margin:0;padding:0;max-width:240px}\n"] }]
|
|
873
866
|
}], propDecorators: { toast: [{
|
|
874
867
|
type: Input
|
|
875
868
|
}], remove: [{
|
|
@@ -1581,6 +1574,9 @@ const NGX_DATATABLE_MESSAGES = new InjectionToken('NGX_DATATABLE_MESSAGES');
|
|
|
1581
1574
|
|
|
1582
1575
|
const SUPPRESS_UNSAVED_CHANGES_WARNING = new InjectionToken('SUPPRESS_UNSAVED_CHANGES_WARNING');
|
|
1583
1576
|
|
|
1577
|
+
const LOGO_URL_TOKEN = new InjectionToken('LOGO_URL_TOKEN');
|
|
1578
|
+
const LOGO_APP_NAME_TOKEN = new InjectionToken('LOGO_APP_NAME_TOKEN');
|
|
1579
|
+
|
|
1584
1580
|
class RouterErrorHandlerService {
|
|
1585
1581
|
constructor() {
|
|
1586
1582
|
this.routerEvents = inject(RouterEvents);
|
|
@@ -1668,7 +1664,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
|
1668
1664
|
|
|
1669
1665
|
class ModalComponent {
|
|
1670
1666
|
get modalWindowRef() {
|
|
1671
|
-
return document.querySelector(`ngb-modal-window.${this.modalIdentifier}`);
|
|
1667
|
+
return this.document.querySelector(`ngb-modal-window.${this.modalIdentifier}`);
|
|
1672
1668
|
}
|
|
1673
1669
|
get isFormDirty() {
|
|
1674
1670
|
return Boolean(this.modalWindowRef?.querySelector('.ng-dirty'));
|
|
@@ -1681,6 +1677,7 @@ class ModalComponent {
|
|
|
1681
1677
|
optional: true,
|
|
1682
1678
|
});
|
|
1683
1679
|
this.destroyRef = inject(DestroyRef);
|
|
1680
|
+
this.document = inject(DOCUMENT);
|
|
1684
1681
|
this.visible = model(false);
|
|
1685
1682
|
this.busy = input(false, {
|
|
1686
1683
|
transform: (value) => {
|
|
@@ -1787,16 +1784,17 @@ class ModalComponent {
|
|
|
1787
1784
|
this.init.emit();
|
|
1788
1785
|
}
|
|
1789
1786
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1790
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.7", type: ModalComponent, isStandalone: true, selector: "abp-modal", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, busy: { classPropertyName: "busy", publicName: "busy", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, suppressUnsavedChangesWarning: { classPropertyName: "suppressUnsavedChangesWarning", publicName: "suppressUnsavedChangesWarning", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange", init: "init", appear: "appear", disappear: "disappear" }, providers: [SubscriptionService], queries: [{ propertyName: "abpHeader", first: true, predicate: ["abpHeader"], descendants: true, isSignal: true }, { propertyName: "abpBody", first: true, predicate: ["abpBody"], descendants: true, isSignal: true }, { propertyName: "abpFooter", first: true, predicate: ["abpFooter"], descendants: true, isSignal: true }, { propertyName: "abpSubmit", first: true, predicate: ButtonComponent, descendants: true, read: ButtonComponent, isSignal: true }], viewQueries: [{ propertyName: "modalContent", first: true, predicate: ["modalContent"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-content></ng-content>\r\n\r\n<ng-template #modalContent let-modal>\r\n @if (abpHeader()) {\r\n <div id=\"abp-modal-header\" class=\"modal-header abp-modal-header\">\r\n <ng-container *ngTemplateOutlet=\"abpHeader()\"></ng-container>\r\n \u200B\r\n <button\r\n id=\"abp-modal-close-button\"\r\n type=\"button\"\r\n class=\"btn-sm btn-close\"\r\n aria-label=\"Close\"\r\n (click)=\"modal.dismiss()\"\r\n ></button>\r\n </div>\r\n }\r\n @if (abpBody()) {\r\n <div id=\"abp-modal-body\" class=\"modal-body\">\r\n <ng-container *ngTemplateOutlet=\"abpBody()\"></ng-container>\r\n </div>\r\n }\r\n @if (abpFooter()) {\r\n <div id=\"abp-modal-footer\" class=\"modal-footer\">\r\n <ng-container *ngTemplateOutlet=\"abpFooter()\"></ng-container>\r\n </div>\r\n }\r\n</ng-template>\r\n", styles: [".modal.show{display:block!important}.modal-backdrop{opacity:.8}.modal::-webkit-scrollbar{width:7px}.modal::-webkit-scrollbar-track{background:#ddd}.modal::-webkit-scrollbar-thumb{background:#8a8686}.modal-dialog{z-index:1050}\n"], dependencies: [{ kind: "
|
|
1787
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.7", type: ModalComponent, isStandalone: true, selector: "abp-modal", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, busy: { classPropertyName: "busy", publicName: "busy", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, suppressUnsavedChangesWarning: { classPropertyName: "suppressUnsavedChangesWarning", publicName: "suppressUnsavedChangesWarning", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange", init: "init", appear: "appear", disappear: "disappear" }, providers: [SubscriptionService], queries: [{ propertyName: "abpHeader", first: true, predicate: ["abpHeader"], descendants: true, isSignal: true }, { propertyName: "abpBody", first: true, predicate: ["abpBody"], descendants: true, isSignal: true }, { propertyName: "abpFooter", first: true, predicate: ["abpFooter"], descendants: true, isSignal: true }, { propertyName: "abpSubmit", first: true, predicate: ButtonComponent, descendants: true, read: ButtonComponent, isSignal: true }], viewQueries: [{ propertyName: "modalContent", first: true, predicate: ["modalContent"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-content></ng-content>\r\n\r\n<ng-template #modalContent let-modal>\r\n @if (abpHeader()) {\r\n <div id=\"abp-modal-header\" class=\"modal-header abp-modal-header\">\r\n <ng-container *ngTemplateOutlet=\"abpHeader()\"></ng-container>\r\n \u200B\r\n <button\r\n id=\"abp-modal-close-button\"\r\n type=\"button\"\r\n class=\"btn-sm btn-close\"\r\n aria-label=\"Close\"\r\n (click)=\"modal.dismiss()\"\r\n ></button>\r\n </div>\r\n }\r\n @if (abpBody()) {\r\n <div id=\"abp-modal-body\" class=\"modal-body\">\r\n <ng-container *ngTemplateOutlet=\"abpBody()\"></ng-container>\r\n </div>\r\n }\r\n @if (abpFooter()) {\r\n <div id=\"abp-modal-footer\" class=\"modal-footer\">\r\n <ng-container *ngTemplateOutlet=\"abpFooter()\"></ng-container>\r\n </div>\r\n }\r\n</ng-template>\r\n", styles: [".modal.show{display:block!important}.modal-backdrop{opacity:.8}.modal::-webkit-scrollbar{width:7px}.modal::-webkit-scrollbar-track{background:#ddd}.modal::-webkit-scrollbar-thumb{background:#8a8686}.modal-dialog{z-index:1050}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
1791
1788
|
}
|
|
1792
1789
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ModalComponent, decorators: [{
|
|
1793
1790
|
type: Component,
|
|
1794
|
-
args: [{ selector: 'abp-modal', providers: [SubscriptionService], imports: [
|
|
1791
|
+
args: [{ selector: 'abp-modal', providers: [SubscriptionService], imports: [NgTemplateOutlet], template: "<ng-content></ng-content>\r\n\r\n<ng-template #modalContent let-modal>\r\n @if (abpHeader()) {\r\n <div id=\"abp-modal-header\" class=\"modal-header abp-modal-header\">\r\n <ng-container *ngTemplateOutlet=\"abpHeader()\"></ng-container>\r\n \u200B\r\n <button\r\n id=\"abp-modal-close-button\"\r\n type=\"button\"\r\n class=\"btn-sm btn-close\"\r\n aria-label=\"Close\"\r\n (click)=\"modal.dismiss()\"\r\n ></button>\r\n </div>\r\n }\r\n @if (abpBody()) {\r\n <div id=\"abp-modal-body\" class=\"modal-body\">\r\n <ng-container *ngTemplateOutlet=\"abpBody()\"></ng-container>\r\n </div>\r\n }\r\n @if (abpFooter()) {\r\n <div id=\"abp-modal-footer\" class=\"modal-footer\">\r\n <ng-container *ngTemplateOutlet=\"abpFooter()\"></ng-container>\r\n </div>\r\n }\r\n</ng-template>\r\n", styles: [".modal.show{display:block!important}.modal-backdrop{opacity:.8}.modal::-webkit-scrollbar{width:7px}.modal::-webkit-scrollbar-track{background:#ddd}.modal::-webkit-scrollbar-thumb{background:#8a8686}.modal-dialog{z-index:1050}\n"] }]
|
|
1795
1792
|
}], ctorParameters: () => [] });
|
|
1796
1793
|
|
|
1797
1794
|
class ModalCloseDirective {
|
|
1798
|
-
constructor(
|
|
1799
|
-
this.modal =
|
|
1795
|
+
constructor() {
|
|
1796
|
+
this.modal = inject(ModalComponent, { optional: true });
|
|
1797
|
+
const modal = this.modal;
|
|
1800
1798
|
if (!modal) {
|
|
1801
1799
|
console.error('Please use abpClose within an abp-modal');
|
|
1802
1800
|
}
|
|
@@ -1804,7 +1802,7 @@ class ModalCloseDirective {
|
|
|
1804
1802
|
onClick() {
|
|
1805
1803
|
this.modal?.close();
|
|
1806
1804
|
}
|
|
1807
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ModalCloseDirective, deps: [
|
|
1805
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ModalCloseDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1808
1806
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.7", type: ModalCloseDirective, isStandalone: true, selector: "[abpClose]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 }); }
|
|
1809
1807
|
}
|
|
1810
1808
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ModalCloseDirective, decorators: [{
|
|
@@ -1812,9 +1810,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
|
1812
1810
|
args: [{
|
|
1813
1811
|
selector: '[abpClose]',
|
|
1814
1812
|
}]
|
|
1815
|
-
}], ctorParameters: () => [
|
|
1816
|
-
type: Optional
|
|
1817
|
-
}] }], propDecorators: { onClick: [{
|
|
1813
|
+
}], ctorParameters: () => [], propDecorators: { onClick: [{
|
|
1818
1814
|
type: HostListener,
|
|
1819
1815
|
args: ['click']
|
|
1820
1816
|
}] } });
|
|
@@ -1834,11 +1830,11 @@ class PasswordComponent extends AbstractNgModelComponent {
|
|
|
1834
1830
|
useExisting: forwardRef(() => PasswordComponent),
|
|
1835
1831
|
multi: true,
|
|
1836
1832
|
},
|
|
1837
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"input-group\" validationTarget>\r\n <input\r\n [type]=\"fieldTextType ? 'text' : 'password'\"\r\n class=\"form-control\"\r\n [id]=\"inputId\"\r\n [(ngModel)]=\"value\"\r\n />\r\n\r\n <button class=\"btn btn-secondary\" type=\"button\" (click)=\"toggleFieldTextType()\">\r\n <i\r\n class=\"fa\"\r\n aria-hidden=\"true\"\r\n [ngClass]=\"{\r\n 'fa-eye-slash': !fieldTextType,\r\n 'fa-eye': fieldTextType\r\n }\"\r\n ></i>\r\n </button>\r\n</div>\r\n", dependencies: [{ kind: "
|
|
1833
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"input-group\" validationTarget>\r\n <input\r\n [type]=\"fieldTextType ? 'text' : 'password'\"\r\n class=\"form-control\"\r\n [id]=\"inputId\"\r\n [(ngModel)]=\"value\"\r\n />\r\n\r\n <button class=\"btn btn-secondary\" type=\"button\" (click)=\"toggleFieldTextType()\">\r\n <i\r\n class=\"fa\"\r\n aria-hidden=\"true\"\r\n [ngClass]=\"{\r\n 'fa-eye-slash': !fieldTextType,\r\n 'fa-eye': fieldTextType\r\n }\"\r\n ></i>\r\n </button>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NgxValidateCoreModule }, { kind: "directive", type: i2.ValidationTargetDirective, selector: "[validationTarget]", exportAs: ["validationTarget"] }] }); }
|
|
1838
1834
|
}
|
|
1839
1835
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: PasswordComponent, decorators: [{
|
|
1840
1836
|
type: Component,
|
|
1841
|
-
args: [{ selector: 'abp-password', imports: [
|
|
1837
|
+
args: [{ selector: 'abp-password', imports: [NgClass, FormsModule, NgxValidateCoreModule], providers: [
|
|
1842
1838
|
{
|
|
1843
1839
|
provide: NG_VALUE_ACCESSOR,
|
|
1844
1840
|
useExisting: forwardRef(() => PasswordComponent),
|
|
@@ -1858,7 +1854,7 @@ class CardBodyComponent {
|
|
|
1858
1854
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: CardBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1859
1855
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.7", type: CardBodyComponent, isStandalone: true, selector: "abp-card-body", inputs: { cardBodyClass: "cardBodyClass", cardBodyStyle: "cardBodyStyle" }, host: { properties: { "class": "this.componentClass" } }, ngImport: i0, template: ` <div [ngClass]="cardBodyClass" [ngStyle]="cardBodyStyle">
|
|
1860
1856
|
<ng-content></ng-content>
|
|
1861
|
-
</div>`, isInline: true, dependencies: [{ kind: "
|
|
1857
|
+
</div>`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
1862
1858
|
}
|
|
1863
1859
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: CardBodyComponent, decorators: [{
|
|
1864
1860
|
type: Component,
|
|
@@ -1867,7 +1863,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
|
1867
1863
|
template: ` <div [ngClass]="cardBodyClass" [ngStyle]="cardBodyStyle">
|
|
1868
1864
|
<ng-content></ng-content>
|
|
1869
1865
|
</div>`,
|
|
1870
|
-
imports: [
|
|
1866
|
+
imports: [NgClass, NgStyle],
|
|
1871
1867
|
}]
|
|
1872
1868
|
}], propDecorators: { componentClass: [{
|
|
1873
1869
|
type: HostBinding,
|
|
@@ -1882,7 +1878,7 @@ class CardComponent {
|
|
|
1882
1878
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: CardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1883
1879
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.7", type: CardComponent, isStandalone: true, selector: "abp-card", inputs: { cardClass: "cardClass", cardStyle: "cardStyle" }, ngImport: i0, template: ` <div class="card" [ngClass]="cardClass" [ngStyle]="cardStyle">
|
|
1884
1880
|
<ng-content></ng-content>
|
|
1885
|
-
</div>`, isInline: true, dependencies: [{ kind: "
|
|
1881
|
+
</div>`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
1886
1882
|
}
|
|
1887
1883
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: CardComponent, decorators: [{
|
|
1888
1884
|
type: Component,
|
|
@@ -1891,7 +1887,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
|
1891
1887
|
template: ` <div class="card" [ngClass]="cardClass" [ngStyle]="cardStyle">
|
|
1892
1888
|
<ng-content></ng-content>
|
|
1893
1889
|
</div>`,
|
|
1894
|
-
imports: [
|
|
1890
|
+
imports: [NgClass, NgStyle],
|
|
1895
1891
|
}]
|
|
1896
1892
|
}], propDecorators: { cardClass: [{
|
|
1897
1893
|
type: Input
|
|
@@ -1908,7 +1904,7 @@ class CardHeaderComponent {
|
|
|
1908
1904
|
<div [ngClass]="cardHeaderClass" [ngStyle]="cardHeaderStyle">
|
|
1909
1905
|
<ng-content></ng-content>
|
|
1910
1906
|
</div>
|
|
1911
|
-
`, isInline: true, dependencies: [{ kind: "
|
|
1907
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
1912
1908
|
}
|
|
1913
1909
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: CardHeaderComponent, decorators: [{
|
|
1914
1910
|
type: Component,
|
|
@@ -1916,7 +1912,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
|
1916
1912
|
<div [ngClass]="cardHeaderClass" [ngStyle]="cardHeaderStyle">
|
|
1917
1913
|
<ng-content></ng-content>
|
|
1918
1914
|
</div>
|
|
1919
|
-
`, imports: [
|
|
1915
|
+
`, imports: [NgClass, NgStyle] }]
|
|
1920
1916
|
}], propDecorators: { componentClass: [{
|
|
1921
1917
|
type: HostBinding,
|
|
1922
1918
|
args: ['class']
|
|
@@ -1935,7 +1931,7 @@ class CardFooterComponent {
|
|
|
1935
1931
|
<div [ngStyle]="cardFooterStyle" [ngClass]="cardFooterClass">
|
|
1936
1932
|
<ng-content></ng-content>
|
|
1937
1933
|
</div>
|
|
1938
|
-
`, isInline: true, dependencies: [{ kind: "
|
|
1934
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
1939
1935
|
}
|
|
1940
1936
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: CardFooterComponent, decorators: [{
|
|
1941
1937
|
type: Component,
|
|
@@ -1943,7 +1939,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
|
1943
1939
|
<div [ngStyle]="cardFooterStyle" [ngClass]="cardFooterClass">
|
|
1944
1940
|
<ng-content></ng-content>
|
|
1945
1941
|
</div>
|
|
1946
|
-
`, imports: [
|
|
1942
|
+
`, imports: [NgClass, NgStyle] }]
|
|
1947
1943
|
}], propDecorators: { componentClass: [{
|
|
1948
1944
|
type: HostBinding,
|
|
1949
1945
|
args: ['class']
|
|
@@ -2048,7 +2044,7 @@ class CardModule {
|
|
|
2048
2044
|
CardSubtitleDirective,
|
|
2049
2045
|
CardImgTopDirective,
|
|
2050
2046
|
CardHeaderDirective] }); }
|
|
2051
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: CardModule
|
|
2047
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: CardModule }); }
|
|
2052
2048
|
}
|
|
2053
2049
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: CardModule, decorators: [{
|
|
2054
2050
|
type: NgModule,
|
|
@@ -2093,7 +2089,7 @@ class FormCheckboxComponent extends AbstractNgModelComponent {
|
|
|
2093
2089
|
</label>
|
|
2094
2090
|
}
|
|
2095
2091
|
</div>
|
|
2096
|
-
`, isInline: true, dependencies: [{ kind: "
|
|
2092
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
2097
2093
|
}
|
|
2098
2094
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: FormCheckboxComponent, decorators: [{
|
|
2099
2095
|
type: Component,
|
|
@@ -2125,7 +2121,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
|
2125
2121
|
multi: true,
|
|
2126
2122
|
},
|
|
2127
2123
|
],
|
|
2128
|
-
imports: [
|
|
2124
|
+
imports: [NgClass, NgStyle, FormsModule, LocalizationPipe],
|
|
2129
2125
|
}]
|
|
2130
2126
|
}], propDecorators: { label: [{
|
|
2131
2127
|
type: Input
|
|
@@ -2182,7 +2178,7 @@ class FormInputComponent extends AbstractNgModelComponent {
|
|
|
2182
2178
|
[(ngModel)]="value"
|
|
2183
2179
|
/>
|
|
2184
2180
|
</div>
|
|
2185
|
-
`, isInline: true, dependencies: [{ kind: "
|
|
2181
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
|
|
2186
2182
|
}
|
|
2187
2183
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: FormInputComponent, decorators: [{
|
|
2188
2184
|
type: Component,
|
|
@@ -2215,7 +2211,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
|
2215
2211
|
multi: true,
|
|
2216
2212
|
},
|
|
2217
2213
|
],
|
|
2218
|
-
imports: [
|
|
2214
|
+
imports: [NgClass, NgStyle, LocalizationPipe, FormsModule],
|
|
2219
2215
|
}]
|
|
2220
2216
|
}], propDecorators: { inputId: [{
|
|
2221
2217
|
type: Input
|
|
@@ -2255,11 +2251,11 @@ class InternetConnectionStatusComponent {
|
|
|
2255
2251
|
</i>
|
|
2256
2252
|
</div>
|
|
2257
2253
|
}
|
|
2258
|
-
`, isInline: true, styles: [".blink{animation:blinker .9s cubic-bezier(.5,0,1,1) infinite alternate}@keyframes blinker{0%{color:#c1c1c1}70%{color:#fa2379}to{color:#fa2379}}.text-blinking{font-size:30px}.status-icon{position:fixed;z-index:999999;top:50%;left:50%;width:30px;text-align:center;margin-left:-15px;margin-top:-15px;translate:transform(-50%,-50%)}\n"], dependencies: [{ kind: "
|
|
2254
|
+
`, isInline: true, styles: [".blink{animation:blinker .9s cubic-bezier(.5,0,1,1) infinite alternate}@keyframes blinker{0%{color:#c1c1c1}70%{color:#fa2379}to{color:#fa2379}}.text-blinking{font-size:30px}.status-icon{position:fixed;z-index:999999;top:50%;left:50%;width:30px;text-align:center;margin-left:-15px;margin-top:-15px;translate:transform(-50%,-50%)}\n"], dependencies: [{ kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "directive", type: NgbTooltip, selector: "[ngbTooltip]", inputs: ["animation", "autoClose", "placement", "popperOptions", "triggers", "positionTarget", "container", "disableTooltip", "tooltipClass", "tooltipContext", "openDelay", "closeDelay", "ngbTooltip"], outputs: ["shown", "hidden"], exportAs: ["ngbTooltip"] }] }); }
|
|
2259
2255
|
}
|
|
2260
2256
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: InternetConnectionStatusComponent, decorators: [{
|
|
2261
2257
|
type: Component,
|
|
2262
|
-
args: [{ selector: 'abp-internet-status', imports: [
|
|
2258
|
+
args: [{ selector: 'abp-internet-status', imports: [LocalizationPipe, NgbTooltip], template: `
|
|
2263
2259
|
@if (!isOnline()) {
|
|
2264
2260
|
<div class="status-icon">
|
|
2265
2261
|
<i
|
|
@@ -2299,6 +2295,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
|
2299
2295
|
}] });
|
|
2300
2296
|
|
|
2301
2297
|
class EllipsisDirective {
|
|
2298
|
+
constructor() {
|
|
2299
|
+
this.cdRef = inject(ChangeDetectorRef);
|
|
2300
|
+
this.elRef = inject(ElementRef);
|
|
2301
|
+
this.enabled = true;
|
|
2302
|
+
}
|
|
2302
2303
|
get inlineClass() {
|
|
2303
2304
|
return this.enabled && this.width;
|
|
2304
2305
|
}
|
|
@@ -2308,16 +2309,11 @@ class EllipsisDirective {
|
|
|
2308
2309
|
get maxWidth() {
|
|
2309
2310
|
return this.enabled && this.width ? this.width || '170px' : undefined;
|
|
2310
2311
|
}
|
|
2311
|
-
constructor(cdRef, elRef) {
|
|
2312
|
-
this.cdRef = cdRef;
|
|
2313
|
-
this.elRef = elRef;
|
|
2314
|
-
this.enabled = true;
|
|
2315
|
-
}
|
|
2316
2312
|
ngAfterViewInit() {
|
|
2317
2313
|
this.title = this.title || this.elRef.nativeElement.innerText;
|
|
2318
2314
|
this.cdRef.detectChanges();
|
|
2319
2315
|
}
|
|
2320
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: EllipsisDirective, deps: [
|
|
2316
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: EllipsisDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2321
2317
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.7", type: EllipsisDirective, isStandalone: true, selector: "[abpEllipsis]", inputs: { width: ["abpEllipsis", "width"], title: "title", enabled: ["abpEllipsisEnabled", "enabled"] }, host: { properties: { "title": "this.title", "class.abp-ellipsis-inline": "this.inlineClass", "class.abp-ellipsis": "this.class", "style.max-width": "this.maxWidth" } }, ngImport: i0 }); }
|
|
2322
2318
|
}
|
|
2323
2319
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: EllipsisDirective, decorators: [{
|
|
@@ -2325,7 +2321,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
|
2325
2321
|
args: [{
|
|
2326
2322
|
selector: '[abpEllipsis]',
|
|
2327
2323
|
}]
|
|
2328
|
-
}],
|
|
2324
|
+
}], propDecorators: { width: [{
|
|
2329
2325
|
type: Input,
|
|
2330
2326
|
args: ['abpEllipsis']
|
|
2331
2327
|
}], title: [{
|
|
@@ -2348,6 +2344,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
|
2348
2344
|
}] } });
|
|
2349
2345
|
|
|
2350
2346
|
class LoadingDirective {
|
|
2347
|
+
constructor() {
|
|
2348
|
+
this.elRef = inject(ElementRef);
|
|
2349
|
+
this.cdRes = inject(ComponentFactoryResolver);
|
|
2350
|
+
this.injector = inject(Injector);
|
|
2351
|
+
this.renderer = inject(Renderer2);
|
|
2352
|
+
this.position = 'relative';
|
|
2353
|
+
this.delay = 0;
|
|
2354
|
+
this.rootNode = null;
|
|
2355
|
+
this.timerSubscription = null;
|
|
2356
|
+
}
|
|
2351
2357
|
get loading() {
|
|
2352
2358
|
return this._loading;
|
|
2353
2359
|
}
|
|
@@ -2384,17 +2390,6 @@ class LoadingDirective {
|
|
|
2384
2390
|
});
|
|
2385
2391
|
}, 0);
|
|
2386
2392
|
}
|
|
2387
|
-
constructor(elRef, vcRef, cdRes, injector, renderer) {
|
|
2388
|
-
this.elRef = elRef;
|
|
2389
|
-
this.vcRef = vcRef;
|
|
2390
|
-
this.cdRes = cdRes;
|
|
2391
|
-
this.injector = injector;
|
|
2392
|
-
this.renderer = renderer;
|
|
2393
|
-
this.position = 'relative';
|
|
2394
|
-
this.delay = 0;
|
|
2395
|
-
this.rootNode = null;
|
|
2396
|
-
this.timerSubscription = null;
|
|
2397
|
-
}
|
|
2398
2393
|
ngOnInit() {
|
|
2399
2394
|
if (!this.targetElement) {
|
|
2400
2395
|
const { offsetHeight, offsetWidth } = this.elRef.nativeElement;
|
|
@@ -2411,7 +2406,7 @@ class LoadingDirective {
|
|
|
2411
2406
|
this.timerSubscription.unsubscribe();
|
|
2412
2407
|
}
|
|
2413
2408
|
}
|
|
2414
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: LoadingDirective, deps: [
|
|
2409
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: LoadingDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2415
2410
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.7", type: LoadingDirective, isStandalone: true, selector: "[abpLoading]", inputs: { loading: ["abpLoading", "loading"], targetElement: ["abpLoadingTargetElement", "targetElement"], delay: ["abpLoadingDelay", "delay"] }, host: { properties: { "style.position": "this.position" } }, ngImport: i0 }); }
|
|
2416
2411
|
}
|
|
2417
2412
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: LoadingDirective, decorators: [{
|
|
@@ -2419,7 +2414,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
|
2419
2414
|
args: [{
|
|
2420
2415
|
selector: '[abpLoading]',
|
|
2421
2416
|
}]
|
|
2422
|
-
}],
|
|
2417
|
+
}], propDecorators: { position: [{
|
|
2423
2418
|
type: HostBinding,
|
|
2424
2419
|
args: ['style.position']
|
|
2425
2420
|
}], loading: [{
|
|
@@ -2437,9 +2432,10 @@ class NgxDatatableDefaultDirective {
|
|
|
2437
2432
|
get classes() {
|
|
2438
2433
|
return `ngx-datatable ${this.class}`;
|
|
2439
2434
|
}
|
|
2440
|
-
constructor(
|
|
2441
|
-
this.table =
|
|
2442
|
-
this.document =
|
|
2435
|
+
constructor() {
|
|
2436
|
+
this.table = inject(DatatableComponent);
|
|
2437
|
+
this.document = inject(DOCUMENT);
|
|
2438
|
+
this.platformId = inject(PLATFORM_ID);
|
|
2443
2439
|
this.subscription = new Subscription();
|
|
2444
2440
|
this.resizeDiff = 0;
|
|
2445
2441
|
this.class = 'material bordered';
|
|
@@ -2452,28 +2448,31 @@ class NgxDatatableDefaultDirective {
|
|
|
2452
2448
|
}
|
|
2453
2449
|
fixHorizontalGap(scroller) {
|
|
2454
2450
|
const { body, documentElement } = this.document;
|
|
2455
|
-
if (
|
|
2456
|
-
if (
|
|
2457
|
-
this.resizeDiff
|
|
2458
|
-
|
|
2451
|
+
if (isPlatformBrowser(this.platformId)) {
|
|
2452
|
+
if (documentElement.scrollHeight !== documentElement.clientHeight) {
|
|
2453
|
+
if (this.resizeDiff === 0) {
|
|
2454
|
+
this.resizeDiff = window.innerWidth - body.offsetWidth;
|
|
2455
|
+
scroller.scrollWidth -= this.resizeDiff;
|
|
2456
|
+
}
|
|
2457
|
+
}
|
|
2458
|
+
else {
|
|
2459
|
+
scroller.scrollWidth += this.resizeDiff;
|
|
2460
|
+
this.resizeDiff = 0;
|
|
2459
2461
|
}
|
|
2460
|
-
}
|
|
2461
|
-
else {
|
|
2462
|
-
scroller.scrollWidth += this.resizeDiff;
|
|
2463
|
-
this.resizeDiff = 0;
|
|
2464
2462
|
}
|
|
2465
2463
|
}
|
|
2466
2464
|
fixStyleOnWindowResize() {
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2465
|
+
if (isPlatformBrowser(this.platformId)) {
|
|
2466
|
+
const subscription = fromEvent(window, 'resize')
|
|
2467
|
+
.pipe(debounceTime(500))
|
|
2468
|
+
.subscribe(() => {
|
|
2469
|
+
const { scroller } = this.table.bodyComponent;
|
|
2470
|
+
if (!scroller)
|
|
2471
|
+
return;
|
|
2472
|
+
this.fixHorizontalGap(scroller);
|
|
2473
|
+
});
|
|
2474
|
+
this.subscription.add(subscription);
|
|
2475
|
+
}
|
|
2477
2476
|
}
|
|
2478
2477
|
ngAfterViewInit() {
|
|
2479
2478
|
this.fixStyleOnWindowResize();
|
|
@@ -2481,7 +2480,7 @@ class NgxDatatableDefaultDirective {
|
|
|
2481
2480
|
ngOnDestroy() {
|
|
2482
2481
|
this.subscription.unsubscribe();
|
|
2483
2482
|
}
|
|
2484
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: NgxDatatableDefaultDirective, deps: [
|
|
2483
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: NgxDatatableDefaultDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2485
2484
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.7", type: NgxDatatableDefaultDirective, isStandalone: true, selector: "ngx-datatable[default]", inputs: { class: "class" }, host: { properties: { "class": "this.classes" } }, exportAs: ["ngxDatatableDefault"], ngImport: i0 }); }
|
|
2486
2485
|
}
|
|
2487
2486
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: NgxDatatableDefaultDirective, decorators: [{
|
|
@@ -2491,10 +2490,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
|
2491
2490
|
selector: 'ngx-datatable[default]',
|
|
2492
2491
|
exportAs: 'ngxDatatableDefault',
|
|
2493
2492
|
}]
|
|
2494
|
-
}], ctorParameters: () => [
|
|
2495
|
-
type: Inject,
|
|
2496
|
-
args: [DOCUMENT]
|
|
2497
|
-
}] }], propDecorators: { class: [{
|
|
2493
|
+
}], ctorParameters: () => [], propDecorators: { class: [{
|
|
2498
2494
|
type: Input
|
|
2499
2495
|
}], classes: [{
|
|
2500
2496
|
type: HostBinding,
|
|
@@ -2647,15 +2643,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
|
2647
2643
|
}] } });
|
|
2648
2644
|
|
|
2649
2645
|
class AbpVisibleDirective {
|
|
2646
|
+
constructor() {
|
|
2647
|
+
this.viewContainerRef = inject(ViewContainerRef);
|
|
2648
|
+
this.templateRef = inject(TemplateRef);
|
|
2649
|
+
this.condition$ = of(false);
|
|
2650
|
+
}
|
|
2650
2651
|
set abpVisible(value) {
|
|
2651
2652
|
this.condition$ = checkType(value);
|
|
2652
2653
|
this.subscribeToCondition();
|
|
2653
2654
|
}
|
|
2654
|
-
constructor(viewContainerRef, templateRef) {
|
|
2655
|
-
this.viewContainerRef = viewContainerRef;
|
|
2656
|
-
this.templateRef = templateRef;
|
|
2657
|
-
this.condition$ = of(false);
|
|
2658
|
-
}
|
|
2659
2655
|
ngOnInit() {
|
|
2660
2656
|
this.updateVisibility();
|
|
2661
2657
|
}
|
|
@@ -2676,7 +2672,7 @@ class AbpVisibleDirective {
|
|
|
2676
2672
|
}
|
|
2677
2673
|
this.viewContainerRef.createEmbeddedView(this.templateRef);
|
|
2678
2674
|
}
|
|
2679
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AbpVisibleDirective, deps: [
|
|
2675
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AbpVisibleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2680
2676
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.7", type: AbpVisibleDirective, isStandalone: true, selector: "[abpVisible]", inputs: { abpVisible: "abpVisible" }, ngImport: i0 }); }
|
|
2681
2677
|
}
|
|
2682
2678
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: AbpVisibleDirective, decorators: [{
|
|
@@ -2684,7 +2680,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
|
2684
2680
|
args: [{
|
|
2685
2681
|
selector: '[abpVisible]',
|
|
2686
2682
|
}]
|
|
2687
|
-
}],
|
|
2683
|
+
}], propDecorators: { abpVisible: [{
|
|
2688
2684
|
type: Input
|
|
2689
2685
|
}] } });
|
|
2690
2686
|
function checkType(value) {
|
|
@@ -2706,8 +2702,8 @@ function checkType(value) {
|
|
|
2706
2702
|
}
|
|
2707
2703
|
|
|
2708
2704
|
class DisabledDirective {
|
|
2709
|
-
constructor(
|
|
2710
|
-
this.ngControl =
|
|
2705
|
+
constructor() {
|
|
2706
|
+
this.ngControl = inject(NgControl, { host: true });
|
|
2711
2707
|
this.abpDisabled = false;
|
|
2712
2708
|
}
|
|
2713
2709
|
// Related issue: https://github.com/angular/angular/issues/35330
|
|
@@ -2716,7 +2712,7 @@ class DisabledDirective {
|
|
|
2716
2712
|
this.ngControl.control[abpDisabled.currentValue ? 'disable' : 'enable']();
|
|
2717
2713
|
}
|
|
2718
2714
|
}
|
|
2719
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: DisabledDirective, deps: [
|
|
2715
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: DisabledDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2720
2716
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.7", type: DisabledDirective, isStandalone: true, selector: "[abpDisabled]", inputs: { abpDisabled: "abpDisabled" }, usesOnChanges: true, ngImport: i0 }); }
|
|
2721
2717
|
}
|
|
2722
2718
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: DisabledDirective, decorators: [{
|
|
@@ -2724,9 +2720,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
|
2724
2720
|
args: [{
|
|
2725
2721
|
selector: '[abpDisabled]',
|
|
2726
2722
|
}]
|
|
2727
|
-
}],
|
|
2728
|
-
type: Host
|
|
2729
|
-
}] }], propDecorators: { abpDisabled: [{
|
|
2723
|
+
}], propDecorators: { abpDisabled: [{
|
|
2730
2724
|
type: Input
|
|
2731
2725
|
}] } });
|
|
2732
2726
|
|
|
@@ -2737,8 +2731,8 @@ var eFormComponets;
|
|
|
2737
2731
|
})(eFormComponets || (eFormComponets = {}));
|
|
2738
2732
|
|
|
2739
2733
|
class DocumentDirHandlerService {
|
|
2740
|
-
constructor(
|
|
2741
|
-
this.injector =
|
|
2734
|
+
constructor() {
|
|
2735
|
+
this.injector = inject(Injector);
|
|
2742
2736
|
this.dir = new BehaviorSubject('ltr');
|
|
2743
2737
|
this.dir$ = this.dir.asObservable();
|
|
2744
2738
|
this.listenToLanguageChanges();
|
|
@@ -2752,19 +2746,19 @@ class DocumentDirHandlerService {
|
|
|
2752
2746
|
});
|
|
2753
2747
|
}
|
|
2754
2748
|
setBodyDir(dir) {
|
|
2755
|
-
|
|
2756
|
-
|
|
2749
|
+
this.injector.get(DOCUMENT).body.dir = dir;
|
|
2750
|
+
this.injector.get(DOCUMENT).dir = dir;
|
|
2757
2751
|
}
|
|
2758
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: DocumentDirHandlerService, deps: [
|
|
2752
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: DocumentDirHandlerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2759
2753
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: DocumentDirHandlerService }); }
|
|
2760
2754
|
}
|
|
2761
2755
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: DocumentDirHandlerService, decorators: [{
|
|
2762
2756
|
type: Injectable
|
|
2763
|
-
}], ctorParameters: () => [
|
|
2757
|
+
}], ctorParameters: () => [] });
|
|
2764
2758
|
|
|
2765
2759
|
class ErrorHandler {
|
|
2766
|
-
constructor(
|
|
2767
|
-
this.injector =
|
|
2760
|
+
constructor() {
|
|
2761
|
+
this.injector = inject(Injector);
|
|
2768
2762
|
this.httpErrorReporter = inject(HttpErrorReporterService);
|
|
2769
2763
|
this.confirmationService = inject(ConfirmationService);
|
|
2770
2764
|
this.routerErrorHandlerService = inject(RouterErrorHandlerService);
|
|
@@ -2825,13 +2819,13 @@ class ErrorHandler {
|
|
|
2825
2819
|
yesText: 'AbpAccount::Close',
|
|
2826
2820
|
});
|
|
2827
2821
|
}
|
|
2828
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ErrorHandler, deps: [
|
|
2822
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ErrorHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2829
2823
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ErrorHandler, providedIn: 'root' }); }
|
|
2830
2824
|
}
|
|
2831
2825
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ErrorHandler, decorators: [{
|
|
2832
2826
|
type: Injectable,
|
|
2833
2827
|
args: [{ providedIn: 'root' }]
|
|
2834
|
-
}], ctorParameters: () => [
|
|
2828
|
+
}], ctorParameters: () => [] });
|
|
2835
2829
|
|
|
2836
2830
|
const NG_BOOTSTRAP_CONFIG_PROVIDERS = [
|
|
2837
2831
|
provideAppInitializer(() => {
|
|
@@ -2866,6 +2860,7 @@ const tenantNotFoundProvider = {
|
|
|
2866
2860
|
provide: TENANT_NOT_FOUND_BY_NAME,
|
|
2867
2861
|
useFactory: function () {
|
|
2868
2862
|
const confirm = inject(ConfirmationService);
|
|
2863
|
+
const document = inject(DOCUMENT);
|
|
2869
2864
|
return (response) => {
|
|
2870
2865
|
const { error } = response.error;
|
|
2871
2866
|
// hide loading donut
|
|
@@ -2936,10 +2931,10 @@ function toInteger(value) {
|
|
|
2936
2931
|
return parseInt(`${value}`, 10);
|
|
2937
2932
|
}
|
|
2938
2933
|
class DateParserFormatter extends NgbDateParserFormatter {
|
|
2939
|
-
constructor(
|
|
2934
|
+
constructor() {
|
|
2940
2935
|
super();
|
|
2941
|
-
this.configState =
|
|
2942
|
-
this.locale =
|
|
2936
|
+
this.configState = inject(ConfigStateService);
|
|
2937
|
+
this.locale = inject(LOCALE_ID);
|
|
2943
2938
|
}
|
|
2944
2939
|
parse(value) {
|
|
2945
2940
|
if (value) {
|
|
@@ -2971,15 +2966,12 @@ class DateParserFormatter extends NgbDateParserFormatter {
|
|
|
2971
2966
|
const dateFormat = localization.currentCulture?.dateTimeFormat?.shortDatePattern || 'yyyy-MM-dd';
|
|
2972
2967
|
return formatDate(new Date(date.year, date.month - 1, date.day), dateFormat, this.locale);
|
|
2973
2968
|
}
|
|
2974
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: DateParserFormatter, deps: [
|
|
2969
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: DateParserFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2975
2970
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: DateParserFormatter }); }
|
|
2976
2971
|
}
|
|
2977
2972
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: DateParserFormatter, decorators: [{
|
|
2978
2973
|
type: Injectable
|
|
2979
|
-
}], ctorParameters: () => [
|
|
2980
|
-
type: Inject,
|
|
2981
|
-
args: [LOCALE_ID]
|
|
2982
|
-
}] }] });
|
|
2974
|
+
}], ctorParameters: () => [] });
|
|
2983
2975
|
|
|
2984
2976
|
const { minLength, maxLength } = Validators;
|
|
2985
2977
|
function getPasswordValidators(injector) {
|
|
@@ -3135,6 +3127,35 @@ function provideAbpThemeShared(...features) {
|
|
|
3135
3127
|
return makeEnvironmentProviders(providers);
|
|
3136
3128
|
}
|
|
3137
3129
|
|
|
3130
|
+
var LogoFeatureKind;
|
|
3131
|
+
(function (LogoFeatureKind) {
|
|
3132
|
+
LogoFeatureKind[LogoFeatureKind["Options"] = 0] = "Options";
|
|
3133
|
+
})(LogoFeatureKind || (LogoFeatureKind = {}));
|
|
3134
|
+
function makeLogoFeature(kind, providers) {
|
|
3135
|
+
return {
|
|
3136
|
+
ɵkind: kind,
|
|
3137
|
+
ɵproviders: providers,
|
|
3138
|
+
};
|
|
3139
|
+
}
|
|
3140
|
+
function withEnvironmentOptions(options = {}) {
|
|
3141
|
+
const { name, logoUrl } = options.application || {};
|
|
3142
|
+
return makeLogoFeature(LogoFeatureKind.Options, [
|
|
3143
|
+
{
|
|
3144
|
+
provide: LOGO_URL_TOKEN,
|
|
3145
|
+
useValue: logoUrl || '',
|
|
3146
|
+
},
|
|
3147
|
+
{
|
|
3148
|
+
provide: LOGO_APP_NAME_TOKEN,
|
|
3149
|
+
useValue: name || 'ProjectName',
|
|
3150
|
+
},
|
|
3151
|
+
]);
|
|
3152
|
+
}
|
|
3153
|
+
function provideLogo(...features) {
|
|
3154
|
+
const providers = [];
|
|
3155
|
+
features.forEach(({ ɵproviders }) => providers.push(...ɵproviders));
|
|
3156
|
+
return makeEnvironmentProviders(providers);
|
|
3157
|
+
}
|
|
3158
|
+
|
|
3138
3159
|
const THEME_SHARED_EXPORTS = [
|
|
3139
3160
|
BreadcrumbComponent,
|
|
3140
3161
|
BreadcrumbItemsComponent,
|
|
@@ -3204,15 +3225,7 @@ class BaseThemeSharedModule {
|
|
|
3204
3225
|
NgxDatatableListDirective,
|
|
3205
3226
|
NgxDatatableDefaultDirective,
|
|
3206
3227
|
PasswordComponent] }); }
|
|
3207
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: BaseThemeSharedModule, imports: [
|
|
3208
|
-
BreadcrumbItemsComponent,
|
|
3209
|
-
ButtonComponent,
|
|
3210
|
-
ConfirmationComponent,
|
|
3211
|
-
LoaderBarComponent,
|
|
3212
|
-
ModalComponent,
|
|
3213
|
-
ToastComponent,
|
|
3214
|
-
ToastContainerComponent,
|
|
3215
|
-
FormInputComponent,
|
|
3228
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: BaseThemeSharedModule, imports: [FormInputComponent,
|
|
3216
3229
|
FormCheckboxComponent,
|
|
3217
3230
|
HttpErrorWrapperComponent,
|
|
3218
3231
|
NgxDatatableModule,
|
|
@@ -3263,5 +3276,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
|
3263
3276
|
* Generated bundle index. Do not edit.
|
|
3264
3277
|
*/
|
|
3265
3278
|
|
|
3266
|
-
export { AbpAuthenticationErrorHandler, AbpFormatErrorHandlerService, AbpVisibleDirective, BaseThemeSharedModule, BreadcrumbComponent, BreadcrumbItemsComponent, ButtonComponent, CARD_COMPONENTS, CARD_DIRECTIVES, CONFIRMATION_ICONS, CUSTOM_ERROR_HANDLERS, CUSTOM_HTTP_ERROR_HANDLER_PRIORITY, CardBodyComponent, CardComponent, CardFooterComponent, CardHeaderComponent, CardHeaderDirective, CardImgTopDirective, CardModule, CardSubtitleDirective, CardTitleDirective, Confirmation, ConfirmationComponent, ConfirmationService, CreateErrorComponentService, DEFAULT_CONFIRMATION_ICONS, DEFAULT_ERROR_LOCALIZATIONS, DEFAULT_ERROR_MESSAGES, DEFAULT_HANDLERS_PROVIDERS, DEFAULT_VALIDATION_BLUEPRINTS, DateAdapter, DateParserFormatter, DateTimeAdapter, DisabledDirective, DocumentDirHandlerService, EllipsisDirective, ErrorHandler, FormCheckboxComponent, FormInputComponent, HTTP_ERROR_CONFIG, HTTP_ERROR_DETAIL, HTTP_ERROR_HANDLER, HTTP_ERROR_STATUS, HttpErrorWrapperComponent, InternetConnectionStatusComponent, LoaderBarComponent, LoadingComponent, LoadingDirective, ModalCloseDirective, ModalComponent, ModalRefService, NGX_DATATABLE_MESSAGES, NG_BOOTSTRAP_CONFIG_PROVIDERS, NavItem, NavItemsService, NgxDatatableDefaultDirective, NgxDatatableListDirective, PageAlertService, PasswordComponent, RouterErrorHandlerService, SUPPRESS_UNSAVED_CHANGES_WARNING, SpinnerComponent, StatusCodeErrorHandlerService, THEME_SHARED_APPEND_CONTENT, THEME_SHARED_EXPORTS, THEME_SHARED_ROUTE_PROVIDERS, TenantResolveErrorHandlerService, ThemeSharedFeatureKind, ThemeSharedModule, TimeAdapter, ToastComponent, ToastContainerComponent, ToasterService, UnknownStatusCodeErrorHandlerService, UserMenu, UserMenuService, bounceIn, collapse, collapseLinearWithMargin, collapseWithMargin, collapseX, collapseY, collapseYWithMargin, configureNgBootstrap, configureRoutes, defaultNgxDatatableMessages, dialogAnimation, eFormComponets, expandX, expandY, expandYWithMargin, fadeAnimation, fadeIn, fadeInDown, fadeInLeft, fadeInRight, fadeInUp, fadeOut, fadeOutDown, fadeOutLeft, fadeOutRight, fadeOutUp, getErrorFromRequestBody, getPasswordValidators, provideAbpThemeShared, slideFromBottom, tenantNotFoundProvider, toastInOut, validatePassword, withConfirmationIcon, withHttpErrorConfig, withValidateOnSubmit, withValidationBluePrint, withValidationMapErrorsFn };
|
|
3279
|
+
export { AbpAuthenticationErrorHandler, AbpFormatErrorHandlerService, AbpVisibleDirective, BaseThemeSharedModule, BreadcrumbComponent, BreadcrumbItemsComponent, ButtonComponent, CARD_COMPONENTS, CARD_DIRECTIVES, CONFIRMATION_ICONS, CUSTOM_ERROR_HANDLERS, CUSTOM_HTTP_ERROR_HANDLER_PRIORITY, CardBodyComponent, CardComponent, CardFooterComponent, CardHeaderComponent, CardHeaderDirective, CardImgTopDirective, CardModule, CardSubtitleDirective, CardTitleDirective, Confirmation, ConfirmationComponent, ConfirmationService, CreateErrorComponentService, DEFAULT_CONFIRMATION_ICONS, DEFAULT_ERROR_LOCALIZATIONS, DEFAULT_ERROR_MESSAGES, DEFAULT_HANDLERS_PROVIDERS, DEFAULT_VALIDATION_BLUEPRINTS, DateAdapter, DateParserFormatter, DateTimeAdapter, DisabledDirective, DocumentDirHandlerService, EllipsisDirective, ErrorHandler, FormCheckboxComponent, FormInputComponent, HTTP_ERROR_CONFIG, HTTP_ERROR_DETAIL, HTTP_ERROR_HANDLER, HTTP_ERROR_STATUS, HttpErrorWrapperComponent, InternetConnectionStatusComponent, LOGO_APP_NAME_TOKEN, LOGO_URL_TOKEN, LoaderBarComponent, LoadingComponent, LoadingDirective, LogoFeatureKind, ModalCloseDirective, ModalComponent, ModalRefService, NGX_DATATABLE_MESSAGES, NG_BOOTSTRAP_CONFIG_PROVIDERS, NavItem, NavItemsService, NgxDatatableDefaultDirective, NgxDatatableListDirective, PageAlertService, PasswordComponent, RouterErrorHandlerService, SUPPRESS_UNSAVED_CHANGES_WARNING, SpinnerComponent, StatusCodeErrorHandlerService, THEME_SHARED_APPEND_CONTENT, THEME_SHARED_EXPORTS, THEME_SHARED_ROUTE_PROVIDERS, TenantResolveErrorHandlerService, ThemeSharedFeatureKind, ThemeSharedModule, TimeAdapter, ToastComponent, ToastContainerComponent, ToasterService, UnknownStatusCodeErrorHandlerService, UserMenu, UserMenuService, bounceIn, collapse, collapseLinearWithMargin, collapseWithMargin, collapseX, collapseY, collapseYWithMargin, configureNgBootstrap, configureRoutes, defaultNgxDatatableMessages, dialogAnimation, eFormComponets, expandX, expandY, expandYWithMargin, fadeAnimation, fadeIn, fadeInDown, fadeInLeft, fadeInRight, fadeInUp, fadeOut, fadeOutDown, fadeOutLeft, fadeOutRight, fadeOutUp, getErrorFromRequestBody, getPasswordValidators, provideAbpThemeShared, provideLogo, slideFromBottom, tenantNotFoundProvider, toastInOut, validatePassword, withConfirmationIcon, withEnvironmentOptions, withHttpErrorConfig, withValidateOnSubmit, withValidationBluePrint, withValidationMapErrorsFn };
|
|
3267
3280
|
//# sourceMappingURL=abp-ng.theme.shared.mjs.map
|