@stemy/ngx-utils 19.9.54 → 19.9.56
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.
|
@@ -3,7 +3,7 @@ import { HttpClient, HttpHeaders } from "@angular/common/http";
|
|
|
3
3
|
import { ActivatedRouteSnapshot, Data, LoadChildrenCallback, Route, Routes, UrlTree } from "@angular/router";
|
|
4
4
|
import { Observable } from "rxjs";
|
|
5
5
|
import { DurationLikeObject } from "luxon";
|
|
6
|
-
import { MaybePromise, StringKeys } from "./helper-types";
|
|
6
|
+
import { MaybePromise, RequireAtLeastOne, StringKeys } from "./helper-types";
|
|
7
7
|
export type DurationUnit = StringKeys<DurationLikeObject>;
|
|
8
8
|
export interface TypedFactoryProvider<T> {
|
|
9
9
|
provide?: any;
|
|
@@ -582,11 +582,8 @@ export type OpenApiSchemaSelector = (name: string, schemas: OpenApiSchemas, inje
|
|
|
582
582
|
export declare const EDITOR_TYPES: ReadonlyArray<string>;
|
|
583
583
|
export type ControlValueAccesFn<T = any> = (value?: T) => void;
|
|
584
584
|
export type TableFilterType = "text" | "enum" | "checkbox";
|
|
585
|
-
export interface ITableOrders {
|
|
586
|
-
[column: string]: string;
|
|
587
|
-
}
|
|
588
585
|
export interface ITableColumn {
|
|
589
|
-
title
|
|
586
|
+
title?: string;
|
|
590
587
|
sort?: string;
|
|
591
588
|
filter?: boolean;
|
|
592
589
|
filterType?: TableFilterType;
|
|
@@ -594,6 +591,10 @@ export interface ITableColumn {
|
|
|
594
591
|
enumPrefix?: string;
|
|
595
592
|
[key: string]: any;
|
|
596
593
|
}
|
|
594
|
+
export type TableColumn = RequireAtLeastOne<ITableColumn>;
|
|
595
|
+
export interface ITableOrders {
|
|
596
|
+
[column: string]: string | TableColumn;
|
|
597
|
+
}
|
|
597
598
|
export interface ITableColumns {
|
|
598
599
|
[column: string]: ITableColumn;
|
|
599
600
|
}
|
|
@@ -66,9 +66,9 @@ import { UnorderedListComponent } from "./components/unordered-list/unordered-li
|
|
|
66
66
|
import { UploadComponent } from "./components/upload/upload.component";
|
|
67
67
|
import { WysiwygComponent } from "./components/wysiwyg/wysiwyg.component";
|
|
68
68
|
export declare const pipes: (typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof IncludesPipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof SyncAsyncPipe | typeof TranslatePipe)[];
|
|
69
|
-
export declare const directives: (typeof
|
|
69
|
+
export declare const directives: (typeof AsyncMethodBase | typeof AsyncMethodDirective | typeof AsyncMethodTargetDirective | typeof BackgroundDirective | typeof ComponentLoaderDirective | typeof DynamicTableTemplateDirective | typeof GlobalTemplateDirective | typeof IconDirective | typeof NgxTemplateOutletDirective | typeof PaginationDirective | typeof PaginationItemDirective | typeof ResourceIfDirective | typeof StickyDirective | typeof StickyClassDirective | typeof DropdownDirective | typeof DropdownContentDirective | typeof DropdownToggleDirective | typeof TabsItemDirective | typeof UnorderedListItemDirective | typeof UnorderedListTemplateDirective)[];
|
|
70
70
|
export declare const components: (typeof ChipsComponent | typeof CloseBtnComponent | typeof DropListComponent | typeof DynamicTableComponent | typeof PaginationMenuComponent | typeof UnorderedListComponent | typeof UploadComponent | typeof WysiwygComponent)[];
|
|
71
|
-
export declare const providers: (typeof
|
|
71
|
+
export declare const providers: (typeof UniversalService | typeof StateService | typeof AuthGuard | typeof EventsService | typeof AclService | typeof BaseHttpClient | typeof StorageService | typeof CacheService | typeof BaseHttpService | typeof StaticAuthService | typeof ConfigService | typeof BaseDialogService | typeof ErrorHandlerService | typeof FormatterService | typeof GlobalTemplateService | typeof HrefSerializer | typeof IconService | typeof StaticLanguageService | typeof OpenApiService | typeof BaseToasterService | typeof ComponentLoaderService | typeof TranslatedUrlSerializer | typeof PromiseService | typeof SocketService | typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof IncludesPipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof SyncAsyncPipe | typeof TranslatePipe | typeof DeviceDetectorService | {
|
|
72
72
|
provide: import("@angular/core").InjectionToken<import("@angular/platform-browser").EventManagerPlugin[]>;
|
|
73
73
|
useClass: typeof DragDropEventPlugin;
|
|
74
74
|
multi: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Type, ValueProvider, ɵComponentDef as ComponentDef } from "@angular/core";
|
|
2
|
-
import { CssSelector, CssSelectorList, TypedFactoryProvider, TypedValueProvider } from "../common-types";
|
|
2
|
+
import { CssSelector, CssSelectorList, ITableColumns, TableColumns, TypedFactoryProvider, TypedValueProvider } from "../common-types";
|
|
3
3
|
export declare function isBrowser(): boolean;
|
|
4
4
|
/**
|
|
5
5
|
* Returns an elements root
|
|
@@ -31,3 +31,4 @@ export interface DiffEntityResult<T extends {
|
|
|
31
31
|
export declare function diffEntities<T extends {
|
|
32
32
|
id?: string | number;
|
|
33
33
|
}>(current: T[], incoming: T[]): DiffEntityResult<T>;
|
|
34
|
+
export declare function convertTableColumns(columns: TableColumns, titlePrefix?: string): ITableColumns;
|
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export { stringify } from "./ngx-utils/utils/json.utils";
|
|
|
22
22
|
export { ReflectUtils } from "./ngx-utils/utils/reflect.utils";
|
|
23
23
|
export { LoaderUtils } from "./ngx-utils/utils/loader.utils";
|
|
24
24
|
export { EPSILON, normalizeRange, clamp, overflow, isEqual, isZero, MathUtils } from "./ngx-utils/utils/math.utils";
|
|
25
|
-
export { isBrowser, getRoot, switchClass, getCssVariables, checkTransitions, getComponentDef, parseSelector, selectorMatchesList, provideEntryComponents, provideOptions, provideWithOptions, injectOptions, DiffEntityResult, diffEntities } from "./ngx-utils/utils/misc";
|
|
25
|
+
export { isBrowser, getRoot, switchClass, getCssVariables, checkTransitions, getComponentDef, parseSelector, selectorMatchesList, provideEntryComponents, provideOptions, provideWithOptions, injectOptions, DiffEntityResult, diffEntities, convertTableColumns } from "./ngx-utils/utils/misc";
|
|
26
26
|
export { getType, isObject, isDefined, isDate, isString, isStringWithValue, isFunction, toStringArray, ObjectUtils } from "./ngx-utils/utils/object.utils";
|
|
27
27
|
export { ObservableUtils, ISubscriberInfo } from "./ngx-utils/utils/observable.utils";
|
|
28
28
|
export { CancelablePromise, cancelablePromise, impatientPromise, promiseTimeout } from "./ngx-utils/utils/promise.utils";
|