@stemy/ngx-utils 13.6.5 → 13.6.7

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.
@@ -135,9 +135,10 @@ export interface IAsyncMessage {
135
135
  context?: any;
136
136
  }
137
137
  export declare type AsyncMethod = (context?: any) => Promise<IAsyncMessage>;
138
- export declare abstract class UnorederedListTemplate extends TemplateRef<any> {
139
- abstract type: string;
140
- abstract selector: string;
138
+ export interface UnorderedListTemplate {
139
+ readonly type: string;
140
+ readonly selector: string;
141
+ readonly templateRef: TemplateRef<any>;
141
142
  }
142
143
  export interface UnorderedListTemplates {
143
144
  [type: string]: TemplateRef<any>;
@@ -301,7 +302,10 @@ export interface ITableTemplate {
301
302
  export interface ITableTemplates {
302
303
  [column: string]: ITableTemplate;
303
304
  }
304
- export declare type TableDataLoader = (page: number, rowsPerPage: number, orderBy: string, orderDescending: boolean, filter: string) => Promise<IPaginationData>;
305
+ export interface ITableDataQuery {
306
+ [column: string]: string;
307
+ }
308
+ export declare type TableDataLoader = (page: number, rowsPerPage: number, orderBy: string, orderDescending: boolean, filter: string, query: ITableDataQuery) => Promise<IPaginationData>;
305
309
  export declare class ResourceIfContext {
306
310
  resource: string;
307
311
  url: string;
@@ -1,5 +1,5 @@
1
1
  import { AfterContentInit, AfterViewInit, OnChanges, QueryList, SimpleChanges, TemplateRef } from "@angular/core";
2
- import { IPaginationData, ITableColumns, ITableOrders, ITableTemplates, TableDataLoader } from "../../common-types";
2
+ import { IPaginationData, ITableColumns, ITableDataQuery, ITableOrders, ITableTemplates, TableDataLoader } from "../../common-types";
3
3
  import { DynamicTableTemplateDirective } from "../../directives/dynamic-table-template.directive";
4
4
  import { PaginationDirective } from "../../directives/pagination.directive";
5
5
  import * as i0 from "@angular/core";
@@ -22,6 +22,8 @@ export declare class DynamicTableComponent implements AfterContentInit, AfterVie
22
22
  tableId: string;
23
23
  templates: ITableTemplates;
24
24
  filter: string;
25
+ query: ITableDataQuery;
26
+ hasQuery: boolean;
25
27
  realColumns: ITableColumns;
26
28
  cols: string[];
27
29
  get items(): any[];
@@ -42,6 +44,7 @@ export declare class DynamicTableComponent implements AfterContentInit, AfterVie
42
44
  refresh(): void;
43
45
  setFilter(filter: string): void;
44
46
  setOrder(column: string): void;
47
+ updateQuery(col: string, value: string): void;
45
48
  loadData: (page: number, itemsPerPage: number) => Promise<IPaginationData>;
46
49
  private loadLocalData;
47
50
  static ɵfac: i0.ɵɵFactoryDeclaration<DynamicTableComponent, never>;
@@ -1,5 +1,5 @@
1
1
  import { AfterContentInit, AfterViewInit, ChangeDetectorRef, OnChanges, SimpleChanges } from "@angular/core";
2
- import { UnorderedListStyle, UnorderedListTemplates, UnorederedListTemplate } from "../../common-types";
2
+ import { UnorderedListStyle, UnorderedListTemplates, UnorderedListTemplate } from "../../common-types";
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class UnorderedListComponent implements OnChanges, AfterContentInit, AfterViewInit {
5
5
  private cdr;
@@ -8,7 +8,7 @@ export declare class UnorderedListComponent implements OnChanges, AfterContentIn
8
8
  listStyle: UnorderedListStyle;
9
9
  path: string;
10
10
  level: number;
11
- templates: UnorederedListTemplate[];
11
+ templates: UnorderedListTemplate[];
12
12
  isArray: boolean;
13
13
  isObject: boolean;
14
14
  defaultTemplates: UnorderedListTemplates;
@@ -1,5 +1,5 @@
1
1
  import { ElementRef, OnChanges, Renderer2, SimpleChanges, ViewContainerRef } from "@angular/core";
2
- import { UnorderedListStyle, UnorderedListTemplates, UnorederedListTemplate } from "../common-types";
2
+ import { UnorderedListStyle, UnorderedListTemplates, UnorderedListTemplate } from "../common-types";
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class UnorderedListItemDirective implements OnChanges {
5
5
  private elementRef;
@@ -12,7 +12,7 @@ export declare class UnorderedListItemDirective implements OnChanges {
12
12
  listStyle: UnorderedListStyle;
13
13
  path: string;
14
14
  level: number;
15
- templates: UnorederedListTemplate[];
15
+ templates: UnorderedListTemplate[];
16
16
  defaultTemplates: UnorderedListTemplates;
17
17
  isArray: boolean;
18
18
  isObject: boolean;
@@ -1,13 +1,11 @@
1
- import { ElementRef, EmbeddedViewRef, TemplateRef } from "@angular/core";
2
- import { UnorederedListTemplate } from "../common-types";
1
+ import { TemplateRef } from "@angular/core";
2
+ import { UnorderedListTemplate } from "../common-types";
3
3
  import * as i0 from "@angular/core";
4
- export declare class UnorderedListTemplateDirective extends UnorederedListTemplate {
5
- elementRef: ElementRef;
6
- templateRef: TemplateRef<any>;
4
+ export declare class UnorderedListTemplateDirective implements UnorderedListTemplate {
5
+ readonly templateRef: TemplateRef<any>;
7
6
  type: string;
8
7
  selector: string;
9
- constructor(elementRef: ElementRef, templateRef: TemplateRef<any>);
10
- createEmbeddedView(context: any): EmbeddedViewRef<any>;
8
+ constructor(templateRef: TemplateRef<any>);
11
9
  static ɵfac: i0.ɵɵFactoryDeclaration<UnorderedListTemplateDirective, never>;
12
10
  static ɵdir: i0.ɵɵDirectiveDeclaration<UnorderedListTemplateDirective, "ng-template[type][selector]", never, { "type": "type"; "selector": "selector"; }, {}, never>;
13
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stemy/ngx-utils",
3
- "version": "13.6.5",
3
+ "version": "13.6.7",
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, 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, ResizeEventStrategy, RESIZE_STRATEGY, 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, UnorderedListTemplate, 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, ITableDataQuery, TableDataLoader, ResourceIfContext, APP_BASE_URL, IConfiguration, IConfigService, CONFIG_SERVICE, BASE_CONFIG, SCRIPT_PARAMS, ROOT_ELEMENT, RESIZE_DELAY, ResizeEventStrategy, RESIZE_STRATEGY, 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";