@abp/ng.theme.shared 8.3.2 → 8.3.4
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.
|
@@ -3,7 +3,7 @@ import * as i0 from '@angular/core';
|
|
|
3
3
|
import { NgModule } from '@angular/core';
|
|
4
4
|
import { RouterTestingModule } from '@angular/router/testing';
|
|
5
5
|
import { NgbDateParserFormatter } from '@ng-bootstrap/ng-bootstrap';
|
|
6
|
-
import { VALIDATION_BLUEPRINTS,
|
|
6
|
+
import { VALIDATION_BLUEPRINTS, defaultMapErrorsFn, VALIDATION_MAP_ERRORS_FN, VALIDATION_VALIDATE_ON_SUBMIT } from '@ngx-validate/core';
|
|
7
7
|
|
|
8
8
|
var index = /*#__PURE__*/Object.freeze({
|
|
9
9
|
__proto__: null
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abp-ng.theme.shared-testing.mjs","sources":["../../../../packages/theme-shared/testing/src/lib/theme-shared-testing.module.ts","../../../../packages/theme-shared/testing/src/abp-ng.theme.shared-testing.ts"],"sourcesContent":["import {\r\n BaseThemeSharedModule,\r\n DateParserFormatter,\r\n DEFAULT_VALIDATION_BLUEPRINTS,\r\n THEME_SHARED_ROUTE_PROVIDERS,\r\n} from '@abp/ng.theme.shared';\r\nimport { ModuleWithProviders, NgModule } from '@angular/core';\r\nimport { RouterTestingModule } from '@angular/router/testing';\r\nimport { NgbDateParserFormatter } from '@ng-bootstrap/ng-bootstrap';\r\nimport {\r\n defaultMapErrorsFn,\r\n VALIDATION_BLUEPRINTS,\r\n VALIDATION_MAP_ERRORS_FN,\r\n VALIDATION_VALIDATE_ON_SUBMIT,\r\n} from '@ngx-validate/core';\r\nimport { Config } from './models/config';\r\n\r\n/**\r\n * ThemeSharedTestingModule is the module that will be used in tests\r\n */\r\n@NgModule({\r\n exports: [RouterTestingModule, BaseThemeSharedModule],\r\n imports: [RouterTestingModule, BaseThemeSharedModule],\r\n})\r\nexport class ThemeSharedTestingModule {\r\n static withConfig(\r\n { validation = {} } = {} as Config,\r\n ): ModuleWithProviders<ThemeSharedTestingModule> {\r\n return {\r\n ngModule: ThemeSharedTestingModule,\r\n providers: [\r\n THEME_SHARED_ROUTE_PROVIDERS,\r\n { provide: NgbDateParserFormatter, useClass: DateParserFormatter },\r\n {\r\n provide: VALIDATION_BLUEPRINTS,\r\n useValue: {\r\n ...DEFAULT_VALIDATION_BLUEPRINTS,\r\n ...(validation.blueprints || {}),\r\n },\r\n },\r\n {\r\n provide: VALIDATION_MAP_ERRORS_FN,\r\n useValue: validation.mapErrorsFn || defaultMapErrorsFn,\r\n },\r\n {\r\n provide: VALIDATION_VALIDATE_ON_SUBMIT,\r\n useValue: validation.validateOnSubmit,\r\n },\r\n ],\r\n };\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AAiBA;;AAEG;MAKU,wBAAwB,CAAA;IACnC,OAAO,UAAU,CACf,EAAE,UAAU,GAAG,EAAE,KAAK,EAAY,EAAA;QAElC,OAAO;AACL,YAAA,QAAQ,EAAE,wBAAwB;AAClC,YAAA,SAAS,EAAE;gBACT,4BAA4B;AAC5B,gBAAA,EAAE,OAAO,EAAE,sBAAsB,EAAE,QAAQ,EAAE,mBAAmB,EAAE;AAClE,gBAAA;AACE,oBAAA,OAAO,EAAE,qBAAqB;AAC9B,oBAAA,QAAQ,EAAE;AACR,wBAAA,GAAG,6BAA6B;AAChC,wBAAA,IAAI,UAAU,CAAC,UAAU,IAAI,EAAE,CAAC;AACjC,qBAAA;AACF,iBAAA;AACD,gBAAA;AACE,oBAAA,OAAO,EAAE,wBAAwB;AACjC,oBAAA,QAAQ,EAAE,UAAU,CAAC,WAAW,IAAI,kBAAkB;AACvD,iBAAA;AACD,gBAAA;AACE,oBAAA,OAAO,EAAE,6BAA6B;oBACtC,QAAQ,EAAE,UAAU,CAAC,gBAAgB;AACtC,iBAAA;AACF,aAAA;SACF,
|
|
1
|
+
{"version":3,"file":"abp-ng.theme.shared-testing.mjs","sources":["../../../../packages/theme-shared/testing/src/lib/theme-shared-testing.module.ts","../../../../packages/theme-shared/testing/src/abp-ng.theme.shared-testing.ts"],"sourcesContent":["import {\r\n BaseThemeSharedModule,\r\n DateParserFormatter,\r\n DEFAULT_VALIDATION_BLUEPRINTS,\r\n THEME_SHARED_ROUTE_PROVIDERS,\r\n} from '@abp/ng.theme.shared';\r\nimport { ModuleWithProviders, NgModule } from '@angular/core';\r\nimport { RouterTestingModule } from '@angular/router/testing';\r\nimport { NgbDateParserFormatter } from '@ng-bootstrap/ng-bootstrap';\r\nimport {\r\n defaultMapErrorsFn,\r\n VALIDATION_BLUEPRINTS,\r\n VALIDATION_MAP_ERRORS_FN,\r\n VALIDATION_VALIDATE_ON_SUBMIT,\r\n} from '@ngx-validate/core';\r\nimport { Config } from './models/config';\r\n\r\n/**\r\n * ThemeSharedTestingModule is the module that will be used in tests\r\n */\r\n@NgModule({\r\n exports: [RouterTestingModule, BaseThemeSharedModule],\r\n imports: [RouterTestingModule, BaseThemeSharedModule],\r\n})\r\nexport class ThemeSharedTestingModule {\r\n static withConfig(\r\n { validation = {} } = {} as Config,\r\n ): ModuleWithProviders<ThemeSharedTestingModule> {\r\n return {\r\n ngModule: ThemeSharedTestingModule,\r\n providers: [\r\n THEME_SHARED_ROUTE_PROVIDERS,\r\n { provide: NgbDateParserFormatter, useClass: DateParserFormatter },\r\n {\r\n provide: VALIDATION_BLUEPRINTS,\r\n useValue: {\r\n ...DEFAULT_VALIDATION_BLUEPRINTS,\r\n ...(validation.blueprints || {}),\r\n },\r\n },\r\n {\r\n provide: VALIDATION_MAP_ERRORS_FN,\r\n useValue: validation.mapErrorsFn || defaultMapErrorsFn,\r\n },\r\n {\r\n provide: VALIDATION_VALIDATE_ON_SUBMIT,\r\n useValue: validation.validateOnSubmit,\r\n },\r\n ],\r\n };\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n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AA,EAAA,EAAA,IAAA,EAAA,wBAAwB,YAFzB,mBAAmB,EAAE,qBAAqB,EAD1C,mBAAmB,EAAE,qBAAqB,CAAA,EAAA,CAAA,CAAA;;2FAGzC,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAJpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,mBAAmB,EAAE,qBAAqB,CAAC;AACrD,oBAAA,OAAO,EAAE,CAAC,mBAAmB,EAAE,qBAAqB,CAAC;AACtD,iBAAA;;;ACvBD;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable,
|
|
2
|
+
import { Injectable, Input, Component, ChangeDetectionStrategy, EventEmitter, ViewChild, Output, InjectionToken, Inject, inject, DestroyRef, createComponent, ViewEncapsulation, model, input, viewChild, contentChild, output, effect, HostListener, Optional, Directive, 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
5
|
import { NgbDateAdapter, NgbTimeAdapter, NgbModal, NgbTooltip, NgbInputDatepickerConfig, NgbTypeaheadConfig, NgbDateParserFormatter, NgbPaginationModule } from '@ng-bootstrap/ng-bootstrap';
|
|
@@ -10,13 +10,13 @@ import * as i2 from '@abp/ng.core';
|
|
|
10
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
11
|
import { startWith, map, debounceTime, filter, takeUntil, take, switchMap } from 'rxjs/operators';
|
|
12
12
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
13
|
-
import { fromEvent, Subscription, combineLatest, timer, ReplaySubject, Subject,
|
|
13
|
+
import { fromEvent, Subscription, combineLatest, timer, ReplaySubject, Subject, from, Observable, of, EMPTY, BehaviorSubject } from 'rxjs';
|
|
14
14
|
import * as i2$1 from '@angular/forms';
|
|
15
|
-
import {
|
|
15
|
+
import { FormsModule, NG_VALUE_ACCESSOR, Validators } from '@angular/forms';
|
|
16
16
|
import * as i1$2 from '@swimlane/ngx-datatable';
|
|
17
17
|
import { ColumnMode, DatatableComponent, NgxDatatableModule } from '@swimlane/ngx-datatable';
|
|
18
18
|
import { HttpErrorResponse } from '@angular/common/http';
|
|
19
|
-
import { normalizeDiacritics, VALIDATION_BLUEPRINTS,
|
|
19
|
+
import { normalizeDiacritics, VALIDATION_BLUEPRINTS, defaultMapErrorsFn, VALIDATION_MAP_ERRORS_FN, VALIDATION_VALIDATE_ON_SUBMIT, NgxValidateCoreModule } from '@ngx-validate/core';
|
|
20
20
|
|
|
21
21
|
class DateTimeAdapter {
|
|
22
22
|
fromModel(value) {
|