@stemy/ngx-utils 12.0.2 → 12.0.3
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/bundles/stemy-ngx-utils.umd.js +50 -42
- package/bundles/stemy-ngx-utils.umd.js.map +1 -1
- package/esm2015/ngx-utils/common-types.js +2 -1
- package/esm2015/ngx-utils/directives/global-template.directive.js +8 -8
- package/esm2015/ngx-utils/ngx-utils.module.js +6 -2
- package/esm2015/ngx-utils/pipes/global-template.pipe.js +7 -5
- package/esm2015/ngx-utils/services/global-template.service.js +2 -2
- package/esm2015/public_api.js +2 -3
- package/esm2015/stemy-ngx-utils.js +2 -1
- package/fesm2015/stemy-ngx-utils.js +48 -41
- package/fesm2015/stemy-ngx-utils.js.map +1 -1
- package/ngx-utils/common-types.d.ts +10 -0
- package/ngx-utils/directives/global-template.directive.d.ts +3 -3
- package/ngx-utils/ngx-utils.module.d.ts +1 -1
- package/ngx-utils/pipes/global-template.pipe.d.ts +3 -3
- package/ngx-utils/services/global-template.service.d.ts +2 -2
- package/package.json +1 -1
- package/public_api.d.ts +1 -2
- package/stemy-ngx-utils.d.ts +1 -0
- package/stemy-ngx-utils.metadata.json +1 -1
|
@@ -278,6 +278,15 @@ export declare const SCRIPT_PARAMS: InjectionToken<any>;
|
|
|
278
278
|
export declare const ROOT_ELEMENT: InjectionToken<HTMLElement>;
|
|
279
279
|
export declare type ErrorHandlerCallback = (error: string) => any;
|
|
280
280
|
export declare const ERROR_HANDLER: InjectionToken<ErrorHandlerCallback>;
|
|
281
|
+
export declare type GlobalComponentModifier = (component: any) => any;
|
|
282
|
+
export interface IGlobalTemplates {
|
|
283
|
+
readonly templatesUpdated: EventEmitter<void>;
|
|
284
|
+
get(id: string, component?: any): TemplateRef<any>;
|
|
285
|
+
add(id: string, template: TemplateRef<any>): void;
|
|
286
|
+
remove(id: string): void;
|
|
287
|
+
addComponentModifier(id: string, modifier: GlobalComponentModifier): void;
|
|
288
|
+
}
|
|
289
|
+
export declare const GLOBAL_TEMPLATES: InjectionToken<ErrorHandlerCallback>;
|
|
281
290
|
export declare type AppInitializerFunc = () => Promise<void> | void;
|
|
282
291
|
export interface IModuleConfig {
|
|
283
292
|
apiService?: Type<IApiService>;
|
|
@@ -287,6 +296,7 @@ export interface IModuleConfig {
|
|
|
287
296
|
toasterService?: Type<IToasterService>;
|
|
288
297
|
promiseService?: Type<IPromiseService>;
|
|
289
298
|
configService?: Type<IConfigService>;
|
|
299
|
+
globalTemplates?: Type<IGlobalTemplates>;
|
|
290
300
|
initializeApp?: (injector: Injector) => AppInitializerFunc;
|
|
291
301
|
}
|
|
292
302
|
export declare class ValuedPromise<T> extends Promise<T> {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { OnDestroy, OnInit, TemplateRef } from "@angular/core";
|
|
2
|
-
import {
|
|
2
|
+
import { IGlobalTemplates } from "../common-types";
|
|
3
3
|
export declare class GlobalTemplateDirective implements OnInit, OnDestroy {
|
|
4
|
-
readonly
|
|
4
|
+
readonly globalTemplates: IGlobalTemplates;
|
|
5
5
|
readonly template: TemplateRef<any>;
|
|
6
6
|
id: string;
|
|
7
|
-
constructor(
|
|
7
|
+
constructor(globalTemplates: IGlobalTemplates, template: TemplateRef<any>);
|
|
8
8
|
ngOnInit(): void;
|
|
9
9
|
ngOnDestroy(): void;
|
|
10
10
|
}
|
|
@@ -49,7 +49,7 @@ import { UnorderedListComponent } from "./components/unordered-list/unordered-li
|
|
|
49
49
|
export declare const pipes: (typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe)[];
|
|
50
50
|
export declare const directives: (typeof AsyncMethodDirective | typeof BackgroundDirective | typeof DynamicTableTemplateDirective | typeof GlobalTemplateDirective | typeof IconDirective | typeof NgxTemplateOutletDirective | typeof PaginationDirective | typeof PaginationItemDirective | typeof ResourceIfDirective | typeof StickyDirective | typeof UnorderedListItemDirective | typeof UnorderedListTemplateDirective | typeof StickyClassDirective)[];
|
|
51
51
|
export declare const components: (typeof UnorderedListComponent | typeof DynamicTableComponent | typeof PaginationMenuComponent)[];
|
|
52
|
-
export declare const providers: (typeof UniversalService | typeof StateService | typeof AuthGuard | typeof AclService | typeof BaseHttpClient | typeof StorageService | typeof BaseHttpService | typeof StaticAuthService | typeof ConfigService | typeof ErrorHandlerService | typeof EventsService | typeof FormatterService | typeof
|
|
52
|
+
export declare const providers: (typeof UniversalService | typeof StateService | typeof AuthGuard | typeof AclService | typeof BaseHttpClient | typeof StorageService | typeof BaseHttpService | typeof StaticAuthService | typeof ConfigService | typeof ErrorHandlerService | typeof EventsService | typeof FormatterService | typeof IconService | typeof StaticLanguageService | typeof OpenApiService | typeof ConsoleToasterService | typeof TranslatedUrlSerializer | typeof PromiseService | typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe | typeof GlobalTemplateService | typeof DeviceDetectorService | {
|
|
53
53
|
provide: import("@angular/core").InjectionToken<import("@angular/platform-browser").ɵangular_packages_platform_browser_platform_browser_g[]>;
|
|
54
54
|
useClass: typeof ResizeEventPlugin;
|
|
55
55
|
multi: boolean;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { OnDestroy, OnInit, PipeTransform, TemplateRef } from "@angular/core";
|
|
2
2
|
import { Subscription } from "rxjs";
|
|
3
|
-
import {
|
|
3
|
+
import { IGlobalTemplates } from "../common-types";
|
|
4
4
|
export declare class GlobalTemplatePipe implements PipeTransform, OnInit, OnDestroy {
|
|
5
|
-
protected globalTemplates:
|
|
5
|
+
protected globalTemplates: IGlobalTemplates;
|
|
6
6
|
protected templatesUpdated: Subscription;
|
|
7
7
|
protected cachedTemplateId: string;
|
|
8
8
|
protected cachedTemplate: TemplateRef<any>;
|
|
9
|
-
constructor(globalTemplates:
|
|
9
|
+
constructor(globalTemplates: IGlobalTemplates);
|
|
10
10
|
ngOnInit(): void;
|
|
11
11
|
ngOnDestroy(): void;
|
|
12
12
|
transform(templateId: string, component?: any): TemplateRef<string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, TemplateRef } from "@angular/core";
|
|
2
|
-
|
|
3
|
-
export declare class GlobalTemplateService {
|
|
2
|
+
import { GlobalComponentModifier, IGlobalTemplates } from "../common-types";
|
|
3
|
+
export declare class GlobalTemplateService implements IGlobalTemplates {
|
|
4
4
|
readonly templatesUpdated: EventEmitter<void>;
|
|
5
5
|
protected globalTemplates: {
|
|
6
6
|
[id: string]: TemplateRef<any>;
|
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { IResolveFactory, CanvasColor, IIconService, ICON_SERVICE, ITranslation, ITranslations, ILanguageSettings, ILanguageService, LANGUAGE_SERVICE, IAuthService, RouteValidator, IRouteData, IRoute, AUTH_SERVICE, IAclComponent, IPromiseService, PROMISE_SERVICE, IRouteStateInfo, NavigationUrlParam, StorageMode, IToasterService, TOASTER_SERVICE, IAsyncMessage, AsyncMethod, UnorederedListTemplate, UnorderedListTemplates, UnorderedListStyle, IAjaxRequestDetails, AjaxRequestCallback, IScriptPromises, IStylePromises, ISearchObservable, FactoryDependencies, ITimer, IExtraProperties, IGroupMap, TranslationQuery, IPageInfo, IPaginationData, PaginationDataLoader, PaginationItemContext, IHttpHeaders, IHttpParams, IRequestOptions, IIssueContext, IProgress, ProgressListener, PromiseExecutor, HttpPromise, IHttpService, EXPRESS_REQUEST, IApiService, API_SERVICE, IOpenApiSchemaProperty, IOpenApiSchema, IOpenApiSchemas, ITableColumns, ITableTemplate, ITableTemplates, TableDataLoader, ResourceIfContext, IConfiguration, IConfigService, CONFIG_SERVICE, BASE_CONFIG, SCRIPT_PARAMS, ROOT_ELEMENT, ErrorHandlerCallback, ERROR_HANDLER, AppInitializerFunc, IModuleConfig, ValuedPromise } from "./ngx-utils/common-types";
|
|
1
|
+
export { IResolveFactory, CanvasColor, IIconService, ICON_SERVICE, ITranslation, ITranslations, ILanguageSettings, ILanguageService, LANGUAGE_SERVICE, IAuthService, RouteValidator, IRouteData, IRoute, AUTH_SERVICE, IAclComponent, IPromiseService, PROMISE_SERVICE, IRouteStateInfo, NavigationUrlParam, StorageMode, IToasterService, TOASTER_SERVICE, IAsyncMessage, AsyncMethod, UnorederedListTemplate, UnorderedListTemplates, UnorderedListStyle, IAjaxRequestDetails, AjaxRequestCallback, IScriptPromises, IStylePromises, ISearchObservable, FactoryDependencies, ITimer, IExtraProperties, IGroupMap, TranslationQuery, IPageInfo, IPaginationData, PaginationDataLoader, PaginationItemContext, IHttpHeaders, IHttpParams, IRequestOptions, IIssueContext, IProgress, ProgressListener, PromiseExecutor, HttpPromise, IHttpService, EXPRESS_REQUEST, IApiService, API_SERVICE, IOpenApiSchemaProperty, IOpenApiSchema, IOpenApiSchemas, ITableColumns, ITableTemplate, ITableTemplates, TableDataLoader, ResourceIfContext, IConfiguration, IConfigService, CONFIG_SERVICE, BASE_CONFIG, SCRIPT_PARAMS, ROOT_ELEMENT, ErrorHandlerCallback, ERROR_HANDLER, GlobalComponentModifier, IGlobalTemplates, GLOBAL_TEMPLATES, AppInitializerFunc, IModuleConfig, ValuedPromise } from "./ngx-utils/common-types";
|
|
2
2
|
export { AjaxRequestHandler } from "./ngx-utils/utils/ajax-request-handler";
|
|
3
3
|
export { ObjectUtils } from "./ngx-utils/utils/object.utils";
|
|
4
4
|
export { DateUtils } from "./ngx-utils/utils/date.utils";
|
|
@@ -28,7 +28,6 @@ export { ConfigService } from "./ngx-utils/services/config.service";
|
|
|
28
28
|
export { ErrorHandlerService } from "./ngx-utils/services/error-handler.service";
|
|
29
29
|
export { EventsService } from "./ngx-utils/services/events.service";
|
|
30
30
|
export { FormatterService } from "./ngx-utils/services/formatter.service";
|
|
31
|
-
export { GlobalTemplateService } from "./ngx-utils/services/global-template.service";
|
|
32
31
|
export { IconService } from "./ngx-utils/services/icon.service";
|
|
33
32
|
export { LanguageService } from "./ngx-utils/services/language.service";
|
|
34
33
|
export { OpenApiService } from "./ngx-utils/services/open-api.service";
|
package/stemy-ngx-utils.d.ts
CHANGED
|
@@ -4,3 +4,4 @@
|
|
|
4
4
|
export * from './public_api';
|
|
5
5
|
export { StickyClassDirective as ɵf } from './ngx-utils/directives/sticky-class.directive';
|
|
6
6
|
export { components as ɵc, directives as ɵb, loadConfig as ɵe, pipes as ɵa, providers as ɵd } from './ngx-utils/ngx-utils.module';
|
|
7
|
+
export { GlobalTemplateService as ɵg } from './ngx-utils/services/global-template.service';
|