@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.
- package/esm2020/ngx-utils/common-types.mjs +2 -5
- package/esm2020/ngx-utils/components/dynamic-table/dynamic-table.component.mjs +19 -5
- package/esm2020/ngx-utils/components/unordered-list/unordered-list.component.mjs +1 -1
- package/esm2020/ngx-utils/directives/unordered-list-item.directive.mjs +4 -2
- package/esm2020/ngx-utils/directives/unordered-list-template.directive.mjs +7 -13
- package/esm2020/ngx-utils/utils/auth.guard.mjs +2 -2
- package/esm2020/public_api.mjs +2 -2
- package/fesm2015/stemy-ngx-utils.mjs +30 -21
- package/fesm2015/stemy-ngx-utils.mjs.map +1 -1
- package/fesm2020/stemy-ngx-utils.mjs +29 -21
- package/fesm2020/stemy-ngx-utils.mjs.map +1 -1
- package/ngx-utils/common-types.d.ts +8 -4
- package/ngx-utils/components/dynamic-table/dynamic-table.component.d.ts +4 -1
- package/ngx-utils/components/unordered-list/unordered-list.component.d.ts +2 -2
- package/ngx-utils/directives/unordered-list-item.directive.d.ts +2 -2
- package/ngx-utils/directives/unordered-list-template.directive.d.ts +5 -7
- package/package.json +1 -1
- package/public_api.d.ts +1 -1
|
@@ -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
|
|
139
|
-
|
|
140
|
-
|
|
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
|
|
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,
|
|
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:
|
|
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,
|
|
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:
|
|
15
|
+
templates: UnorderedListTemplate[];
|
|
16
16
|
defaultTemplates: UnorderedListTemplates;
|
|
17
17
|
isArray: boolean;
|
|
18
18
|
isObject: boolean;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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
|
|
5
|
-
|
|
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(
|
|
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
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,
|
|
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";
|