@stemy/ngx-utils 19.2.8 → 19.2.10

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.
@@ -59,8 +59,8 @@ export interface ILanguageService {
59
59
  readonly httpClient: HttpClient;
60
60
  replaceLanguages(languages: string[]): void;
61
61
  addLanguages(languages: string[]): void;
62
- getTranslationSync(key: string, params?: any): string;
63
- getTranslation(key: string, params?: any): Promise<string>;
62
+ getTranslationSync(key: string, params?: Object): string;
63
+ getTranslation(key: string, params?: Object): Promise<string>;
64
64
  getTranslations(...keys: string[]): Promise<ITranslations>;
65
65
  getTranslationFromObject(translations: ITranslations, params?: any, lang?: string): string;
66
66
  getTranslationFromArray(translations: ITranslation[], params?: any, lang?: string): string;
@@ -8,6 +8,7 @@ export declare class DynamicTableComponent implements AfterContentInit, AfterVie
8
8
  placeholder: string;
9
9
  dataLoader: TableDataLoader;
10
10
  data: any[];
11
+ selected: any;
11
12
  page: number;
12
13
  urlParam: string;
13
14
  parallelData: any[];
@@ -33,6 +34,7 @@ export declare class DynamicTableComponent implements AfterContentInit, AfterVie
33
34
  hasQuery: boolean;
34
35
  realColumns: ITableColumns;
35
36
  cols: string[];
37
+ sortOpen: boolean;
36
38
  get items(): any[];
37
39
  rowTemplate: TemplateRef<any>;
38
40
  wrapperTemplate: TemplateRef<any>;
@@ -54,10 +56,10 @@ export declare class DynamicTableComponent implements AfterContentInit, AfterVie
54
56
  onDrop(ev: DragEvent, elem: HTMLElement, item: any): void;
55
57
  refresh(time?: number): void;
56
58
  setFilter(filter: string): void;
57
- setOrder(column: string): void;
59
+ setSorting(column: string, toggle: boolean): void;
58
60
  updateQuery(c: string, value: string | boolean): void;
59
61
  loadData: (page: number, itemsPerPage: number) => Promise<IPaginationData>;
60
62
  protected loadLocalData(page: number, rowsPerPage: number, orderBy: string, orderDescending: boolean, filter: string): Promise<IPaginationData>;
61
63
  static ɵfac: i0.ɵɵFactoryDeclaration<DynamicTableComponent, never>;
62
- static ɵcmp: i0.ɵɵComponentDeclaration<DynamicTableComponent, "dynamic-table", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "dataLoader": { "alias": "dataLoader"; "required": false; }; "data": { "alias": "data"; "required": false; }; "page": { "alias": "page"; "required": false; }; "urlParam": { "alias": "urlParam"; "required": false; }; "parallelData": { "alias": "parallelData"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "showFilter": { "alias": "showFilter"; "required": false; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; }; "updateTime": { "alias": "updateTime"; "required": false; }; "filterTime": { "alias": "filterTime"; "required": false; }; "maxPages": { "alias": "maxPages"; "required": false; }; "directionLinks": { "alias": "directionLinks"; "required": false; }; "boundaryLinks": { "alias": "boundaryLinks"; "required": false; }; "orderBy": { "alias": "orderBy"; "required": false; }; "orderDescending": { "alias": "orderDescending"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "titlePrefix": { "alias": "titlePrefix"; "required": false; }; "dragStartFn": { "alias": "dragStartFn"; "required": false; }; "dragEnterFn": { "alias": "dragEnterFn"; "required": false; }; "dropFn": { "alias": "dropFn"; "required": false; }; }, {}, ["rowTemplate", "wrapperTemplate", "filterTemplate", "templateDirectives"], ["[table-filter]", "[table-top]", "[table-bottom]"], false, never>;
64
+ static ɵcmp: i0.ɵɵComponentDeclaration<DynamicTableComponent, "dynamic-table", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "dataLoader": { "alias": "dataLoader"; "required": false; }; "data": { "alias": "data"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "page": { "alias": "page"; "required": false; }; "urlParam": { "alias": "urlParam"; "required": false; }; "parallelData": { "alias": "parallelData"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "showFilter": { "alias": "showFilter"; "required": false; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; }; "updateTime": { "alias": "updateTime"; "required": false; }; "filterTime": { "alias": "filterTime"; "required": false; }; "maxPages": { "alias": "maxPages"; "required": false; }; "directionLinks": { "alias": "directionLinks"; "required": false; }; "boundaryLinks": { "alias": "boundaryLinks"; "required": false; }; "orderBy": { "alias": "orderBy"; "required": false; }; "orderDescending": { "alias": "orderDescending"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "titlePrefix": { "alias": "titlePrefix"; "required": false; }; "dragStartFn": { "alias": "dragStartFn"; "required": false; }; "dragEnterFn": { "alias": "dragEnterFn"; "required": false; }; "dropFn": { "alias": "dropFn"; "required": false; }; }, {}, ["rowTemplate", "wrapperTemplate", "filterTemplate", "templateDirectives"], ["[table-filter]", "[table-top]", "[table-bottom]"], false, never>;
63
65
  }
@@ -54,7 +54,7 @@ import { UploadComponent } from "./components/upload/upload.component";
54
54
  export declare const pipes: (typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe)[];
55
55
  export declare const directives: (typeof AsyncMethodBase | typeof BackgroundDirective | typeof DynamicTableTemplateDirective | typeof GlobalTemplateDirective | typeof IconDirective | typeof NgxTemplateOutletDirective | typeof PaginationDirective | typeof PaginationItemDirective | typeof ResourceIfDirective | typeof StickyDirective | typeof StickyClassDirective | typeof UnorderedListItemDirective | typeof UnorderedListTemplateDirective)[];
56
56
  export declare const components: (typeof DropListComponent | typeof DynamicTableComponent | typeof PaginationMenuComponent | typeof UnorderedListComponent | typeof UploadComponent)[];
57
- export declare const providers: (typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe | typeof BaseHttpClient | typeof BaseHttpService | typeof AuthGuard | typeof AclService | typeof StaticAuthService | typeof ConfigService | typeof BaseDialogService | typeof ErrorHandlerService | typeof EventsService | typeof FormatterService | typeof GlobalTemplateService | typeof IconService | typeof StaticLanguageService | typeof OpenApiService | typeof PromiseService | typeof StateService | typeof StorageService | typeof BaseToasterService | typeof TranslatedUrlSerializer | typeof UniversalService | typeof WasmService | typeof DeviceDetectorService | {
57
+ export declare const providers: (typeof UniversalService | typeof StateService | typeof AuthGuard | typeof BaseHttpClient | typeof StorageService | typeof BaseHttpService | typeof WasmService | typeof AclService | typeof StaticAuthService | typeof ConfigService | typeof BaseDialogService | typeof ErrorHandlerService | typeof EventsService | typeof FormatterService | typeof GlobalTemplateService | typeof IconService | typeof StaticLanguageService | typeof OpenApiService | typeof BaseToasterService | typeof TranslatedUrlSerializer | typeof PromiseService | typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe | typeof DeviceDetectorService | {
58
58
  provide: import("@angular/core").InjectionToken<import("@angular/platform-browser").EventManagerPlugin[]>;
59
59
  useClass: typeof DragDropEventPlugin;
60
60
  multi: boolean;
@@ -1,21 +1,21 @@
1
1
  import { AsyncMethod, ILanguageService, IToasterService, ToastType } from "../common-types";
2
2
  import * as i0 from "@angular/core";
3
- export declare class BaseToasterService<T = any> implements IToasterService {
3
+ export declare class BaseToasterService<T = any, P extends Record<string, any> = {}> implements IToasterService {
4
4
  protected language: ILanguageService;
5
5
  protected colorMap: Record<ToastType, string>;
6
6
  constructor(language: ILanguageService);
7
- info(message: string, params?: any): void;
8
- success(message: string, params?: any): void;
9
- warning(message: string, params?: any): void;
10
- error(message: string, params?: any): void;
11
- infoPromised(message: string, params?: any): Promise<T>;
12
- successPromised(message: string, params?: any): Promise<T>;
13
- warningPromised(message: string, params?: any): Promise<T>;
14
- errorPromised(message: string, params?: any): Promise<T>;
7
+ info(message: string, params?: P): void;
8
+ success(message: string, params?: P): void;
9
+ warning(message: string, params?: P): void;
10
+ error(message: string, params?: P): void;
11
+ infoPromised(message: string, params?: P): Promise<T>;
12
+ successPromised(message: string, params?: P): Promise<T>;
13
+ warningPromised(message: string, params?: P): Promise<T>;
14
+ errorPromised(message: string, params?: P): Promise<T>;
15
15
  handleAsyncMethod(method: AsyncMethod): void;
16
- protected translate(message: string, params: any, type: ToastType): void;
17
- protected translatePromised(message: string, params: any, type: ToastType): Promise<T>;
18
- protected show(message: string, type: ToastType): T;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<BaseToasterService<any>, never>;
20
- static ɵprov: i0.ɵɵInjectableDeclaration<BaseToasterService<any>>;
16
+ protected translate(message: string, params: P, type: ToastType): void;
17
+ protected translatePromised(message: string, params: P, type: ToastType): Promise<T>;
18
+ protected show(message: string, type: ToastType, params: P): T | Promise<T>;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseToasterService<any, any>, never>;
20
+ static ɵprov: i0.ɵɵInjectableDeclaration<BaseToasterService<any, any>>;
21
21
  }
@@ -7,7 +7,7 @@ export declare class ConfigService implements IConfigService {
7
7
  readonly http: HttpClient;
8
8
  readonly universal: UniversalService;
9
9
  readonly injector: Injector;
10
- readonly rootElement: any;
10
+ readonly rootElement: HTMLElement;
11
11
  readonly baseUrl: string;
12
12
  protected baseConfig: IConfiguration;
13
13
  protected loadedConfig: IConfiguration;
@@ -17,7 +17,7 @@ export declare class ConfigService implements IConfigService {
17
17
  get load(): () => Promise<IConfiguration>;
18
18
  get config(): IConfiguration;
19
19
  get configUrl(): string;
20
- constructor(http: HttpClient, universal: UniversalService, injector: Injector, rootElement: any, baseUrl: string, baseConfig?: IConfiguration, scriptParams?: any);
20
+ constructor(http: HttpClient, universal: UniversalService, injector: Injector, rootElement: HTMLElement, baseUrl: string, baseConfig?: IConfiguration, scriptParams?: any);
21
21
  protected initService(): void;
22
22
  protected loadJson(): Promise<IConfiguration>;
23
23
  protected prepareConfig(config: IConfiguration): Promise<IConfiguration>;
@@ -33,13 +33,13 @@ export declare class StaticLanguageService implements ILanguageService {
33
33
  protected initService(): void;
34
34
  replaceLanguages(languages: string[]): void;
35
35
  addLanguages(languages: string[]): void;
36
- getTranslationSync(key: string, params?: any): string;
37
- getTranslation(key: string, params?: any): Promise<string>;
36
+ getTranslationSync(key: string, params?: Object): string;
37
+ getTranslation(key: string, params?: Object): Promise<string>;
38
38
  getTranslations(...keys: string[]): Promise<ITranslations>;
39
39
  getTranslationFromObject(translations: ITranslations, params?: any, lang?: string): string;
40
40
  getTranslationFromArray(translations: ITranslation[], params?: any, lang?: string): string;
41
- protected interpolate(expr: string | Function, params?: any): string;
42
- protected interpolateString(expr: string, params?: any): string;
41
+ protected interpolate(expr: string | Function, params?: Object): string;
42
+ protected interpolateString(expr: string, params?: Object): string;
43
43
  protected getDefaultLanguage(): string;
44
44
  static ɵfac: i0.ɵɵFactoryDeclaration<StaticLanguageService, never>;
45
45
  static ɵprov: i0.ɵɵInjectableDeclaration<StaticLanguageService>;
@@ -2,6 +2,6 @@ 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, type?: ScriptType): Promise<HTMLScriptElement>;
6
- static loadStyle(src: string): Promise<HTMLLinkElement>;
5
+ static loadScript(src: string, async?: boolean, type?: ScriptType, parent?: Node): Promise<HTMLScriptElement>;
6
+ static loadStyle(src: string, parent?: Node): Promise<HTMLLinkElement>;
7
7
  }
@@ -9,7 +9,7 @@ export declare class ObjectUtils {
9
9
  static evaluate(expr: string, context?: any, res?: any): any;
10
10
  static empty(obj: any): boolean;
11
11
  static iterate(obj: any, cb: IterateCallback): void;
12
- static getValue(obj: any, key: string, defaultValue?: any, treeFallback?: boolean): any;
12
+ static getValue(obj: Object, key: string, defaultValue?: any, treeFallback?: boolean): any;
13
13
  static mapToPath(target: any, source: any, path: string[]): any;
14
14
  static filter(obj: any, predicate: FilterPredicate): any;
15
15
  static copy<T>(obj: T): T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stemy/ngx-utils",
3
- "version": "19.2.8",
3
+ "version": "19.2.10",
4
4
  "license": "MIT",
5
5
  "public": true,
6
6
  "repository": "https://github.com/stemyke/ngx-utils.git",