@resolveio/client-lib-core 21.5.33 → 21.5.35
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/package.json
CHANGED
|
@@ -1695,13 +1695,14 @@ declare class CollapseTableComponent implements OnInit, OnChanges, AfterViewInit
|
|
|
1695
1695
|
windowSizeSubscription: any;
|
|
1696
1696
|
mutationObserver: MutationObserver | null;
|
|
1697
1697
|
resizeObserver: ResizeObserver | null;
|
|
1698
|
-
private
|
|
1698
|
+
private updateRafId;
|
|
1699
1699
|
private readonly onScrollHandler;
|
|
1700
1700
|
constructor(_resizeService: ResizeService, _account: AccountManagerService, _elementRef: ElementRef<HTMLElement>);
|
|
1701
1701
|
ngOnInit(): void;
|
|
1702
1702
|
ngAfterViewInit(): void;
|
|
1703
1703
|
ngOnChanges(): void;
|
|
1704
1704
|
ngOnDestroy(): void;
|
|
1705
|
+
private scheduleStickyTopOffsetUpdate;
|
|
1705
1706
|
onClick(event: any): void;
|
|
1706
1707
|
getCollapseClass(): string[];
|
|
1707
1708
|
getPrimaryColor(): string;
|
|
@@ -1709,7 +1710,10 @@ declare class CollapseTableComponent implements OnInit, OnChanges, AfterViewInit
|
|
|
1709
1710
|
private isStickyHeadersEnabled;
|
|
1710
1711
|
private toOptionalBoolean;
|
|
1711
1712
|
private getAncestorStickyOffset;
|
|
1713
|
+
private getStickyHeaderRect;
|
|
1712
1714
|
private isAncestorStickyHeadersEnabled;
|
|
1715
|
+
private getEffectiveStickyTopOffset;
|
|
1716
|
+
private getCollapseTableElement;
|
|
1713
1717
|
static ɵfac: i0.ɵɵFactoryDeclaration<CollapseTableComponent, never>;
|
|
1714
1718
|
static ɵcmp: i0.ɵɵComponentDeclaration<CollapseTableComponent, "collapse-table", never, { "collapseSize": { "alias": "collapseSize"; "required": false; }; "tableFixed": { "alias": "tableFixed"; "required": false; }; "headerFixed": { "alias": "headerFixed"; "required": false; }; "stickyHeaders": { "alias": "stickyHeaders"; "required": false; }; "secondaryColor": { "alias": "secondaryColor"; "required": false; }; "tertiaryColor": { "alias": "tertiaryColor"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
1715
1719
|
}
|
|
@@ -2665,6 +2669,7 @@ declare class DatatableComponent extends BaseComponent implements OnChanges, Aft
|
|
|
2665
2669
|
showResultsSummary: boolean;
|
|
2666
2670
|
hideSearch: boolean;
|
|
2667
2671
|
hideFooter: boolean;
|
|
2672
|
+
applyLocalColumnFilters: boolean;
|
|
2668
2673
|
onChangeTableData: EventEmitter<Object>;
|
|
2669
2674
|
tableDataChange: EventEmitter<DatatableModel>;
|
|
2670
2675
|
cellAction: EventEmitter<DatatableCellActionEvent<any>>;
|
|
@@ -2713,6 +2718,7 @@ declare class DatatableComponent extends BaseComponent implements OnChanges, Aft
|
|
|
2713
2718
|
private normalizePageNum;
|
|
2714
2719
|
private emitTableDataChange;
|
|
2715
2720
|
private sanitizeColumnFiltersState;
|
|
2721
|
+
private pruneColumnFiltersToKnownColumns;
|
|
2716
2722
|
private isObjectMap;
|
|
2717
2723
|
changeTableData(): void;
|
|
2718
2724
|
onSearchSubmit(): void;
|
|
@@ -2840,7 +2846,7 @@ declare class DatatableComponent extends BaseComponent implements OnChanges, Aft
|
|
|
2840
2846
|
getSearchButtonLabel(): string;
|
|
2841
2847
|
typeOf(data: any): "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function";
|
|
2842
2848
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatatableComponent, [null, null, null, { optional: true; }, { optional: true; }, null, null, null, null]>;
|
|
2843
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DatatableComponent, "data-table", never, { "urlClick": { "alias": "urlClick"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "collapseSize": { "alias": "collapseSize"; "required": false; }; "searchTitle": { "alias": "searchTitle"; "required": false; }; "totalItems": { "alias": "totalItems"; "required": false; }; "entriesPerPageOptions": { "alias": "entriesPerPageOptions"; "required": false; }; "searchBarAutoSearch": { "alias": "searchBarAutoSearch"; "required": false; }; "searchDebounceMs": { "alias": "searchDebounceMs"; "required": false; }; "searchMinLength": { "alias": "searchMinLength"; "required": false; }; "searchDistinct": { "alias": "searchDistinct"; "required": false; }; "IronBatchAssign": { "alias": "IronBatchAssign"; "required": false; }; "tableFixed": { "alias": "tableFixed"; "required": false; }; "headerFixed": { "alias": "headerFixed"; "required": false; }; "stickyHeaders": { "alias": "stickyHeaders"; "required": false; }; "users": { "alias": "users"; "required": false; }; "rowIdKey": { "alias": "rowIdKey"; "required": false; }; "rowNavigationMode": { "alias": "rowNavigationMode"; "required": false; }; "returnIdUrls": { "alias": "returnIdUrls"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; "showPaging": { "alias": "showPaging"; "required": false; }; "showToolbar": { "alias": "showToolbar"; "required": false; }; "showEntriesControl": { "alias": "showEntriesControl"; "required": false; }; "showResultsSummary": { "alias": "showResultsSummary"; "required": false; }; "hideSearch": { "alias": "hideSearch"; "required": false; }; "hideFooter": { "alias": "hideFooter"; "required": false; }; "tableData": { "alias": "tableData"; "required": false; }; }, { "onChangeTableData": "onChangeTableData"; "tableDataChange": "tableDataChange"; "cellAction": "cellAction"; "rowClick": "rowClick"; "rowSelected": "rowSelected"; "returnId": "returnId"; "onChangeRequested": "onChangeRequested"; "onChangeTankLevels": "onChangeTankLevels"; "onChangeCurrentRate": "onChangeCurrentRate"; "onChangeTankHistory": "onChangeTankHistory"; }, ["cellTemplateDirectives"], never, false, never>;
|
|
2849
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatatableComponent, "data-table", never, { "urlClick": { "alias": "urlClick"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "collapseSize": { "alias": "collapseSize"; "required": false; }; "searchTitle": { "alias": "searchTitle"; "required": false; }; "totalItems": { "alias": "totalItems"; "required": false; }; "entriesPerPageOptions": { "alias": "entriesPerPageOptions"; "required": false; }; "searchBarAutoSearch": { "alias": "searchBarAutoSearch"; "required": false; }; "searchDebounceMs": { "alias": "searchDebounceMs"; "required": false; }; "searchMinLength": { "alias": "searchMinLength"; "required": false; }; "searchDistinct": { "alias": "searchDistinct"; "required": false; }; "IronBatchAssign": { "alias": "IronBatchAssign"; "required": false; }; "tableFixed": { "alias": "tableFixed"; "required": false; }; "headerFixed": { "alias": "headerFixed"; "required": false; }; "stickyHeaders": { "alias": "stickyHeaders"; "required": false; }; "users": { "alias": "users"; "required": false; }; "rowIdKey": { "alias": "rowIdKey"; "required": false; }; "rowNavigationMode": { "alias": "rowNavigationMode"; "required": false; }; "returnIdUrls": { "alias": "returnIdUrls"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; "showPaging": { "alias": "showPaging"; "required": false; }; "showToolbar": { "alias": "showToolbar"; "required": false; }; "showEntriesControl": { "alias": "showEntriesControl"; "required": false; }; "showResultsSummary": { "alias": "showResultsSummary"; "required": false; }; "hideSearch": { "alias": "hideSearch"; "required": false; }; "hideFooter": { "alias": "hideFooter"; "required": false; }; "applyLocalColumnFilters": { "alias": "applyLocalColumnFilters"; "required": false; }; "tableData": { "alias": "tableData"; "required": false; }; }, { "onChangeTableData": "onChangeTableData"; "tableDataChange": "tableDataChange"; "cellAction": "cellAction"; "rowClick": "rowClick"; "rowSelected": "rowSelected"; "returnId": "returnId"; "onChangeRequested": "onChangeRequested"; "onChangeTankLevels": "onChangeTankLevels"; "onChangeCurrentRate": "onChangeCurrentRate"; "onChangeTankHistory": "onChangeTankHistory"; }, ["cellTemplateDirectives"], never, false, never>;
|
|
2844
2850
|
}
|
|
2845
2851
|
|
|
2846
2852
|
type RioPaginationEntry = number | 'ellipsis-left' | 'ellipsis-right';
|
|
@@ -2885,7 +2891,7 @@ declare class RioPaginationModule {
|
|
|
2885
2891
|
|
|
2886
2892
|
declare class DatatableModule {
|
|
2887
2893
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatatableModule, never>;
|
|
2888
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DatatableModule, [typeof DatatableComponent, typeof DatatableCellTemplateDirective], [typeof i6.NgbModule, typeof i3.FormsModule, typeof i2.CommonModule, typeof i5.RouterModule, typeof CollapseTableModule, typeof i11.RioSelectModule, typeof RioPaginationModule], [typeof DatatableComponent, typeof DatatableCellTemplateDirective]>;
|
|
2894
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DatatableModule, [typeof DatatableComponent, typeof DatatableCellTemplateDirective], [typeof i6.NgbModule, typeof i3.FormsModule, typeof i2.CommonModule, typeof i5.RouterModule, typeof CollapseTableModule, typeof i11.RioSelectModule, typeof i16.RioDatePickerModule, typeof RioPaginationModule], [typeof DatatableComponent, typeof DatatableCellTemplateDirective]>;
|
|
2889
2895
|
static ɵinj: i0.ɵɵInjectorDeclaration<DatatableModule>;
|
|
2890
2896
|
}
|
|
2891
2897
|
|
|
@@ -3012,12 +3018,39 @@ interface CsvExportOptions {
|
|
|
3012
3018
|
}
|
|
3013
3019
|
declare function exportCsv(data: any[] | string, filename: string, options?: CsvExportOptions): void;
|
|
3014
3020
|
|
|
3021
|
+
interface DateElementLike {
|
|
3022
|
+
year: number;
|
|
3023
|
+
month: number;
|
|
3024
|
+
day: number;
|
|
3025
|
+
}
|
|
3026
|
+
interface QueryFilterMapping {
|
|
3027
|
+
filterKey: string;
|
|
3028
|
+
queryField?: string;
|
|
3029
|
+
ignoreValues?: any[];
|
|
3030
|
+
clauseFactory?: (value: any, filters: Record<string, any>) => Record<string, any> | null;
|
|
3031
|
+
}
|
|
3032
|
+
type QuerySearchMode = 'regex' | 'exact';
|
|
3033
|
+
interface QuerySearchClauseOptions {
|
|
3034
|
+
mode?: QuerySearchMode;
|
|
3035
|
+
caseSensitive?: boolean;
|
|
3036
|
+
}
|
|
3037
|
+
declare function dateElementToStartDate(value: DateElementLike | null | undefined): Date | null;
|
|
3038
|
+
declare function dateElementToEndDate(value: DateElementLike | null | undefined): Date | null;
|
|
3039
|
+
declare function escapeRegExp(value: string): string;
|
|
3040
|
+
declare function buildMappedFilterClauses(filters: Record<string, any> | undefined, mappings: QueryFilterMapping[]): Record<string, any>[];
|
|
3041
|
+
declare function buildSearchClause(searchValue: string | null | undefined, fields: string[], options?: QuerySearchClauseOptions): Record<string, any> | null;
|
|
3042
|
+
declare function buildRegexOrSearchClause(searchValue: string | null | undefined, fields: string[]): Record<string, any> | null;
|
|
3043
|
+
|
|
3015
3044
|
declare class WindowRefService {
|
|
3016
3045
|
get nativeWindow(): any;
|
|
3017
3046
|
static ɵfac: i0.ɵɵFactoryDeclaration<WindowRefService, never>;
|
|
3018
3047
|
static ɵprov: i0.ɵɵInjectableDeclaration<WindowRefService>;
|
|
3019
3048
|
}
|
|
3020
3049
|
|
|
3050
|
+
type DatatableQueryClause = Record<string, any>;
|
|
3051
|
+
declare function hasActiveDatatableColumnFilter(columnFilters: Record<string, DatatableColumnFilter> | undefined, field: string): boolean;
|
|
3052
|
+
declare function buildDatatableColumnFilterClauses(columnFilters: Record<string, DatatableColumnFilter> | undefined): DatatableQueryClause[];
|
|
3053
|
+
|
|
3021
3054
|
declare class DateShortcutComponent extends BaseComponent implements OnInit {
|
|
3022
3055
|
private _services;
|
|
3023
3056
|
private _cd;
|
|
@@ -3046,6 +3079,231 @@ declare class DateShortcutModule {
|
|
|
3046
3079
|
static ɵinj: i0.ɵɵInjectorDeclaration<DateShortcutModule>;
|
|
3047
3080
|
}
|
|
3048
3081
|
|
|
3082
|
+
declare type SortMongo = string | Exclude<SortDirection, {
|
|
3083
|
+
$meta: string;
|
|
3084
|
+
}> | string[] | {
|
|
3085
|
+
[key: string]: SortDirection;
|
|
3086
|
+
} | Map<string, SortDirection> | [string, SortDirection][] | [string, SortDirection];
|
|
3087
|
+
/** @public */
|
|
3088
|
+
declare type SortDirection = 1 | -1 | 'asc' | 'desc' | 'ascending' | 'descending' | {
|
|
3089
|
+
$meta: string;
|
|
3090
|
+
};
|
|
3091
|
+
interface PaginationOptions {
|
|
3092
|
+
limit?: number;
|
|
3093
|
+
skip?: number;
|
|
3094
|
+
sort?: SortMongo;
|
|
3095
|
+
fields?: {
|
|
3096
|
+
[key: string]: number;
|
|
3097
|
+
};
|
|
3098
|
+
}
|
|
3099
|
+
|
|
3100
|
+
interface ListTemplateDateElement {
|
|
3101
|
+
year: number;
|
|
3102
|
+
month: number;
|
|
3103
|
+
day: number;
|
|
3104
|
+
}
|
|
3105
|
+
interface ListTemplateQueryStateOptions {
|
|
3106
|
+
dateKeys?: string[];
|
|
3107
|
+
extraKeys?: string[];
|
|
3108
|
+
keepUnknownFilterKeys?: boolean;
|
|
3109
|
+
}
|
|
3110
|
+
interface ListTemplateQueryStateResult<TTableData extends DatatableModel = DatatableModel> {
|
|
3111
|
+
tableData: TTableData;
|
|
3112
|
+
dates: Record<string, ListTemplateDateElement | null>;
|
|
3113
|
+
extras: Record<string, any>;
|
|
3114
|
+
hadLegacyColumnFiltersParam: boolean;
|
|
3115
|
+
}
|
|
3116
|
+
interface ListTemplateBuildQueryParamsOptions {
|
|
3117
|
+
dateValues?: Record<string, ListTemplateDateElement | null | undefined>;
|
|
3118
|
+
extraValues?: Record<string, any>;
|
|
3119
|
+
}
|
|
3120
|
+
interface ListTemplateFilterOption {
|
|
3121
|
+
label: string;
|
|
3122
|
+
value: any;
|
|
3123
|
+
}
|
|
3124
|
+
interface ListTemplateAutoFilterConfig {
|
|
3125
|
+
key: string;
|
|
3126
|
+
label: string;
|
|
3127
|
+
controlType?: 'select' | 'date' | 'text';
|
|
3128
|
+
queryField?: string;
|
|
3129
|
+
queryIgnoreValues?: any[];
|
|
3130
|
+
queryClauseFactory?: (value: any, filters: Record<string, any>) => Record<string, any> | null;
|
|
3131
|
+
queryDisabled?: boolean;
|
|
3132
|
+
options?: Array<ListTemplateFilterOption | string | number | boolean>;
|
|
3133
|
+
optionsCollection?: string;
|
|
3134
|
+
optionsQuery?: Record<string, any>;
|
|
3135
|
+
optionsFields?: Record<string, number>;
|
|
3136
|
+
optionsSort?: Record<string, 1 | -1>;
|
|
3137
|
+
optionLabelKey?: string;
|
|
3138
|
+
optionValueKey?: string;
|
|
3139
|
+
optionsDistinctKey?: string;
|
|
3140
|
+
distinctField?: string;
|
|
3141
|
+
distinctCollection?: string;
|
|
3142
|
+
distinctQuery?: Record<string, any>;
|
|
3143
|
+
distinctSort?: 'asc' | 'desc';
|
|
3144
|
+
limit?: number;
|
|
3145
|
+
includeAllOption?: boolean;
|
|
3146
|
+
allLabel?: string;
|
|
3147
|
+
allValue?: any;
|
|
3148
|
+
defaultValue?: any;
|
|
3149
|
+
mapOption?: (row: any) => ListTemplateFilterOption | null;
|
|
3150
|
+
}
|
|
3151
|
+
interface ListTemplateDataSourceContext<TTableData extends DatatableModel = DatatableModel> {
|
|
3152
|
+
tableData: TTableData;
|
|
3153
|
+
filters: Record<string, any>;
|
|
3154
|
+
}
|
|
3155
|
+
type ListTemplateSearchMode = 'regex' | 'exact';
|
|
3156
|
+
interface ListTemplateDataSourceConfig<TTableData extends DatatableModel = DatatableModel> {
|
|
3157
|
+
collection: string;
|
|
3158
|
+
fields?: Record<string, number>;
|
|
3159
|
+
sortFallback?: Record<string, 1 | -1>;
|
|
3160
|
+
sortFieldMap?: Record<string, string>;
|
|
3161
|
+
baseQuery?: Record<string, any> | ((context: ListTemplateDataSourceContext<TTableData>) => Record<string, any>);
|
|
3162
|
+
filterMappings?: QueryFilterMapping[];
|
|
3163
|
+
searchFields?: string[];
|
|
3164
|
+
searchMode?: ListTemplateSearchMode;
|
|
3165
|
+
searchCaseSensitive?: boolean;
|
|
3166
|
+
searchClauseFactory?: (searchValue: string, context: ListTemplateDataSourceContext<TTableData>) => Record<string, any> | null;
|
|
3167
|
+
includeColumnFilters?: boolean;
|
|
3168
|
+
extraClausesFactory?: (context: ListTemplateDataSourceContext<TTableData>) => Record<string, any>[];
|
|
3169
|
+
queryTransform?: (query: Record<string, any>, context: ListTemplateDataSourceContext<TTableData>) => Record<string, any>;
|
|
3170
|
+
optionsTransform?: (options: PaginationOptions, context: ListTemplateDataSourceContext<TTableData>) => PaginationOptions;
|
|
3171
|
+
rowMap?: (row: any, context: ListTemplateDataSourceContext<TTableData>) => any;
|
|
3172
|
+
rowsMap?: (rows: any[], context: ListTemplateDataSourceContext<TTableData>) => any[];
|
|
3173
|
+
autoLoad?: boolean;
|
|
3174
|
+
}
|
|
3175
|
+
|
|
3176
|
+
declare class ListTemplateStateService {
|
|
3177
|
+
applyQueryParams<TTableData extends DatatableModel>(queryParams: Record<string, any>, defaultTableData: TTableData, options?: ListTemplateQueryStateOptions): ListTemplateQueryStateResult<TTableData>;
|
|
3178
|
+
buildQueryParams(tableData: DatatableModel, options?: ListTemplateBuildQueryParamsOptions): Record<string, any>;
|
|
3179
|
+
navigateWithQueryParams(router: Router, routePath: string | any[], queryParams: Record<string, any>): void;
|
|
3180
|
+
createDefaultTableData<TTableData extends DatatableModel>(defaultTableData: TTableData): TTableData;
|
|
3181
|
+
toPositiveNumber(value: any, fallback?: number): number;
|
|
3182
|
+
private createEmptyTableData;
|
|
3183
|
+
private parseColumnFilters;
|
|
3184
|
+
private serializeColumnFilters;
|
|
3185
|
+
private normalizeColumnFiltersObject;
|
|
3186
|
+
private parseDateElement;
|
|
3187
|
+
private serializeDateElement;
|
|
3188
|
+
private isLegacyColumnFiltersValue;
|
|
3189
|
+
private deepClone;
|
|
3190
|
+
private isObjectMap;
|
|
3191
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListTemplateStateService, never>;
|
|
3192
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ListTemplateStateService>;
|
|
3193
|
+
}
|
|
3194
|
+
|
|
3195
|
+
declare abstract class ListComponent<TTableData extends DatatableModel = DatatableModel> extends BaseComponent {
|
|
3196
|
+
private _listTemplateState;
|
|
3197
|
+
protected constructor(providerService: ProviderService, _listTemplateState: ListTemplateStateService);
|
|
3198
|
+
protected resolveListQueryState(queryParams: Record<string, any>, defaultTableData: TTableData, options?: ListTemplateQueryStateOptions): ListTemplateQueryStateResult<TTableData>;
|
|
3199
|
+
protected buildListQueryParams(tableData: DatatableModel, options?: ListTemplateBuildQueryParamsOptions): Record<string, any>;
|
|
3200
|
+
protected navigateListQuery(routePath: string | any[], queryParams: Record<string, any>): void;
|
|
3201
|
+
protected queueLegacyColumnFiltersCleanup(state: ListTemplateQueryStateResult<TTableData>, callback: () => void): void;
|
|
3202
|
+
protected toPositiveNumber(value: any, fallback?: number): number;
|
|
3203
|
+
}
|
|
3204
|
+
|
|
3205
|
+
declare class ListTemplateComponent extends BaseComponent implements OnChanges {
|
|
3206
|
+
private _services;
|
|
3207
|
+
urlClick: string;
|
|
3208
|
+
columns: Array<DatatableColumn | DatatableColumn[]>;
|
|
3209
|
+
data: any[];
|
|
3210
|
+
tableData: DatatableModel;
|
|
3211
|
+
collapseSize: number;
|
|
3212
|
+
searchTitle: string;
|
|
3213
|
+
totalItems: number;
|
|
3214
|
+
entriesPerPageOptions: Array<number | string>;
|
|
3215
|
+
searchBarAutoSearch: boolean;
|
|
3216
|
+
searchDebounceMs: number;
|
|
3217
|
+
searchMinLength: number;
|
|
3218
|
+
searchDistinct: boolean;
|
|
3219
|
+
tableFixed: boolean;
|
|
3220
|
+
headerFixed: boolean;
|
|
3221
|
+
stickyHeaders: boolean;
|
|
3222
|
+
users: any[];
|
|
3223
|
+
rowIdKey: string;
|
|
3224
|
+
rowNavigationMode: DatatableRowNavigationMode | string | null | undefined;
|
|
3225
|
+
returnIdUrls: string[];
|
|
3226
|
+
showSearch: boolean;
|
|
3227
|
+
showPaging: boolean;
|
|
3228
|
+
showToolbar: boolean;
|
|
3229
|
+
showEntriesControl: boolean;
|
|
3230
|
+
showResultsSummary: boolean;
|
|
3231
|
+
hideSearch: boolean;
|
|
3232
|
+
hideFooter: boolean;
|
|
3233
|
+
autoFilters: ListTemplateAutoFilterConfig[];
|
|
3234
|
+
dataSource: ListTemplateDataSourceConfig | null;
|
|
3235
|
+
tableDataChange: EventEmitter<DatatableModel>;
|
|
3236
|
+
onChangeTableData: EventEmitter<Object>;
|
|
3237
|
+
cellAction: EventEmitter<DatatableCellActionEvent<any>>;
|
|
3238
|
+
rowClick: EventEmitter<DatatableRowClickEvent<any>>;
|
|
3239
|
+
rowSelected: EventEmitter<{
|
|
3240
|
+
id: string | number;
|
|
3241
|
+
column: string;
|
|
3242
|
+
item: any;
|
|
3243
|
+
}>;
|
|
3244
|
+
returnId: EventEmitter<Object>;
|
|
3245
|
+
onChangeRequested: EventEmitter<Object>;
|
|
3246
|
+
onChangeTankLevels: EventEmitter<Object>;
|
|
3247
|
+
onChangeCurrentRate: EventEmitter<Object>;
|
|
3248
|
+
onChangeTankHistory: EventEmitter<Object>;
|
|
3249
|
+
dataSourceLoading: EventEmitter<boolean>;
|
|
3250
|
+
dataSourceError: EventEmitter<any>;
|
|
3251
|
+
dataSourceLoaded: EventEmitter<{
|
|
3252
|
+
data: any[];
|
|
3253
|
+
totalItems: number;
|
|
3254
|
+
query: Record<string, any>;
|
|
3255
|
+
options: PaginationOptions;
|
|
3256
|
+
}>;
|
|
3257
|
+
autoFilterOptionsMap: Record<string, ListTemplateFilterOption[]>;
|
|
3258
|
+
isDataSourceLoading: boolean;
|
|
3259
|
+
private dataLoadSequence;
|
|
3260
|
+
private autoFilterLoadSequence;
|
|
3261
|
+
private lastDataLoadSignature;
|
|
3262
|
+
constructor(_services: ProviderService);
|
|
3263
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
3264
|
+
onTableDataChange(nextTableData: DatatableModel): void;
|
|
3265
|
+
onDataTableChange(event: Object): void;
|
|
3266
|
+
onAutoFilterChanged(filter: ListTemplateAutoFilterConfig, value: any): void;
|
|
3267
|
+
getFilterOptions(filter: ListTemplateAutoFilterConfig): ListTemplateFilterOption[];
|
|
3268
|
+
getAutoFilterControlType(filter: ListTemplateAutoFilterConfig): 'select' | 'date' | 'text';
|
|
3269
|
+
isSelectAutoFilter(filter: ListTemplateAutoFilterConfig): boolean;
|
|
3270
|
+
trackByFilterKey(_index: number, filter: ListTemplateAutoFilterConfig): string;
|
|
3271
|
+
trackByFilterOption(_index: number, option: ListTemplateFilterOption): any;
|
|
3272
|
+
private shouldAutoLoadDataSource;
|
|
3273
|
+
private ensureTableDataShape;
|
|
3274
|
+
private applyAutoFilterDefaults;
|
|
3275
|
+
private loadAutoFilterOptions;
|
|
3276
|
+
private resolveFilterOptions;
|
|
3277
|
+
private loadCollectionFilterOptions;
|
|
3278
|
+
private loadDistinctFilterOptions;
|
|
3279
|
+
private getDistinctKey;
|
|
3280
|
+
reloadDataSource(): Promise<void>;
|
|
3281
|
+
private buildDataSourceQuery;
|
|
3282
|
+
private buildDataSourceOptions;
|
|
3283
|
+
private getEffectiveDataSourceFields;
|
|
3284
|
+
private getNormalizedColumns;
|
|
3285
|
+
private getProjectionField;
|
|
3286
|
+
private applyRowTransforms;
|
|
3287
|
+
private getDataSourceContext;
|
|
3288
|
+
private getEffectiveFilterMappings;
|
|
3289
|
+
private normalizeFilterOption;
|
|
3290
|
+
private getDefaultAllOnlyOption;
|
|
3291
|
+
private handleDataSourceError;
|
|
3292
|
+
private setDataSourceLoading;
|
|
3293
|
+
private toPositiveNumber;
|
|
3294
|
+
private serializeOptionValue;
|
|
3295
|
+
private serializeDataLoadSignature;
|
|
3296
|
+
private isObjectMap;
|
|
3297
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListTemplateComponent, never>;
|
|
3298
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListTemplateComponent, "resolveio-list-template", never, { "urlClick": { "alias": "urlClick"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "tableData": { "alias": "tableData"; "required": false; }; "collapseSize": { "alias": "collapseSize"; "required": false; }; "searchTitle": { "alias": "searchTitle"; "required": false; }; "totalItems": { "alias": "totalItems"; "required": false; }; "entriesPerPageOptions": { "alias": "entriesPerPageOptions"; "required": false; }; "searchBarAutoSearch": { "alias": "searchBarAutoSearch"; "required": false; }; "searchDebounceMs": { "alias": "searchDebounceMs"; "required": false; }; "searchMinLength": { "alias": "searchMinLength"; "required": false; }; "searchDistinct": { "alias": "searchDistinct"; "required": false; }; "tableFixed": { "alias": "tableFixed"; "required": false; }; "headerFixed": { "alias": "headerFixed"; "required": false; }; "stickyHeaders": { "alias": "stickyHeaders"; "required": false; }; "users": { "alias": "users"; "required": false; }; "rowIdKey": { "alias": "rowIdKey"; "required": false; }; "rowNavigationMode": { "alias": "rowNavigationMode"; "required": false; }; "returnIdUrls": { "alias": "returnIdUrls"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; "showPaging": { "alias": "showPaging"; "required": false; }; "showToolbar": { "alias": "showToolbar"; "required": false; }; "showEntriesControl": { "alias": "showEntriesControl"; "required": false; }; "showResultsSummary": { "alias": "showResultsSummary"; "required": false; }; "hideSearch": { "alias": "hideSearch"; "required": false; }; "hideFooter": { "alias": "hideFooter"; "required": false; }; "autoFilters": { "alias": "autoFilters"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; }, { "tableDataChange": "tableDataChange"; "onChangeTableData": "onChangeTableData"; "cellAction": "cellAction"; "rowClick": "rowClick"; "rowSelected": "rowSelected"; "returnId": "returnId"; "onChangeRequested": "onChangeRequested"; "onChangeTankLevels": "onChangeTankLevels"; "onChangeCurrentRate": "onChangeCurrentRate"; "onChangeTankHistory": "onChangeTankHistory"; "dataSourceLoading": "dataSourceLoading"; "dataSourceError": "dataSourceError"; "dataSourceLoaded": "dataSourceLoaded"; }, never, ["[list-template-controls]", "*"], false, never>;
|
|
3299
|
+
}
|
|
3300
|
+
|
|
3301
|
+
declare class ListTemplateModule {
|
|
3302
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListTemplateModule, never>;
|
|
3303
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ListTemplateModule, [typeof ListTemplateComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof DatatableModule], [typeof ListTemplateComponent]>;
|
|
3304
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ListTemplateModule>;
|
|
3305
|
+
}
|
|
3306
|
+
|
|
3049
3307
|
declare class SchedulerComponent extends BaseComponent implements AfterViewInit, OnDestroy {
|
|
3050
3308
|
private _services;
|
|
3051
3309
|
today: Date;
|
|
@@ -3154,24 +3412,6 @@ interface LogMethodLatencyModel extends CollectionDocument {
|
|
|
3154
3412
|
method: string;
|
|
3155
3413
|
}
|
|
3156
3414
|
|
|
3157
|
-
declare type SortMongo = string | Exclude<SortDirection, {
|
|
3158
|
-
$meta: string;
|
|
3159
|
-
}> | string[] | {
|
|
3160
|
-
[key: string]: SortDirection;
|
|
3161
|
-
} | Map<string, SortDirection> | [string, SortDirection][] | [string, SortDirection];
|
|
3162
|
-
/** @public */
|
|
3163
|
-
declare type SortDirection = 1 | -1 | 'asc' | 'desc' | 'ascending' | 'descending' | {
|
|
3164
|
-
$meta: string;
|
|
3165
|
-
};
|
|
3166
|
-
interface PaginationOptions {
|
|
3167
|
-
limit?: number;
|
|
3168
|
-
skip?: number;
|
|
3169
|
-
sort?: SortMongo;
|
|
3170
|
-
fields?: {
|
|
3171
|
-
[key: string]: number;
|
|
3172
|
-
};
|
|
3173
|
-
}
|
|
3174
|
-
|
|
3175
3415
|
interface UserGroupModel extends CollectionDocument {
|
|
3176
3416
|
name: string;
|
|
3177
3417
|
landing_page?: string;
|
|
@@ -3198,5 +3438,5 @@ declare const MongoExplorerModulePermission: ModulePermissionModel;
|
|
|
3198
3438
|
|
|
3199
3439
|
declare const SuperAdminModulePermission: ModulePermissionModel;
|
|
3200
3440
|
|
|
3201
|
-
export { AccountManagerService, AiAssistantComponent, AiFormAutoRegisterDirective, AiFormRegistryService, AiPageFormAdapterService, AiPageRouterService, AiTerminalComponent, AiTerminalModule, AiTerminalService, AlertService, Auth365Component, AuthGuard, AuthPermissionService, AuthService, AwsService, BaseComponent, CanDeactivateGuard, CollapseTableComponent, CollapseTableModule, CoreAuthModule, CoreComponent, CoreDialogModule, CoreLoggerModule, CoreModule, CoreService, CoreServicesModule, CoreShellModule, CoreTourService, DATATABLE_DEFAULT_CONFIG, DatatableCellTemplateDirective, DatatableComponent, DatatableModule, DateShortcutComponent, DateShortcutModule, DialogConfirmContent, DialogErrorContent, DialogInputContent, DialogLoginContent, DialogNotifyContent, DialogRegisterContent, DialogSelectArrayContent, DialogSelectArrayObjsContent, DialogSelectDataLabelsContent, DialogSelectDateTimeContent, DialogSelectWithButtonsURLContent, DialogService, DomSanitizorPipe, Draggable, DropEvent, Droppable, EnrollComponent, FeatureGateService, FileModule, FileUploadComponent, FilterEqualPipe, FilterNotEqualPipe, FocusDirective, ForgotPasswordComponent, FormButtonComponent, FormButtonModule, HomeComponent, HtmlDiffViewerComponent, JsonParsePipe, LoggerComponent, MinusCurrencyPipe, MongoExplorerModulePermission, NavbarMainComponent, NavbarModuleComponent, NgDragDropModule, NgDragDropService, OfflineManagerService, PhonePipe, PipeModule, ProviderService, ReportBuilderModulePermission, ResizeService, ResponsiveButtonGroupComponent, ResponsiveButtonGroupModule, ReversePipe, RioPaginationComponent, RioPaginationModule, SchedulerComponent, SchedulerModule, ScrollDirective, SharedModule, SocketManagerService, SocketService, SortTableDirective, SortTableHeaderComponent, SortTableModule, SortTableNgForComponent, Sortable as SortableJs, SortablejsDirective, SortablejsModule, StorageDB, SuperAdminModulePermission, TitleCaseAndUnderscorePipe, TokenManagerService, TourAnchorDirective, UserRoleComponent, UserRoleModule, ValidationService, WindowRefService, applyMongoUpdate, b64toBlobURL, blobToFile, dateOnlyEndOfDayTz, dateOnlyStartOfDayTz, dateReviver, deepCopy, deepDiffDetails, exportCsv, generateCronStringFromDate, isUpperCase, mergeDeep, momentTz, pad, provideDatatableDefaultConfig, rioDatePickerConfigFactory, round, s2ab, toDataURL, toTitleCase, type };
|
|
3202
|
-
export type { ActiveClientSubscriptionModel, AiFormRegistryEntry, AiPageAdapter, AiPageContext, AiPageContextMode, AiPageRequest, AiPageResult, AiPageSchema, AiTerminalAttachmentModel, AiTerminalConfig$1 as AiTerminalConfig, AiTerminalConversationModel, AiTerminalConversationStatus, AiTerminalDisplayTable, AiTerminalMessageModel, AiTerminalMessageRole, AiTerminalMessageUsage, AiTerminalMethodNames, AiTerminalMode, AiTerminalMongoAccess, AiTerminalMongoConfig, AiTerminalToolResult, AppStatusModel, CanComponentDeactivate, CollectionDocument, CronJobModel, CsvExportOptions, DatatableButtonAction, DatatableCellActionEvent, DatatableColumn, DatatableColumnAlign, DatatableColumnFilter, DatatableColumnFilterOperator, DatatableColumnFilterType, DatatableColumnTypes, DatatableDefaultConfig, DatatableInputConfig, DatatableModel, DatatablePipeConfig, DatatablePipeName, DatatableProgressConfig, DatatableRowClickEvent, DatatableRowNavigationMode, DatatableSelectConfig, DatatableSelectOption, DialogInputFieldModel, DialogInputFieldSelectOptions, DialogSelectWithButtonsOptionModel, FileModel, LogMethodLatencyModel, ModulePermissionApprovalModel, ModulePermissionModel, ModulePermissionViewModel, NavbarMainTabLinkModel, NavbarMainTabModel, NavbarMainTabType, NavbarModel, NavbarTabModel, OtherObject, PaginationOptions, ScrollEvent, SelectDataLabelModel, Sort, SortDirection, SortDirectionType, SortMongo, Sortable$1 as Sortable, SortableEvent as SortablejsEvent, Options as SortablejsOptions, SubscriptionModel, SubscriptionPubModel, UserDelegateModel, UserEmploymentLevelType, UserGroupModel, UserGroupNotificationModel, UserGroupPermissionModel, UserGroupViewModel, UserModel, UserNotificationConfigModel, UserNotificationModel, UserNotificationSubTypes, UserNotificationTypes, UserRoleApprovalModel, UserRoleGroupModel, UserRoleModel, UserSettingsModel, UserSupervisorModel, alertType };
|
|
3441
|
+
export { AccountManagerService, AiAssistantComponent, AiFormAutoRegisterDirective, AiFormRegistryService, AiPageFormAdapterService, AiPageRouterService, AiTerminalComponent, AiTerminalModule, AiTerminalService, AlertService, Auth365Component, AuthGuard, AuthPermissionService, AuthService, AwsService, BaseComponent, CanDeactivateGuard, CollapseTableComponent, CollapseTableModule, CoreAuthModule, CoreComponent, CoreDialogModule, CoreLoggerModule, CoreModule, CoreService, CoreServicesModule, CoreShellModule, CoreTourService, DATATABLE_DEFAULT_CONFIG, DatatableCellTemplateDirective, DatatableComponent, DatatableModule, DateShortcutComponent, DateShortcutModule, DialogConfirmContent, DialogErrorContent, DialogInputContent, DialogLoginContent, DialogNotifyContent, DialogRegisterContent, DialogSelectArrayContent, DialogSelectArrayObjsContent, DialogSelectDataLabelsContent, DialogSelectDateTimeContent, DialogSelectWithButtonsURLContent, DialogService, DomSanitizorPipe, Draggable, DropEvent, Droppable, EnrollComponent, FeatureGateService, FileModule, FileUploadComponent, FilterEqualPipe, FilterNotEqualPipe, FocusDirective, ForgotPasswordComponent, FormButtonComponent, FormButtonModule, HomeComponent, HtmlDiffViewerComponent, JsonParsePipe, ListComponent, ListTemplateComponent, ListTemplateModule, ListTemplateStateService, LoggerComponent, MinusCurrencyPipe, MongoExplorerModulePermission, NavbarMainComponent, NavbarModuleComponent, NgDragDropModule, NgDragDropService, OfflineManagerService, PhonePipe, PipeModule, ProviderService, ReportBuilderModulePermission, ResizeService, ResponsiveButtonGroupComponent, ResponsiveButtonGroupModule, ReversePipe, RioPaginationComponent, RioPaginationModule, SchedulerComponent, SchedulerModule, ScrollDirective, SharedModule, SocketManagerService, SocketService, SortTableDirective, SortTableHeaderComponent, SortTableModule, SortTableNgForComponent, Sortable as SortableJs, SortablejsDirective, SortablejsModule, StorageDB, SuperAdminModulePermission, TitleCaseAndUnderscorePipe, TokenManagerService, TourAnchorDirective, UserRoleComponent, UserRoleModule, ValidationService, WindowRefService, applyMongoUpdate, b64toBlobURL, blobToFile, buildDatatableColumnFilterClauses, buildMappedFilterClauses, buildRegexOrSearchClause, buildSearchClause, dateElementToEndDate, dateElementToStartDate, dateOnlyEndOfDayTz, dateOnlyStartOfDayTz, dateReviver, deepCopy, deepDiffDetails, escapeRegExp, exportCsv, generateCronStringFromDate, hasActiveDatatableColumnFilter, isUpperCase, mergeDeep, momentTz, pad, provideDatatableDefaultConfig, rioDatePickerConfigFactory, round, s2ab, toDataURL, toTitleCase, type };
|
|
3442
|
+
export type { ActiveClientSubscriptionModel, AiFormRegistryEntry, AiPageAdapter, AiPageContext, AiPageContextMode, AiPageRequest, AiPageResult, AiPageSchema, AiTerminalAttachmentModel, AiTerminalConfig$1 as AiTerminalConfig, AiTerminalConversationModel, AiTerminalConversationStatus, AiTerminalDisplayTable, AiTerminalMessageModel, AiTerminalMessageRole, AiTerminalMessageUsage, AiTerminalMethodNames, AiTerminalMode, AiTerminalMongoAccess, AiTerminalMongoConfig, AiTerminalToolResult, AppStatusModel, CanComponentDeactivate, CollectionDocument, CronJobModel, CsvExportOptions, DatatableButtonAction, DatatableCellActionEvent, DatatableColumn, DatatableColumnAlign, DatatableColumnFilter, DatatableColumnFilterOperator, DatatableColumnFilterType, DatatableColumnTypes, DatatableDefaultConfig, DatatableInputConfig, DatatableModel, DatatablePipeConfig, DatatablePipeName, DatatableProgressConfig, DatatableRowClickEvent, DatatableRowNavigationMode, DatatableSelectConfig, DatatableSelectOption, DateElementLike, DialogInputFieldModel, DialogInputFieldSelectOptions, DialogSelectWithButtonsOptionModel, FileModel, ListTemplateAutoFilterConfig, ListTemplateBuildQueryParamsOptions, ListTemplateDataSourceConfig, ListTemplateDataSourceContext, ListTemplateDateElement, ListTemplateFilterOption, ListTemplateQueryStateOptions, ListTemplateQueryStateResult, ListTemplateSearchMode, LogMethodLatencyModel, ModulePermissionApprovalModel, ModulePermissionModel, ModulePermissionViewModel, NavbarMainTabLinkModel, NavbarMainTabModel, NavbarMainTabType, NavbarModel, NavbarTabModel, OtherObject, PaginationOptions, QueryFilterMapping, QuerySearchClauseOptions, QuerySearchMode, ScrollEvent, SelectDataLabelModel, Sort, SortDirection, SortDirectionType, SortMongo, Sortable$1 as Sortable, SortableEvent as SortablejsEvent, Options as SortablejsOptions, SubscriptionModel, SubscriptionPubModel, UserDelegateModel, UserEmploymentLevelType, UserGroupModel, UserGroupNotificationModel, UserGroupPermissionModel, UserGroupViewModel, UserModel, UserNotificationConfigModel, UserNotificationModel, UserNotificationSubTypes, UserNotificationTypes, UserRoleApprovalModel, UserRoleGroupModel, UserRoleModel, UserSettingsModel, UserSupervisorModel, alertType };
|