@stemy/ngx-utils 13.5.1 → 13.5.2
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.
- package/esm2020/ngx-utils/common-types.mjs +1 -1
- package/esm2020/ngx-utils/components/dynamic-table/dynamic-table.component.mjs +17 -11
- package/esm2020/public_api.mjs +1 -1
- package/fesm2015/stemy-ngx-utils.mjs +17 -10
- package/fesm2015/stemy-ngx-utils.mjs.map +1 -1
- package/fesm2020/stemy-ngx-utils.mjs +16 -10
- package/fesm2020/stemy-ngx-utils.mjs.map +1 -1
- package/ngx-utils/common-types.d.ts +9 -1
- package/ngx-utils/components/dynamic-table/dynamic-table.component.d.ts +3 -3
- package/package.json +1 -1
- package/public_api.d.ts +1 -1
|
@@ -280,9 +280,17 @@ export interface IOpenApiSchema {
|
|
|
280
280
|
export interface IOpenApiSchemas {
|
|
281
281
|
[name: string]: IOpenApiSchema;
|
|
282
282
|
}
|
|
283
|
-
export interface
|
|
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
|
+
}
|
|
291
|
+
export interface ITableColumns {
|
|
292
|
+
[column: string]: ITableColumn;
|
|
293
|
+
}
|
|
286
294
|
export interface ITableTemplate {
|
|
287
295
|
column: string | string[];
|
|
288
296
|
pure: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AfterContentInit, AfterViewInit, OnChanges, SimpleChanges, TemplateRef } from "@angular/core";
|
|
2
|
-
import { IPaginationData, ITableColumns, ITableTemplates, TableDataLoader } from "../../common-types";
|
|
2
|
+
import { IPaginationData, ITableColumns, ITableOrders, ITableTemplates, TableDataLoader } from "../../common-types";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class DynamicTableComponent implements AfterContentInit, AfterViewInit, OnChanges {
|
|
5
5
|
label: string;
|
|
@@ -7,7 +7,7 @@ export declare class DynamicTableComponent implements AfterContentInit, AfterVie
|
|
|
7
7
|
dataLoader: TableDataLoader;
|
|
8
8
|
data: any[];
|
|
9
9
|
parallelData: any[];
|
|
10
|
-
columns: ITableColumns | string[];
|
|
10
|
+
columns: ITableOrders | ITableColumns | string[];
|
|
11
11
|
showFilter: boolean;
|
|
12
12
|
itemsPerPage: number;
|
|
13
13
|
updateTime: number;
|
|
@@ -20,7 +20,7 @@ export declare class DynamicTableComponent implements AfterContentInit, AfterVie
|
|
|
20
20
|
tableId: string;
|
|
21
21
|
templates: ITableTemplates;
|
|
22
22
|
filter: string;
|
|
23
|
-
|
|
23
|
+
realColumns: ITableColumns;
|
|
24
24
|
cols: string[];
|
|
25
25
|
get items(): any[];
|
|
26
26
|
rowTemplate: TemplateRef<any>;
|
package/package.json
CHANGED
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";
|