@stemy/ngx-utils 13.6.15 → 13.6.17
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 +12 -5
- package/esm2020/public_api.mjs +1 -1
- package/fesm2015/stemy-ngx-utils.mjs +11 -4
- package/fesm2015/stemy-ngx-utils.mjs.map +1 -1
- package/fesm2020/stemy-ngx-utils.mjs +11 -4
- package/fesm2020/stemy-ngx-utils.mjs.map +1 -1
- package/ngx-utils/common-types.d.ts +1 -0
- package/ngx-utils/components/dynamic-table/dynamic-table.component.d.ts +6 -3
- package/package.json +1 -1
- package/public_api.d.ts +1 -1
|
@@ -304,6 +304,7 @@ export interface ITableColumn {
|
|
|
304
304
|
export interface ITableColumns {
|
|
305
305
|
[column: string]: ITableColumn;
|
|
306
306
|
}
|
|
307
|
+
export declare type TableColumns = ITableOrders | ITableColumns | string[];
|
|
307
308
|
export interface ITableTemplate {
|
|
308
309
|
column: string | string[];
|
|
309
310
|
pure: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AfterContentInit, AfterViewInit, OnChanges, QueryList, SimpleChanges, TemplateRef } from "@angular/core";
|
|
2
|
-
import { IPaginationData, ITableColumns, ITableDataQuery,
|
|
2
|
+
import { IPaginationData, ITableColumns, ITableDataQuery, ITableTemplates, TableColumns, 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";
|
|
@@ -8,8 +8,10 @@ export declare class DynamicTableComponent implements AfterContentInit, AfterVie
|
|
|
8
8
|
placeholder: string;
|
|
9
9
|
dataLoader: TableDataLoader;
|
|
10
10
|
data: any[];
|
|
11
|
+
page: number;
|
|
12
|
+
urlParam: string;
|
|
11
13
|
parallelData: any[];
|
|
12
|
-
columns:
|
|
14
|
+
columns: TableColumns;
|
|
13
15
|
showFilter: boolean;
|
|
14
16
|
itemsPerPage: number;
|
|
15
17
|
updateTime: number;
|
|
@@ -20,6 +22,7 @@ export declare class DynamicTableComponent implements AfterContentInit, AfterVie
|
|
|
20
22
|
orderBy: string;
|
|
21
23
|
orderDescending: boolean;
|
|
22
24
|
testId: string;
|
|
25
|
+
titlePrefix: string;
|
|
23
26
|
tableId: string;
|
|
24
27
|
templates: ITableTemplates;
|
|
25
28
|
filter: string;
|
|
@@ -49,5 +52,5 @@ export declare class DynamicTableComponent implements AfterContentInit, AfterVie
|
|
|
49
52
|
loadData: (page: number, itemsPerPage: number) => Promise<IPaginationData>;
|
|
50
53
|
private loadLocalData;
|
|
51
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicTableComponent, never>;
|
|
52
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicTableComponent, "dynamic-table", never, { "label": "label"; "placeholder": "placeholder"; "dataLoader": "dataLoader"; "data": "data"; "parallelData": "parallelData"; "columns": "columns"; "showFilter": "showFilter"; "itemsPerPage": "itemsPerPage"; "updateTime": "updateTime"; "filterTime": "filterTime"; "maxPages": "maxPages"; "directionLinks": "directionLinks"; "boundaryLinks": "boundaryLinks"; "orderBy": "orderBy"; "orderDescending": "orderDescending"; "testId": "testId"; }, {}, ["rowTemplate", "wrapperTemplate", "filterTemplate", "templateDirectives"], never>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicTableComponent, "dynamic-table", never, { "label": "label"; "placeholder": "placeholder"; "dataLoader": "dataLoader"; "data": "data"; "page": "page"; "urlParam": "urlParam"; "parallelData": "parallelData"; "columns": "columns"; "showFilter": "showFilter"; "itemsPerPage": "itemsPerPage"; "updateTime": "updateTime"; "filterTime": "filterTime"; "maxPages": "maxPages"; "directionLinks": "directionLinks"; "boundaryLinks": "boundaryLinks"; "orderBy": "orderBy"; "orderDescending": "orderDescending"; "testId": "testId"; "titlePrefix": "titlePrefix"; }, {}, ["rowTemplate", "wrapperTemplate", "filterTemplate", "templateDirectives"], never>;
|
|
53
56
|
}
|
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { TypedFactoryProvider, TypedValueProvider, CachedProvider, CachedFactory, OPTIONS_TOKEN, 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";
|
|
1
|
+
export { TypedFactoryProvider, TypedValueProvider, CachedProvider, CachedFactory, OPTIONS_TOKEN, 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, TableColumns, 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 { ArrayUtils } from "./ngx-utils/utils/array.utils";
|
|
4
4
|
export { AuthGuard } from "./ngx-utils/utils/auth.guard";
|