@stemy/ngx-utils 13.6.4 → 13.6.6

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.
@@ -301,7 +301,10 @@ export interface ITableTemplate {
301
301
  export interface ITableTemplates {
302
302
  [column: string]: ITableTemplate;
303
303
  }
304
- export declare type TableDataLoader = (page: number, rowsPerPage: number, orderBy: string, orderDescending: boolean, filter: string) => Promise<IPaginationData>;
304
+ export interface ITableDataQuery {
305
+ [column: string]: string;
306
+ }
307
+ export declare type TableDataLoader = (page: number, rowsPerPage: number, orderBy: string, orderDescending: boolean, filter: string, query: ITableDataQuery) => Promise<IPaginationData>;
305
308
  export declare class ResourceIfContext {
306
309
  resource: string;
307
310
  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>;
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@stemy/ngx-utils",
3
- "version": "13.6.4",
3
+ "version": "13.6.6",
4
4
  "license": "MIT",
5
5
  "public": true,
6
6
  "repository": "https://github.com/stemyke/ngx-utils.git",
7
7
  "author": "stemy <balazs.stemler@metrix.co.hu>",
8
8
  "peerDependencies": {
9
- "@angular/animations": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0 || ^16.0.0",
10
- "@angular/common": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0 || ^16.0.0",
11
- "@angular/compiler": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0 || ^16.0.0",
12
- "@angular/core": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0 || ^16.0.0",
13
- "@angular/forms": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0 || ^16.0.0",
14
- "@angular/router": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0 || ^16.0.0",
15
- "@angular/platform-browser": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0 || ^16.0.0",
16
- "@angular/platform-server": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0 || ^16.0.0",
9
+ "@angular/animations": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
10
+ "@angular/common": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
11
+ "@angular/compiler": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
12
+ "@angular/core": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
13
+ "@angular/forms": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
14
+ "@angular/router": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
15
+ "@angular/platform-browser": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
16
+ "@angular/platform-server": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
17
17
  "express": "^4.0.0",
18
18
  "element-resize-detector": "^1.2.4",
19
19
  "core-js": "^3.6.5 || ^3.22.5",
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, 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, 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";