@sarafapp/iron_core 1.0.63 → 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/dist/IronCore.js +15 -5
- package/dist/core/index.d.ts +31 -0
- package/dist/core/vite.config.d.ts +2 -0
- package/dist/example-vue/vite.config.d.ts +2 -0
- package/dist/index.d.ts +2 -31
- package/index.ts +37 -0
- package/package.json +2 -5
- package/dist/src/BaseModel.d.ts +0 -45
- package/dist/src/Utils.d.ts +0 -4
- package/dist/src/accessHandling/AccessControl.d.ts +0 -10
- package/dist/src/accessHandling/AccessLevel.d.ts +0 -13
- package/dist/src/accessHandling/Accessible.d.ts +0 -3
- package/dist/src/accessHandling/EveryDirectiveAccess.d.ts +0 -4
- package/dist/src/accessHandling/SSO/AuthorizationDirective.d.ts +0 -17
- package/dist/src/accessHandling/SSO/AuthorizationService.d.ts +0 -17
- package/dist/src/accessHandling/SSO/EveryLevelAuthorizationDirective.d.ts +0 -4
- package/dist/src/accessHandling/SSO/SomeLevelsAuthorizationDirective.d.ts +0 -4
- package/dist/src/accessHandling/SomeDirectiveAccess.d.ts +0 -4
- package/dist/src/accessHandling/index.d.ts +0 -9
- package/dist/src/baseDirective/BeforeMountDirective.d.ts +0 -3
- package/dist/src/baseDirective/BeforeUnMountDirective.d.ts +0 -3
- package/dist/src/baseDirective/BeforeUpdateDirective.d.ts +0 -3
- package/dist/src/baseDirective/CreatedDirective.d.ts +0 -3
- package/dist/src/baseDirective/MountedDirective.d.ts +0 -3
- package/dist/src/baseDirective/UnMountedDirective.d.ts +0 -3
- package/dist/src/baseDirective/UpdateDirective.d.ts +0 -3
- package/dist/src/baseDirective/index.d.ts +0 -7
- package/dist/src/baseForm/BaseRequestBodyFilter.d.ts +0 -4
- package/dist/src/baseForm/FormManager.d.ts +0 -18
- package/dist/src/baseForm/InputControl.d.ts +0 -40
- package/dist/src/baseForm/InputControlBuilder.d.ts +0 -16
- package/dist/src/baseForm/InputControlData.d.ts +0 -15
- package/dist/src/baseForm/RequestBodyFilter.d.ts +0 -3
- package/dist/src/baseForm/TouchSensitiveForm.d.ts +0 -9
- package/dist/src/baseForm/UseForm.d.ts +0 -5
- package/dist/src/baseForm/index.d.ts +0 -8
- package/dist/src/baseSchedule/Schedule.d.ts +0 -3
- package/dist/src/baseSchedule/Scheduler.d.ts +0 -8
- package/dist/src/baseSchedule/index.d.ts +0 -2
- package/dist/src/baseTable/BaseTable.d.ts +0 -46
- package/dist/src/baseTable/Constants.d.ts +0 -12
- package/dist/src/baseTable/OnDestory.d.ts +0 -3
- package/dist/src/baseTable/RowActionSource.d.ts +0 -4
- package/dist/src/baseTable/RowClick.d.ts +0 -3
- package/dist/src/baseTable/RowDoubleClick.d.ts +0 -3
- package/dist/src/baseTable/RowMetaClick.d.ts +0 -3
- package/dist/src/baseTable/SelectableTable.d.ts +0 -19
- package/dist/src/baseTable/TableAction.d.ts +0 -8
- package/dist/src/baseTable/TableHeaderSchema.d.ts +0 -27
- package/dist/src/baseTable/TableLoader.d.ts +0 -3
- package/dist/src/baseTable/TablePaginate.d.ts +0 -3
- package/dist/src/baseTable/TableService.d.ts +0 -9
- package/dist/src/baseTable/TableSort.d.ts +0 -4
- package/dist/src/baseTable/TableSummarySchema.d.ts +0 -9
- package/dist/src/baseTable/generator/SelectableTableGenerator.d.ts +0 -14
- package/dist/src/baseTable/generator/TableCellComponentRegistry.d.ts +0 -7
- package/dist/src/baseTable/generator/TableConfig.d.ts +0 -7
- package/dist/src/baseTable/generator/TableGenerator.d.ts +0 -37
- package/dist/src/baseTable/generator/TableSource.d.ts +0 -24
- package/dist/src/baseTable/index.d.ts +0 -23
- package/dist/src/baseTable/moduleConnection/Action.d.ts +0 -3
- package/dist/src/baseTable/moduleConnection/Column.d.ts +0 -3
- package/dist/src/baseTable/moduleConnection/Table.d.ts +0 -4
- package/dist/src/baseTable/moduleConnection/TableDestroy.d.ts +0 -2
- package/dist/src/baseTable/moduleConnection/TableRowClick.d.ts +0 -2
- package/dist/src/baseTable/moduleConnection/generator/GColumn.d.ts +0 -2
- package/dist/src/baseTable/moduleConnection/generator/GTable.d.ts +0 -2
- package/dist/src/composables/UseCrud.d.ts +0 -10
- package/dist/src/composables/UseData.d.ts +0 -14
- package/dist/src/composables/UseLoadingStatus.d.ts +0 -15
- package/dist/src/composables/UseParams.d.ts +0 -15
- package/dist/src/composables/UseRepository.d.ts +0 -63
- package/dist/src/composables/UseState.d.ts +0 -2
- package/dist/src/composables/UseStaticTableService.d.ts +0 -4
- package/dist/src/composables/index.d.ts +0 -7
- package/dist/src/constants/Constants.d.ts +0 -108
- package/dist/src/constants/index.d.ts +0 -1
- package/dist/src/crudService/CrudService.d.ts +0 -22
- package/dist/src/crudService/index.d.ts +0 -1
- package/dist/src/dateHandling/Constants.d.ts +0 -5
- package/dist/src/dateHandling/Converter.d.ts +0 -5
- package/dist/src/dateHandling/JalaliDateSetup.d.ts +0 -1
- package/dist/src/dateHandling/Model.d.ts +0 -12
- package/dist/src/dateHandling/Utils.d.ts +0 -8
- package/dist/src/dateHandling/index.d.ts +0 -5
- package/dist/src/debounce/DebounceAction.d.ts +0 -4
- package/dist/src/debounce/DebounceService.d.ts +0 -9
- package/dist/src/debounce/index.d.ts +0 -2
- package/dist/src/deviceManagement/Constants.d.ts +0 -4
- package/dist/src/deviceManagement/Visibility.d.ts +0 -4
- package/dist/src/deviceManagement/VisibilityManager.d.ts +0 -6
- package/dist/src/deviceManagement/index.d.ts +0 -3
- package/dist/src/errorHandling/ErrorHandler.d.ts +0 -3
- package/dist/src/errorHandling/HandleError.d.ts +0 -2
- package/dist/src/errorHandling/index.d.ts +0 -2
- package/dist/src/eventSystem/CustomEventDispatcher.d.ts +0 -5
- package/dist/src/eventSystem/Model.d.ts +0 -8
- package/dist/src/eventSystem/OnEvent.d.ts +0 -1
- package/dist/src/eventSystem/index.d.ts +0 -3
- package/dist/src/feedbackHandling/FailureFeedback.d.ts +0 -3
- package/dist/src/feedbackHandling/Feedback.d.ts +0 -11
- package/dist/src/feedbackHandling/HandleFeedback.d.ts +0 -2
- package/dist/src/feedbackHandling/InfoFeedback.d.ts +0 -3
- package/dist/src/feedbackHandling/SuccessFeedback.d.ts +0 -3
- package/dist/src/feedbackHandling/WarningFeedback.d.ts +0 -3
- package/dist/src/feedbackHandling/index.d.ts +0 -6
- package/dist/src/httpClient/ApiBuilder.d.ts +0 -14
- package/dist/src/httpClient/ErrorHandlerRegistry.d.ts +0 -10
- package/dist/src/httpClient/HttpClient.d.ts +0 -14
- package/dist/src/httpClient/Interceptor.d.ts +0 -4
- package/dist/src/httpClient/index.d.ts +0 -4
- package/dist/src/initializer/ApplicationInitializer.d.ts +0 -6
- package/dist/src/initializer/Initializer.d.ts +0 -3
- package/dist/src/initializer/index.d.ts +0 -2
- package/dist/src/json/JsonMapper.d.ts +0 -18
- package/dist/src/json/index.d.ts +0 -1
- package/dist/src/layout/Constants.d.ts +0 -10
- package/dist/src/layout/DialogService.d.ts +0 -1
- package/dist/src/layout/DrawerService.d.ts +0 -1
- package/dist/src/layout/Toast.d.ts +0 -8
- package/dist/src/layout/index.d.ts +0 -4
- package/dist/src/lib/Constants.d.ts +0 -20
- package/dist/src/lib/Formatter.d.ts +0 -10
- package/dist/src/lib/Util.d.ts +0 -11
- package/dist/src/lib/index.d.ts +0 -3
- package/dist/src/observables/AbstractSubject.d.ts +0 -7
- package/dist/src/observables/BehaviorSubject.d.ts +0 -16
- package/dist/src/observables/Observer.d.ts +0 -3
- package/dist/src/observables/Subject.d.ts +0 -6
- package/dist/src/observables/index.d.ts +0 -4
- package/dist/src/process/Proccess.d.ts +0 -9
- package/dist/src/process/ProcessManager.d.ts +0 -10
- package/dist/src/process/index.d.ts +0 -2
- package/dist/src/repository/Params.d.ts +0 -11
- package/dist/src/repository/Repository.d.ts +0 -38
- package/dist/src/repository/SyncDetail.d.ts +0 -5
- package/dist/src/repository/index.d.ts +0 -4
- package/dist/src/repository/model.d.ts +0 -5
- package/dist/src/routeGuard/RouteGuard.d.ts +0 -7
- package/dist/src/routeGuard/index.d.ts +0 -1
- package/dist/src/search/client/ClientArraySearch.d.ts +0 -4
- package/dist/src/search/client/ClientSearch.d.ts +0 -3
- package/dist/src/search/index.d.ts +0 -2
- package/dist/src/sort/SortDetail.d.ts +0 -6
- package/dist/src/sort/client/Sorter.d.ts +0 -6
- package/dist/src/sort/index.d.ts +0 -4
- package/dist/src/sort/strategies/SimpleSort.d.ts +0 -5
- package/dist/src/sort/strategies/SortStrategy.d.ts +0 -4
- package/dist/src/types/Global.d.ts +0 -1
- package/dist/src/types/index.d.ts +0 -1
- package/dist/src/validators/Validator.d.ts +0 -4
- package/dist/src/validators/index.d.ts +0 -1
- package/dist/src/webSocket/Constants.d.ts +0 -6
- package/dist/src/webSocket/Model.d.ts +0 -6
- package/dist/src/webSocket/WebSocketService.d.ts +0 -30
- package/dist/src/webSocket/index.d.ts +0 -3
- package/dist/vite.config.d.ts +0 -2
package/dist/IronCore.js
CHANGED
|
@@ -1037,7 +1037,9 @@ class ut {
|
|
|
1037
1037
|
getAccessLevels(e, s) {
|
|
1038
1038
|
var n;
|
|
1039
1039
|
let r = Object.keys(s);
|
|
1040
|
-
return r.length || (r = Array.from(
|
|
1040
|
+
return r.length || (r = Array.from(
|
|
1041
|
+
((n = this._authorizationService.getAccessLevelsOfScope(e)) == null ? void 0 : n.values()) ?? []
|
|
1042
|
+
)), r;
|
|
1041
1043
|
}
|
|
1042
1044
|
}
|
|
1043
1045
|
class Js extends ut {
|
|
@@ -1264,13 +1266,17 @@ class sr {
|
|
|
1264
1266
|
getInputControl(e) {
|
|
1265
1267
|
const s = this._inputControls.get(e);
|
|
1266
1268
|
if (!s)
|
|
1267
|
-
throw new Error(
|
|
1269
|
+
throw new Error(
|
|
1270
|
+
`The provided input name (${e}}) has no controls.`
|
|
1271
|
+
);
|
|
1268
1272
|
return s;
|
|
1269
1273
|
}
|
|
1270
1274
|
resetControls(e) {
|
|
1271
1275
|
for (const s of e) {
|
|
1272
1276
|
const r = this._inputControls.get(s);
|
|
1273
|
-
r ? r.reset() : console.warn(
|
|
1277
|
+
r ? r.reset() : console.warn(
|
|
1278
|
+
`Provided input name ${s} has no controllers in this form`
|
|
1279
|
+
);
|
|
1274
1280
|
}
|
|
1275
1281
|
}
|
|
1276
1282
|
resetAll() {
|
|
@@ -2376,7 +2382,9 @@ class Nr {
|
|
|
2376
2382
|
}), this.repository = e, this.crudDataManagement = s, this.syncDetail = this.repository.getSyncDetail(), this.paramManager = r, this.syncListWithApi();
|
|
2377
2383
|
}
|
|
2378
2384
|
async fetchList() {
|
|
2379
|
-
const e = await this.repository.fetchList(
|
|
2385
|
+
const e = await this.repository.fetchList(
|
|
2386
|
+
this.paramManager.getRequestParams()
|
|
2387
|
+
);
|
|
2380
2388
|
return this.crudDataManagement.addOrReplaceItems(e.items), this.crudDataManagement.setTotalCount(e.totalItems), e;
|
|
2381
2389
|
}
|
|
2382
2390
|
async fetchItemById(e) {
|
|
@@ -2424,7 +2432,9 @@ class jr extends gs {
|
|
|
2424
2432
|
const n = [];
|
|
2425
2433
|
e: for (const i of e)
|
|
2426
2434
|
for (const a of r(i))
|
|
2427
|
-
if (Q.removeSpacesFromString(String(a).toLowerCase()).indexOf(
|
|
2435
|
+
if (Q.removeSpacesFromString(String(a).toLowerCase()).indexOf(
|
|
2436
|
+
Q.removeSpacesFromString(String(s).toLowerCase())
|
|
2437
|
+
) > -1) {
|
|
2428
2438
|
n.push(i);
|
|
2429
2439
|
continue e;
|
|
2430
2440
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export * from './src/lib';
|
|
2
|
+
export * from './src/accessHandling';
|
|
3
|
+
export * from './src/baseDirective';
|
|
4
|
+
export * from './src/baseForm';
|
|
5
|
+
export * from './src/baseSchedule';
|
|
6
|
+
export * from './src/baseTable';
|
|
7
|
+
export * from './src/composables';
|
|
8
|
+
export * from './src/constants';
|
|
9
|
+
export * from './src/dateHandling';
|
|
10
|
+
export * from './src/debounce';
|
|
11
|
+
export * from './src/errorHandling';
|
|
12
|
+
export * from './src/feedbackHandling';
|
|
13
|
+
export * from './src/httpClient';
|
|
14
|
+
export * from './src/initializer';
|
|
15
|
+
export * from './src/json';
|
|
16
|
+
export { useDialogService, ToastType, useDrawerService, ToastLocation, ToastMessage, } from './src/layout';
|
|
17
|
+
export * from './src/lib';
|
|
18
|
+
export * from './src/observables';
|
|
19
|
+
export * from './src/process';
|
|
20
|
+
export * from './src/repository';
|
|
21
|
+
export * from './src/routeGuard';
|
|
22
|
+
export * from './src/sort';
|
|
23
|
+
export * from './src/types';
|
|
24
|
+
export * from './src/validators';
|
|
25
|
+
export * from './src/Utils';
|
|
26
|
+
export * from './src/crudService';
|
|
27
|
+
export * from './src/search';
|
|
28
|
+
export * from './src/deviceManagement';
|
|
29
|
+
export * from './src/BaseModel';
|
|
30
|
+
export * from './src/eventSystem';
|
|
31
|
+
export * from './src/webSocket';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,31 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export
|
|
3
|
-
export * from './src/baseDirective';
|
|
4
|
-
export * from './src/baseForm';
|
|
5
|
-
export * from './src/baseSchedule';
|
|
6
|
-
export * from './src/baseTable';
|
|
7
|
-
export * from './src/composables';
|
|
8
|
-
export * from './src/constants';
|
|
9
|
-
export * from './src/dateHandling';
|
|
10
|
-
export * from './src/debounce';
|
|
11
|
-
export * from './src/errorHandling';
|
|
12
|
-
export * from './src/feedbackHandling';
|
|
13
|
-
export * from './src/httpClient';
|
|
14
|
-
export * from './src/initializer';
|
|
15
|
-
export * from './src/json';
|
|
16
|
-
export { useDialogService, ToastType, useDrawerService, ToastLocation, ToastMessage, } from './src/layout';
|
|
17
|
-
export * from './src/lib';
|
|
18
|
-
export * from './src/observables';
|
|
19
|
-
export * from './src/process';
|
|
20
|
-
export * from './src/repository';
|
|
21
|
-
export * from './src/routeGuard';
|
|
22
|
-
export * from './src/sort';
|
|
23
|
-
export * from './src/types';
|
|
24
|
-
export * from './src/validators';
|
|
25
|
-
export * from './src/Utils';
|
|
26
|
-
export * from './src/crudService';
|
|
27
|
-
export * from './src/search';
|
|
28
|
-
export * from './src/deviceManagement';
|
|
29
|
-
export * from './src/BaseModel';
|
|
30
|
-
export * from './src/eventSystem';
|
|
31
|
-
export * from './src/webSocket';
|
|
1
|
+
export * from './core/index'
|
|
2
|
+
export {}
|
package/index.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export * from "./src/lib";
|
|
2
|
+
export * from "./src/accessHandling";
|
|
3
|
+
export * from "./src/baseDirective";
|
|
4
|
+
export * from "./src/baseForm";
|
|
5
|
+
export * from "./src/baseSchedule";
|
|
6
|
+
export * from "./src/baseTable";
|
|
7
|
+
export * from "./src/composables";
|
|
8
|
+
export * from "./src/constants";
|
|
9
|
+
export * from "./src/dateHandling";
|
|
10
|
+
export * from "./src/debounce";
|
|
11
|
+
export * from "./src/errorHandling";
|
|
12
|
+
export * from "./src/feedbackHandling";
|
|
13
|
+
export * from "./src/httpClient";
|
|
14
|
+
export * from "./src/initializer";
|
|
15
|
+
export * from "./src/json";
|
|
16
|
+
export {
|
|
17
|
+
useDialogService,
|
|
18
|
+
ToastType,
|
|
19
|
+
useDrawerService,
|
|
20
|
+
ToastLocation,
|
|
21
|
+
ToastMessage,
|
|
22
|
+
} from "./src/layout";
|
|
23
|
+
export * from "./src/lib";
|
|
24
|
+
export * from "./src/observables";
|
|
25
|
+
export * from "./src/process";
|
|
26
|
+
export * from "./src/repository";
|
|
27
|
+
export * from "./src/routeGuard";
|
|
28
|
+
export * from "./src/sort";
|
|
29
|
+
export * from "./src/types";
|
|
30
|
+
export * from "./src/validators";
|
|
31
|
+
export * from "./src/Utils";
|
|
32
|
+
export * from "./src/crudService";
|
|
33
|
+
export * from "./src/search";
|
|
34
|
+
export * from "./src/deviceManagement";
|
|
35
|
+
export * from "./src/BaseModel";
|
|
36
|
+
export * from "./src/eventSystem";
|
|
37
|
+
export * from "./src/webSocket";
|
package/package.json
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sarafapp/iron_core",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.66",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"files": [
|
|
7
|
-
"dist"
|
|
8
|
-
],
|
|
9
6
|
"main": "./dist/IronCore.umd.cjs",
|
|
10
7
|
"module": "./dist/IronCore.js",
|
|
11
8
|
"scripts": {
|
|
12
9
|
"dev": "vite",
|
|
13
10
|
"build": "vite build",
|
|
14
11
|
"preview": "vite preview",
|
|
15
|
-
"
|
|
12
|
+
"prepublishOnly": "npm run build -- --mode=production"
|
|
16
13
|
},
|
|
17
14
|
"dependencies": {
|
|
18
15
|
"axios": "^1.6.3",
|
package/dist/src/BaseModel.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export declare class Amount {
|
|
2
|
-
value: string;
|
|
3
|
-
symbol: string;
|
|
4
|
-
get tradeValueInNumber(): number;
|
|
5
|
-
get truncatedValue(): string;
|
|
6
|
-
}
|
|
7
|
-
export declare class BaseModel {
|
|
8
|
-
id: number | string;
|
|
9
|
-
protected getTable<Table>(): Table;
|
|
10
|
-
}
|
|
11
|
-
export declare class MinifiedSymbolModel extends BaseModel {
|
|
12
|
-
symbol: string;
|
|
13
|
-
enName: string;
|
|
14
|
-
faName: string;
|
|
15
|
-
image: string;
|
|
16
|
-
}
|
|
17
|
-
export declare class TradeDate {
|
|
18
|
-
requestedDate: number;
|
|
19
|
-
executedDate: number;
|
|
20
|
-
constructor(requestedDate: number, executedDate: number);
|
|
21
|
-
get requestedDateInJalali(): any;
|
|
22
|
-
get requestedTime(): any;
|
|
23
|
-
get executedDateInJalali(): any;
|
|
24
|
-
get executedDateTime(): any;
|
|
25
|
-
}
|
|
26
|
-
export declare class TradeAmount {
|
|
27
|
-
requestedAmount: Amount;
|
|
28
|
-
executedAmount: Amount;
|
|
29
|
-
constructor(requestedAmount: Amount, executedAmount: Amount);
|
|
30
|
-
}
|
|
31
|
-
export declare class SymbolPriceInTrade {
|
|
32
|
-
symobl: string;
|
|
33
|
-
symbolPrice: number;
|
|
34
|
-
USDTPrice: number;
|
|
35
|
-
symbolImage: string;
|
|
36
|
-
USDTImage: string;
|
|
37
|
-
constructor(symbolPrice: number, USDTPrice: number, symbol: string, symbolImage: string, USDTImage: string);
|
|
38
|
-
get truncatedSymbolPrice(): string;
|
|
39
|
-
get truncatedUSDTPrice(): string;
|
|
40
|
-
}
|
|
41
|
-
export declare class SymbolInTrade {
|
|
42
|
-
soldSymbol: MinifiedSymbolModel;
|
|
43
|
-
buySymbol: MinifiedSymbolModel;
|
|
44
|
-
constructor(soldSymbol: MinifiedSymbolModel, buySymbol: MinifiedSymbolModel);
|
|
45
|
-
}
|
package/dist/src/Utils.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { DirectiveBinding } from 'vue';
|
|
2
|
-
import { MountedDirective, UpdateDirective } from '../baseDirective';
|
|
3
|
-
export declare abstract class AccessControl implements MountedDirective, UpdateDirective {
|
|
4
|
-
protected accessService: any;
|
|
5
|
-
constructor();
|
|
6
|
-
mounted: (element: HTMLElement, binding: DirectiveBinding<string[]>) => void;
|
|
7
|
-
updated: (element: HTMLElement, binding: DirectiveBinding<string[]>) => void;
|
|
8
|
-
private checkAccess;
|
|
9
|
-
protected abstract hasAccess(accessLevels: string[]): boolean;
|
|
10
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Initializer } from '../initializer/Initializer';
|
|
2
|
-
export declare class AccessLevel implements Initializer {
|
|
3
|
-
private static Instance;
|
|
4
|
-
private availableAccesses;
|
|
5
|
-
private constructor();
|
|
6
|
-
setAvailableAccesses(accessToAdd: string[]): void;
|
|
7
|
-
private setAccessListToStorage;
|
|
8
|
-
everyAccess(accessesToCheck: string[]): boolean;
|
|
9
|
-
someAccess(accessesToCheck: string[]): boolean;
|
|
10
|
-
clearAvailableAccesses(): void;
|
|
11
|
-
initialize(): void;
|
|
12
|
-
static GetInstance(): AccessLevel;
|
|
13
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { MountedDirective, UpdateDirective } from '../../baseDirective';
|
|
2
|
-
import { AuthorizationService } from './AuthorizationService';
|
|
3
|
-
export declare abstract class AuthorizationDirective implements MountedDirective, UpdateDirective {
|
|
4
|
-
protected _authorizationService: AuthorizationService;
|
|
5
|
-
constructor();
|
|
6
|
-
mounted(element: HTMLElement, binding: {
|
|
7
|
-
arg: string;
|
|
8
|
-
modifiers: Record<PropertyKey, boolean>;
|
|
9
|
-
}, _vnode: unknown): void;
|
|
10
|
-
updated(element: HTMLElement, binding: {
|
|
11
|
-
arg: string;
|
|
12
|
-
modifiers: Record<PropertyKey, boolean>;
|
|
13
|
-
}, _vnode: unknown): void;
|
|
14
|
-
private manageElement;
|
|
15
|
-
private getAccessLevels;
|
|
16
|
-
protected abstract hasAccess(scope: string, levels: string[]): boolean;
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Initializer } from '../../initializer/Initializer';
|
|
2
|
-
export declare class AuthorizationService implements Initializer {
|
|
3
|
-
private static _instance;
|
|
4
|
-
private _accessLevels;
|
|
5
|
-
private constructor();
|
|
6
|
-
initialize(): void;
|
|
7
|
-
setAccessLevels(levels: Record<PropertyKey, string[]>): void;
|
|
8
|
-
private setAccessLevelsToStorage;
|
|
9
|
-
private getAccessLevelsFromStorage;
|
|
10
|
-
getAccessLevelsOfScope(scope: string): Set<string>;
|
|
11
|
-
private setAccessLevelFromStorage;
|
|
12
|
-
everyAccess(scope: string, levels: string[]): boolean;
|
|
13
|
-
someAccess(scope: string, levels: string[]): boolean;
|
|
14
|
-
hasScope(scope: string): boolean;
|
|
15
|
-
clear(): void;
|
|
16
|
-
static GetInstance(): AuthorizationService;
|
|
17
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { AccessLevel } from './AccessLevel';
|
|
2
|
-
export { AccessControl } from './AccessControl';
|
|
3
|
-
export type { Accessible } from './Accessible';
|
|
4
|
-
export { EveryAccess } from './EveryDirectiveAccess';
|
|
5
|
-
export { SomeAccess } from './SomeDirectiveAccess';
|
|
6
|
-
export * from './SSO/AuthorizationDirective';
|
|
7
|
-
export * from './SSO/AuthorizationService';
|
|
8
|
-
export * from './SSO/EveryLevelAuthorizationDirective';
|
|
9
|
-
export * from './SSO/SomeLevelsAuthorizationDirective';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export type { BeforeMountDirective } from './BeforeMountDirective';
|
|
2
|
-
export type { BeforeUnMountDirective } from './BeforeUnMountDirective';
|
|
3
|
-
export type { BeforeUpdateDirective } from './BeforeUpdateDirective';
|
|
4
|
-
export type { CreatedDirective } from './CreatedDirective';
|
|
5
|
-
export type { MountedDirective } from './MountedDirective';
|
|
6
|
-
export type { UnMountedDirective } from './UnMountedDirective';
|
|
7
|
-
export type { UpdateDirective } from './UpdateDirective';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { InputControl } from './InputControl';
|
|
2
|
-
import { BaseRequestBodyFilter } from './BaseRequestBodyFilter';
|
|
3
|
-
export declare class FormManager {
|
|
4
|
-
private _inputControls;
|
|
5
|
-
private _isValid;
|
|
6
|
-
private _id;
|
|
7
|
-
getInputControlsAsArray(): InputControl<unknown>[];
|
|
8
|
-
runValidation(shouldValidateInputControls?: boolean): Promise<void>;
|
|
9
|
-
addInputControls(inputControls: InputControl<unknown>[]): void;
|
|
10
|
-
getInputControl<T>(inputControlName: string): InputControl<T>;
|
|
11
|
-
resetControls(inputControlNames: string[]): void;
|
|
12
|
-
resetAll(): void;
|
|
13
|
-
createRequestBody<T>(requestBodyFilter?: BaseRequestBodyFilter): T;
|
|
14
|
-
setIsValid(isValid: boolean): void;
|
|
15
|
-
getIsValid(): boolean;
|
|
16
|
-
setId(id: number): void;
|
|
17
|
-
getId(): number;
|
|
18
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Nullable } from '../types';
|
|
2
|
-
import { Validator } from '../validators';
|
|
3
|
-
export declare class InputControl<T> {
|
|
4
|
-
private initialData;
|
|
5
|
-
private data;
|
|
6
|
-
private _validators;
|
|
7
|
-
private _id;
|
|
8
|
-
constructor(name: string, value: Nullable<T>);
|
|
9
|
-
private shouldRunValidation;
|
|
10
|
-
runValidation(isBlur?: boolean): Promise<void>;
|
|
11
|
-
private setFormToInvalidState;
|
|
12
|
-
private setFormToValidState;
|
|
13
|
-
reset(): void;
|
|
14
|
-
markAsInitial(): void;
|
|
15
|
-
setValidators(validators: Validator<T>[]): void;
|
|
16
|
-
getChangeSensitive(): boolean;
|
|
17
|
-
setChangeSensitive(isChangeSensitive: boolean): void;
|
|
18
|
-
getIsBlurSensitive(): boolean;
|
|
19
|
-
setIsBlurSensitive(isBlurSensitive: boolean): void;
|
|
20
|
-
getIsRequired(): boolean;
|
|
21
|
-
setIsRequired(isRequired: boolean): void;
|
|
22
|
-
getIsValid(): boolean;
|
|
23
|
-
setIsValid(isValid: boolean): void;
|
|
24
|
-
getIsIncludeInRequestBody(): boolean;
|
|
25
|
-
setIsIncludeInRequestBody(isIncludeInRequestBody: boolean): void;
|
|
26
|
-
getNotValidMessage(): string;
|
|
27
|
-
setNotValidMessage(notValidMessage: string): void;
|
|
28
|
-
getName(): string;
|
|
29
|
-
setName(name: string): void;
|
|
30
|
-
setId(id: number): void;
|
|
31
|
-
getId(): number;
|
|
32
|
-
getIsEmptySensitive(): boolean;
|
|
33
|
-
setIsEmptySensitive(value: boolean): void;
|
|
34
|
-
setHasCustomValidationCheck(hasCustomCheck: boolean): void;
|
|
35
|
-
setShouldRemoveValidationOnInteract(value: boolean): void;
|
|
36
|
-
getShouldRemoveValidationOnInteract(): boolean;
|
|
37
|
-
hasCustomValidationCheck(): boolean;
|
|
38
|
-
set value(value: Nullable<T>);
|
|
39
|
-
get value(): Nullable<T>;
|
|
40
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { InputControl } from './InputControl';
|
|
2
|
-
import { Validator } from '../validators';
|
|
3
|
-
export declare class InputControlBuilder<T> {
|
|
4
|
-
private _inputControl;
|
|
5
|
-
constructor(inputControl: InputControl<T>);
|
|
6
|
-
setValidators(validators: Validator<T>[]): this;
|
|
7
|
-
setChangeSensitive(): this;
|
|
8
|
-
setRequired(): this;
|
|
9
|
-
setValid(): this;
|
|
10
|
-
setBlurSensitive(): this;
|
|
11
|
-
setId(id: number): this;
|
|
12
|
-
removeEmptySensitive(): this;
|
|
13
|
-
setHasCustomValidationCheck(): this;
|
|
14
|
-
removeErrorOnInteract(): this;
|
|
15
|
-
build(): InputControl<T>;
|
|
16
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Nullable } from '../types';
|
|
2
|
-
export declare class InputControlData<T> {
|
|
3
|
-
value: Nullable<T>;
|
|
4
|
-
initialValue: Nullable<T>;
|
|
5
|
-
name: string;
|
|
6
|
-
isValid: boolean;
|
|
7
|
-
isBlurSensitive: boolean;
|
|
8
|
-
isRequired: boolean;
|
|
9
|
-
isIncludeInRequestBody: boolean;
|
|
10
|
-
isChangeSensitive: boolean;
|
|
11
|
-
notValidMessage: string;
|
|
12
|
-
isEmptySensitive: boolean;
|
|
13
|
-
hasCustomValidationCheck: boolean;
|
|
14
|
-
shouldRemoveValidationMessageOnInteract: boolean;
|
|
15
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { DirectiveBinding } from 'vue';
|
|
2
|
-
import { MountedDirective, BeforeUnMountDirective } from '../baseDirective';
|
|
3
|
-
import { InputControl } from './InputControl';
|
|
4
|
-
export declare class TouchSensitiveControl implements MountedDirective, BeforeUnMountDirective {
|
|
5
|
-
mounted: (element: HTMLInputElement, binding: DirectiveBinding<InputControl<unknown>>) => void;
|
|
6
|
-
beforeUnMount: (element: HTMLInputElement, binding: DirectiveBinding<InputControl<unknown>>) => void;
|
|
7
|
-
private handleBlur;
|
|
8
|
-
private handleFocus;
|
|
9
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { InputControl } from './InputControl';
|
|
2
|
-
export { InputControlBuilder } from './InputControlBuilder';
|
|
3
|
-
export { InputControlData } from './InputControlData';
|
|
4
|
-
export { TouchSensitiveControl } from './TouchSensitiveForm';
|
|
5
|
-
export { FormManager } from './FormManager';
|
|
6
|
-
export { useForm } from './UseForm';
|
|
7
|
-
export { BaseRequestBodyFilter } from './BaseRequestBodyFilter';
|
|
8
|
-
export { type RequestBodyFilter } from './RequestBodyFilter';
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { SortDetail } from '../sort';
|
|
2
|
-
import { BaseModel } from '../BaseModel';
|
|
3
|
-
import { Accessible } from '../accessHandling';
|
|
4
|
-
import { TableHeaderSchema } from './TableHeaderSchema';
|
|
5
|
-
import { TableService } from './TableService';
|
|
6
|
-
import { TableAction } from './TableAction';
|
|
7
|
-
import { Nullable } from '../types';
|
|
8
|
-
import { TableSummarySchema } from './TableSummarySchema.ts';
|
|
9
|
-
export declare abstract class BaseTable<Model extends BaseModel> {
|
|
10
|
-
protected service: TableService<Model>;
|
|
11
|
-
private accessService;
|
|
12
|
-
protected currentPage: number;
|
|
13
|
-
protected currentPageSize: number;
|
|
14
|
-
private currentSortDetail;
|
|
15
|
-
protected loadedRows: Model[];
|
|
16
|
-
headerSchema: TableHeaderSchema<Model>[];
|
|
17
|
-
protected constructor(service: TableService<Model>);
|
|
18
|
-
addHeader(schema: TableHeaderSchema<Model>): void;
|
|
19
|
-
load(): Promise<void>;
|
|
20
|
-
protected filterItemsBaseOnAccessLevel<T>(items: Accessible[]): T[];
|
|
21
|
-
sort(sortDetail: SortDetail<Model>): Promise<void>;
|
|
22
|
-
private shouldSendSortRequest;
|
|
23
|
-
paginate(nextPage: number, pageSize: number): Promise<void>;
|
|
24
|
-
private shouldSendPaginationRequest;
|
|
25
|
-
protected loadRows(): Promise<Model[]>;
|
|
26
|
-
getData(): import('./TableHeaderSchema').TableRenderingData<Model>;
|
|
27
|
-
protected handleSort(sortDetail: SortDetail<Model>): Promise<import('../repository/model').FetchListResponse<Model>>;
|
|
28
|
-
protected handlePagination(nextPage: number, pageSize: number): Promise<import('../repository/model').FetchListResponse<Model>>;
|
|
29
|
-
getItemCountPerPage(): number;
|
|
30
|
-
isLoading(): boolean;
|
|
31
|
-
protected getLoadingStatuses(): Set<LoadingStatus>;
|
|
32
|
-
hasAnyAction(): boolean;
|
|
33
|
-
getAccessedActions(row: Model): TableAction<Model>[];
|
|
34
|
-
protected getActions(row: Model): TableAction<Model>[];
|
|
35
|
-
getScrollDetail(): Nullable<boolean | {
|
|
36
|
-
x?: number;
|
|
37
|
-
y?: number;
|
|
38
|
-
}>;
|
|
39
|
-
isExpandable(): boolean;
|
|
40
|
-
handleClick(row: Model): Promise<void>;
|
|
41
|
-
handleMetaClick(row: Model): Promise<void>;
|
|
42
|
-
handleDoubleClick(row: Model): Promise<void>;
|
|
43
|
-
onDestroy(): Promise<void>;
|
|
44
|
-
loadHeader(): Promise<TableHeaderSchema<Model>[]>;
|
|
45
|
-
loadSummarySchema(): TableSummarySchema;
|
|
46
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { TableHeaderSchema } from './TableHeaderSchema';
|
|
2
|
-
import { BaseModel } from '../BaseModel';
|
|
3
|
-
export declare const TABLE_COLUMN_DEFAULT_WIDTH = "150px";
|
|
4
|
-
export declare const TABLE_COLUMN_DEFAULT_COLSPAN = 2;
|
|
5
|
-
export declare const TABLE_ACTION_COLUMN: TableHeaderSchema<BaseModel>;
|
|
6
|
-
export declare const TABLE_COLUMN_DEFAULT_VALUES: {
|
|
7
|
-
width: string;
|
|
8
|
-
align: any;
|
|
9
|
-
headerType: any;
|
|
10
|
-
cellType: any;
|
|
11
|
-
colspan: number;
|
|
12
|
-
};
|