@abp/ng.theme.shared 8.2.2 → 8.3.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/esm2022/lib/adapters/date-time.adapter.mjs +4 -4
- package/esm2022/lib/adapters/date.adapter.mjs +4 -4
- package/esm2022/lib/adapters/time.adapter.mjs +4 -4
- package/esm2022/lib/components/breadcrumb/breadcrumb.component.mjs +4 -4
- package/esm2022/lib/components/breadcrumb-items/breadcrumb-items.component.mjs +4 -4
- package/esm2022/lib/components/button/button.component.mjs +4 -4
- package/esm2022/lib/components/card/card-body.component.mjs +4 -4
- package/esm2022/lib/components/card/card-footer.component.mjs +4 -4
- package/esm2022/lib/components/card/card-header.component.mjs +4 -4
- package/esm2022/lib/components/card/card-header.directive.mjs +4 -4
- package/esm2022/lib/components/card/card-img-top.directive.mjs +4 -4
- package/esm2022/lib/components/card/card-subtitle.directive.mjs +4 -4
- package/esm2022/lib/components/card/card-title.directive.mjs +4 -4
- package/esm2022/lib/components/card/card.component.mjs +4 -4
- package/esm2022/lib/components/card/card.module.mjs +5 -5
- package/esm2022/lib/components/checkbox/checkbox.component.mjs +4 -4
- package/esm2022/lib/components/confirmation/confirmation.component.mjs +4 -4
- package/esm2022/lib/components/form-input/form-input.component.mjs +4 -4
- package/esm2022/lib/components/http-error-wrapper/http-error-wrapper.component.mjs +4 -4
- package/esm2022/lib/components/internet-connection-status/internet-connection-status.component.mjs +4 -4
- package/esm2022/lib/components/loader-bar/loader-bar.component.mjs +4 -4
- package/esm2022/lib/components/loading/loading.component.mjs +4 -4
- package/esm2022/lib/components/modal/modal-close.directive.mjs +4 -4
- package/esm2022/lib/components/modal/modal-ref.service.mjs +4 -4
- package/esm2022/lib/components/modal/modal.component.mjs +58 -107
- package/esm2022/lib/components/password/password.component.mjs +4 -4
- package/esm2022/lib/components/toast/toast.component.mjs +4 -4
- package/esm2022/lib/components/toast-container/toast-container.component.mjs +4 -4
- package/esm2022/lib/directives/disabled.directive.mjs +4 -4
- package/esm2022/lib/directives/ellipsis.directive.mjs +4 -4
- package/esm2022/lib/directives/loading.directive.mjs +4 -4
- package/esm2022/lib/directives/ngx-datatable-default.directive.mjs +4 -4
- package/esm2022/lib/directives/ngx-datatable-list.directive.mjs +4 -4
- package/esm2022/lib/directives/visible.directive.mjs +4 -4
- package/esm2022/lib/handlers/document-dir.handler.mjs +4 -4
- package/esm2022/lib/handlers/error.handler.mjs +4 -4
- package/esm2022/lib/providers/index.mjs +2 -1
- package/esm2022/lib/providers/theme-shared-config.provider.mjs +117 -0
- package/esm2022/lib/services/abp-format-error-handler.service.mjs +4 -4
- package/esm2022/lib/services/authentication-error-handler.service.mjs +4 -4
- package/esm2022/lib/services/confirmation.service.mjs +4 -4
- package/esm2022/lib/services/create-error-component.service.mjs +4 -4
- package/esm2022/lib/services/nav-items.service.mjs +4 -4
- package/esm2022/lib/services/page-alert.service.mjs +4 -4
- package/esm2022/lib/services/router-error-handler.service.mjs +4 -4
- package/esm2022/lib/services/status-code-error-handler.service.mjs +4 -4
- package/esm2022/lib/services/tenant-resolve-error-handler.service.mjs +4 -4
- package/esm2022/lib/services/toaster.service.mjs +4 -4
- package/esm2022/lib/services/unknown-status-code-error-handler.service.mjs +4 -4
- package/esm2022/lib/services/user-menu.service.mjs +4 -4
- package/esm2022/lib/theme-shared.module.mjs +18 -70
- package/esm2022/lib/tokens/index.mjs +2 -1
- package/esm2022/lib/utils/date-parser-formatter.mjs +4 -4
- package/esm2022/testing/lib/theme-shared-testing.module.mjs +5 -5
- package/fesm2022/abp-ng.theme.shared-testing.mjs +4 -4
- package/fesm2022/abp-ng.theme.shared-testing.mjs.map +1 -1
- package/fesm2022/abp-ng.theme.shared.mjs +384 -366
- package/fesm2022/abp-ng.theme.shared.mjs.map +1 -1
- package/lib/components/modal/modal.component.d.ts +22 -32
- package/lib/providers/index.d.ts +1 -0
- package/lib/providers/ng-bootstrap-config.provider.d.ts +1 -1
- package/lib/providers/route.provider.d.ts +1 -1
- package/lib/providers/theme-shared-config.provider.d.ts +22 -0
- package/lib/theme-shared.module.d.ts +3 -0
- package/lib/tokens/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Component, Input, ChangeDetectionStrategy, EventEmitter, Output, ViewChild, InjectionToken, Inject, inject, DestroyRef, createComponent, ViewEncapsulation,
|
|
2
|
+
import { Injectable, Component, Input, ChangeDetectionStrategy, EventEmitter, Output, ViewChild, InjectionToken, Inject, inject, DestroyRef, createComponent, ViewEncapsulation, model, input, viewChild, contentChild, output, effect, Directive, Optional, HostListener, forwardRef, HostBinding, NgModule, ChangeDetectorRef, Host, RendererFactory2, Injector, EnvironmentInjector, ApplicationRef, APP_INITIALIZER, LOCALE_ID, makeEnvironmentProviders } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { formatDate, DOCUMENT, CommonModule, DatePipe } from '@angular/common';
|
|
5
|
-
import
|
|
6
|
-
import { NgbDateAdapter, NgbTimeAdapter, NgbTooltip, NgbInputDatepickerConfig, NgbTypeaheadConfig, NgbDateParserFormatter, NgbPaginationModule } from '@ng-bootstrap/ng-bootstrap';
|
|
5
|
+
import { NgbDateAdapter, NgbTimeAdapter, NgbModal, NgbTooltip, NgbInputDatepickerConfig, NgbTypeaheadConfig, NgbDateParserFormatter, NgbPaginationModule } from '@ng-bootstrap/ng-bootstrap';
|
|
7
6
|
import { animation, style, animate, keyframes, trigger, state, transition, useAnimation, query } from '@angular/animations';
|
|
8
7
|
import * as i1$1 from '@angular/router';
|
|
9
8
|
import { Router, ResolveEnd } from '@angular/router';
|
|
10
9
|
import * as i2 from '@abp/ng.core';
|
|
11
|
-
import { getRoutePath, SubscriptionService, PROJECTION_STRATEGY, uuid, AbstractNgModelComponent, InternetConnectionService, LocalizationModule, LocalizationService, getLocaleDirection, DomInsertionService, CONTENT_STRATEGY, SORT_COMPARE_FUNC, InternalStore, RouterEvents, AuthService, SessionStateService, ConfigStateService, HttpErrorReporterService, RoutesService, TENANT_NOT_FOUND_BY_NAME,
|
|
12
|
-
import { startWith, map, debounceTime, filter, takeUntil,
|
|
10
|
+
import { getRoutePath, SubscriptionService, PROJECTION_STRATEGY, uuid, AbstractNgModelComponent, InternetConnectionService, LocalizationModule, LocalizationService, getLocaleDirection, DomInsertionService, CONTENT_STRATEGY, SORT_COMPARE_FUNC, InternalStore, RouterEvents, AuthService, SessionStateService, ConfigStateService, HttpErrorReporterService, RoutesService, TENANT_NOT_FOUND_BY_NAME, noop, CoreModule } from '@abp/ng.core';
|
|
11
|
+
import { startWith, map, debounceTime, filter, takeUntil, take, switchMap } from 'rxjs/operators';
|
|
13
12
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
14
13
|
import { fromEvent, Subscription, combineLatest, timer, ReplaySubject, Subject, of, from, Observable, EMPTY, BehaviorSubject } from 'rxjs';
|
|
15
14
|
import * as i2$1 from '@angular/forms';
|
|
@@ -17,7 +16,7 @@ import { NG_VALUE_ACCESSOR, FormsModule, Validators } from '@angular/forms';
|
|
|
17
16
|
import * as i1$2 from '@swimlane/ngx-datatable';
|
|
18
17
|
import { ColumnMode, DatatableComponent, NgxDatatableModule } from '@swimlane/ngx-datatable';
|
|
19
18
|
import { HttpErrorResponse } from '@angular/common/http';
|
|
20
|
-
import {
|
|
19
|
+
import { normalizeDiacritics, VALIDATION_BLUEPRINTS, VALIDATION_MAP_ERRORS_FN, defaultMapErrorsFn, VALIDATION_VALIDATE_ON_SUBMIT, NgxValidateCoreModule } from '@ngx-validate/core';
|
|
21
20
|
|
|
22
21
|
class DateTimeAdapter {
|
|
23
22
|
fromModel(value) {
|
|
@@ -56,10 +55,10 @@ class DateTimeAdapter {
|
|
|
56
55
|
const date = new Date(Date.UTC(newValue.year, newValue.month - 1, newValue.day, newValue.hour, newValue.minute, newValue.second));
|
|
57
56
|
return date.toISOString().replace('Z', '');
|
|
58
57
|
}
|
|
59
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
60
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
58
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: DateTimeAdapter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
59
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: DateTimeAdapter }); }
|
|
61
60
|
}
|
|
62
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
61
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: DateTimeAdapter, decorators: [{
|
|
63
62
|
type: Injectable
|
|
64
63
|
}] });
|
|
65
64
|
|
|
@@ -93,10 +92,10 @@ class DateAdapter extends NgbDateAdapter {
|
|
|
93
92
|
const dateUtc = new Date(Date.parse(value));
|
|
94
93
|
return new Date(dateUtc.getTime() + Math.abs(dateUtc.getTimezoneOffset() * 60000));
|
|
95
94
|
}
|
|
96
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
97
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
95
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: DateAdapter, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
96
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: DateAdapter }); }
|
|
98
97
|
}
|
|
99
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
98
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: DateAdapter, decorators: [{
|
|
100
99
|
type: Injectable
|
|
101
100
|
}] });
|
|
102
101
|
|
|
@@ -123,10 +122,10 @@ class TimeAdapter extends NgbTimeAdapter {
|
|
|
123
122
|
const formattedDate = formatDate(date, 'HH:mm:ss', 'en');
|
|
124
123
|
return formattedDate;
|
|
125
124
|
}
|
|
126
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
127
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
125
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: TimeAdapter, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
126
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: TimeAdapter }); }
|
|
128
127
|
}
|
|
129
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
128
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: TimeAdapter, decorators: [{
|
|
130
129
|
type: Injectable
|
|
131
130
|
}] });
|
|
132
131
|
function isTimeStr(value) {
|
|
@@ -267,10 +266,10 @@ class BreadcrumbItemsComponent {
|
|
|
267
266
|
constructor() {
|
|
268
267
|
this.items = [];
|
|
269
268
|
}
|
|
270
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
271
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
269
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: BreadcrumbItemsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
270
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.5", type: BreadcrumbItemsComponent, 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: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: i2.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
272
271
|
}
|
|
273
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
272
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: BreadcrumbItemsComponent, decorators: [{
|
|
274
273
|
type: Component,
|
|
275
274
|
args: [{ selector: 'abp-breadcrumb-items', 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
275
|
}], propDecorators: { items: [{
|
|
@@ -301,10 +300,10 @@ class BreadcrumbComponent {
|
|
|
301
300
|
}
|
|
302
301
|
});
|
|
303
302
|
}
|
|
304
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
305
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
303
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: BreadcrumbComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.Router }, { token: i2.RoutesService }, { token: i2.SubscriptionService }, { token: i2.RouterEvents }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
304
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.5", type: BreadcrumbComponent, 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
305
|
}
|
|
307
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
306
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: BreadcrumbComponent, decorators: [{
|
|
308
307
|
type: Component,
|
|
309
308
|
args: [{ selector: 'abp-breadcrumb', changeDetection: ChangeDetectionStrategy.OnPush, providers: [SubscriptionService], template: "<abp-breadcrumb-items [items]=\"segments\"></abp-breadcrumb-items>\r\n" }]
|
|
310
309
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i1$1.Router }, { type: i2.RoutesService }, { type: i2.SubscriptionService }, { type: i2.RouterEvents }] });
|
|
@@ -340,8 +339,8 @@ class ButtonComponent {
|
|
|
340
339
|
});
|
|
341
340
|
}
|
|
342
341
|
}
|
|
343
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
344
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
342
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: ButtonComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
343
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.5", type: ButtonComponent, 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: `
|
|
345
344
|
<button
|
|
346
345
|
#button
|
|
347
346
|
[id]="buttonId"
|
|
@@ -357,7 +356,7 @@ class ButtonComponent {
|
|
|
357
356
|
</button>
|
|
358
357
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.StopPropagationDirective, selector: "[click.stop]", outputs: ["click.stop"] }] }); }
|
|
359
358
|
}
|
|
360
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
359
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
361
360
|
type: Component,
|
|
362
361
|
args: [{
|
|
363
362
|
selector: 'abp-button',
|
|
@@ -458,10 +457,10 @@ class ConfirmationComponent {
|
|
|
458
457
|
isIconTemplateExits({ options }) {
|
|
459
458
|
return !!(options && options.iconTemplate);
|
|
460
459
|
}
|
|
461
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
462
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
460
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: ConfirmationComponent, deps: [{ token: CONFIRMATION_ICONS }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
461
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.5", type: ConfirmationComponent, 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: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
463
462
|
}
|
|
464
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
463
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: ConfirmationComponent, decorators: [{
|
|
465
464
|
type: Component,
|
|
466
465
|
args: [{ selector: 'abp-confirmation', 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"] }]
|
|
467
466
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
@@ -525,10 +524,10 @@ class HttpErrorWrapperComponent {
|
|
|
525
524
|
ngOnDestroy() {
|
|
526
525
|
this.destroy();
|
|
527
526
|
}
|
|
528
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
529
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
527
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: HttpErrorWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
528
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.5", type: HttpErrorWrapperComponent, selector: "abp-http-error-wrapper", viewQueries: [{ propertyName: "containerRef", first: true, predicate: ["container"], descendants: true }], ngImport: i0, template: "<div\r\n #container\r\n id=\"abp-http-error-container\"\r\n class=\"error\"\r\n [style.backgroundColor]=\"backgroundColor\"\r\n>\r\n @if (!hideCloseIcon) {\r\n <button id=\"abp-close-button\" type=\"button\" class=\"btn-close me-2\" (click)=\"destroy()\"></button>\r\n }\r\n\r\n @if (!customComponent) {\r\n <div class=\"row centered\">\r\n <div class=\"col-md-12\">\r\n <div class=\"error-template\">\r\n <h1>{{ statusText }} {{ title | abpLocalization }}</h1>\r\n <div class=\"error-details\">\r\n {{ details | abpLocalization }}\r\n </div>\r\n <div class=\"error-actions\">\r\n @if (isHomeShow) {\r\n <a (click)=\"goHome()\" class=\"btn btn-primary btn-md mt-2\"\r\n ><span class=\"glyphicon glyphicon-home\"></span>\r\n {{ { key: '::Menu:Home', defaultValue: 'Home' } | abpLocalization }}\r\n </a>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n }\r\n</div>\r\n", styles: [".error{position:fixed;top:0;width:100vw;height:100vh;z-index:999999}.centered{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}\n"], dependencies: [{ kind: "pipe", type: i2.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
530
529
|
}
|
|
531
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
530
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: HttpErrorWrapperComponent, decorators: [{
|
|
532
531
|
type: Component,
|
|
533
532
|
args: [{ selector: 'abp-http-error-wrapper', template: "<div\r\n #container\r\n id=\"abp-http-error-container\"\r\n class=\"error\"\r\n [style.backgroundColor]=\"backgroundColor\"\r\n>\r\n @if (!hideCloseIcon) {\r\n <button id=\"abp-close-button\" type=\"button\" class=\"btn-close me-2\" (click)=\"destroy()\"></button>\r\n }\r\n\r\n @if (!customComponent) {\r\n <div class=\"row centered\">\r\n <div class=\"col-md-12\">\r\n <div class=\"error-template\">\r\n <h1>{{ statusText }} {{ title | abpLocalization }}</h1>\r\n <div class=\"error-details\">\r\n {{ details | abpLocalization }}\r\n </div>\r\n <div class=\"error-actions\">\r\n @if (isHomeShow) {\r\n <a (click)=\"goHome()\" class=\"btn btn-primary btn-md mt-2\"\r\n ><span class=\"glyphicon glyphicon-home\"></span>\r\n {{ { key: '::Menu:Home', defaultValue: 'Home' } | abpLocalization }}\r\n </a>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n }\r\n</div>\r\n", styles: [".error{position:fixed;top:0;width:100vw;height:100vh;z-index:999999}.centered{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}\n"] }]
|
|
534
533
|
}], propDecorators: { containerRef: [{
|
|
@@ -611,8 +610,8 @@ class LoaderBarComponent {
|
|
|
611
610
|
return;
|
|
612
611
|
this.timer = timer(this.stopDelay).subscribe(this.clearProgress);
|
|
613
612
|
}
|
|
614
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
615
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
613
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: LoaderBarComponent, deps: [{ token: i1$1.Router }, { token: i0.ChangeDetectorRef }, { token: i2.SubscriptionService }, { token: i2.HttpWaitService }, { token: i2.RouterWaitService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
614
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.5", type: LoaderBarComponent, selector: "abp-loader-bar", inputs: { isLoading: "isLoading", containerClass: "containerClass", color: "color" }, providers: [SubscriptionService], ngImport: i0, template: `
|
|
616
615
|
<div id="abp-loader-bar" [ngClass]="containerClass" [class.is-loading]="isLoading">
|
|
617
616
|
<div
|
|
618
617
|
class="abp-progress"
|
|
@@ -626,7 +625,7 @@ class LoaderBarComponent {
|
|
|
626
625
|
</div>
|
|
627
626
|
`, 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: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
628
627
|
}
|
|
629
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
628
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: LoaderBarComponent, decorators: [{
|
|
630
629
|
type: Component,
|
|
631
630
|
args: [{ selector: 'abp-loader-bar', template: `
|
|
632
631
|
<div id="abp-loader-bar" [ngClass]="containerClass" [class.is-loading]="isLoading">
|
|
@@ -650,14 +649,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
650
649
|
}] } });
|
|
651
650
|
|
|
652
651
|
class LoadingComponent {
|
|
653
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
654
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
652
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: LoadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
653
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.5", type: LoadingComponent, selector: "abp-loading", ngImport: i0, template: `
|
|
655
654
|
<div class="abp-loading">
|
|
656
655
|
<i class="fa fa-spinner fa-pulse abp-spinner" aria-hidden="true"></i>
|
|
657
656
|
</div>
|
|
658
657
|
`, isInline: true, styles: [".abp-loading{position:absolute;width:100%;height:100%;top:0;left:0;z-index:1040}.abp-loading .abp-spinner{position:absolute;top:50%;left:50%;font-size:14px;-moz-transform:translateX(-50%) translateY(-50%);-o-transform:translateX(-50%) translateY(-50%);-ms-transform:translateX(-50%) translateY(-50%);-webkit-transform:translateX(-50%) translateY(-50%);transform:translate(-50%) translateY(-50%)}\n"], encapsulation: i0.ViewEncapsulation.None }); }
|
|
659
658
|
}
|
|
660
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
659
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: LoadingComponent, decorators: [{
|
|
661
660
|
type: Component,
|
|
662
661
|
args: [{ selector: 'abp-loading', template: `
|
|
663
662
|
<div class="abp-loading">
|
|
@@ -718,10 +717,10 @@ class ConfirmationService {
|
|
|
718
717
|
this.clear();
|
|
719
718
|
});
|
|
720
719
|
}
|
|
721
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
722
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
720
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: ConfirmationService, deps: [{ token: i2.ContentProjectionService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
721
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: ConfirmationService, providedIn: 'root' }); }
|
|
723
722
|
}
|
|
724
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
723
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: ConfirmationService, decorators: [{
|
|
725
724
|
type: Injectable,
|
|
726
725
|
args: [{ providedIn: 'root' }]
|
|
727
726
|
}], ctorParameters: () => [{ type: i2.ContentProjectionService }] });
|
|
@@ -744,59 +743,53 @@ class ModalRefService {
|
|
|
744
743
|
dismissAll(mode) {
|
|
745
744
|
this.modalRefs.forEach(modal => modal.dismiss(mode));
|
|
746
745
|
}
|
|
747
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
748
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
746
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: ModalRefService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
747
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: ModalRefService, providedIn: 'root' }); }
|
|
749
748
|
}
|
|
750
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
749
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: ModalRefService, decorators: [{
|
|
751
750
|
type: Injectable,
|
|
752
751
|
args: [{ providedIn: 'root' }]
|
|
753
752
|
}] });
|
|
754
753
|
|
|
755
754
|
class ModalComponent {
|
|
756
|
-
get visible() {
|
|
757
|
-
return this._visible;
|
|
758
|
-
}
|
|
759
|
-
set visible(value) {
|
|
760
|
-
if (typeof value !== 'boolean')
|
|
761
|
-
return;
|
|
762
|
-
this.toggle$.next(value);
|
|
763
|
-
}
|
|
764
|
-
get busy() {
|
|
765
|
-
return this._busy;
|
|
766
|
-
}
|
|
767
|
-
set busy(value) {
|
|
768
|
-
if (this.abpSubmit && this.abpSubmit instanceof ButtonComponent) {
|
|
769
|
-
this.abpSubmit.loading = value;
|
|
770
|
-
}
|
|
771
|
-
this._busy = value;
|
|
772
|
-
}
|
|
773
755
|
get modalWindowRef() {
|
|
774
756
|
return document.querySelector(`ngb-modal-window.${this.modalIdentifier}`);
|
|
775
757
|
}
|
|
776
758
|
get isFormDirty() {
|
|
777
759
|
return Boolean(this.modalWindowRef?.querySelector('.ng-dirty'));
|
|
778
760
|
}
|
|
779
|
-
constructor(
|
|
780
|
-
this.confirmationService =
|
|
781
|
-
this.
|
|
782
|
-
this.
|
|
783
|
-
this.
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
this.
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
761
|
+
constructor() {
|
|
762
|
+
this.confirmationService = inject(ConfirmationService);
|
|
763
|
+
this.modal = inject(NgbModal);
|
|
764
|
+
this.modalRefService = inject(ModalRefService);
|
|
765
|
+
this.suppressUnsavedChangesWarningToken = inject(SUPPRESS_UNSAVED_CHANGES_WARNING, {
|
|
766
|
+
optional: true,
|
|
767
|
+
});
|
|
768
|
+
this.destroyRef = inject(DestroyRef);
|
|
769
|
+
this.visible = model(false);
|
|
770
|
+
this.busy = input(false, {
|
|
771
|
+
transform: (value) => {
|
|
772
|
+
if (this.abpSubmit() && this.abpSubmit() instanceof ButtonComponent) {
|
|
773
|
+
this.abpSubmit().loading = value;
|
|
774
|
+
}
|
|
775
|
+
return value;
|
|
776
|
+
},
|
|
777
|
+
});
|
|
778
|
+
this.options = input({ keyboard: true });
|
|
779
|
+
this.suppressUnsavedChangesWarning = input(this.suppressUnsavedChangesWarningToken);
|
|
780
|
+
this.modalContent = viewChild('modalContent');
|
|
781
|
+
this.abpHeader = contentChild('abpHeader');
|
|
782
|
+
this.abpBody = contentChild('abpBody');
|
|
783
|
+
this.abpFooter = contentChild('abpFooter');
|
|
784
|
+
this.abpSubmit = contentChild(ButtonComponent, { read: ButtonComponent });
|
|
785
|
+
this.init = output();
|
|
786
|
+
this.appear = output();
|
|
787
|
+
this.disappear = output();
|
|
795
788
|
this.isConfirmationOpen = false;
|
|
796
|
-
this.destroy$ = new Subject();
|
|
797
789
|
this.modalIdentifier = `modal-${uuid()}`;
|
|
798
|
-
|
|
799
|
-
|
|
790
|
+
effect(() => {
|
|
791
|
+
this.toggle(this.visible());
|
|
792
|
+
});
|
|
800
793
|
}
|
|
801
794
|
ngOnInit() {
|
|
802
795
|
this.modalRefService.register(this);
|
|
@@ -804,7 +797,7 @@ class ModalComponent {
|
|
|
804
797
|
dismiss(mode) {
|
|
805
798
|
switch (mode) {
|
|
806
799
|
case 'hard':
|
|
807
|
-
this.visible
|
|
800
|
+
this.visible.set(false);
|
|
808
801
|
break;
|
|
809
802
|
case 'soft':
|
|
810
803
|
this.close();
|
|
@@ -813,118 +806,78 @@ class ModalComponent {
|
|
|
813
806
|
break;
|
|
814
807
|
}
|
|
815
808
|
}
|
|
816
|
-
initToggleStream() {
|
|
817
|
-
this.subscription.addOne(this.toggle$.pipe(debounceTime(0), distinctUntilChanged()), value => this.toggle(value));
|
|
818
|
-
}
|
|
819
809
|
toggle(value) {
|
|
820
|
-
this.
|
|
821
|
-
this.visibleChange.emit(value);
|
|
810
|
+
this.visible.set(value);
|
|
822
811
|
if (!value) {
|
|
823
812
|
this.modalRef?.dismiss();
|
|
824
813
|
this.disappear.emit();
|
|
825
|
-
this.destroy$.next();
|
|
826
814
|
return;
|
|
827
815
|
}
|
|
828
816
|
setTimeout(() => this.listen(), 0);
|
|
829
|
-
this.modalRef = this.modal.open(this.modalContent, {
|
|
817
|
+
this.modalRef = this.modal.open(this.modalContent(), {
|
|
830
818
|
size: 'md',
|
|
831
819
|
centered: false,
|
|
832
820
|
keyboard: false,
|
|
833
821
|
scrollable: true,
|
|
834
822
|
beforeDismiss: () => {
|
|
835
|
-
if (!this.visible)
|
|
823
|
+
if (!this.visible())
|
|
836
824
|
return true;
|
|
837
825
|
this.close();
|
|
838
|
-
return !this.visible;
|
|
826
|
+
return !this.visible();
|
|
839
827
|
},
|
|
840
|
-
...this.options,
|
|
841
|
-
windowClass: `${this.options.windowClass || ''} ${this.modalIdentifier}`,
|
|
828
|
+
...this.options(),
|
|
829
|
+
windowClass: `${this.options().windowClass || ''} ${this.modalIdentifier}`,
|
|
842
830
|
});
|
|
843
831
|
this.appear.emit();
|
|
844
832
|
}
|
|
845
833
|
ngOnDestroy() {
|
|
846
834
|
this.modalRefService.unregister(this);
|
|
847
835
|
this.toggle(false);
|
|
848
|
-
this.destroy$.next();
|
|
849
836
|
}
|
|
850
837
|
close() {
|
|
851
|
-
if (this.busy)
|
|
838
|
+
if (this.busy())
|
|
852
839
|
return;
|
|
853
|
-
if (this.isFormDirty && !this.suppressUnsavedChangesWarning) {
|
|
840
|
+
if (this.isFormDirty && !this.suppressUnsavedChangesWarning()) {
|
|
854
841
|
if (this.isConfirmationOpen)
|
|
855
842
|
return;
|
|
856
843
|
this.isConfirmationOpen = true;
|
|
857
844
|
this.confirmationService
|
|
858
|
-
.warn('AbpUi::AreYouSureYouWantToCancelEditingWarningMessage', 'AbpUi::AreYouSure', {
|
|
845
|
+
.warn('AbpUi::AreYouSureYouWantToCancelEditingWarningMessage', 'AbpUi::AreYouSure', {
|
|
846
|
+
dismissible: false,
|
|
847
|
+
})
|
|
859
848
|
.subscribe((status) => {
|
|
860
849
|
this.isConfirmationOpen = false;
|
|
861
850
|
if (status === Confirmation.Status.confirm) {
|
|
862
|
-
this.visible
|
|
851
|
+
this.visible.set(false);
|
|
863
852
|
}
|
|
864
853
|
});
|
|
865
854
|
}
|
|
866
855
|
else {
|
|
867
|
-
this.visible
|
|
856
|
+
this.visible.set(false);
|
|
868
857
|
}
|
|
869
858
|
}
|
|
870
859
|
listen() {
|
|
871
860
|
if (this.modalWindowRef) {
|
|
872
861
|
fromEvent(this.modalWindowRef, 'keyup')
|
|
873
|
-
.pipe(
|
|
862
|
+
.pipe(takeUntilDestroyed(this.destroyRef), debounceTime(150), filter((key) => key && key.key === 'Escape' && this.options().keyboard))
|
|
874
863
|
.subscribe(() => this.close());
|
|
875
864
|
}
|
|
876
865
|
fromEvent(window, 'beforeunload')
|
|
877
|
-
.pipe(
|
|
866
|
+
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
878
867
|
.subscribe(event => {
|
|
879
|
-
if (this.isFormDirty && !this.suppressUnsavedChangesWarning) {
|
|
868
|
+
if (this.isFormDirty && !this.suppressUnsavedChangesWarning()) {
|
|
880
869
|
event.preventDefault();
|
|
881
870
|
}
|
|
882
871
|
});
|
|
883
872
|
this.init.emit();
|
|
884
873
|
}
|
|
885
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
886
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
874
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: ModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
875
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.5", type: ModalComponent, 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: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
887
876
|
}
|
|
888
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
877
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: ModalComponent, decorators: [{
|
|
889
878
|
type: Component,
|
|
890
|
-
args: [{ selector: 'abp-modal', providers: [SubscriptionService], 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"] }]
|
|
891
|
-
}], ctorParameters: () => [
|
|
892
|
-
type: Optional
|
|
893
|
-
}, {
|
|
894
|
-
type: Inject,
|
|
895
|
-
args: [SUPPRESS_UNSAVED_CHANGES_WARNING]
|
|
896
|
-
}] }, { type: i3.NgbModal }, { type: ModalRefService }], propDecorators: { visible: [{
|
|
897
|
-
type: Input
|
|
898
|
-
}], busy: [{
|
|
899
|
-
type: Input
|
|
900
|
-
}], options: [{
|
|
901
|
-
type: Input
|
|
902
|
-
}], suppressUnsavedChangesWarning: [{
|
|
903
|
-
type: Input
|
|
904
|
-
}], modalContent: [{
|
|
905
|
-
type: ViewChild,
|
|
906
|
-
args: ['modalContent']
|
|
907
|
-
}], abpHeader: [{
|
|
908
|
-
type: ContentChild,
|
|
909
|
-
args: ['abpHeader', { static: false }]
|
|
910
|
-
}], abpBody: [{
|
|
911
|
-
type: ContentChild,
|
|
912
|
-
args: ['abpBody', { static: false }]
|
|
913
|
-
}], abpFooter: [{
|
|
914
|
-
type: ContentChild,
|
|
915
|
-
args: ['abpFooter', { static: false }]
|
|
916
|
-
}], abpSubmit: [{
|
|
917
|
-
type: ContentChild,
|
|
918
|
-
args: [ButtonComponent, { static: false, read: ButtonComponent }]
|
|
919
|
-
}], visibleChange: [{
|
|
920
|
-
type: Output
|
|
921
|
-
}], init: [{
|
|
922
|
-
type: Output
|
|
923
|
-
}], appear: [{
|
|
924
|
-
type: Output
|
|
925
|
-
}], disappear: [{
|
|
926
|
-
type: Output
|
|
927
|
-
}] } });
|
|
879
|
+
args: [{ selector: 'abp-modal', providers: [SubscriptionService], 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"] }]
|
|
880
|
+
}], ctorParameters: () => [] });
|
|
928
881
|
|
|
929
882
|
class ModalCloseDirective {
|
|
930
883
|
constructor(modal) {
|
|
@@ -936,10 +889,10 @@ class ModalCloseDirective {
|
|
|
936
889
|
onClick() {
|
|
937
890
|
this.modal?.close();
|
|
938
891
|
}
|
|
939
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
940
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
892
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: ModalCloseDirective, deps: [{ token: ModalComponent, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
893
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.5", type: ModalCloseDirective, selector: "[abpClose]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 }); }
|
|
941
894
|
}
|
|
942
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
895
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: ModalCloseDirective, decorators: [{
|
|
943
896
|
type: Directive,
|
|
944
897
|
args: [{ selector: '[abpClose]' }]
|
|
945
898
|
}], ctorParameters: () => [{ type: ModalComponent, decorators: [{
|
|
@@ -992,10 +945,10 @@ class ToastComponent {
|
|
|
992
945
|
if (this.toast.options?.tapToDismiss)
|
|
993
946
|
this.close();
|
|
994
947
|
}
|
|
995
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
996
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
948
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: ToastComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
949
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.5", type: ToastComponent, 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=\"fa 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=\"fa fa-times\" 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:50px 1fr;gap:10px;margin:5px 0;padding:10px;border-radius:0;width:350px;-webkit-user-select:none;user-select:none;z-index:9999;border:2px solid #f0f0f0;background-color:#f0f0f0;color:#000;box-shadow:0 0 10px -5px #0006;opacity:1}.abp-toast:hover{border:2px solid #e3e3e3;background-color:#e3e3e3;box-shadow:0 0 15px -5px #0006}.abp-toast.abp-toast-success{border:2px solid #51a351;background-color:#51a351;color:#fff;box-shadow:0 0 10px -5px #0006}.abp-toast.abp-toast-success:hover{border:2px solid #499249;background-color:#499249;box-shadow:0 0 15px -5px #0006}.abp-toast.abp-toast-info{border:2px solid #2f96b4;background-color:#2f96b4;color:#fff;box-shadow:0 0 10px -5px #0006}.abp-toast.abp-toast-info:hover{border:2px solid #2a85a0;background-color:#2a85a0;box-shadow:0 0 15px -5px #0006}.abp-toast.abp-toast-warning{border:2px solid #f89406;background-color:#f89406;color:#fff;box-shadow:0 0 10px -5px #0006}.abp-toast.abp-toast-warning:hover{border:2px solid #df8505;background-color:#df8505;box-shadow:0 0 15px -5px #0006}.abp-toast.abp-toast-error{border:2px solid #bd362f;background-color:#bd362f;color:#fff;box-shadow:0 0 10px -5px #0006}.abp-toast.abp-toast-error:hover{border:2px solid #a9302a;background-color:#a9302a;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:36px}.abp-toast .abp-toast-content{position:relative;display:flex;align-self:center;flex-direction:column;word-break:break-word}.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:25px;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: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i2.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
997
950
|
}
|
|
998
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
951
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: ToastComponent, decorators: [{
|
|
999
952
|
type: Component,
|
|
1000
953
|
args: [{ selector: 'abp-toast', template: "<div class=\"abp-toast\" [ngClass]=\"severityClass\" (click)=\"tap()\">\r\n <div class=\"abp-toast-icon\">\r\n <i class=\"fa 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=\"fa fa-times\" 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:50px 1fr;gap:10px;margin:5px 0;padding:10px;border-radius:0;width:350px;-webkit-user-select:none;user-select:none;z-index:9999;border:2px solid #f0f0f0;background-color:#f0f0f0;color:#000;box-shadow:0 0 10px -5px #0006;opacity:1}.abp-toast:hover{border:2px solid #e3e3e3;background-color:#e3e3e3;box-shadow:0 0 15px -5px #0006}.abp-toast.abp-toast-success{border:2px solid #51a351;background-color:#51a351;color:#fff;box-shadow:0 0 10px -5px #0006}.abp-toast.abp-toast-success:hover{border:2px solid #499249;background-color:#499249;box-shadow:0 0 15px -5px #0006}.abp-toast.abp-toast-info{border:2px solid #2f96b4;background-color:#2f96b4;color:#fff;box-shadow:0 0 10px -5px #0006}.abp-toast.abp-toast-info:hover{border:2px solid #2a85a0;background-color:#2a85a0;box-shadow:0 0 15px -5px #0006}.abp-toast.abp-toast-warning{border:2px solid #f89406;background-color:#f89406;color:#fff;box-shadow:0 0 10px -5px #0006}.abp-toast.abp-toast-warning:hover{border:2px solid #df8505;background-color:#df8505;box-shadow:0 0 15px -5px #0006}.abp-toast.abp-toast-error{border:2px solid #bd362f;background-color:#bd362f;color:#fff;box-shadow:0 0 10px -5px #0006}.abp-toast.abp-toast-error:hover{border:2px solid #a9302a;background-color:#a9302a;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:36px}.abp-toast .abp-toast-content{position:relative;display:flex;align-self:center;flex-direction:column;word-break:break-word}.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:25px;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"] }]
|
|
1001
954
|
}], propDecorators: { toast: [{
|
|
@@ -1036,10 +989,10 @@ class ToastContainerComponent {
|
|
|
1036
989
|
return null;
|
|
1037
990
|
return toast.options?.id;
|
|
1038
991
|
}
|
|
1039
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1040
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
992
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: ToastContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
993
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.5", type: ToastContainerComponent, selector: "abp-toast-container", inputs: { top: "top", right: "right", bottom: "bottom", left: "left", toastKey: "toastKey" }, host: { listeners: { "window:resize": "onWindowResize($event)" } }, ngImport: i0, template: "<div\r\n class=\"abp-toast-container\"\r\n [style.top]=\"top || 'auto'\"\r\n [style.right]=\"right || 'auto'\"\r\n [style.bottom]=\"bottom || 'auto'\"\r\n [style.left]=\"left || 'auto'\"\r\n [style.display]=\"toasts.length ? 'flex' : 'none'\"\r\n [@toastInOut]=\"toasts.length\"\r\n>\r\n @for (toast of toasts; track toast.options?.id) {\r\n <abp-toast\r\n [toast]=\"toast\"\r\n (remove)=\"remove($event)\"\r\n ></abp-toast>\r\n }\r\n</div>\r\n", styles: [".abp-toast-container{position:fixed;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;min-width:350px;min-height:80px;z-index:1900}.abp-toast-container.new-on-top{flex-direction:column-reverse}@media only screen and (max-width: 768px){.abp-toast-container{min-width:100%}}\n"], dependencies: [{ kind: "component", type: ToastComponent, selector: "abp-toast", inputs: ["toast"], outputs: ["remove"] }], animations: [toastInOut] }); }
|
|
1041
994
|
}
|
|
1042
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
995
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: ToastContainerComponent, decorators: [{
|
|
1043
996
|
type: Component,
|
|
1044
997
|
args: [{ selector: 'abp-toast-container', animations: [toastInOut], template: "<div\r\n class=\"abp-toast-container\"\r\n [style.top]=\"top || 'auto'\"\r\n [style.right]=\"right || 'auto'\"\r\n [style.bottom]=\"bottom || 'auto'\"\r\n [style.left]=\"left || 'auto'\"\r\n [style.display]=\"toasts.length ? 'flex' : 'none'\"\r\n [@toastInOut]=\"toasts.length\"\r\n>\r\n @for (toast of toasts; track toast.options?.id) {\r\n <abp-toast\r\n [toast]=\"toast\"\r\n (remove)=\"remove($event)\"\r\n ></abp-toast>\r\n }\r\n</div>\r\n", styles: [".abp-toast-container{position:fixed;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;min-width:350px;min-height:80px;z-index:1900}.abp-toast-container.new-on-top{flex-direction:column-reverse}@media only screen and (max-width: 768px){.abp-toast-container{min-width:100%}}\n"] }]
|
|
1045
998
|
}], propDecorators: { top: [{
|
|
@@ -1065,8 +1018,8 @@ class PasswordComponent extends AbstractNgModelComponent {
|
|
|
1065
1018
|
toggleFieldTextType() {
|
|
1066
1019
|
this.fieldTextType = !this.fieldTextType;
|
|
1067
1020
|
}
|
|
1068
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1069
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1021
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: PasswordComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1022
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.5", type: PasswordComponent, isStandalone: true, selector: "abp-password", inputs: { inputId: "inputId", formControlName: "formControlName" }, providers: [
|
|
1070
1023
|
{
|
|
1071
1024
|
provide: NG_VALUE_ACCESSOR,
|
|
1072
1025
|
useExisting: forwardRef(() => PasswordComponent),
|
|
@@ -1074,7 +1027,7 @@ class PasswordComponent extends AbstractNgModelComponent {
|
|
|
1074
1027
|
},
|
|
1075
1028
|
], 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: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.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: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
|
|
1076
1029
|
}
|
|
1077
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1030
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: PasswordComponent, decorators: [{
|
|
1078
1031
|
type: Component,
|
|
1079
1032
|
args: [{ selector: 'abp-password', standalone: true, imports: [CommonModule, FormsModule], providers: [
|
|
1080
1033
|
{
|
|
@@ -1093,12 +1046,12 @@ class CardBodyComponent {
|
|
|
1093
1046
|
constructor() {
|
|
1094
1047
|
this.componentClass = 'card-body';
|
|
1095
1048
|
}
|
|
1096
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1097
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1049
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CardBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1050
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.5", type: CardBodyComponent, selector: "abp-card-body", inputs: { cardBodyClass: "cardBodyClass", cardBodyStyle: "cardBodyStyle" }, host: { properties: { "class": "this.componentClass" } }, ngImport: i0, template: ` <div [ngClass]="cardBodyClass" [ngStyle]="cardBodyStyle">
|
|
1098
1051
|
<ng-content></ng-content>
|
|
1099
1052
|
</div>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
1100
1053
|
}
|
|
1101
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1054
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CardBodyComponent, decorators: [{
|
|
1102
1055
|
type: Component,
|
|
1103
1056
|
args: [{
|
|
1104
1057
|
selector: 'abp-card-body',
|
|
@@ -1116,12 +1069,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
1116
1069
|
}] } });
|
|
1117
1070
|
|
|
1118
1071
|
class CardComponent {
|
|
1119
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1120
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1072
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1073
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.5", type: CardComponent, selector: "abp-card", inputs: { cardClass: "cardClass", cardStyle: "cardStyle" }, ngImport: i0, template: ` <div class="card" [ngClass]="cardClass" [ngStyle]="cardStyle">
|
|
1121
1074
|
<ng-content></ng-content>
|
|
1122
1075
|
</div>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
1123
1076
|
}
|
|
1124
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1077
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CardComponent, decorators: [{
|
|
1125
1078
|
type: Component,
|
|
1126
1079
|
args: [{
|
|
1127
1080
|
selector: 'abp-card',
|
|
@@ -1139,14 +1092,14 @@ class CardHeaderComponent {
|
|
|
1139
1092
|
constructor() {
|
|
1140
1093
|
this.componentClass = 'card-header';
|
|
1141
1094
|
}
|
|
1142
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1143
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1095
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CardHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1096
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.5", type: CardHeaderComponent, selector: "abp-card-header", inputs: { cardHeaderClass: "cardHeaderClass", cardHeaderStyle: "cardHeaderStyle" }, host: { properties: { "class": "this.componentClass" } }, ngImport: i0, template: `
|
|
1144
1097
|
<div [ngClass]="cardHeaderClass" [ngStyle]="cardHeaderStyle">
|
|
1145
1098
|
<ng-content></ng-content>
|
|
1146
1099
|
</div>
|
|
1147
1100
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
1148
1101
|
}
|
|
1149
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CardHeaderComponent, decorators: [{
|
|
1150
1103
|
type: Component,
|
|
1151
1104
|
args: [{ selector: 'abp-card-header', template: `
|
|
1152
1105
|
<div [ngClass]="cardHeaderClass" [ngStyle]="cardHeaderStyle">
|
|
@@ -1166,14 +1119,14 @@ class CardFooterComponent {
|
|
|
1166
1119
|
constructor() {
|
|
1167
1120
|
this.componentClass = 'card-footer';
|
|
1168
1121
|
}
|
|
1169
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1170
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1122
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CardFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1123
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.5", type: CardFooterComponent, selector: "abp-card-footer", inputs: { cardFooterStyle: "cardFooterStyle", cardFooterClass: "cardFooterClass" }, host: { properties: { "class": "this.componentClass" } }, ngImport: i0, template: `
|
|
1171
1124
|
<div [ngStyle]="cardFooterStyle" [ngClass]="cardFooterClass">
|
|
1172
1125
|
<ng-content></ng-content>
|
|
1173
1126
|
</div>
|
|
1174
1127
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
1175
1128
|
}
|
|
1176
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1129
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CardFooterComponent, decorators: [{
|
|
1177
1130
|
type: Component,
|
|
1178
1131
|
args: [{ selector: 'abp-card-footer', template: `
|
|
1179
1132
|
<div [ngStyle]="cardFooterStyle" [ngClass]="cardFooterClass">
|
|
@@ -1193,10 +1146,10 @@ class CardTitleDirective {
|
|
|
1193
1146
|
constructor() {
|
|
1194
1147
|
this.directiveClass = 'card-title';
|
|
1195
1148
|
}
|
|
1196
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1197
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1149
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CardTitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1150
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.5", type: CardTitleDirective, selector: "abp-card-title, [abp-card-title], [abpCardTitle]", host: { properties: { "class": "this.directiveClass" } }, ngImport: i0 }); }
|
|
1198
1151
|
}
|
|
1199
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1152
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CardTitleDirective, decorators: [{
|
|
1200
1153
|
type: Directive,
|
|
1201
1154
|
args: [{
|
|
1202
1155
|
selector: `abp-card-title, [abp-card-title], [abpCardTitle]`,
|
|
@@ -1210,10 +1163,10 @@ class CardSubtitleDirective {
|
|
|
1210
1163
|
constructor() {
|
|
1211
1164
|
this.directiveClass = 'card-subtitle';
|
|
1212
1165
|
}
|
|
1213
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1214
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1166
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CardSubtitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1167
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.5", type: CardSubtitleDirective, selector: "abp-card-subtitle, [abp-card-subtitle], [abpCardSubtitle]", host: { properties: { "class": "this.directiveClass" } }, ngImport: i0 }); }
|
|
1215
1168
|
}
|
|
1216
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1169
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CardSubtitleDirective, decorators: [{
|
|
1217
1170
|
type: Directive,
|
|
1218
1171
|
args: [{
|
|
1219
1172
|
selector: `abp-card-subtitle, [abp-card-subtitle], [abpCardSubtitle]`,
|
|
@@ -1227,10 +1180,10 @@ class CardImgTopDirective {
|
|
|
1227
1180
|
constructor() {
|
|
1228
1181
|
this.directiveClass = 'card-img-top';
|
|
1229
1182
|
}
|
|
1230
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1231
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1183
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CardImgTopDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1184
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.5", type: CardImgTopDirective, selector: "abp-card-img-top, [abp-card-img-top], [abpCardImgTop]", host: { properties: { "class": "this.directiveClass" } }, ngImport: i0 }); }
|
|
1232
1185
|
}
|
|
1233
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1186
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CardImgTopDirective, decorators: [{
|
|
1234
1187
|
type: Directive,
|
|
1235
1188
|
args: [{
|
|
1236
1189
|
selector: `abp-card-img-top, [abp-card-img-top], [abpCardImgTop]`,
|
|
@@ -1244,10 +1197,10 @@ class CardHeaderDirective {
|
|
|
1244
1197
|
constructor() {
|
|
1245
1198
|
this.directiveClass = 'card-header';
|
|
1246
1199
|
}
|
|
1247
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1248
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1200
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CardHeaderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1201
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.5", type: CardHeaderDirective, selector: "abp-card-header, [abp-card-header], [abpCardHeader]", host: { properties: { "class": "this.directiveClass" } }, ngImport: i0 }); }
|
|
1249
1202
|
}
|
|
1250
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1203
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CardHeaderDirective, decorators: [{
|
|
1251
1204
|
type: Directive,
|
|
1252
1205
|
args: [{
|
|
1253
1206
|
selector: `abp-card-header, [abp-card-header], [abpCardHeader]`,
|
|
@@ -1268,8 +1221,8 @@ const declarationsWithExports$1 = [
|
|
|
1268
1221
|
CardHeaderDirective,
|
|
1269
1222
|
];
|
|
1270
1223
|
class CardModule {
|
|
1271
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1272
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1224
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1225
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.5", ngImport: i0, type: CardModule, declarations: [CardComponent,
|
|
1273
1226
|
CardBodyComponent,
|
|
1274
1227
|
CardHeaderComponent,
|
|
1275
1228
|
CardFooterComponent,
|
|
@@ -1284,9 +1237,9 @@ class CardModule {
|
|
|
1284
1237
|
CardSubtitleDirective,
|
|
1285
1238
|
CardImgTopDirective,
|
|
1286
1239
|
CardHeaderDirective] }); }
|
|
1287
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1240
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CardModule, imports: [CommonModule] }); }
|
|
1288
1241
|
}
|
|
1289
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1242
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CardModule, decorators: [{
|
|
1290
1243
|
type: NgModule,
|
|
1291
1244
|
args: [{
|
|
1292
1245
|
declarations: [...declarationsWithExports$1],
|
|
@@ -1304,8 +1257,8 @@ class FormCheckboxComponent extends AbstractNgModelComponent {
|
|
|
1304
1257
|
this.checkboxBlur = new EventEmitter();
|
|
1305
1258
|
this.checkboxFocus = new EventEmitter();
|
|
1306
1259
|
}
|
|
1307
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1308
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1260
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: FormCheckboxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1261
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.5", type: FormCheckboxComponent, selector: "abp-checkbox", inputs: { label: "label", labelClass: "labelClass", checkboxId: "checkboxId", checkboxStyle: "checkboxStyle", checkboxClass: "checkboxClass", checkboxReadonly: "checkboxReadonly" }, outputs: { checkboxBlur: "checkboxBlur", checkboxFocus: "checkboxFocus" }, providers: [
|
|
1309
1262
|
{
|
|
1310
1263
|
provide: NG_VALUE_ACCESSOR,
|
|
1311
1264
|
useExisting: forwardRef(() => FormCheckboxComponent),
|
|
@@ -1331,7 +1284,7 @@ class FormCheckboxComponent extends AbstractNgModelComponent {
|
|
|
1331
1284
|
</div>
|
|
1332
1285
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i2$1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: i2.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
1333
1286
|
}
|
|
1334
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1287
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: FormCheckboxComponent, decorators: [{
|
|
1335
1288
|
type: Component,
|
|
1336
1289
|
args: [{
|
|
1337
1290
|
selector: 'abp-checkbox',
|
|
@@ -1391,8 +1344,8 @@ class FormInputComponent extends AbstractNgModelComponent {
|
|
|
1391
1344
|
this.formBlur = new EventEmitter();
|
|
1392
1345
|
this.formFocus = new EventEmitter();
|
|
1393
1346
|
}
|
|
1394
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1395
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1347
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: FormInputComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1348
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.5", type: FormInputComponent, selector: "abp-form-input", inputs: { inputId: "inputId", inputReadonly: "inputReadonly", label: "label", labelClass: "labelClass", inputPlaceholder: "inputPlaceholder", inputStyle: "inputStyle", inputClass: "inputClass" }, outputs: { formBlur: "formBlur", formFocus: "formFocus" }, providers: [
|
|
1396
1349
|
{
|
|
1397
1350
|
provide: NG_VALUE_ACCESSOR,
|
|
1398
1351
|
useExisting: forwardRef(() => FormInputComponent),
|
|
@@ -1419,7 +1372,7 @@ class FormInputComponent extends AbstractNgModelComponent {
|
|
|
1419
1372
|
</div>
|
|
1420
1373
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i2$1.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: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: i2.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
1421
1374
|
}
|
|
1422
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1375
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: FormInputComponent, decorators: [{
|
|
1423
1376
|
type: Component,
|
|
1424
1377
|
args: [{
|
|
1425
1378
|
selector: 'abp-form-input',
|
|
@@ -1476,8 +1429,8 @@ class InternetConnectionStatusComponent {
|
|
|
1476
1429
|
this.internetConnectionService = inject(InternetConnectionService);
|
|
1477
1430
|
this.isOnline = this.internetConnectionService.networkStatus;
|
|
1478
1431
|
}
|
|
1479
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1480
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1432
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: InternetConnectionStatusComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1433
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.1.5", type: InternetConnectionStatusComponent, isStandalone: true, selector: "abp-internet-status", ngImport: i0, template: `
|
|
1481
1434
|
@if (!isOnline()) {
|
|
1482
1435
|
<div class="status-icon">
|
|
1483
1436
|
<i
|
|
@@ -1491,7 +1444,7 @@ class InternetConnectionStatusComponent {
|
|
|
1491
1444
|
}
|
|
1492
1445
|
`, 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: "ngmodule", type: LocalizationModule }, { kind: "pipe", type: i2.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"] }] }); }
|
|
1493
1446
|
}
|
|
1494
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1447
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: InternetConnectionStatusComponent, decorators: [{
|
|
1495
1448
|
type: Component,
|
|
1496
1449
|
args: [{ selector: 'abp-internet-status', standalone: true, imports: [LocalizationModule, NgbTooltip], template: `
|
|
1497
1450
|
@if (!isOnline()) {
|
|
@@ -1527,10 +1480,10 @@ class EllipsisDirective {
|
|
|
1527
1480
|
this.title = this.title || this.elRef.nativeElement.innerText;
|
|
1528
1481
|
this.cdRef.detectChanges();
|
|
1529
1482
|
}
|
|
1530
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1531
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1483
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: EllipsisDirective, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1484
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.5", 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 }); }
|
|
1532
1485
|
}
|
|
1533
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1486
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: EllipsisDirective, decorators: [{
|
|
1534
1487
|
type: Directive,
|
|
1535
1488
|
args: [{
|
|
1536
1489
|
selector: '[abpEllipsis]',
|
|
@@ -1622,10 +1575,10 @@ class LoadingDirective {
|
|
|
1622
1575
|
this.timerSubscription.unsubscribe();
|
|
1623
1576
|
}
|
|
1624
1577
|
}
|
|
1625
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1626
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1578
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: LoadingDirective, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }, { token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1579
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.5", type: LoadingDirective, selector: "[abpLoading]", inputs: { loading: ["abpLoading", "loading"], targetElement: ["abpLoadingTargetElement", "targetElement"], delay: ["abpLoadingDelay", "delay"] }, host: { properties: { "style.position": "this.position" } }, ngImport: i0 }); }
|
|
1627
1580
|
}
|
|
1628
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1581
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: LoadingDirective, decorators: [{
|
|
1629
1582
|
type: Directive,
|
|
1630
1583
|
args: [{ selector: '[abpLoading]' }]
|
|
1631
1584
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ViewContainerRef }, { type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: i0.Renderer2 }], propDecorators: { position: [{
|
|
@@ -1690,10 +1643,10 @@ class NgxDatatableDefaultDirective {
|
|
|
1690
1643
|
ngOnDestroy() {
|
|
1691
1644
|
this.subscription.unsubscribe();
|
|
1692
1645
|
}
|
|
1693
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1694
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1646
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: NgxDatatableDefaultDirective, deps: [{ token: i1$2.DatatableComponent }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1647
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.5", type: NgxDatatableDefaultDirective, isStandalone: true, selector: "ngx-datatable[default]", inputs: { class: "class" }, host: { properties: { "class": "this.classes" } }, exportAs: ["ngxDatatableDefault"], ngImport: i0 }); }
|
|
1695
1648
|
}
|
|
1696
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1649
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: NgxDatatableDefaultDirective, decorators: [{
|
|
1697
1650
|
type: Directive,
|
|
1698
1651
|
args: [{
|
|
1699
1652
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -1799,10 +1752,10 @@ class NgxDatatableListDirective {
|
|
|
1799
1752
|
this.setTablePage(maxPage);
|
|
1800
1753
|
}
|
|
1801
1754
|
}
|
|
1802
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1803
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1755
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: NgxDatatableListDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1756
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.5", type: NgxDatatableListDirective, isStandalone: true, selector: "ngx-datatable[list]", inputs: { list: "list" }, exportAs: ["ngxDatatableList"], usesOnChanges: true, ngImport: i0 }); }
|
|
1804
1757
|
}
|
|
1805
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1758
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: NgxDatatableListDirective, decorators: [{
|
|
1806
1759
|
type: Directive,
|
|
1807
1760
|
args: [{
|
|
1808
1761
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -1844,10 +1797,10 @@ class AbpVisibleDirective {
|
|
|
1844
1797
|
}
|
|
1845
1798
|
this.viewContainerRef.createEmbeddedView(this.templateRef);
|
|
1846
1799
|
}
|
|
1847
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1848
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1800
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: AbpVisibleDirective, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1801
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.5", type: AbpVisibleDirective, isStandalone: true, selector: "[abpVisible]", inputs: { abpVisible: "abpVisible" }, ngImport: i0 }); }
|
|
1849
1802
|
}
|
|
1850
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1803
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: AbpVisibleDirective, decorators: [{
|
|
1851
1804
|
type: Directive,
|
|
1852
1805
|
args: [{
|
|
1853
1806
|
standalone: true,
|
|
@@ -1885,10 +1838,10 @@ class DisabledDirective {
|
|
|
1885
1838
|
this.ngControl.control[abpDisabled.currentValue ? 'disable' : 'enable']();
|
|
1886
1839
|
}
|
|
1887
1840
|
}
|
|
1888
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1889
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1841
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: DisabledDirective, deps: [{ token: i2$1.NgControl, host: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1842
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.5", type: DisabledDirective, isStandalone: true, selector: "[abpDisabled]", inputs: { abpDisabled: "abpDisabled" }, usesOnChanges: true, ngImport: i0 }); }
|
|
1890
1843
|
}
|
|
1891
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1844
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: DisabledDirective, decorators: [{
|
|
1892
1845
|
type: Directive,
|
|
1893
1846
|
args: [{
|
|
1894
1847
|
selector: '[abpDisabled]',
|
|
@@ -1925,10 +1878,10 @@ class DocumentDirHandlerService {
|
|
|
1925
1878
|
document.body.dir = dir;
|
|
1926
1879
|
document.dir = dir;
|
|
1927
1880
|
}
|
|
1928
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1929
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1881
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: DocumentDirHandlerService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1882
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: DocumentDirHandlerService }); }
|
|
1930
1883
|
}
|
|
1931
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1884
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: DocumentDirHandlerService, decorators: [{
|
|
1932
1885
|
type: Injectable
|
|
1933
1886
|
}], ctorParameters: () => [{ type: i0.Injector }] });
|
|
1934
1887
|
|
|
@@ -2255,10 +2208,10 @@ class NavItemsService extends AbstractMenuService {
|
|
|
2255
2208
|
super(...arguments);
|
|
2256
2209
|
this.baseClass = NavItem;
|
|
2257
2210
|
}
|
|
2258
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2259
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2211
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: NavItemsService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2212
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: NavItemsService, providedIn: 'root' }); }
|
|
2260
2213
|
}
|
|
2261
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2214
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: NavItemsService, decorators: [{
|
|
2262
2215
|
type: Injectable,
|
|
2263
2216
|
args: [{ providedIn: 'root' }]
|
|
2264
2217
|
}] });
|
|
@@ -2280,10 +2233,10 @@ class PageAlertService {
|
|
|
2280
2233
|
alerts.splice(index, 1);
|
|
2281
2234
|
this.alerts.set(alerts);
|
|
2282
2235
|
}
|
|
2283
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2284
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2236
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: PageAlertService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2237
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: PageAlertService, providedIn: 'root' }); }
|
|
2285
2238
|
}
|
|
2286
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2239
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: PageAlertService, decorators: [{
|
|
2287
2240
|
type: Injectable,
|
|
2288
2241
|
args: [{ providedIn: 'root' }]
|
|
2289
2242
|
}] });
|
|
@@ -2375,10 +2328,10 @@ class ToasterService {
|
|
|
2375
2328
|
: this.toasts.filter(toast => toast.options?.containerKey !== containerKey);
|
|
2376
2329
|
this.toasts$.next(this.toasts);
|
|
2377
2330
|
}
|
|
2378
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2379
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2331
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: ToasterService, deps: [{ token: i2.ContentProjectionService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2332
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: ToasterService, providedIn: 'root' }); }
|
|
2380
2333
|
}
|
|
2381
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2334
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: ToasterService, decorators: [{
|
|
2382
2335
|
type: Injectable,
|
|
2383
2336
|
args: [{
|
|
2384
2337
|
providedIn: 'root',
|
|
@@ -2393,10 +2346,10 @@ class UserMenuService extends AbstractMenuService {
|
|
|
2393
2346
|
super(...arguments);
|
|
2394
2347
|
this.baseClass = UserMenu;
|
|
2395
2348
|
}
|
|
2396
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2397
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2349
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: UserMenuService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2350
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: UserMenuService, providedIn: 'root' }); }
|
|
2398
2351
|
}
|
|
2399
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2352
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: UserMenuService, decorators: [{
|
|
2400
2353
|
type: Injectable,
|
|
2401
2354
|
args: [{ providedIn: 'root' }]
|
|
2402
2355
|
}] });
|
|
@@ -2463,10 +2416,10 @@ class CreateErrorComponentService {
|
|
|
2463
2416
|
this.componentRef = null;
|
|
2464
2417
|
});
|
|
2465
2418
|
}
|
|
2466
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2467
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2419
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CreateErrorComponentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2420
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CreateErrorComponentService, providedIn: 'root' }); }
|
|
2468
2421
|
}
|
|
2469
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2422
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CreateErrorComponentService, decorators: [{
|
|
2470
2423
|
type: Injectable,
|
|
2471
2424
|
args: [{ providedIn: 'root' }]
|
|
2472
2425
|
}], ctorParameters: () => [] });
|
|
@@ -2525,10 +2478,10 @@ class AbpFormatErrorHandlerService {
|
|
|
2525
2478
|
}
|
|
2526
2479
|
});
|
|
2527
2480
|
}
|
|
2528
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2529
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2481
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: AbpFormatErrorHandlerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2482
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: AbpFormatErrorHandlerService, providedIn: 'root' }); }
|
|
2530
2483
|
}
|
|
2531
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2484
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: AbpFormatErrorHandlerService, decorators: [{
|
|
2532
2485
|
type: Injectable,
|
|
2533
2486
|
args: [{ providedIn: 'root' }]
|
|
2534
2487
|
}] });
|
|
@@ -2549,10 +2502,10 @@ class TenantResolveErrorHandlerService {
|
|
|
2549
2502
|
this.sessionService.setTenant(null);
|
|
2550
2503
|
this.authService.logout().subscribe();
|
|
2551
2504
|
}
|
|
2552
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2553
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2505
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: TenantResolveErrorHandlerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2506
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: TenantResolveErrorHandlerService, providedIn: 'root' }); }
|
|
2554
2507
|
}
|
|
2555
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2508
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: TenantResolveErrorHandlerService, decorators: [{
|
|
2556
2509
|
type: Injectable,
|
|
2557
2510
|
args: [{ providedIn: 'root' }]
|
|
2558
2511
|
}] });
|
|
@@ -2627,10 +2580,10 @@ class StatusCodeErrorHandlerService {
|
|
|
2627
2580
|
break;
|
|
2628
2581
|
}
|
|
2629
2582
|
}
|
|
2630
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2631
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2583
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: StatusCodeErrorHandlerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2584
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: StatusCodeErrorHandlerService, providedIn: 'root' }); }
|
|
2632
2585
|
}
|
|
2633
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2586
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: StatusCodeErrorHandlerService, decorators: [{
|
|
2634
2587
|
type: Injectable,
|
|
2635
2588
|
args: [{ providedIn: 'root' }]
|
|
2636
2589
|
}] });
|
|
@@ -2659,10 +2612,10 @@ class UnknownStatusCodeErrorHandlerService {
|
|
|
2659
2612
|
isHomeShow: false,
|
|
2660
2613
|
});
|
|
2661
2614
|
}
|
|
2662
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2663
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2615
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: UnknownStatusCodeErrorHandlerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2616
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: UnknownStatusCodeErrorHandlerService, providedIn: 'root' }); }
|
|
2664
2617
|
}
|
|
2665
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2618
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: UnknownStatusCodeErrorHandlerService, decorators: [{
|
|
2666
2619
|
type: Injectable,
|
|
2667
2620
|
args: [{ providedIn: 'root' }]
|
|
2668
2621
|
}] });
|
|
@@ -2683,10 +2636,10 @@ class AbpAuthenticationErrorHandler {
|
|
|
2683
2636
|
}
|
|
2684
2637
|
});
|
|
2685
2638
|
}
|
|
2686
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2687
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2639
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: AbpAuthenticationErrorHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2640
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: AbpAuthenticationErrorHandler, providedIn: 'root' }); }
|
|
2688
2641
|
}
|
|
2689
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2642
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: AbpAuthenticationErrorHandler, decorators: [{
|
|
2690
2643
|
type: Injectable,
|
|
2691
2644
|
args: [{ providedIn: 'root' }]
|
|
2692
2645
|
}] });
|
|
@@ -2720,10 +2673,10 @@ class RouterErrorHandlerService {
|
|
|
2720
2673
|
};
|
|
2721
2674
|
this.createErrorComponentService.execute(instance);
|
|
2722
2675
|
}
|
|
2723
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2724
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2676
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: RouterErrorHandlerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2677
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: RouterErrorHandlerService, providedIn: 'root' }); }
|
|
2725
2678
|
}
|
|
2726
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2679
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: RouterErrorHandlerService, decorators: [{
|
|
2727
2680
|
type: Injectable,
|
|
2728
2681
|
args: [{ providedIn: 'root' }]
|
|
2729
2682
|
}] });
|
|
@@ -2791,10 +2744,10 @@ class ErrorHandler {
|
|
|
2791
2744
|
yesText: 'AbpAccount::Close',
|
|
2792
2745
|
});
|
|
2793
2746
|
}
|
|
2794
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2795
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2747
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: ErrorHandler, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2748
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: ErrorHandler, providedIn: 'root' }); }
|
|
2796
2749
|
}
|
|
2797
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2750
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: ErrorHandler, decorators: [{
|
|
2798
2751
|
type: Injectable,
|
|
2799
2752
|
args: [{ providedIn: 'root' }]
|
|
2800
2753
|
}], ctorParameters: () => [{ type: i0.Injector }] });
|
|
@@ -2895,6 +2848,8 @@ const DEFAULT_VALIDATION_BLUEPRINTS = {
|
|
|
2895
2848
|
customMessage: '{{ customMessage }}'
|
|
2896
2849
|
};
|
|
2897
2850
|
|
|
2851
|
+
var scripts = '';
|
|
2852
|
+
|
|
2898
2853
|
function isNumber(value) {
|
|
2899
2854
|
return !isNaN(toInteger(value));
|
|
2900
2855
|
}
|
|
@@ -2937,16 +2892,183 @@ class DateParserFormatter extends NgbDateParserFormatter {
|
|
|
2937
2892
|
const dateFormat = localization.currentCulture?.dateTimeFormat?.shortDatePattern || 'yyyy-MM-dd';
|
|
2938
2893
|
return formatDate(new Date(date.year, date.month - 1, date.day), dateFormat, this.locale);
|
|
2939
2894
|
}
|
|
2940
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2941
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2895
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: DateParserFormatter, deps: [{ token: i2.ConfigStateService }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2896
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: DateParserFormatter }); }
|
|
2942
2897
|
}
|
|
2943
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2898
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: DateParserFormatter, decorators: [{
|
|
2944
2899
|
type: Injectable
|
|
2945
2900
|
}], ctorParameters: () => [{ type: i2.ConfigStateService }, { type: undefined, decorators: [{
|
|
2946
2901
|
type: Inject,
|
|
2947
2902
|
args: [LOCALE_ID]
|
|
2948
2903
|
}] }] });
|
|
2949
2904
|
|
|
2905
|
+
const { minLength, maxLength } = Validators;
|
|
2906
|
+
function getPasswordValidators(injector) {
|
|
2907
|
+
const getRule = getRuleFn(injector);
|
|
2908
|
+
const passwordRulesArr = [];
|
|
2909
|
+
let requiredLength = 1;
|
|
2910
|
+
if (getRule('RequireDigit') === 'true') {
|
|
2911
|
+
passwordRulesArr.push('number');
|
|
2912
|
+
}
|
|
2913
|
+
if (getRule('RequireLowercase') === 'true') {
|
|
2914
|
+
passwordRulesArr.push('small');
|
|
2915
|
+
}
|
|
2916
|
+
if (getRule('RequireUppercase') === 'true') {
|
|
2917
|
+
passwordRulesArr.push('capital');
|
|
2918
|
+
}
|
|
2919
|
+
if (getRule('RequireNonAlphanumeric') === 'true') {
|
|
2920
|
+
passwordRulesArr.push('special');
|
|
2921
|
+
}
|
|
2922
|
+
if (Number.isInteger(+getRule('RequiredLength'))) {
|
|
2923
|
+
requiredLength = +getRule('RequiredLength');
|
|
2924
|
+
}
|
|
2925
|
+
const passwordValidators = passwordRulesArr.map(rule => validatePassword(rule));
|
|
2926
|
+
return [...passwordValidators, minLength(requiredLength), maxLength(128)];
|
|
2927
|
+
}
|
|
2928
|
+
function getRuleFn(injector) {
|
|
2929
|
+
const configState = injector.get(ConfigStateService);
|
|
2930
|
+
return (key) => {
|
|
2931
|
+
const passwordRules = configState.getSettings('Identity.Password');
|
|
2932
|
+
return (passwordRules[`Abp.Identity.Password.${key}`] || '').toLowerCase();
|
|
2933
|
+
};
|
|
2934
|
+
}
|
|
2935
|
+
const errorMessageMap = {
|
|
2936
|
+
small: 'passwordRequiresLower',
|
|
2937
|
+
capital: 'passwordRequiresUpper',
|
|
2938
|
+
number: 'passwordRequiresDigit',
|
|
2939
|
+
special: 'passwordRequiresNonAlphanumeric',
|
|
2940
|
+
};
|
|
2941
|
+
function validatePassword(shouldContain) {
|
|
2942
|
+
return (control) => {
|
|
2943
|
+
if (!control.value)
|
|
2944
|
+
return null;
|
|
2945
|
+
const value = normalizeDiacritics(control.value);
|
|
2946
|
+
const regexMap = {
|
|
2947
|
+
small: /.*[a-z].*/,
|
|
2948
|
+
capital: /.*[A-Z].*/,
|
|
2949
|
+
number: /.*[0-9].*/,
|
|
2950
|
+
special: /.*[^0-9a-zA-Z].*/,
|
|
2951
|
+
};
|
|
2952
|
+
const regex = regexMap[shouldContain];
|
|
2953
|
+
const isValid = regex.test(value);
|
|
2954
|
+
if (isValid) {
|
|
2955
|
+
return null;
|
|
2956
|
+
}
|
|
2957
|
+
const error = errorMessageMap[shouldContain];
|
|
2958
|
+
return {
|
|
2959
|
+
[error]: true,
|
|
2960
|
+
};
|
|
2961
|
+
};
|
|
2962
|
+
}
|
|
2963
|
+
|
|
2964
|
+
var ThemeSharedFeatureKind;
|
|
2965
|
+
(function (ThemeSharedFeatureKind) {
|
|
2966
|
+
ThemeSharedFeatureKind[ThemeSharedFeatureKind["HttpErrorConfig"] = 0] = "HttpErrorConfig";
|
|
2967
|
+
ThemeSharedFeatureKind[ThemeSharedFeatureKind["ValidationBluePrint"] = 1] = "ValidationBluePrint";
|
|
2968
|
+
ThemeSharedFeatureKind[ThemeSharedFeatureKind["ValidationErrorsFn"] = 2] = "ValidationErrorsFn";
|
|
2969
|
+
ThemeSharedFeatureKind[ThemeSharedFeatureKind["ValidateOnSubmit"] = 3] = "ValidateOnSubmit";
|
|
2970
|
+
ThemeSharedFeatureKind[ThemeSharedFeatureKind["Validation"] = 4] = "Validation";
|
|
2971
|
+
ThemeSharedFeatureKind[ThemeSharedFeatureKind["ConfirmationIcons"] = 5] = "ConfirmationIcons";
|
|
2972
|
+
})(ThemeSharedFeatureKind || (ThemeSharedFeatureKind = {}));
|
|
2973
|
+
function makeThemeSharedFeature(kind, providers) {
|
|
2974
|
+
return {
|
|
2975
|
+
ɵkind: kind,
|
|
2976
|
+
ɵproviders: providers,
|
|
2977
|
+
};
|
|
2978
|
+
}
|
|
2979
|
+
function withHttpErrorConfig(httpErrorConfig) {
|
|
2980
|
+
return makeThemeSharedFeature(ThemeSharedFeatureKind.HttpErrorConfig, [
|
|
2981
|
+
{
|
|
2982
|
+
provide: HTTP_ERROR_CONFIG,
|
|
2983
|
+
useValue: httpErrorConfig,
|
|
2984
|
+
},
|
|
2985
|
+
]);
|
|
2986
|
+
}
|
|
2987
|
+
function withValidationBluePrint(bluePrints) {
|
|
2988
|
+
return makeThemeSharedFeature(ThemeSharedFeatureKind.ValidationBluePrint, [
|
|
2989
|
+
{
|
|
2990
|
+
provide: VALIDATION_BLUEPRINTS,
|
|
2991
|
+
useValue: {
|
|
2992
|
+
...DEFAULT_VALIDATION_BLUEPRINTS,
|
|
2993
|
+
...(bluePrints || {}),
|
|
2994
|
+
},
|
|
2995
|
+
},
|
|
2996
|
+
]);
|
|
2997
|
+
}
|
|
2998
|
+
function withValidationMapErrorsFn(mapErrorsFn) {
|
|
2999
|
+
return makeThemeSharedFeature(ThemeSharedFeatureKind.ValidationErrorsFn, [
|
|
3000
|
+
{
|
|
3001
|
+
provide: VALIDATION_MAP_ERRORS_FN,
|
|
3002
|
+
useValue: mapErrorsFn || defaultMapErrorsFn,
|
|
3003
|
+
},
|
|
3004
|
+
]);
|
|
3005
|
+
}
|
|
3006
|
+
function withValidateOnSubmit(validateOnSubmit) {
|
|
3007
|
+
return makeThemeSharedFeature(ThemeSharedFeatureKind.ValidateOnSubmit, [
|
|
3008
|
+
{
|
|
3009
|
+
provide: VALIDATION_VALIDATE_ON_SUBMIT,
|
|
3010
|
+
useValue: validateOnSubmit,
|
|
3011
|
+
},
|
|
3012
|
+
]);
|
|
3013
|
+
}
|
|
3014
|
+
function withConfirmationIcon(confirmationIcons) {
|
|
3015
|
+
return makeThemeSharedFeature(ThemeSharedFeatureKind.HttpErrorConfig, [
|
|
3016
|
+
{
|
|
3017
|
+
provide: CONFIRMATION_ICONS,
|
|
3018
|
+
useValue: { ...DEFAULT_CONFIRMATION_ICONS, ...(confirmationIcons || {}) },
|
|
3019
|
+
},
|
|
3020
|
+
]);
|
|
3021
|
+
}
|
|
3022
|
+
function provideAbpThemeShared(...features) {
|
|
3023
|
+
const providers = [
|
|
3024
|
+
{
|
|
3025
|
+
provide: APP_INITIALIZER,
|
|
3026
|
+
multi: true,
|
|
3027
|
+
deps: [ErrorHandler],
|
|
3028
|
+
useFactory: noop,
|
|
3029
|
+
},
|
|
3030
|
+
THEME_SHARED_ROUTE_PROVIDERS,
|
|
3031
|
+
{
|
|
3032
|
+
provide: APP_INITIALIZER,
|
|
3033
|
+
multi: true,
|
|
3034
|
+
deps: [THEME_SHARED_APPEND_CONTENT],
|
|
3035
|
+
useFactory: noop,
|
|
3036
|
+
},
|
|
3037
|
+
{ provide: HTTP_ERROR_CONFIG, useValue: undefined },
|
|
3038
|
+
{ provide: NgbDateParserFormatter, useClass: DateParserFormatter },
|
|
3039
|
+
NG_BOOTSTRAP_CONFIG_PROVIDERS,
|
|
3040
|
+
{
|
|
3041
|
+
provide: VALIDATION_BLUEPRINTS,
|
|
3042
|
+
useValue: { ...DEFAULT_VALIDATION_BLUEPRINTS },
|
|
3043
|
+
},
|
|
3044
|
+
{
|
|
3045
|
+
provide: VALIDATION_MAP_ERRORS_FN,
|
|
3046
|
+
useValue: defaultMapErrorsFn,
|
|
3047
|
+
},
|
|
3048
|
+
{
|
|
3049
|
+
provide: VALIDATION_VALIDATE_ON_SUBMIT,
|
|
3050
|
+
useValue: undefined,
|
|
3051
|
+
},
|
|
3052
|
+
DocumentDirHandlerService,
|
|
3053
|
+
{
|
|
3054
|
+
provide: APP_INITIALIZER,
|
|
3055
|
+
useFactory: noop,
|
|
3056
|
+
multi: true,
|
|
3057
|
+
deps: [DocumentDirHandlerService],
|
|
3058
|
+
},
|
|
3059
|
+
{
|
|
3060
|
+
provide: CONFIRMATION_ICONS,
|
|
3061
|
+
useValue: { ...DEFAULT_CONFIRMATION_ICONS },
|
|
3062
|
+
},
|
|
3063
|
+
tenantNotFoundProvider,
|
|
3064
|
+
DEFAULT_HANDLERS_PROVIDERS,
|
|
3065
|
+
];
|
|
3066
|
+
for (const feature of features) {
|
|
3067
|
+
providers.push(...feature.ɵproviders);
|
|
3068
|
+
}
|
|
3069
|
+
return makeEnvironmentProviders(providers);
|
|
3070
|
+
}
|
|
3071
|
+
|
|
2950
3072
|
const declarationsWithExports = [
|
|
2951
3073
|
BreadcrumbComponent,
|
|
2952
3074
|
BreadcrumbItemsComponent,
|
|
@@ -2963,8 +3085,8 @@ const declarationsWithExports = [
|
|
|
2963
3085
|
FormCheckboxComponent,
|
|
2964
3086
|
];
|
|
2965
3087
|
class BaseThemeSharedModule {
|
|
2966
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2967
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3088
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: BaseThemeSharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3089
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.5", ngImport: i0, type: BaseThemeSharedModule, declarations: [BreadcrumbComponent,
|
|
2968
3090
|
BreadcrumbItemsComponent,
|
|
2969
3091
|
ButtonComponent,
|
|
2970
3092
|
ConfirmationComponent,
|
|
@@ -3006,7 +3128,7 @@ class BaseThemeSharedModule {
|
|
|
3006
3128
|
ModalCloseDirective,
|
|
3007
3129
|
FormInputComponent,
|
|
3008
3130
|
FormCheckboxComponent] }); }
|
|
3009
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3131
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: BaseThemeSharedModule, providers: [DatePipe], imports: [CoreModule,
|
|
3010
3132
|
NgxDatatableModule,
|
|
3011
3133
|
NgxValidateCoreModule,
|
|
3012
3134
|
NgbPaginationModule,
|
|
@@ -3015,7 +3137,7 @@ class BaseThemeSharedModule {
|
|
|
3015
3137
|
NgxValidateCoreModule,
|
|
3016
3138
|
CardModule] }); }
|
|
3017
3139
|
}
|
|
3018
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3140
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: BaseThemeSharedModule, decorators: [{
|
|
3019
3141
|
type: NgModule,
|
|
3020
3142
|
args: [{
|
|
3021
3143
|
imports: [
|
|
@@ -3047,65 +3169,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
3047
3169
|
}]
|
|
3048
3170
|
}] });
|
|
3049
3171
|
class ThemeSharedModule {
|
|
3172
|
+
/**
|
|
3173
|
+
* @deprecated forRoot method is deprecated, use `provideAbpThemeShared` *function* for config settings.
|
|
3174
|
+
*/
|
|
3050
3175
|
static forRoot({ httpErrorConfig, validation = {}, confirmationIcons = {} } = {}) {
|
|
3051
3176
|
return {
|
|
3052
3177
|
ngModule: ThemeSharedModule,
|
|
3053
3178
|
providers: [
|
|
3054
|
-
|
|
3055
|
-
provide: APP_INITIALIZER,
|
|
3056
|
-
multi: true,
|
|
3057
|
-
deps: [ErrorHandler],
|
|
3058
|
-
useFactory: noop,
|
|
3059
|
-
},
|
|
3060
|
-
THEME_SHARED_ROUTE_PROVIDERS,
|
|
3061
|
-
{
|
|
3062
|
-
provide: APP_INITIALIZER,
|
|
3063
|
-
multi: true,
|
|
3064
|
-
deps: [THEME_SHARED_APPEND_CONTENT],
|
|
3065
|
-
useFactory: noop,
|
|
3066
|
-
},
|
|
3067
|
-
{ provide: HTTP_ERROR_CONFIG, useValue: httpErrorConfig },
|
|
3068
|
-
{ provide: NgbDateParserFormatter, useClass: DateParserFormatter },
|
|
3069
|
-
NG_BOOTSTRAP_CONFIG_PROVIDERS,
|
|
3070
|
-
{
|
|
3071
|
-
provide: VALIDATION_BLUEPRINTS,
|
|
3072
|
-
useValue: {
|
|
3073
|
-
...DEFAULT_VALIDATION_BLUEPRINTS,
|
|
3074
|
-
...(validation.blueprints || {}),
|
|
3075
|
-
},
|
|
3076
|
-
},
|
|
3077
|
-
{
|
|
3078
|
-
provide: VALIDATION_MAP_ERRORS_FN,
|
|
3079
|
-
useValue: validation.mapErrorsFn || defaultMapErrorsFn,
|
|
3080
|
-
},
|
|
3081
|
-
{
|
|
3082
|
-
provide: VALIDATION_VALIDATE_ON_SUBMIT,
|
|
3083
|
-
useValue: validation.validateOnSubmit,
|
|
3084
|
-
},
|
|
3085
|
-
DocumentDirHandlerService,
|
|
3086
|
-
{
|
|
3087
|
-
provide: APP_INITIALIZER,
|
|
3088
|
-
useFactory: noop,
|
|
3089
|
-
multi: true,
|
|
3090
|
-
deps: [DocumentDirHandlerService],
|
|
3091
|
-
},
|
|
3092
|
-
{
|
|
3093
|
-
provide: CONFIRMATION_ICONS,
|
|
3094
|
-
useValue: {
|
|
3095
|
-
...DEFAULT_CONFIRMATION_ICONS,
|
|
3096
|
-
...(confirmationIcons || {}),
|
|
3097
|
-
},
|
|
3098
|
-
},
|
|
3099
|
-
tenantNotFoundProvider,
|
|
3100
|
-
DEFAULT_HANDLERS_PROVIDERS,
|
|
3179
|
+
provideAbpThemeShared(withHttpErrorConfig(httpErrorConfig), withValidationBluePrint(validation.blueprints), withValidationMapErrorsFn(validation.mapErrorsFn), withValidateOnSubmit(validation.validateOnSubmit), withConfirmationIcon(confirmationIcons)),
|
|
3101
3180
|
],
|
|
3102
3181
|
};
|
|
3103
3182
|
}
|
|
3104
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3105
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3106
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3183
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: ThemeSharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3184
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.5", ngImport: i0, type: ThemeSharedModule, imports: [BaseThemeSharedModule], exports: [BaseThemeSharedModule] }); }
|
|
3185
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: ThemeSharedModule, imports: [BaseThemeSharedModule, BaseThemeSharedModule] }); }
|
|
3107
3186
|
}
|
|
3108
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3187
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: ThemeSharedModule, decorators: [{
|
|
3109
3188
|
type: NgModule,
|
|
3110
3189
|
args: [{
|
|
3111
3190
|
imports: [BaseThemeSharedModule],
|
|
@@ -3113,67 +3192,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
3113
3192
|
}]
|
|
3114
3193
|
}] });
|
|
3115
3194
|
|
|
3116
|
-
const { minLength, maxLength } = Validators;
|
|
3117
|
-
function getPasswordValidators(injector) {
|
|
3118
|
-
const getRule = getRuleFn(injector);
|
|
3119
|
-
const passwordRulesArr = [];
|
|
3120
|
-
let requiredLength = 1;
|
|
3121
|
-
if (getRule('RequireDigit') === 'true') {
|
|
3122
|
-
passwordRulesArr.push('number');
|
|
3123
|
-
}
|
|
3124
|
-
if (getRule('RequireLowercase') === 'true') {
|
|
3125
|
-
passwordRulesArr.push('small');
|
|
3126
|
-
}
|
|
3127
|
-
if (getRule('RequireUppercase') === 'true') {
|
|
3128
|
-
passwordRulesArr.push('capital');
|
|
3129
|
-
}
|
|
3130
|
-
if (getRule('RequireNonAlphanumeric') === 'true') {
|
|
3131
|
-
passwordRulesArr.push('special');
|
|
3132
|
-
}
|
|
3133
|
-
if (Number.isInteger(+getRule('RequiredLength'))) {
|
|
3134
|
-
requiredLength = +getRule('RequiredLength');
|
|
3135
|
-
}
|
|
3136
|
-
const passwordValidators = passwordRulesArr.map(rule => validatePassword(rule));
|
|
3137
|
-
return [...passwordValidators, minLength(requiredLength), maxLength(128)];
|
|
3138
|
-
}
|
|
3139
|
-
function getRuleFn(injector) {
|
|
3140
|
-
const configState = injector.get(ConfigStateService);
|
|
3141
|
-
return (key) => {
|
|
3142
|
-
const passwordRules = configState.getSettings('Identity.Password');
|
|
3143
|
-
return (passwordRules[`Abp.Identity.Password.${key}`] || '').toLowerCase();
|
|
3144
|
-
};
|
|
3145
|
-
}
|
|
3146
|
-
const errorMessageMap = {
|
|
3147
|
-
small: 'passwordRequiresLower',
|
|
3148
|
-
capital: 'passwordRequiresUpper',
|
|
3149
|
-
number: 'passwordRequiresDigit',
|
|
3150
|
-
special: 'passwordRequiresNonAlphanumeric',
|
|
3151
|
-
};
|
|
3152
|
-
function validatePassword(shouldContain) {
|
|
3153
|
-
return (control) => {
|
|
3154
|
-
if (!control.value)
|
|
3155
|
-
return null;
|
|
3156
|
-
const value = normalizeDiacritics(control.value);
|
|
3157
|
-
const regexMap = {
|
|
3158
|
-
small: /.*[a-z].*/,
|
|
3159
|
-
capital: /.*[A-Z].*/,
|
|
3160
|
-
number: /.*[0-9].*/,
|
|
3161
|
-
special: /.*[^0-9a-zA-Z].*/,
|
|
3162
|
-
};
|
|
3163
|
-
const regex = regexMap[shouldContain];
|
|
3164
|
-
const isValid = regex.test(value);
|
|
3165
|
-
if (isValid) {
|
|
3166
|
-
return null;
|
|
3167
|
-
}
|
|
3168
|
-
const error = errorMessageMap[shouldContain];
|
|
3169
|
-
return {
|
|
3170
|
-
[error]: true,
|
|
3171
|
-
};
|
|
3172
|
-
};
|
|
3173
|
-
}
|
|
3174
|
-
|
|
3175
|
-
var scripts = '';
|
|
3176
|
-
|
|
3177
3195
|
/*
|
|
3178
3196
|
* Public API Surface of theme-shared
|
|
3179
3197
|
*/
|
|
@@ -3182,5 +3200,5 @@ var scripts = '';
|
|
|
3182
3200
|
* Generated bundle index. Do not edit.
|
|
3183
3201
|
*/
|
|
3184
3202
|
|
|
3185
|
-
export { AbpAuthenticationErrorHandler, AbpFormatErrorHandlerService, AbpVisibleDirective, BaseThemeSharedModule, BreadcrumbComponent, BreadcrumbItemsComponent, ButtonComponent, CUSTOM_ERROR_HANDLERS, CUSTOM_HTTP_ERROR_HANDLER_PRIORITY, CardBodyComponent, CardComponent, CardFooterComponent, CardHeaderComponent, CardHeaderDirective, CardImgTopDirective, CardModule, CardSubtitleDirective, CardTitleDirective, Confirmation, ConfirmationComponent, ConfirmationService, CreateErrorComponentService, 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, StatusCodeErrorHandlerService, THEME_SHARED_APPEND_CONTENT, THEME_SHARED_ROUTE_PROVIDERS, TenantResolveErrorHandlerService, 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, slideFromBottom, tenantNotFoundProvider, toastInOut, validatePassword };
|
|
3203
|
+
export { AbpAuthenticationErrorHandler, AbpFormatErrorHandlerService, AbpVisibleDirective, BaseThemeSharedModule, BreadcrumbComponent, BreadcrumbItemsComponent, ButtonComponent, 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, StatusCodeErrorHandlerService, THEME_SHARED_APPEND_CONTENT, 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 };
|
|
3186
3204
|
//# sourceMappingURL=abp-ng.theme.shared.mjs.map
|