@sarafapp/iron_core 1.0.64 → 1.0.66
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 +2 -2
- package/dist/core/src/BaseModel.d.ts +0 -45
- package/dist/core/src/Utils.d.ts +0 -4
- package/dist/core/src/accessHandling/AccessControl.d.ts +0 -10
- package/dist/core/src/accessHandling/AccessLevel.d.ts +0 -13
- package/dist/core/src/accessHandling/Accessible.d.ts +0 -3
- package/dist/core/src/accessHandling/EveryDirectiveAccess.d.ts +0 -4
- package/dist/core/src/accessHandling/SSO/AuthorizationDirective.d.ts +0 -17
- package/dist/core/src/accessHandling/SSO/AuthorizationService.d.ts +0 -17
- package/dist/core/src/accessHandling/SSO/EveryLevelAuthorizationDirective.d.ts +0 -4
- package/dist/core/src/accessHandling/SSO/SomeLevelsAuthorizationDirective.d.ts +0 -4
- package/dist/core/src/accessHandling/SomeDirectiveAccess.d.ts +0 -4
- package/dist/core/src/accessHandling/index.d.ts +0 -9
- package/dist/core/src/baseDirective/BeforeMountDirective.d.ts +0 -3
- package/dist/core/src/baseDirective/BeforeUnMountDirective.d.ts +0 -3
- package/dist/core/src/baseDirective/BeforeUpdateDirective.d.ts +0 -3
- package/dist/core/src/baseDirective/CreatedDirective.d.ts +0 -3
- package/dist/core/src/baseDirective/MountedDirective.d.ts +0 -3
- package/dist/core/src/baseDirective/UnMountedDirective.d.ts +0 -3
- package/dist/core/src/baseDirective/UpdateDirective.d.ts +0 -3
- package/dist/core/src/baseDirective/index.d.ts +0 -7
- package/dist/core/src/baseForm/BaseRequestBodyFilter.d.ts +0 -4
- package/dist/core/src/baseForm/FormManager.d.ts +0 -18
- package/dist/core/src/baseForm/InputControl.d.ts +0 -40
- package/dist/core/src/baseForm/InputControlBuilder.d.ts +0 -16
- package/dist/core/src/baseForm/InputControlData.d.ts +0 -15
- package/dist/core/src/baseForm/RequestBodyFilter.d.ts +0 -3
- package/dist/core/src/baseForm/TouchSensitiveForm.d.ts +0 -9
- package/dist/core/src/baseForm/UseForm.d.ts +0 -18
- package/dist/core/src/baseForm/index.d.ts +0 -8
- package/dist/core/src/baseSchedule/Schedule.d.ts +0 -3
- package/dist/core/src/baseSchedule/Scheduler.d.ts +0 -8
- package/dist/core/src/baseSchedule/index.d.ts +0 -2
- package/dist/core/src/baseTable/BaseTable.d.ts +0 -47
- package/dist/core/src/baseTable/Constants.d.ts +0 -13
- package/dist/core/src/baseTable/OnDestory.d.ts +0 -3
- package/dist/core/src/baseTable/RowActionSource.d.ts +0 -4
- package/dist/core/src/baseTable/RowClick.d.ts +0 -3
- package/dist/core/src/baseTable/RowDoubleClick.d.ts +0 -3
- package/dist/core/src/baseTable/RowMetaClick.d.ts +0 -3
- package/dist/core/src/baseTable/SelectableTable.d.ts +0 -19
- package/dist/core/src/baseTable/TableAction.d.ts +0 -8
- package/dist/core/src/baseTable/TableHeaderSchema.d.ts +0 -27
- package/dist/core/src/baseTable/TableLoader.d.ts +0 -3
- package/dist/core/src/baseTable/TablePaginate.d.ts +0 -3
- package/dist/core/src/baseTable/TableService.d.ts +0 -9
- package/dist/core/src/baseTable/TableSort.d.ts +0 -4
- package/dist/core/src/baseTable/TableSummarySchema.d.ts +0 -9
- package/dist/core/src/baseTable/generator/SelectableTableGenerator.d.ts +0 -14
- package/dist/core/src/baseTable/generator/TableCellComponentRegistry.d.ts +0 -7
- package/dist/core/src/baseTable/generator/TableConfig.d.ts +0 -7
- package/dist/core/src/baseTable/generator/TableGenerator.d.ts +0 -37
- package/dist/core/src/baseTable/generator/TableSource.d.ts +0 -24
- package/dist/core/src/baseTable/index.d.ts +0 -23
- package/dist/core/src/baseTable/moduleConnection/Action.d.ts +0 -3
- package/dist/core/src/baseTable/moduleConnection/Column.d.ts +0 -3
- package/dist/core/src/baseTable/moduleConnection/Table.d.ts +0 -4
- package/dist/core/src/baseTable/moduleConnection/TableDestroy.d.ts +0 -2
- package/dist/core/src/baseTable/moduleConnection/TableRowClick.d.ts +0 -2
- package/dist/core/src/baseTable/moduleConnection/generator/GColumn.d.ts +0 -2
- package/dist/core/src/baseTable/moduleConnection/generator/GTable.d.ts +0 -2
- package/dist/core/src/composables/UseCrud.d.ts +0 -10
- package/dist/core/src/composables/UseData.d.ts +0 -15
- package/dist/core/src/composables/UseLoadingStatus.d.ts +0 -15
- package/dist/core/src/composables/UseParams.d.ts +0 -17
- package/dist/core/src/composables/UseRepository.d.ts +0 -67
- package/dist/core/src/composables/UseState.d.ts +0 -2
- package/dist/core/src/composables/UseStaticTableService.d.ts +0 -5
- package/dist/core/src/composables/index.d.ts +0 -7
- package/dist/core/src/constants/Constants.d.ts +0 -108
- package/dist/core/src/constants/index.d.ts +0 -1
- package/dist/core/src/crudService/CrudService.d.ts +0 -22
- package/dist/core/src/crudService/index.d.ts +0 -1
- package/dist/core/src/dateHandling/Constants.d.ts +0 -5
- package/dist/core/src/dateHandling/Converter.d.ts +0 -5
- package/dist/core/src/dateHandling/JalaliDateSetup.d.ts +0 -1
- package/dist/core/src/dateHandling/Model.d.ts +0 -12
- package/dist/core/src/dateHandling/Utils.d.ts +0 -8
- package/dist/core/src/dateHandling/index.d.ts +0 -5
- package/dist/core/src/debounce/DebounceAction.d.ts +0 -4
- package/dist/core/src/debounce/DebounceService.d.ts +0 -9
- package/dist/core/src/debounce/index.d.ts +0 -2
- package/dist/core/src/deviceManagement/Constants.d.ts +0 -4
- package/dist/core/src/deviceManagement/Visibility.d.ts +0 -4
- package/dist/core/src/deviceManagement/VisibilityManager.d.ts +0 -6
- package/dist/core/src/deviceManagement/index.d.ts +0 -3
- package/dist/core/src/errorHandling/ErrorHandler.d.ts +0 -3
- package/dist/core/src/errorHandling/HandleError.d.ts +0 -2
- package/dist/core/src/errorHandling/index.d.ts +0 -2
- package/dist/core/src/eventSystem/CustomEventDispatcher.d.ts +0 -5
- package/dist/core/src/eventSystem/Model.d.ts +0 -8
- package/dist/core/src/eventSystem/OnEvent.d.ts +0 -1
- package/dist/core/src/eventSystem/index.d.ts +0 -3
- package/dist/core/src/feedbackHandling/FailureFeedback.d.ts +0 -3
- package/dist/core/src/feedbackHandling/Feedback.d.ts +0 -11
- package/dist/core/src/feedbackHandling/HandleFeedback.d.ts +0 -2
- package/dist/core/src/feedbackHandling/InfoFeedback.d.ts +0 -3
- package/dist/core/src/feedbackHandling/SuccessFeedback.d.ts +0 -3
- package/dist/core/src/feedbackHandling/WarningFeedback.d.ts +0 -3
- package/dist/core/src/feedbackHandling/index.d.ts +0 -6
- package/dist/core/src/httpClient/ApiBuilder.d.ts +0 -14
- package/dist/core/src/httpClient/ErrorHandlerRegistry.d.ts +0 -10
- package/dist/core/src/httpClient/HttpClient.d.ts +0 -14
- package/dist/core/src/httpClient/Interceptor.d.ts +0 -4
- package/dist/core/src/httpClient/index.d.ts +0 -4
- package/dist/core/src/initializer/ApplicationInitializer.d.ts +0 -6
- package/dist/core/src/initializer/Initializer.d.ts +0 -3
- package/dist/core/src/initializer/index.d.ts +0 -2
- package/dist/core/src/json/JsonMapper.d.ts +0 -18
- package/dist/core/src/json/index.d.ts +0 -1
- package/dist/core/src/layout/Constants.d.ts +0 -10
- package/dist/core/src/layout/DialogService.d.ts +0 -406
- package/dist/core/src/layout/DrawerService.d.ts +0 -14
- package/dist/core/src/layout/Toast.d.ts +0 -8
- package/dist/core/src/layout/index.d.ts +0 -4
- package/dist/core/src/lib/Constants.d.ts +0 -20
- package/dist/core/src/lib/Formatter.d.ts +0 -10
- package/dist/core/src/lib/Util.d.ts +0 -12
- package/dist/core/src/lib/index.d.ts +0 -3
- package/dist/core/src/observables/AbstractSubject.d.ts +0 -7
- package/dist/core/src/observables/BehaviorSubject.d.ts +0 -16
- package/dist/core/src/observables/Observer.d.ts +0 -3
- package/dist/core/src/observables/Subject.d.ts +0 -6
- package/dist/core/src/observables/index.d.ts +0 -4
- package/dist/core/src/process/Proccess.d.ts +0 -9
- package/dist/core/src/process/ProcessManager.d.ts +0 -10
- package/dist/core/src/process/index.d.ts +0 -2
- package/dist/core/src/repository/Params.d.ts +0 -11
- package/dist/core/src/repository/Repository.d.ts +0 -38
- package/dist/core/src/repository/SyncDetail.d.ts +0 -5
- package/dist/core/src/repository/index.d.ts +0 -4
- package/dist/core/src/repository/model.d.ts +0 -5
- package/dist/core/src/routeGuard/RouteGuard.d.ts +0 -7
- package/dist/core/src/routeGuard/index.d.ts +0 -1
- package/dist/core/src/search/client/ClientArraySearch.d.ts +0 -4
- package/dist/core/src/search/client/ClientSearch.d.ts +0 -3
- package/dist/core/src/search/index.d.ts +0 -2
- package/dist/core/src/sort/SortDetail.d.ts +0 -6
- package/dist/core/src/sort/client/Sorter.d.ts +0 -6
- package/dist/core/src/sort/index.d.ts +0 -4
- package/dist/core/src/sort/strategies/SimpleSort.d.ts +0 -5
- package/dist/core/src/sort/strategies/SortStrategy.d.ts +0 -4
- package/dist/core/src/types/Global.d.ts +0 -1
- package/dist/core/src/types/index.d.ts +0 -1
- package/dist/core/src/validators/Validator.d.ts +0 -4
- package/dist/core/src/validators/index.d.ts +0 -1
- package/dist/core/src/webSocket/Constants.d.ts +0 -6
- package/dist/core/src/webSocket/Model.d.ts +0 -6
- package/dist/core/src/webSocket/WebSocketService.d.ts +0 -30
- package/dist/core/src/webSocket/index.d.ts +0 -3
- package/dist/example-vue/src/AntTableConfig.d.ts +0 -6
- package/dist/example-vue/src/TableService.d.ts +0 -12
- package/dist/example-vue/src/TextCell.vue.d.ts +0 -5
- package/dist/example-vue/src/app/App.vue.d.ts +0 -2
- package/dist/example-vue/src/app/router/index.d.ts +0 -1
- package/dist/example-vue/src/app/screens/Index.vue.d.ts +0 -2
- package/dist/example-vue/src/main.d.ts +0 -0
- package/src/BaseModel.ts +0 -127
- package/src/Utils.ts +0 -16
- package/src/accessHandling/AccessControl.ts +0 -33
- package/src/accessHandling/AccessLevel.ts +0 -52
- package/src/accessHandling/Accessible.ts +0 -3
- package/src/accessHandling/EveryDirectiveAccess.ts +0 -7
- package/src/accessHandling/SSO/AuthorizationDirective.ts +0 -65
- package/src/accessHandling/SSO/AuthorizationService.ts +0 -74
- package/src/accessHandling/SSO/EveryLevelAuthorizationDirective.ts +0 -7
- package/src/accessHandling/SSO/SomeLevelsAuthorizationDirective.ts +0 -7
- package/src/accessHandling/SomeDirectiveAccess.ts +0 -7
- package/src/accessHandling/index.ts +0 -9
- package/src/baseDirective/BeforeMountDirective.ts +0 -3
- package/src/baseDirective/BeforeUnMountDirective.ts +0 -3
- package/src/baseDirective/BeforeUpdateDirective.ts +0 -3
- package/src/baseDirective/CreatedDirective.ts +0 -3
- package/src/baseDirective/MountedDirective.ts +0 -3
- package/src/baseDirective/UnMountedDirective.ts +0 -3
- package/src/baseDirective/UpdateDirective.ts +0 -3
- package/src/baseDirective/index.ts +0 -7
- package/src/baseForm/BaseRequestBodyFilter.ts +0 -7
- package/src/baseForm/FormManager.ts +0 -95
- package/src/baseForm/InputControl.ts +0 -182
- package/src/baseForm/InputControlBuilder.ts +0 -59
- package/src/baseForm/InputControlData.ts +0 -16
- package/src/baseForm/RequestBodyFilter.ts +0 -3
- package/src/baseForm/TouchSensitiveForm.ts +0 -47
- package/src/baseForm/UseForm.ts +0 -32
- package/src/baseForm/index.ts +0 -8
- package/src/baseSchedule/Schedule.ts +0 -3
- package/src/baseSchedule/Scheduler.ts +0 -29
- package/src/baseSchedule/index.ts +0 -2
- package/src/baseTable/BaseTable.ts +0 -162
- package/src/baseTable/Constants.ts +0 -26
- package/src/baseTable/OnDestory.ts +0 -3
- package/src/baseTable/RowActionSource.ts +0 -5
- package/src/baseTable/RowClick.ts +0 -3
- package/src/baseTable/RowDoubleClick.ts +0 -3
- package/src/baseTable/RowMetaClick.ts +0 -3
- package/src/baseTable/SelectableTable.ts +0 -86
- package/src/baseTable/TableAction.ts +0 -10
- package/src/baseTable/TableHeaderSchema.ts +0 -44
- package/src/baseTable/TableLoader.ts +0 -3
- package/src/baseTable/TablePaginate.ts +0 -3
- package/src/baseTable/TableService.ts +0 -10
- package/src/baseTable/TableSort.ts +0 -5
- package/src/baseTable/TableSummarySchema.ts +0 -11
- package/src/baseTable/generator/SelectableTableGenerator.ts +0 -65
- package/src/baseTable/generator/TableCellComponentRegistry.ts +0 -15
- package/src/baseTable/generator/TableConfig.ts +0 -18
- package/src/baseTable/generator/TableGenerator.ts +0 -147
- package/src/baseTable/generator/TableSource.ts +0 -34
- package/src/baseTable/index.ts +0 -43
- package/src/baseTable/moduleConnection/Action.ts +0 -12
- package/src/baseTable/moduleConnection/Column.ts +0 -11
- package/src/baseTable/moduleConnection/Table.ts +0 -49
- package/src/baseTable/moduleConnection/TableDestroy.ts +0 -7
- package/src/baseTable/moduleConnection/TableRowClick.ts +0 -7
- package/src/baseTable/moduleConnection/generator/GColumn.ts +0 -10
- package/src/baseTable/moduleConnection/generator/GTable.ts +0 -11
- package/src/composables/UseCrud.ts +0 -53
- package/src/composables/UseData.ts +0 -70
- package/src/composables/UseLoadingStatus.ts +0 -65
- package/src/composables/UseParams.ts +0 -93
- package/src/composables/UseRepository.ts +0 -207
- package/src/composables/UseState.ts +0 -30
- package/src/composables/UseStaticTableService.ts +0 -45
- package/src/composables/index.ts +0 -7
- package/src/constants/Constants.ts +0 -126
- package/src/constants/index.ts +0 -19
- package/src/crudService/CrudService.ts +0 -121
- package/src/crudService/index.ts +0 -1
- package/src/dateHandling/Constants.ts +0 -5
- package/src/dateHandling/Converter.ts +0 -15
- package/src/dateHandling/JalaliDateSetup.ts +0 -42
- package/src/dateHandling/Model.ts +0 -27
- package/src/dateHandling/Utils.ts +0 -49
- package/src/dateHandling/index.ts +0 -5
- package/src/debounce/DebounceAction.ts +0 -4
- package/src/debounce/DebounceService.ts +0 -27
- package/src/debounce/index.ts +0 -2
- package/src/deviceManagement/Constants.ts +0 -4
- package/src/deviceManagement/Visibility.ts +0 -4
- package/src/deviceManagement/VisibilityManager.ts +0 -18
- package/src/deviceManagement/index.ts +0 -3
- package/src/errorHandling/ErrorHandler.ts +0 -3
- package/src/errorHandling/HandleError.ts +0 -20
- package/src/errorHandling/index.ts +0 -2
- package/src/eventSystem/CustomEventDispatcher.ts +0 -13
- package/src/eventSystem/Model.ts +0 -29
- package/src/eventSystem/OnEvent.ts +0 -25
- package/src/eventSystem/index.ts +0 -3
- package/src/feedbackHandling/FailureFeedback.ts +0 -3
- package/src/feedbackHandling/Feedback.ts +0 -34
- package/src/feedbackHandling/HandleFeedback.ts +0 -28
- package/src/feedbackHandling/InfoFeedback.ts +0 -3
- package/src/feedbackHandling/SuccessFeedback.ts +0 -3
- package/src/feedbackHandling/WarningFeedback.ts +0 -3
- package/src/feedbackHandling/index.ts +0 -6
- package/src/httpClient/ApiBuilder.ts +0 -57
- package/src/httpClient/ErrorHandlerRegistry.ts +0 -29
- package/src/httpClient/HttpClient.ts +0 -77
- package/src/httpClient/Interceptor.ts +0 -5
- package/src/httpClient/index.ts +0 -4
- package/src/initializer/ApplicationInitializer.ts +0 -15
- package/src/initializer/Initializer.ts +0 -3
- package/src/initializer/index.ts +0 -2
- package/src/json/JsonMapper.ts +0 -48
- package/src/json/index.ts +0 -1
- package/src/layout/Constants.ts +0 -11
- package/src/layout/DialogService.ts +0 -75
- package/src/layout/DrawerService.ts +0 -25
- package/src/layout/Toast.ts +0 -14
- package/src/layout/index.ts +0 -4
- package/src/lib/Constants.ts +0 -433
- package/src/lib/Formatter.ts +0 -68
- package/src/lib/Util.ts +0 -113
- package/src/lib/index.ts +0 -3
- package/src/observables/AbstractSubject.ts +0 -21
- package/src/observables/BehaviorSubject.ts +0 -58
- package/src/observables/Observer.ts +0 -3
- package/src/observables/Subject.ts +0 -9
- package/src/observables/index.ts +0 -4
- package/src/process/Proccess.ts +0 -21
- package/src/process/ProcessManager.ts +0 -31
- package/src/process/index.ts +0 -2
- package/src/repository/Params.ts +0 -10
- package/src/repository/Repository.ts +0 -44
- package/src/repository/SyncDetail.ts +0 -8
- package/src/repository/index.ts +0 -4
- package/src/repository/model.ts +0 -9
- package/src/routeGuard/RouteGuard.ts +0 -38
- package/src/routeGuard/index.ts +0 -1
- package/src/search/client/ClientArraySearch.ts +0 -25
- package/src/search/client/ClientSearch.ts +0 -3
- package/src/search/index.ts +0 -2
- package/src/sort/SortDetail.ts +0 -11
- package/src/sort/client/Sorter.ts +0 -28
- package/src/sort/index.ts +0 -4
- package/src/sort/strategies/SimpleSort.ts +0 -35
- package/src/sort/strategies/SortStrategy.ts +0 -4
- package/src/types/Global.ts +0 -1
- package/src/types/index.ts +0 -1
- package/src/validators/Validator.ts +0 -5
- package/src/validators/index.ts +0 -1
- package/src/webSocket/Constants.ts +0 -6
- package/src/webSocket/Model.ts +0 -16
- package/src/webSocket/WebSocketService.ts +0 -153
- package/src/webSocket/index.ts +0 -3
- package/vite.config.ts +0 -55
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { BehaviorSubject } from '../../observables';
|
|
2
|
-
import { SortDetail } from '../../sort';
|
|
3
|
-
import { TableHeaderSchema } from '../TableHeaderSchema';
|
|
4
|
-
import { Nullable } from '../../types';
|
|
5
|
-
import { TableSummarySchema } from '../TableSummarySchema';
|
|
6
|
-
import { TableSource } from './TableSource';
|
|
7
|
-
import { AccessLevel } from '../../accessHandling';
|
|
8
|
-
import { TableAction } from '../TableAction';
|
|
9
|
-
export declare class TableGenerator<T> {
|
|
10
|
-
rows: BehaviorSubject<T[]>;
|
|
11
|
-
headerSchema: BehaviorSubject<TableHeaderSchema<T>[]>;
|
|
12
|
-
currentPage: BehaviorSubject<number>;
|
|
13
|
-
currentPageSize: BehaviorSubject<number>;
|
|
14
|
-
totalItems: BehaviorSubject<number>;
|
|
15
|
-
protected currentSortDetail: BehaviorSubject<SortDetail<T>>;
|
|
16
|
-
scrollDetail: BehaviorSubject<Nullable<boolean | {
|
|
17
|
-
x?: number;
|
|
18
|
-
y?: number;
|
|
19
|
-
}>>;
|
|
20
|
-
isExpandable: BehaviorSubject<boolean>;
|
|
21
|
-
protected tableSource: TableSource<T>;
|
|
22
|
-
protected accessService: AccessLevel;
|
|
23
|
-
constructor(tableSource: TableSource<T>);
|
|
24
|
-
load(): Promise<void>;
|
|
25
|
-
paginate(nextPage: number, pageSize: number): Promise<void>;
|
|
26
|
-
private shouldSendPaginationRequest;
|
|
27
|
-
sort(sortDetail: SortDetail<T>): Promise<void>;
|
|
28
|
-
private shouldSendSortRequest;
|
|
29
|
-
handleClick(row: T): Promise<void>;
|
|
30
|
-
handleMetaClick(row: T): Promise<void>;
|
|
31
|
-
handleDoubleClick(row: T): Promise<void>;
|
|
32
|
-
hasAnyAction(): boolean;
|
|
33
|
-
getRowActions(row: T): TableAction<T>[];
|
|
34
|
-
loadSummarySchema(): TableSummarySchema;
|
|
35
|
-
private filterItemsBaseOnAccessLevel;
|
|
36
|
-
onDestroy(): Promise<void>;
|
|
37
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { TableHeaderSchema } from '../TableHeaderSchema';
|
|
2
|
-
import { SortDetail } from '../../sort';
|
|
3
|
-
import { TableSummarySchema } from '../TableSummarySchema';
|
|
4
|
-
import { TableAction } from '../TableAction';
|
|
5
|
-
export interface TableSource<T> {
|
|
6
|
-
loadRows(): Promise<T[]>;
|
|
7
|
-
loadHeaderSchema(): Promise<TableHeaderSchema<T>[]>;
|
|
8
|
-
loadRowActions(row: T): TableAction<T>[];
|
|
9
|
-
paginate(nextPage: number, pageSize: number): Promise<T[]>;
|
|
10
|
-
sort(sortDetail: SortDetail<T>): Promise<T[]>;
|
|
11
|
-
onTableDestroy(): void;
|
|
12
|
-
}
|
|
13
|
-
export interface RowClick<T> extends TableSource<T> {
|
|
14
|
-
onRowClick(row: T): Promise<void>;
|
|
15
|
-
}
|
|
16
|
-
export interface RowMetaClick<T> extends TableSource<T> {
|
|
17
|
-
onRowMetaClick(row: T): Promise<void>;
|
|
18
|
-
}
|
|
19
|
-
export interface handleDoubleClick<T> extends TableSource<T> {
|
|
20
|
-
onRowDoubleClick(row: T): Promise<void>;
|
|
21
|
-
}
|
|
22
|
-
export interface TableSummary<T> extends TableSource<T> {
|
|
23
|
-
loadSummarySchema(): Promise<TableSummarySchema>;
|
|
24
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export type { TableAction } from './TableAction';
|
|
2
|
-
export type { TableService } from './TableService';
|
|
3
|
-
export type { Destroy } from './OnDestory';
|
|
4
|
-
export type { RowActionSource } from './RowActionSource';
|
|
5
|
-
export type { TableLoader } from './TableLoader';
|
|
6
|
-
export type { TablePaginate } from './TablePaginate';
|
|
7
|
-
export { TABLE_ACTION_COLUMN, TABLE_COLUMN_DEFAULT_VALUES, TABLE_COLUMN_DEFAULT_COLSPAN, TABLE_COLUMN_DEFAULT_WIDTH, } from './Constants';
|
|
8
|
-
export { BaseTable } from './BaseTable';
|
|
9
|
-
export { SelectableTable } from './SelectableTable';
|
|
10
|
-
export { type TableHeaderSchema, type TableRenderingData, generateHeader, } from './TableHeaderSchema';
|
|
11
|
-
export { type TableSummaryItem, type TableSummarySchema, } from './TableSummarySchema';
|
|
12
|
-
export { Column } from './moduleConnection/Column';
|
|
13
|
-
export { Table } from './moduleConnection/Table';
|
|
14
|
-
export { Action } from './moduleConnection/Action';
|
|
15
|
-
export { TableDestroy } from './moduleConnection/TableDestroy';
|
|
16
|
-
export { TableRowClick } from './moduleConnection/TableRowClick';
|
|
17
|
-
export { type TableSource, type TableSummary, type RowClick, type RowMetaClick, type handleDoubleClick, } from './generator/TableSource';
|
|
18
|
-
export { SelectableTableGenerator } from './generator/SelectableTableGenerator';
|
|
19
|
-
export { TableGenerator } from './generator/TableGenerator';
|
|
20
|
-
export { TableConfig } from './generator/TableConfig';
|
|
21
|
-
export { TableCellComponentRegistry } from './generator/TableCellComponentRegistry';
|
|
22
|
-
export { GColumn } from './moduleConnection/generator/GColumn';
|
|
23
|
-
export { GTable } from './moduleConnection/generator/GTable';
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ActionDecorator } from '../TableAction';
|
|
2
|
-
import { BaseModel } from '../../BaseModel';
|
|
3
|
-
export declare function Action<Model extends BaseModel>(actionDetail: Omit<ActionDecorator<Model>, 'handler'>): (target: BaseModel, _propertyKey: string, propertyDescriptor: PropertyDescriptor) => void;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { BaseTable } from '../index';
|
|
2
|
-
import { BaseModel } from '../../BaseModel';
|
|
3
|
-
import { SelectableTable } from '../SelectableTable';
|
|
4
|
-
export declare function Table<Model extends BaseModel>(table: typeof BaseTable<Model> | typeof SelectableTable<Model>): (constructor: Function) => void;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BaseModel } from '../BaseModel';
|
|
2
|
-
export declare function useCrud<Entity extends BaseModel>(): {
|
|
3
|
-
entityItemsAsArray: import('vue').ComputedRef<Entity[]>;
|
|
4
|
-
addOrReplaceItems: (items: Entity[]) => void;
|
|
5
|
-
removeById: (id: string | number) => Entity;
|
|
6
|
-
getItemById: (id: number | string) => Entity;
|
|
7
|
-
clearItems: () => void;
|
|
8
|
-
setTotalCount: (count: number) => void;
|
|
9
|
-
getTotalCount: import('vue').ComputedRef<number>;
|
|
10
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { BaseModel } from '../BaseModel';
|
|
3
|
-
import { Nullable } from '../types';
|
|
4
|
-
export declare function useData<Model extends BaseModel>(): {
|
|
5
|
-
itemsAsArray: import('vue').ComputedRef<Model[]>;
|
|
6
|
-
totalCount: Ref<number, number>;
|
|
7
|
-
currentItem: [Model] extends [Ref<any, any>] ? import('@vue/shared').IfAny<Model, Ref<Model, Model>, Model> : Ref<import('vue').UnwrapRef<Model>, Model | import('vue').UnwrapRef<Model>>;
|
|
8
|
-
setTotalCount: (totalItems: number) => void;
|
|
9
|
-
addOrReplaceItems: (itemsToAdd: Model[]) => void;
|
|
10
|
-
getById: (id: number) => Nullable<Model>;
|
|
11
|
-
removeById: (id: number) => boolean;
|
|
12
|
-
clearItems: () => void;
|
|
13
|
-
setCurrentItem: (item: Nullable<Model>) => void;
|
|
14
|
-
clearCurrentItem: () => void;
|
|
15
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { LoadingStatus } from '../constants';
|
|
2
|
-
export declare function useLoadingStatus(): {
|
|
3
|
-
loadingStatus: import('vue').Ref<Set<LoadingStatus> & Omit<Set<LoadingStatus>, keyof Set<any>>, Set<LoadingStatus> | (Set<LoadingStatus> & Omit<Set<LoadingStatus>, keyof Set<any>>)>;
|
|
4
|
-
isFetchingList: import('vue').ComputedRef<boolean>;
|
|
5
|
-
isFetchingItem: import('vue').ComputedRef<boolean>;
|
|
6
|
-
isFetchingLastItems: import('vue').ComputedRef<boolean>;
|
|
7
|
-
isFetchingPreviousItems: import('vue').ComputedRef<boolean>;
|
|
8
|
-
isCreating: import('vue').ComputedRef<boolean>;
|
|
9
|
-
isUpdating: import('vue').ComputedRef<boolean>;
|
|
10
|
-
isDeleting: import('vue').ComputedRef<boolean>;
|
|
11
|
-
isSearching: import('vue').ComputedRef<boolean>;
|
|
12
|
-
isSorting: import('vue').ComputedRef<boolean>;
|
|
13
|
-
setStatus: (status: LoadingStatus) => void;
|
|
14
|
-
removeStatus: (status: LoadingStatus) => void;
|
|
15
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { SortDetail } from '../sort';
|
|
3
|
-
import { BaseModel } from '../BaseModel';
|
|
4
|
-
import { Params } from '../repository';
|
|
5
|
-
export declare function useParams(): {
|
|
6
|
-
params: Ref<Params, Params>;
|
|
7
|
-
setNextPage: () => void;
|
|
8
|
-
setPreventPage: () => void;
|
|
9
|
-
setPageNumber: (pageNumber: number) => void;
|
|
10
|
-
setItemCount: (itemCount: number) => void;
|
|
11
|
-
setSortDetail: (sortDetail: SortDetail<BaseModel>) => void;
|
|
12
|
-
setFilter: (key: string, value: unknown) => void;
|
|
13
|
-
removeFilter: (key: string) => void;
|
|
14
|
-
getRequestParams: () => Record<string, unknown>;
|
|
15
|
-
clearParam: () => void;
|
|
16
|
-
setFiltersBaseOnRequestBody: (filters: Record<string, unknown>) => void;
|
|
17
|
-
};
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { Repository } from '../repository';
|
|
2
|
-
import { LoadingStatus } from '../constants';
|
|
3
|
-
import { SortDetail } from '../sort';
|
|
4
|
-
import { BaseModel } from '../BaseModel';
|
|
5
|
-
import { TableRenderingData, TableService } from '../baseTable';
|
|
6
|
-
export declare function useRepository<Model extends BaseModel>(repository: Repository<Model>): {
|
|
7
|
-
loadingStatusManager: {
|
|
8
|
-
loadingStatus: import('vue').Ref<Set<LoadingStatus> & Omit<Set<LoadingStatus>, keyof Set<any>>, Set<LoadingStatus> | (Set<LoadingStatus> & Omit<Set<LoadingStatus>, keyof Set<any>>)>;
|
|
9
|
-
isFetchingList: import('vue').ComputedRef<boolean>;
|
|
10
|
-
isFetchingItem: import('vue').ComputedRef<boolean>;
|
|
11
|
-
isFetchingLastItems: import('vue').ComputedRef<boolean>;
|
|
12
|
-
isFetchingPreviousItems: import('vue').ComputedRef<boolean>;
|
|
13
|
-
isCreating: import('vue').ComputedRef<boolean>;
|
|
14
|
-
isUpdating: import('vue').ComputedRef<boolean>;
|
|
15
|
-
isDeleting: import('vue').ComputedRef<boolean>;
|
|
16
|
-
isSearching: import('vue').ComputedRef<boolean>;
|
|
17
|
-
isSorting: import('vue').ComputedRef<boolean>;
|
|
18
|
-
setStatus: (status: LoadingStatus) => void;
|
|
19
|
-
removeStatus: (status: LoadingStatus) => void;
|
|
20
|
-
};
|
|
21
|
-
dataManger: {
|
|
22
|
-
itemsAsArray: import('vue').ComputedRef<BaseModel[]>;
|
|
23
|
-
totalCount: import('vue').Ref<number, number>;
|
|
24
|
-
currentItem: import('vue').Ref<{
|
|
25
|
-
id: number | string;
|
|
26
|
-
}, BaseModel | {
|
|
27
|
-
id: number | string;
|
|
28
|
-
}>;
|
|
29
|
-
setTotalCount: (totalItems: number) => void;
|
|
30
|
-
addOrReplaceItems: (itemsToAdd: BaseModel[]) => void;
|
|
31
|
-
getById: (id: number) => BaseModel;
|
|
32
|
-
removeById: (id: number) => boolean;
|
|
33
|
-
clearItems: () => void;
|
|
34
|
-
setCurrentItem: (item: BaseModel) => void;
|
|
35
|
-
clearCurrentItem: () => void;
|
|
36
|
-
};
|
|
37
|
-
paramsManager: {
|
|
38
|
-
params: import('vue').Ref<import('../repository').Params, import('../repository').Params>;
|
|
39
|
-
setNextPage: () => void;
|
|
40
|
-
setPreventPage: () => void;
|
|
41
|
-
setPageNumber: (pageNumber: number) => void;
|
|
42
|
-
setItemCount: (itemCount: number) => void;
|
|
43
|
-
setSortDetail: (sortDetail: SortDetail<BaseModel>) => void;
|
|
44
|
-
setFilter: (key: string, value: unknown) => void;
|
|
45
|
-
removeFilter: (key: string) => void;
|
|
46
|
-
getRequestParams: () => Record<string, unknown>;
|
|
47
|
-
clearParam: () => void;
|
|
48
|
-
setFiltersBaseOnRequestBody: (filters: Record<string, unknown>) => void;
|
|
49
|
-
};
|
|
50
|
-
tableRenderingData: import('vue').ComputedRef<TableRenderingData<Model>>;
|
|
51
|
-
fetchList: (loadingStatus?: LoadingStatus) => Promise<import('../repository').FetchListResponse<Model>>;
|
|
52
|
-
fetchWithAutoRefresh: () => Promise<void>;
|
|
53
|
-
setupAutoRefresh: () => void;
|
|
54
|
-
stopAutoRefresh: () => void;
|
|
55
|
-
fetchItemById: (id: number, shouldRemoveItem?: boolean) => Promise<Model>;
|
|
56
|
-
createItem: <Body>(body: Body) => Promise<Model>;
|
|
57
|
-
updateItem: <Body>(id: number, body: Body) => Promise<Model>;
|
|
58
|
-
deleteItem: (id: number) => Promise<boolean>;
|
|
59
|
-
fetchLastItems: () => Promise<import('../repository').FetchListResponse<Model>>;
|
|
60
|
-
fetchPreviousItems: () => Promise<import('../repository').FetchListResponse<Model>>;
|
|
61
|
-
fetchItemsByPageNumber: (pageNumber: number) => Promise<import('../repository').FetchListResponse<Model>>;
|
|
62
|
-
search: (searchedValue: string) => Promise<import('../repository').FetchListResponse<Model>>;
|
|
63
|
-
sort: (sortDetail: SortDetail<Model>) => Promise<import('../repository').FetchListResponse<Model>>;
|
|
64
|
-
clearFilters: () => Promise<import('../repository').FetchListResponse<Model>>;
|
|
65
|
-
tableService: import('vue').ComputedRef<TableService<Model>>;
|
|
66
|
-
currentPageItems: import('vue').ComputedRef<Model[]>;
|
|
67
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { TableService } from '../baseTable';
|
|
2
|
-
export declare function useStaticTableService<Model>(initialRows: Model[]): {
|
|
3
|
-
tableRows: import('vue').Ref<import('@vue/reactivity').UnwrapRefSimple<Model>[], Model[] | import('@vue/reactivity').UnwrapRefSimple<Model>[]>;
|
|
4
|
-
staticTableService: import('vue').ComputedRef<TableService<Model>>;
|
|
5
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { useRepository } from './UseRepository';
|
|
2
|
-
export { useData } from './UseData';
|
|
3
|
-
export { useParams } from './UseParams';
|
|
4
|
-
export { useLoadingStatus } from './UseLoadingStatus';
|
|
5
|
-
export { useStaticTableService } from './UseStaticTableService';
|
|
6
|
-
export * from './UseCrud';
|
|
7
|
-
export * from './UseState';
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
export declare const enum LoadingStatus {
|
|
2
|
-
FetchList = "fetchList",
|
|
3
|
-
AutoRefresh = "autoRefresh",
|
|
4
|
-
FetchItem = "fetchItem",
|
|
5
|
-
FetchLastItems = "fetchLastItems",
|
|
6
|
-
FetchPreviousItems = "fetchPreviousItems",
|
|
7
|
-
Create = "CREATE",
|
|
8
|
-
Update = "UPDATE",
|
|
9
|
-
Delete = "DELETE",
|
|
10
|
-
Search = "SEARCH",
|
|
11
|
-
Sort = "SORT",
|
|
12
|
-
Success = "SUCCESS",
|
|
13
|
-
Error = "ERROR",
|
|
14
|
-
Idle = "IDLE"
|
|
15
|
-
}
|
|
16
|
-
export declare const enum DialogDimensions {
|
|
17
|
-
Width = "width",
|
|
18
|
-
Height = "height",
|
|
19
|
-
DefaultWidth = 500,
|
|
20
|
-
DefaultHeight = 350,
|
|
21
|
-
MinimalAvailableSize = 0
|
|
22
|
-
}
|
|
23
|
-
export declare const enum SortOrder {
|
|
24
|
-
ASC = "ASC",
|
|
25
|
-
DESC = "DESC"
|
|
26
|
-
}
|
|
27
|
-
export declare const enum SortOrderTableHeader {
|
|
28
|
-
ASC = "ascend",
|
|
29
|
-
DESC = "descend"
|
|
30
|
-
}
|
|
31
|
-
export declare const enum TableHeaderAlign {
|
|
32
|
-
Left = "left",
|
|
33
|
-
Right = "right",
|
|
34
|
-
Center = "center"
|
|
35
|
-
}
|
|
36
|
-
export declare const enum HeaderType {
|
|
37
|
-
Text = "text"
|
|
38
|
-
}
|
|
39
|
-
export declare const enum CellType {
|
|
40
|
-
Text = "text",
|
|
41
|
-
ACTION = "action",
|
|
42
|
-
Tag = "tag",
|
|
43
|
-
Iban = "iban",
|
|
44
|
-
BankCard = "bankCard",
|
|
45
|
-
Symbol = "symbol",
|
|
46
|
-
TradeDetail = "tradeDetail",
|
|
47
|
-
SymbolPrice = "symbolPrice",
|
|
48
|
-
TradeSymbol = "tradeSymbol",
|
|
49
|
-
Price = "price",
|
|
50
|
-
DynamicCurrencyPrice = "dynamicCurrencyPrice",
|
|
51
|
-
TradeDate = "tradeDate",
|
|
52
|
-
RequestResponseIdentity = "requestResponseIdentity",
|
|
53
|
-
Image = "image"
|
|
54
|
-
}
|
|
55
|
-
export declare const enum TableConstants {
|
|
56
|
-
MINIMAL_LOADABLE_HEADER_COUNT = 0,
|
|
57
|
-
DEFAULT_ITEM_COUNT_PER_PAGE = 20,
|
|
58
|
-
PAGINATION_POSITION = "bottomCenter"
|
|
59
|
-
}
|
|
60
|
-
export declare const enum ApplicationTheme {
|
|
61
|
-
FontFamily = "IRANSansX"
|
|
62
|
-
}
|
|
63
|
-
export declare const enum ApplicationDrawerStatus {
|
|
64
|
-
Open = "open",
|
|
65
|
-
Close = "close"
|
|
66
|
-
}
|
|
67
|
-
export declare const enum ToastType {
|
|
68
|
-
Success = "success",
|
|
69
|
-
Failure = "error",
|
|
70
|
-
Info = "info",
|
|
71
|
-
Warning = "warning"
|
|
72
|
-
}
|
|
73
|
-
export declare const enum ToastLocation {
|
|
74
|
-
BottomLeft = "bottomLeft"
|
|
75
|
-
}
|
|
76
|
-
export declare const enum StatusCode {
|
|
77
|
-
NotFound = 404,
|
|
78
|
-
Unauthorized = 401,
|
|
79
|
-
ServerError = 500
|
|
80
|
-
}
|
|
81
|
-
export declare const enum FormValidationStatus {
|
|
82
|
-
Invalid = 0,
|
|
83
|
-
Valid = 1
|
|
84
|
-
}
|
|
85
|
-
export declare const enum StorageKeys {
|
|
86
|
-
Theme = "theme",
|
|
87
|
-
AccessList = "accessList",
|
|
88
|
-
Token = "token",
|
|
89
|
-
SSO_ACCESS_LIST = "ssoAccessList"
|
|
90
|
-
}
|
|
91
|
-
export declare const enum ApplicationTheme {
|
|
92
|
-
Light = "light",
|
|
93
|
-
Dark = "dark"
|
|
94
|
-
}
|
|
95
|
-
export declare const enum ComponentSize {
|
|
96
|
-
Small = "small",
|
|
97
|
-
Medium = "medium",
|
|
98
|
-
Large = "large"
|
|
99
|
-
}
|
|
100
|
-
export declare const enum StoreNames {
|
|
101
|
-
Dialog = "dialog",
|
|
102
|
-
Drawer = "drawer",
|
|
103
|
-
Module = "module",
|
|
104
|
-
Toast = "toast"
|
|
105
|
-
}
|
|
106
|
-
export declare const enum Symbols {
|
|
107
|
-
USDT = "USDT"
|
|
108
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { LoadingStatus, DialogDimensions, SortOrder, SortOrderTableHeader, TableHeaderAlign, HeaderType, CellType, TableConstants, ApplicationDrawerStatus, ToastType, ToastLocation, StatusCode, FormValidationStatus, StorageKeys, ApplicationTheme, StoreNames, Symbols, } from './Constants';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Scheduler, SyncDetail, useParams, useCrud, Repository } from '../../index';
|
|
2
|
-
import { BaseModel } from '../BaseModel';
|
|
3
|
-
export declare class CrudService<Entity extends BaseModel> {
|
|
4
|
-
protected repository: Repository<Entity>;
|
|
5
|
-
protected crudDataManagement: ReturnType<typeof useCrud>;
|
|
6
|
-
protected scheduler: Scheduler;
|
|
7
|
-
protected syncDetail: SyncDetail;
|
|
8
|
-
paramManager: any;
|
|
9
|
-
constructor(repository: Repository<Entity>, crudDataManagement: ReturnType<typeof useCrud>, paramManager: ReturnType<typeof useParams>);
|
|
10
|
-
fetchList(): Promise<import('../repository').FetchListResponse<Entity>>;
|
|
11
|
-
fetchItemById(id: number): Promise<Entity>;
|
|
12
|
-
createItem<Body>(body: Body): Promise<Entity>;
|
|
13
|
-
protected shouldRefreshListAfterCreate(): boolean;
|
|
14
|
-
deleteItem(id: number): Promise<BaseModel>;
|
|
15
|
-
updateItem<Body>(id: number, body: Body): Promise<BaseModel>;
|
|
16
|
-
protected shouldRefreshListAfterUpdate(): boolean;
|
|
17
|
-
removeItem(id: number): Promise<BaseModel>;
|
|
18
|
-
protected shouldRefreshListAfterDelete(): boolean;
|
|
19
|
-
private syncListWithApi;
|
|
20
|
-
onDestroy(): void;
|
|
21
|
-
clearInterval(): void;
|
|
22
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './CrudService';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function setupJalaliDate(): void;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Nullable } from '../types';
|
|
2
|
-
export declare class RangeValue {
|
|
3
|
-
start: number;
|
|
4
|
-
end: number;
|
|
5
|
-
constructor(start: number, end: number);
|
|
6
|
-
}
|
|
7
|
-
export declare class DateDisabledOptions {
|
|
8
|
-
maxDate: Nullable<number>;
|
|
9
|
-
minDate: Nullable<number>;
|
|
10
|
-
disabledDates: number[];
|
|
11
|
-
constructor(max: Nullable<number>, min: Nullable<number>, disabledDates: number[]);
|
|
12
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DateDisabledOptions } from './Model';
|
|
2
|
-
import { default as dayjs } from 'dayjs';
|
|
3
|
-
export declare class DateTools {
|
|
4
|
-
static isDateDisabled(options: DateDisabledOptions, date: dayjs.Dayjs): boolean;
|
|
5
|
-
static areUnixesInSameDate(firstDate: number, secondDate: number): boolean;
|
|
6
|
-
static isDateGraterOrSame(originDate: number, dateToCheck: number): boolean;
|
|
7
|
-
static isDateLowerOrSame(originDate: number, dateToCheck: number): boolean;
|
|
8
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { DebounceAction } from './DebounceAction';
|
|
2
|
-
export declare class DebounceService {
|
|
3
|
-
private readonly debounceTimeout;
|
|
4
|
-
private action;
|
|
5
|
-
private timerId;
|
|
6
|
-
constructor(action: DebounceAction, debounceTimeout?: number);
|
|
7
|
-
runAction(): void;
|
|
8
|
-
cancelDebounce(): void;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function OnEvent(eventsToSubscribe: string[], unSubscribeAfterRun?: boolean): (_target: any, _propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare abstract class Feedback<Model, ErrorModel extends Error = Error> {
|
|
2
|
-
protected successMessageResolver: (model: Model) => string;
|
|
3
|
-
protected failureMessageResolver: (error: ErrorModel) => string;
|
|
4
|
-
shouldResolveSuccess: (model: Model) => boolean;
|
|
5
|
-
shouldResolveFailure: (error: ErrorModel) => boolean;
|
|
6
|
-
constructor(successMessageResolver: (model: Model) => string, failureMessageResolver: (error: ErrorModel) => string, shouldResolveSuccess?: (model: Model) => boolean, shouldResolveFailure?: (error: ErrorModel) => boolean);
|
|
7
|
-
handleSuccess(entity: Model): Promise<void>;
|
|
8
|
-
handleFailure(error: ErrorModel): Promise<void>;
|
|
9
|
-
handleInfo(): Promise<void>;
|
|
10
|
-
handleWarning(): Promise<void>;
|
|
11
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { HandleFeedback } from './HandleFeedback';
|
|
2
|
-
export { Feedback } from './Feedback';
|
|
3
|
-
export type { FailureFeedback } from './FailureFeedback';
|
|
4
|
-
export type { InfoFeedback } from './InfoFeedback';
|
|
5
|
-
export type { SuccessFeedback } from './SuccessFeedback';
|
|
6
|
-
export type { WarningFeedback } from './WarningFeedback';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Axios } from 'axios';
|
|
2
|
-
import { Interceptor } from './Interceptor';
|
|
3
|
-
import { APIErrorHandlerRegistry } from './ErrorHandlerRegistry';
|
|
4
|
-
export declare class ApiBuilder {
|
|
5
|
-
private axiosInstance;
|
|
6
|
-
constructor(axiosInstance: Axios);
|
|
7
|
-
setBaseURL(baseURL: string): this;
|
|
8
|
-
setTimeout(timeInMilliSeconds: number): this;
|
|
9
|
-
setHeaders(headers: Record<string, string | string[]>): this;
|
|
10
|
-
attachRequestInterceptors(interceptors: Interceptor[]): this;
|
|
11
|
-
attachResponseInterceptors(apiErrorRegistry: APIErrorHandlerRegistry): this;
|
|
12
|
-
build(): Axios;
|
|
13
|
-
}
|
|
14
|
-
export default ApiBuilder;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AxiosError } from 'axios';
|
|
2
|
-
import { ErrorHandler } from '../errorHandling';
|
|
3
|
-
export declare class APIErrorHandlerRegistry {
|
|
4
|
-
private static handlers;
|
|
5
|
-
private static instance;
|
|
6
|
-
private constructor();
|
|
7
|
-
static GetInstance(): APIErrorHandlerRegistry;
|
|
8
|
-
static registerHandler(statusCode: number, handler: ErrorHandler): void;
|
|
9
|
-
handle(error: AxiosError): void;
|
|
10
|
-
}
|