@stemy/ngx-utils 19.9.55 → 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
|
}
|
|
@@ -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";
|