@nettyapps/ntybase 21.1.35 → 21.1.37
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
|
@@ -1146,5 +1146,57 @@ declare abstract class NettyAppsFilterBase<Trecord, Tfilter> extends NettyAppsBa
|
|
|
1146
1146
|
static ɵcmp: i0.ɵɵComponentDeclaration<NettyAppsFilterBase<any, any>, "ntybase-netty-apps-base", never, { "isFilterExpanded": { "alias": "isFilterExpanded"; "required": false; "isSignal": true; }; "refresh": { "alias": "refresh"; "required": false; "isSignal": true; }; "fileName": { "alias": "fileName"; "required": false; "isSignal": true; }; }, { "isFilterExpanded": "isFilterExpandedChange"; "filteredRecords": "filteredRecords"; "filterSelectionChanged": "filterSelectionChanged"; }, never, never, true, never>;
|
|
1147
1147
|
}
|
|
1148
1148
|
|
|
1149
|
-
|
|
1150
|
-
|
|
1149
|
+
declare class ParseLog implements NettyEntityInterface<ParseLog> {
|
|
1150
|
+
rowIndex: number;
|
|
1151
|
+
message: string;
|
|
1152
|
+
level: 'INFO' | 'WARN' | 'ERROR';
|
|
1153
|
+
messageKey?: string;
|
|
1154
|
+
messageParams?: any;
|
|
1155
|
+
init(): void;
|
|
1156
|
+
compare(other: ParseLog): ParseLog;
|
|
1157
|
+
getPK(): number;
|
|
1158
|
+
setPK(pk: any): void;
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
type ConverterFn = (value: any) => any;
|
|
1162
|
+
interface ColumnMapping<T> {
|
|
1163
|
+
index: number;
|
|
1164
|
+
prop: keyof T;
|
|
1165
|
+
headerName?: string;
|
|
1166
|
+
required?: boolean;
|
|
1167
|
+
defaultValue?: any;
|
|
1168
|
+
converter?: ConverterFn;
|
|
1169
|
+
sampleValue?: any | ((index: number) => any);
|
|
1170
|
+
}
|
|
1171
|
+
interface ExcelParserOptions {
|
|
1172
|
+
sheetIndex?: number;
|
|
1173
|
+
headerRowIndex?: number;
|
|
1174
|
+
}
|
|
1175
|
+
interface ExcelSampleOptions {
|
|
1176
|
+
sampleCount?: number;
|
|
1177
|
+
fileName?: string;
|
|
1178
|
+
sheetName?: string;
|
|
1179
|
+
}
|
|
1180
|
+
declare class ExcelParserError extends Error {
|
|
1181
|
+
key: string;
|
|
1182
|
+
params?: any | undefined;
|
|
1183
|
+
constructor(key: string, params?: any | undefined);
|
|
1184
|
+
}
|
|
1185
|
+
declare class ExcelParser<T> {
|
|
1186
|
+
private mappings;
|
|
1187
|
+
constructor(mappings: ColumnMapping<T>[]);
|
|
1188
|
+
parse(file: File, options?: ExcelParserOptions): Promise<{
|
|
1189
|
+
data: T[];
|
|
1190
|
+
logs: ParseLog[];
|
|
1191
|
+
}>;
|
|
1192
|
+
generateSampleExcel(options?: ExcelSampleOptions): Promise<void>;
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
declare const toNumber: (v: any) => number | null;
|
|
1196
|
+
declare const toDate: (v: any) => Date | null;
|
|
1197
|
+
declare const toBoolean: (v: any) => boolean | null;
|
|
1198
|
+
declare const toUpperString: (v: any) => string | null;
|
|
1199
|
+
declare const toEnum: <T>(v: any, enumObj: any) => T | null;
|
|
1200
|
+
|
|
1201
|
+
export { AlertService, AuthenticationGuard, AuthenticationInterceptor, AuthenticationService, ButtonRenderer, CanDeactivateGuard, CheckboxRenderer, CommonService, ConfirmDialog, CredentialsService, CurrentUserPreference, ENVIRONMENT_CONFIG, EnvironmentInfo, EnvironmentInfoService, ErrorAlert, ExcelImportBase, ExcelParser, ExcelParserError, ForgotPassword, Guid, Login, LoginDto, MFACodeDto, MfaLogin, NettyAgGridBase, NettyAgGridListBase, NettyAgGridListFilterBase, NettyAgGridLogBase, NettyAgGridSaveBase, NettyAgGridService, NettyAppsBase, NettyAppsFilterBase, NettyBaseApp, NettyHelper, NettyImageService, NettyMenuService, NtyLoadingComponent, NtyLoadingInterceptor, NtyLoadingService, Ntybase, NtybaseModule, PageTitle, ParseLog, RangeDateTimeFilter, RangeNumberFilter, RangeStringFilter, UrlHelperService, ntyAuthenticationInterceptor, toBoolean, toDate, toEnum, toNumber, toUpperString };
|
|
1202
|
+
export type { AgGridSelectionModeType, CanComponentDeactivate, ColumnMapping, ConverterFn, Credentials, EnvironmentConfig, ExcelParserOptions, ExcelSampleOptions, LoginContext, MFACodeContext, NettyEntityInterface, NettyEntityLogInterface, UserViewMode };
|