@stemy/ngx-utils 13.5.1 → 13.5.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.
@@ -280,9 +280,18 @@ export interface IOpenApiSchema {
280
280
  export interface IOpenApiSchemas {
281
281
  [name: string]: IOpenApiSchema;
282
282
  }
283
- export interface ITableColumns {
283
+ export interface ITableOrders {
284
284
  [column: string]: string;
285
285
  }
286
+ export interface ITableColumn {
287
+ title?: string;
288
+ sort?: string;
289
+ filter?: boolean;
290
+ [key: string]: any;
291
+ }
292
+ export interface ITableColumns {
293
+ [column: string]: ITableColumn;
294
+ }
286
295
  export interface ITableTemplate {
287
296
  column: string | string[];
288
297
  pure: boolean;
@@ -1,5 +1,7 @@
1
- import { AfterContentInit, AfterViewInit, OnChanges, SimpleChanges, TemplateRef } from "@angular/core";
2
- import { IPaginationData, ITableColumns, ITableTemplates, TableDataLoader } from "../../common-types";
1
+ import { AfterContentInit, AfterViewInit, OnChanges, QueryList, SimpleChanges, TemplateRef } from "@angular/core";
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;
@@ -7,7 +9,7 @@ export declare class DynamicTableComponent implements AfterContentInit, AfterVie
7
9
  dataLoader: TableDataLoader;
8
10
  data: any[];
9
11
  parallelData: any[];
10
- columns: ITableColumns | string[];
12
+ columns: ITableOrders | ITableColumns | string[];
11
13
  showFilter: boolean;
12
14
  itemsPerPage: number;
13
15
  updateTime: number;
@@ -20,7 +22,7 @@ export declare class DynamicTableComponent implements AfterContentInit, AfterVie
20
22
  tableId: string;
21
23
  templates: ITableTemplates;
22
24
  filter: string;
23
- orders: ITableColumns;
25
+ realColumns: ITableColumns;
24
26
  cols: string[];
25
27
  get items(): any[];
26
28
  rowTemplate: TemplateRef<any>;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stemy/ngx-utils",
3
- "version": "13.5.1",
3
+ "version": "13.5.3",
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, 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, 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";