@stemy/ngx-utils 13.5.2 → 13.5.5

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.
@@ -149,6 +149,7 @@ export interface IAjaxRequestDetails {
149
149
  url: string;
150
150
  }
151
151
  export declare type AjaxRequestCallback = (details: IAjaxRequestDetails, params: any) => void;
152
+ export declare type ScriptType = "text/javascript" | "module";
152
153
  export interface IScriptPromises {
153
154
  [src: string]: Promise<HTMLScriptElement>;
154
155
  }
@@ -287,6 +288,7 @@ export interface ITableColumn {
287
288
  title?: string;
288
289
  sort?: string;
289
290
  filter?: boolean;
291
+ [key: string]: any;
290
292
  }
291
293
  export interface ITableColumns {
292
294
  [column: string]: ITableColumn;
@@ -1,5 +1,7 @@
1
- import { AfterContentInit, AfterViewInit, OnChanges, SimpleChanges, TemplateRef } from "@angular/core";
1
+ import { AfterContentInit, AfterViewInit, OnChanges, QueryList, SimpleChanges, TemplateRef } from "@angular/core";
2
2
  import { IPaginationData, ITableColumns, ITableOrders, ITableTemplates, TableDataLoader } from "../../common-types";
3
+ import { DynamicTableTemplateDirective } from "../../directives/dynamic-table-template.directive";
4
+ import { PaginationDirective } from "../../directives/pagination.directive";
3
5
  import * as i0 from "@angular/core";
4
6
  export declare class DynamicTableComponent implements AfterContentInit, AfterViewInit, OnChanges {
5
7
  label: string;
@@ -30,8 +32,8 @@ export declare class DynamicTableComponent implements AfterContentInit, AfterVie
30
32
  defaultRowTemplate: TemplateRef<any>;
31
33
  defaultWrapperTemplate: TemplateRef<any>;
32
34
  defaultFilterTemplate: TemplateRef<any>;
33
- private pagination;
34
- private templateDirectives;
35
+ protected pagination: PaginationDirective;
36
+ protected templateDirectives: QueryList<DynamicTableTemplateDirective>;
35
37
  private static compare;
36
38
  constructor();
37
39
  ngAfterContentInit(): void;
@@ -12,7 +12,7 @@ export declare class AsyncMethodBase {
12
12
  get isLoading(): boolean;
13
13
  constructor(toaster: IToasterService);
14
14
  protected getMethod(): AsyncMethod;
15
- click(): void;
15
+ click(ev: Event): void;
16
16
  callMethod(): boolean;
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<AsyncMethodBase, never>;
18
18
  static ɵdir: i0.ɵɵDirectiveDeclaration<AsyncMethodBase, "[__asmb__]", never, { "disabled": "disabled"; "context": "context"; }, { "onSuccess": "onSuccess"; "onError": "onError"; }, never>;
@@ -1,7 +1,7 @@
1
- import { IScriptPromises, IStylePromises } from "../common-types";
1
+ import { ScriptType, IScriptPromises, IStylePromises } from "../common-types";
2
2
  export declare class LoaderUtils {
3
3
  static scriptPromises: IScriptPromises;
4
4
  static stylePromises: IStylePromises;
5
- static loadScript(src: string, async?: boolean): Promise<HTMLScriptElement>;
5
+ static loadScript(src: string, async?: boolean, type?: ScriptType): Promise<HTMLScriptElement>;
6
6
  static loadStyle(src: string): Promise<HTMLLinkElement>;
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stemy/ngx-utils",
3
- "version": "13.5.2",
3
+ "version": "13.5.5",
4
4
  "license": "MIT",
5
5
  "public": true,
6
6
  "repository": "https://github.com/stemyke/ngx-utils.git",
package/public_api.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { IResolveFactory, CanvasColor, IIconService, ICON_SERVICE, ITranslation, ITranslations, ILanguageSetting, ILanguageSettings, ILanguageService, LANGUAGE_SERVICE, IAuthService, RouteValidator, IRouteData, IRoute, AUTH_SERVICE, IAclComponent, IPromiseService, PROMISE_SERVICE, IWasi, IWasmExports, IWasm, IWasmAsync, WASI_IMPLEMENTATION, IRouteStateInfo, NavigationUrlParam, StorageMode, IToasterService, TOASTER_SERVICE, IAsyncMessage, AsyncMethod, UnorederedListTemplate, UnorderedListTemplates, UnorderedListStyle, IAjaxRequestDetails, AjaxRequestCallback, IScriptPromises, IStylePromises, ISearchObservable, FactoryDependencies, ObjectType, 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, ITableOrders, ITableColumn, ITableColumns, ITableTemplate, ITableTemplates, TableDataLoader, ResourceIfContext, APP_BASE_URL, IConfiguration, IConfigService, CONFIG_SERVICE, BASE_CONFIG, SCRIPT_PARAMS, ROOT_ELEMENT, RESIZE_DELAY, ErrorHandlerCallback, ERROR_HANDLER, GlobalComponentModifier, IGlobalTemplates, GLOBAL_TEMPLATES, AppInitializerFunc, IModuleConfig, ValuedPromise } from "./ngx-utils/common-types";
1
+ export { IResolveFactory, CanvasColor, IIconService, ICON_SERVICE, ITranslation, ITranslations, ILanguageSetting, ILanguageSettings, ILanguageService, LANGUAGE_SERVICE, IAuthService, RouteValidator, IRouteData, IRoute, AUTH_SERVICE, IAclComponent, IPromiseService, PROMISE_SERVICE, IWasi, IWasmExports, IWasm, IWasmAsync, WASI_IMPLEMENTATION, IRouteStateInfo, NavigationUrlParam, StorageMode, IToasterService, TOASTER_SERVICE, IAsyncMessage, AsyncMethod, UnorederedListTemplate, UnorderedListTemplates, UnorderedListStyle, IAjaxRequestDetails, AjaxRequestCallback, ScriptType, IScriptPromises, IStylePromises, ISearchObservable, FactoryDependencies, ObjectType, 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, ITableOrders, ITableColumn, ITableColumns, ITableTemplate, ITableTemplates, TableDataLoader, ResourceIfContext, APP_BASE_URL, IConfiguration, IConfigService, CONFIG_SERVICE, BASE_CONFIG, SCRIPT_PARAMS, ROOT_ELEMENT, RESIZE_DELAY, 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";