@tap-payments/auth-jsconnect 2.3.86-test → 2.3.87-test
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/build/@types/app.d.ts +33 -0
- package/build/@types/form.d.ts +1 -1
- package/build/api/data.d.ts +1 -0
- package/build/api/data.js +9 -1
- package/build/api/entity.d.ts +7 -0
- package/build/api/entity.js +10 -1
- package/build/api/index.d.ts +4 -2
- package/build/components/SimpleList/SimpleList.d.ts +1 -1
- package/build/components/SimpleList/SimpleList.js +2 -2
- package/build/constants/api.d.ts +1 -0
- package/build/constants/api.js +3 -1
- package/build/features/app/entity/entityStore.js +26 -17
- package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +19 -54
- package/build/features/entity/screens/EntityCapital/ActivityList.js +165 -98
- package/build/features/entity/screens/EntityCapital/validation.d.ts +3 -48
- package/build/features/entity/screens/EntityCapital/validation.js +1 -7
- package/package.json +1 -1
package/build/@types/app.d.ts
CHANGED
|
@@ -464,4 +464,37 @@ export interface MerchantInfo {
|
|
|
464
464
|
pci_dss: boolean;
|
|
465
465
|
};
|
|
466
466
|
}
|
|
467
|
+
export interface ActivityParams {
|
|
468
|
+
id: string;
|
|
469
|
+
code: string;
|
|
470
|
+
name: {
|
|
471
|
+
ar: string;
|
|
472
|
+
en: string;
|
|
473
|
+
};
|
|
474
|
+
created: string;
|
|
475
|
+
isic_code: string;
|
|
476
|
+
branch_code: string;
|
|
477
|
+
old_activity_id: string;
|
|
478
|
+
}
|
|
479
|
+
export interface ActivityDivision {
|
|
480
|
+
id: string;
|
|
481
|
+
code: string;
|
|
482
|
+
name: {
|
|
483
|
+
ar: string;
|
|
484
|
+
en: string;
|
|
485
|
+
};
|
|
486
|
+
created: string;
|
|
487
|
+
section_code: string;
|
|
488
|
+
activities?: Array<ActivityParams>;
|
|
489
|
+
}
|
|
490
|
+
export interface ActivitiesIsIc {
|
|
491
|
+
id: string;
|
|
492
|
+
code: string;
|
|
493
|
+
name: {
|
|
494
|
+
ar: string;
|
|
495
|
+
en: string;
|
|
496
|
+
};
|
|
497
|
+
created: string;
|
|
498
|
+
divisions?: Array<ActivityDivision>;
|
|
499
|
+
}
|
|
467
500
|
export {};
|
package/build/@types/form.d.ts
CHANGED
|
@@ -129,7 +129,7 @@ export declare type EntityNameFormValues = {
|
|
|
129
129
|
articleId?: string;
|
|
130
130
|
};
|
|
131
131
|
export declare type EntityCapitalFormValues = {
|
|
132
|
-
activities: Array<
|
|
132
|
+
activities: Array<string>;
|
|
133
133
|
capitalPaid: string;
|
|
134
134
|
capitalShareCount: string;
|
|
135
135
|
capitalShareValue: string;
|
package/build/api/data.d.ts
CHANGED
|
@@ -45,5 +45,6 @@ declare const dataService: {
|
|
|
45
45
|
getSegments: (data: GetSegmentsBody) => Promise<any>;
|
|
46
46
|
getTeamSize: (data: GetTeamSizeBody) => Promise<any>;
|
|
47
47
|
getActivities: (config?: AxiosRequestConfig) => Promise<any>;
|
|
48
|
+
getActivitiesIsIc: () => Promise<any>;
|
|
48
49
|
};
|
|
49
50
|
export { dataService };
|
package/build/api/data.js
CHANGED
|
@@ -63,6 +63,13 @@ var getOccupation = function (data) {
|
|
|
63
63
|
var getActivities = function (config) {
|
|
64
64
|
return httpClient(__assign({ method: 'post', url: "".concat(ENDPOINT_PATHS.RETRIEVE_ACTIVITIES_LIST_PATH) }, config));
|
|
65
65
|
};
|
|
66
|
+
var getActivitiesIsIc = function () {
|
|
67
|
+
return httpClient({
|
|
68
|
+
method: 'post',
|
|
69
|
+
url: "".concat(ENDPOINT_PATHS.RETRIEVE_ACTIVITIES_ISIC),
|
|
70
|
+
data: {}
|
|
71
|
+
});
|
|
72
|
+
};
|
|
66
73
|
var getSegments = function (data) {
|
|
67
74
|
return httpClient({
|
|
68
75
|
method: 'post',
|
|
@@ -87,6 +94,7 @@ var dataService = {
|
|
|
87
94
|
getOccupation: getOccupation,
|
|
88
95
|
getSegments: getSegments,
|
|
89
96
|
getTeamSize: getTeamSize,
|
|
90
|
-
getActivities: getActivities
|
|
97
|
+
getActivities: getActivities,
|
|
98
|
+
getActivitiesIsIc: getActivitiesIsIc
|
|
91
99
|
};
|
|
92
100
|
export { dataService };
|
package/build/api/entity.d.ts
CHANGED
|
@@ -106,6 +106,12 @@ export declare type UpdateEntityAOAFileBody = {
|
|
|
106
106
|
id: string;
|
|
107
107
|
AOA_file_id: string;
|
|
108
108
|
};
|
|
109
|
+
export declare type RemoveEntityActivity = {
|
|
110
|
+
id: string;
|
|
111
|
+
activities?: Array<{
|
|
112
|
+
id: string;
|
|
113
|
+
}>;
|
|
114
|
+
};
|
|
109
115
|
declare const entityService: {
|
|
110
116
|
createEntityInfo: ({ id, ...data }: EntityInfoBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
111
117
|
updateEntityInfo: ({ id, ...data }: EntityInfoBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -120,5 +126,6 @@ declare const entityService: {
|
|
|
120
126
|
updateEntityCapital: ({ id, ...data }: UpdateEntityCapitalBody) => Promise<any>;
|
|
121
127
|
updateEntityAOAFile: ({ id, ...data }: UpdateEntityAOAFileBody) => Promise<any>;
|
|
122
128
|
retrieveAllEntities: (id: string) => Promise<any>;
|
|
129
|
+
removeEntityActivities: ({ id, ...data }: RemoveEntityActivity) => Promise<any>;
|
|
123
130
|
};
|
|
124
131
|
export { entityService };
|
package/build/api/entity.js
CHANGED
|
@@ -89,6 +89,14 @@ var retrieveAllEntities = function (id) {
|
|
|
89
89
|
url: "".concat(ENDPOINT_PATHS.BUSINESS, "/").concat(id)
|
|
90
90
|
});
|
|
91
91
|
};
|
|
92
|
+
var removeEntityActivities = function (_a) {
|
|
93
|
+
var id = _a.id, data = __rest(_a, ["id"]);
|
|
94
|
+
return httpClient({
|
|
95
|
+
method: 'put',
|
|
96
|
+
url: "".concat(ENDPOINT_PATHS.ENTITY, "/").concat(id, "/activities/remove"),
|
|
97
|
+
data: data
|
|
98
|
+
});
|
|
99
|
+
};
|
|
92
100
|
var entityService = {
|
|
93
101
|
createEntityInfo: createEntityInfo,
|
|
94
102
|
updateEntityInfo: updateEntityInfo,
|
|
@@ -102,6 +110,7 @@ var entityService = {
|
|
|
102
110
|
retrieveEntityType: retrieveEntityType,
|
|
103
111
|
updateEntityCapital: updateEntityCapital,
|
|
104
112
|
updateEntityAOAFile: updateEntityAOAFile,
|
|
105
|
-
retrieveAllEntities: retrieveAllEntities
|
|
113
|
+
retrieveAllEntities: retrieveAllEntities,
|
|
114
|
+
removeEntityActivities: removeEntityActivities
|
|
106
115
|
};
|
|
107
116
|
export { entityService };
|
package/build/api/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ValidateOperatorBody } from './operator';
|
|
|
3
3
|
import { CreateAuthBody, VerifyAuthBody, CreatePasswordBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, VerifyAuthExpressOTPBody } from './auth';
|
|
4
4
|
import { UpdateLeadBody, LeadVerifyBody, CreateLeadBody, LeadOTPVerifyBody, LeadIdentityUpdateBody } from './lead';
|
|
5
5
|
import { CheckEmailBody, CheckBrandBody } from './availabilityServices';
|
|
6
|
-
import { EntityInfoBody, EntityBankUpdateBody, BankDocumentInfo, UpdateEntityBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, UpdateEntityAOAFileBody } from './entity';
|
|
6
|
+
import { EntityInfoBody, EntityBankUpdateBody, BankDocumentInfo, UpdateEntityBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, UpdateEntityAOAFileBody, RemoveEntityActivity } from './entity';
|
|
7
7
|
import { CreateAccountBody, ExpressCreateAccountBody } from './account';
|
|
8
8
|
import { DataElementBody } from './data';
|
|
9
9
|
import { BrandListBody, UpdateBrandBody, UpdateIndividualBody, GetIndividualListBody } from './individual';
|
|
@@ -64,6 +64,7 @@ declare const API: {
|
|
|
64
64
|
updateEntityCapital: ({ id, ...data }: UpdateEntityCapitalBody) => Promise<any>;
|
|
65
65
|
updateEntityAOAFile: ({ id, ...data }: UpdateEntityAOAFileBody) => Promise<any>;
|
|
66
66
|
retrieveAllEntities: (id: string) => Promise<any>;
|
|
67
|
+
removeEntityActivities: ({ id, ...data }: RemoveEntityActivity) => Promise<any>;
|
|
67
68
|
};
|
|
68
69
|
availabilityServices: {
|
|
69
70
|
checkEmail: (data: CheckEmailBody, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -107,6 +108,7 @@ declare const API: {
|
|
|
107
108
|
page: number;
|
|
108
109
|
}) => Promise<any>;
|
|
109
110
|
getActivities: (config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<any>;
|
|
111
|
+
getActivitiesIsIc: () => Promise<any>;
|
|
110
112
|
};
|
|
111
113
|
individualService: {
|
|
112
114
|
retrieveIndividualInfo: (id: string) => Promise<any>;
|
|
@@ -149,6 +151,6 @@ declare const API: {
|
|
|
149
151
|
getInitialData: (body: InitBody) => Promise<any>;
|
|
150
152
|
};
|
|
151
153
|
};
|
|
152
|
-
export type { ValidateOperatorBody, CreateAuthBody, ExpressCreateAccountBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody, DataElementBody, UploadFileBody, UpdateEntityBody, DocumentUpdateBody, DocumentInfo, VerifyAuthExpressOTPBody, UpdateIndividualBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, BankDocumentInfo, GetUserListBody, GetIndividualListBody, RequestEmailBody, DocumentBody, UpdateEntityAOAFileBody, InitBody, RemoveBrandActivity };
|
|
154
|
+
export type { ValidateOperatorBody, CreateAuthBody, ExpressCreateAccountBody, VerifyAuthBody, CreateLeadBody, UpdateLeadBody, LeadVerifyBody, LeadOTPVerifyBody, CheckEmailBody, CheckBrandBody, LeadIdentityUpdateBody, EntityInfoBody, CreateAccountBody, EntityBankUpdateBody, CreatePasswordBody, BrandListBody, VerifyOperationAuthBody, ResetPasswordVerifyAuthBody, UpdateBoardBody, UpdateBrandBody, DataElementBody, UploadFileBody, UpdateEntityBody, DocumentUpdateBody, DocumentInfo, VerifyAuthExpressOTPBody, UpdateIndividualBody, UpdateEntityActivityBody, UpdateEntityCapitalBody, BankDocumentInfo, GetUserListBody, GetIndividualListBody, RequestEmailBody, DocumentBody, UpdateEntityAOAFileBody, InitBody, RemoveBrandActivity, RemoveEntityActivity };
|
|
153
155
|
export { setAxiosGlobalHeaders, removeAxiosGlobalHeaders, axiosInstance, getAxiosHeaders };
|
|
154
156
|
export default API;
|
|
@@ -6,7 +6,7 @@ export interface SimpleListProps<T> extends ListProps {
|
|
|
6
6
|
list: Array<T>;
|
|
7
7
|
selectedItems?: Array<T>;
|
|
8
8
|
listItemProps?: ListItemProps;
|
|
9
|
-
onSelectItem: (item: T) => void;
|
|
9
|
+
onSelectItem: (item: T, e: React.MouseEvent<HTMLLIElement, MouseEvent>) => void;
|
|
10
10
|
renderItem: (item: T, idx: number) => React.ReactElement;
|
|
11
11
|
searchKeyPath?: string;
|
|
12
12
|
searchValuePath?: string[];
|
|
@@ -121,8 +121,8 @@ function SimpleList(_a) {
|
|
|
121
121
|
};
|
|
122
122
|
return (_jsxs(_Fragment, { children: [(searchValuePath === null || searchValuePath === void 0 ? void 0 : searchValuePath.length) && _jsx(Search, { onSearchValue: onSearch }), _jsx(ListStyled, __assign({}, rest, { children: children ||
|
|
123
123
|
mapSelectedItemBeginning.map(function (item, idx) {
|
|
124
|
-
return (_createElement(ListItemStyled, __assign({}, listItemProps, { onClick: function () {
|
|
125
|
-
onSelectItem(item);
|
|
124
|
+
return (_createElement(ListItemStyled, __assign({}, listItemProps, { onClick: function (e) {
|
|
125
|
+
onSelectItem(item, e);
|
|
126
126
|
}, disableGutters: true, key: idx }), renderItem(item, idx)));
|
|
127
127
|
}) }))] }));
|
|
128
128
|
}
|
package/build/constants/api.d.ts
CHANGED
package/build/constants/api.js
CHANGED
|
@@ -10,6 +10,7 @@ var AUTH_PATH = '/auth';
|
|
|
10
10
|
var LEAD_PATH = '/lead';
|
|
11
11
|
var RETRIEVE_ENTITY_LIST_PATH = '/lead/entity/list';
|
|
12
12
|
var RETRIEVE_ACTIVITIES_LIST_PATH = '/entity/activities/list';
|
|
13
|
+
var RETRIEVE_ACTIVITIES_ISIC_PATH = '/isic/list';
|
|
13
14
|
var ENTITY_PATH = '/entity';
|
|
14
15
|
var INDIVIDUAL_PATH = '/individual';
|
|
15
16
|
var USER_PATH = '/user';
|
|
@@ -97,5 +98,6 @@ export var ENDPOINT_PATHS = {
|
|
|
97
98
|
TEAM_SIZE_PATH: TEAM_SIZE_PATH,
|
|
98
99
|
CITIES: CITIES_PATH,
|
|
99
100
|
INIT: INIT_PATH,
|
|
100
|
-
BUSINESS: BUSINESS_PATH
|
|
101
|
+
BUSINESS: BUSINESS_PATH,
|
|
102
|
+
RETRIEVE_ACTIVITIES_ISIC: RETRIEVE_ACTIVITIES_ISIC_PATH
|
|
101
103
|
};
|
|
@@ -321,7 +321,7 @@ export var updateEntityName = createAsyncThunk('entityUpdateEntityName', functio
|
|
|
321
321
|
data = _g.sent();
|
|
322
322
|
data.documentData = documentResponse;
|
|
323
323
|
_g.label = 7;
|
|
324
|
-
case 7: return [4, API.dataService.
|
|
324
|
+
case 7: return [4, API.dataService.getActivitiesIsIc()];
|
|
325
325
|
case 8:
|
|
326
326
|
list = (_g.sent()).list;
|
|
327
327
|
data.activityList = list;
|
|
@@ -335,13 +335,13 @@ export var updateEntityName = createAsyncThunk('entityUpdateEntityName', functio
|
|
|
335
335
|
export var updateEntityCapital = createAsyncThunk('entityUpdateEntityCapital', function (_a, thunkApi) {
|
|
336
336
|
var formData = _a.formData, originalFormData = _a.originalFormData;
|
|
337
337
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
338
|
-
var _b, settings, entity, _c, id, data_status, isCapitalPaidNonEditable, isCapitalShareCountNonEditable, isCapitalShareValueNonEditable, isActivitiesNonEditable, capitalShareCount, capitalShareValue, activities, capitalPaid, hasCapitalShares, isCapitalNonEditable, activityIds, payload, data;
|
|
339
|
-
var _d, _e, _f
|
|
340
|
-
return __generator(this, function (
|
|
341
|
-
switch (
|
|
338
|
+
var _b, settings, entity, _c, id, data_status, entityActivities, isCapitalPaidNonEditable, isCapitalShareCountNonEditable, isCapitalShareValueNonEditable, isActivitiesNonEditable, capitalShareCount, capitalShareValue, activities, capitalPaid, hasCapitalShares, isCapitalNonEditable, removedActivities, payload_1, activityIds, payload, data;
|
|
339
|
+
var _d, _e, _f;
|
|
340
|
+
return __generator(this, function (_g) {
|
|
341
|
+
switch (_g.label) {
|
|
342
342
|
case 0:
|
|
343
343
|
_b = thunkApi.getState(), settings = _b.settings, entity = _b.entity;
|
|
344
|
-
_c = ((_d = entity.data.verify.responseBody) === null || _d === void 0 ? void 0 : _d.entity) || {}, id = _c.id, data_status = _c.data_status;
|
|
344
|
+
_c = ((_d = entity.data.verify.responseBody) === null || _d === void 0 ? void 0 : _d.entity) || {}, id = _c.id, data_status = _c.data_status, entityActivities = _c.activities;
|
|
345
345
|
isCapitalPaidNonEditable = hasNoneEditableValue(data_status === null || data_status === void 0 ? void 0 : data_status.capital, 'paid');
|
|
346
346
|
isCapitalShareCountNonEditable = hasNoneEditableValue(data_status === null || data_status === void 0 ? void 0 : data_status.capital, 'shares.count');
|
|
347
347
|
isCapitalShareValueNonEditable = hasNoneEditableValue(data_status === null || data_status === void 0 ? void 0 : data_status.capital, 'shares.value');
|
|
@@ -349,10 +349,19 @@ export var updateEntityCapital = createAsyncThunk('entityUpdateEntityCapital', f
|
|
|
349
349
|
capitalShareCount = formData.capitalShareCount, capitalShareValue = formData.capitalShareValue, activities = formData.activities, capitalPaid = formData.capitalPaid;
|
|
350
350
|
hasCapitalShares = capitalShareCount || capitalShareValue;
|
|
351
351
|
isCapitalNonEditable = (isCapitalPaidNonEditable && isCapitalShareCountNonEditable && isCapitalShareValueNonEditable) || (!capitalPaid && !hasCapitalShares);
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
352
|
+
removedActivities = (activities === null || activities === void 0 ? void 0 : activities.length) > 0 &&
|
|
353
|
+
(entityActivities || []).filter(function (entityActivity) { return !(activities || []).some(function (activityId) { return activityId === entityActivity.id; }); });
|
|
354
|
+
if (!(!isActivitiesNonEditable && (removedActivities === null || removedActivities === void 0 ? void 0 : removedActivities.length) > 0)) return [3, 2];
|
|
355
|
+
payload_1 = {
|
|
356
|
+
id: id,
|
|
357
|
+
activities: removedActivities
|
|
358
|
+
};
|
|
359
|
+
return [4, API.entityService.removeEntityActivities(payload_1)];
|
|
360
|
+
case 1:
|
|
361
|
+
_g.sent();
|
|
362
|
+
_g.label = 2;
|
|
363
|
+
case 2:
|
|
364
|
+
activityIds = (activities || []).map(function (id) { return ({ id: id, action: 'add' }); });
|
|
356
365
|
payload = __assign({ id: id, activities: isActivitiesNonEditable || (activityIds === null || activityIds === void 0 ? void 0 : activityIds.length) === 0 ? undefined : activityIds }, (!isCapitalNonEditable && {
|
|
357
366
|
capital: __assign({ paid: isCapitalPaidNonEditable ? undefined : capitalPaid }, (!((isCapitalShareCountNonEditable && isCapitalShareValueNonEditable) || !hasCapitalShares) && {
|
|
358
367
|
shares: {
|
|
@@ -362,10 +371,10 @@ export var updateEntityCapital = createAsyncThunk('entityUpdateEntityCapital', f
|
|
|
362
371
|
}))
|
|
363
372
|
}));
|
|
364
373
|
return [4, API.entityService.updateEntity(payload)];
|
|
365
|
-
case
|
|
366
|
-
data =
|
|
374
|
+
case 3:
|
|
375
|
+
data = _g.sent();
|
|
367
376
|
thunkApi.dispatch(handleNextScreenStep());
|
|
368
|
-
(
|
|
377
|
+
(_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, id);
|
|
369
378
|
return [2, { data: data, formData: originalFormData }];
|
|
370
379
|
}
|
|
371
380
|
});
|
|
@@ -508,8 +517,8 @@ export var entitySlice = createSlice({
|
|
|
508
517
|
state.data.entityNameData.entityType = entityType;
|
|
509
518
|
state.data.entityNameData.issuingDate = issuingDate || moment(new Date()).format('YYYY-MM-DD');
|
|
510
519
|
state.data.entityNameData.expiryDate = expiryDate || moment(new Date()).format('YYYY-MM-DD');
|
|
511
|
-
if (activities)
|
|
512
|
-
state.data.entityCapitalData.activities = activities;
|
|
520
|
+
if ((activities === null || activities === void 0 ? void 0 : activities.length) > 0)
|
|
521
|
+
state.data.entityCapitalData.activities = activities.map(function (a) { return a.id; });
|
|
513
522
|
if (paid)
|
|
514
523
|
state.data.entityCapitalData.capitalPaid = paid;
|
|
515
524
|
if (shares === null || shares === void 0 ? void 0 : shares.count)
|
|
@@ -589,8 +598,8 @@ export var entitySlice = createSlice({
|
|
|
589
598
|
state.data.entityNameData.entityType = entityType;
|
|
590
599
|
state.data.entityNameData.issuingDate = issuingDate || moment(new Date()).format('YYYY-MM-DD');
|
|
591
600
|
state.data.entityNameData.expiryDate = expiryDate || moment(new Date()).format('YYYY-MM-DD');
|
|
592
|
-
if (activities)
|
|
593
|
-
state.data.entityCapitalData.activities = activities;
|
|
601
|
+
if ((activities === null || activities === void 0 ? void 0 : activities.length) > 0)
|
|
602
|
+
state.data.entityCapitalData.activities = activities.map(function (a) { return a.id; });
|
|
594
603
|
if (paid)
|
|
595
604
|
state.data.entityCapitalData.capitalPaid = paid;
|
|
596
605
|
if (shares === null || shares === void 0 ? void 0 : shares.count)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const NameContainer: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
|
|
3
3
|
align?: "right" | "left" | "inherit" | "center" | "justify" | undefined;
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
|
|
@@ -11,43 +11,23 @@ export declare const InputLabelStyled: import("@emotion/styled").StyledComponent
|
|
|
11
11
|
variantMapping?: Partial<Record<"button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline", string>> | undefined;
|
|
12
12
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & {
|
|
13
13
|
ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
|
|
14
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
htmlColor?: string | undefined;
|
|
21
|
-
inheritViewBox?: boolean | undefined;
|
|
22
|
-
shapeRendering?: string | undefined;
|
|
23
|
-
sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
|
|
24
|
-
titleAccess?: string | undefined;
|
|
25
|
-
viewBox?: string | undefined;
|
|
26
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.SVGProps<SVGSVGElement>, "string" | "name" | "type" | "version" | "className" | "style" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "clipPath" | "cursor" | "direction" | "filter" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "mask" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "path" | "children" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "end" | "values" | "local" | "x" | "y" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "origin" | "method" | "operator" | "spacing" | "elevation" | "in" | "max" | "href" | "orientation" | "media" | "target" | "min" | "viewBox" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mode" | "numOctaves" | "orient" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan"> & {
|
|
27
|
-
ref?: ((instance: SVGSVGElement | null) => void) | React.RefObject<SVGSVGElement> | null | undefined;
|
|
28
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
29
|
-
export declare const InfoIconStyled: import("@emotion/styled").StyledComponent<{
|
|
30
|
-
children?: React.ReactNode;
|
|
31
|
-
classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
|
|
32
|
-
color?: "inherit" | "disabled" | "error" | "info" | "success" | "primary" | "secondary" | "action" | "warning" | undefined;
|
|
33
|
-
fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
|
|
34
|
-
htmlColor?: string | undefined;
|
|
35
|
-
inheritViewBox?: boolean | undefined;
|
|
36
|
-
shapeRendering?: string | undefined;
|
|
37
|
-
sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
|
|
38
|
-
titleAccess?: string | undefined;
|
|
39
|
-
viewBox?: string | undefined;
|
|
40
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.SVGProps<SVGSVGElement>, "string" | "name" | "type" | "version" | "className" | "style" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "clipPath" | "cursor" | "direction" | "filter" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "mask" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "path" | "children" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "end" | "values" | "local" | "x" | "y" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "origin" | "method" | "operator" | "spacing" | "elevation" | "in" | "max" | "href" | "orientation" | "media" | "target" | "min" | "viewBox" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mode" | "numOctaves" | "orient" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan"> & {
|
|
41
|
-
ref?: ((instance: SVGSVGElement | null) => void) | React.RefObject<SVGSVGElement> | null | undefined;
|
|
42
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
43
|
-
export declare const LabelContainerStyled: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
|
|
14
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
15
|
+
isSelected?: boolean | undefined;
|
|
16
|
+
isAr?: boolean | undefined;
|
|
17
|
+
}, {}, {}>;
|
|
18
|
+
export declare const InputLabelStyled: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material/styles").Theme> & {
|
|
19
|
+
align?: "right" | "left" | "inherit" | "center" | "justify" | undefined;
|
|
44
20
|
children?: React.ReactNode;
|
|
45
|
-
|
|
46
|
-
|
|
21
|
+
classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
|
|
22
|
+
gutterBottom?: boolean | undefined;
|
|
23
|
+
noWrap?: boolean | undefined;
|
|
24
|
+
paragraph?: boolean | undefined;
|
|
47
25
|
sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
26
|
+
variant?: "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline" | undefined;
|
|
27
|
+
variantMapping?: Partial<Record<"button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline", string>> | undefined;
|
|
28
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & {
|
|
29
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
|
|
30
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
51
31
|
export declare const CheckIconStyled: import("@emotion/styled").StyledComponent<{
|
|
52
32
|
children?: React.ReactNode;
|
|
53
33
|
classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
|
|
@@ -62,25 +42,10 @@ export declare const CheckIconStyled: import("@emotion/styled").StyledComponent<
|
|
|
62
42
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.SVGProps<SVGSVGElement>, "string" | "name" | "type" | "version" | "className" | "style" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "clipPath" | "cursor" | "direction" | "filter" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "mask" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "path" | "children" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "end" | "values" | "local" | "x" | "y" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "origin" | "method" | "operator" | "spacing" | "elevation" | "in" | "max" | "href" | "orientation" | "media" | "target" | "min" | "viewBox" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mode" | "numOctaves" | "orient" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan"> & {
|
|
63
43
|
ref?: ((instance: SVGSVGElement | null) => void) | React.RefObject<SVGSVGElement> | null | undefined;
|
|
64
44
|
}, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
65
|
-
|
|
66
|
-
align?: "right" | "left" | "inherit" | "center" | "justify" | undefined;
|
|
67
|
-
children?: React.ReactNode;
|
|
68
|
-
classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
|
|
69
|
-
gutterBottom?: boolean | undefined;
|
|
70
|
-
noWrap?: boolean | undefined;
|
|
71
|
-
paragraph?: boolean | undefined;
|
|
72
|
-
sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme> | undefined;
|
|
73
|
-
variant?: "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline" | undefined;
|
|
74
|
-
variantMapping?: Partial<Record<"button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "subtitle1" | "subtitle2" | "body1" | "body2" | "overline", string>> | undefined;
|
|
75
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof React.HTMLAttributes<HTMLSpanElement>> & {
|
|
76
|
-
ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
|
|
77
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "children" | "sx" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
78
|
-
isSelected: boolean;
|
|
79
|
-
}, {}, {}>;
|
|
80
|
-
export interface ActivitiesListProps {
|
|
45
|
+
interface ActivityListProps {
|
|
81
46
|
onListOpen?: () => void;
|
|
82
47
|
onListClose?: () => void;
|
|
83
48
|
readOnly?: boolean;
|
|
84
49
|
}
|
|
85
|
-
declare const
|
|
86
|
-
export default
|
|
50
|
+
declare const ActivityList: ({ onListClose, onListOpen, readOnly }: ActivityListProps) => JSX.Element;
|
|
51
|
+
export default ActivityList;
|
|
@@ -18,30 +18,24 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
18
18
|
}
|
|
19
19
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20
20
|
};
|
|
21
|
-
import { jsx as _jsx, jsxs as _jsxs
|
|
21
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
22
|
import * as React from 'react';
|
|
23
|
-
import { useTranslation } from 'react-i18next';
|
|
24
|
-
import { useController, useFormContext } from 'react-hook-form';
|
|
25
23
|
import Box from '@mui/material/Box';
|
|
26
24
|
import { alpha, styled } from '@mui/material/styles';
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import { useLanguage, useAppSelector
|
|
31
|
-
import { BusinessType } from '../../../../@types';
|
|
32
|
-
import { sortActivitiesByName } from '../../../../utils';
|
|
33
|
-
import Text from '../../../../components/Text';
|
|
34
|
-
import Input from '../../../shared/Input';
|
|
35
|
-
import Tooltip from '../../../../components/Tooltip';
|
|
36
|
-
import Collapse from '../../../../components/Collapse';
|
|
25
|
+
import { useTranslation } from 'react-i18next';
|
|
26
|
+
import { useController, useFormContext } from 'react-hook-form';
|
|
27
|
+
import { settingsSelector } from '../../../../app/settings';
|
|
28
|
+
import { useLanguage, useAppSelector } from '../../../../hooks';
|
|
37
29
|
import SimpleList from '../../../../components/SimpleList';
|
|
30
|
+
import Collapse from '../../../../components/Collapse';
|
|
38
31
|
import ExpandIcon from '../../../../components/ExpandIcon';
|
|
32
|
+
import CheckIcon from '@mui/icons-material/Check';
|
|
33
|
+
import Text from '../../../../components/Text';
|
|
34
|
+
import { findCurrencyByIso2, isExist } from '../../../../utils';
|
|
39
35
|
import { ScreenContainer } from '../../../shared/Containers';
|
|
40
|
-
import
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
return (__assign({ color: alpha(theme.palette.text.primary, 0.4) }, theme.typography.caption));
|
|
44
|
-
});
|
|
36
|
+
import Search from '../../../shared/Search';
|
|
37
|
+
import Input from '../../../shared/Input';
|
|
38
|
+
import { entitySelector } from '../../../app/entity/entityStore';
|
|
45
39
|
var InputStyled = styled(Input)(function (_a) {
|
|
46
40
|
var theme = _a.theme, readOnly = _a.readOnly;
|
|
47
41
|
return ({
|
|
@@ -51,120 +45,193 @@ var InputStyled = styled(Input)(function (_a) {
|
|
|
51
45
|
}
|
|
52
46
|
});
|
|
53
47
|
});
|
|
54
|
-
export var
|
|
55
|
-
var theme = _a.theme;
|
|
56
|
-
return ({
|
|
57
|
-
width: theme.spacing(2.75),
|
|
58
|
-
height: theme.spacing(2.125),
|
|
59
|
-
cursor: 'pointer',
|
|
60
|
-
color: alpha(theme.palette.text.primary, 0.4)
|
|
61
|
-
});
|
|
48
|
+
export var NameContainer = styled(Text, { shouldForwardProp: function (prop) { return !['isSelected', 'isAr'].includes(prop.toString()); } })(function (_a) {
|
|
49
|
+
var theme = _a.theme, isSelected = _a.isSelected, isAr = _a.isAr;
|
|
50
|
+
return (__assign(__assign({ color: theme.palette.text.primary }, theme.typography.body2), { textAlign: isAr ? 'right' : 'left', fontWeight: isSelected ? theme.typography.fontWeightRegular : theme.typography.fontWeightLight, paddingInlineStart: theme.spacing(1.25) }));
|
|
62
51
|
});
|
|
63
|
-
export var
|
|
52
|
+
export var InputLabelStyled = styled(Text)(function (_a) {
|
|
64
53
|
var theme = _a.theme;
|
|
65
|
-
return ({
|
|
66
|
-
width: theme.spacing(2.75),
|
|
67
|
-
height: theme.spacing(2.125),
|
|
68
|
-
cursor: 'pointer',
|
|
69
|
-
color: alpha(theme.palette.text.primary, 0.4)
|
|
70
|
-
});
|
|
54
|
+
return (__assign({ margin: theme.spacing(2.5, 2.5, 1.5, 2.5), color: alpha(theme.palette.text.primary, 0.4) }, theme.typography.caption));
|
|
71
55
|
});
|
|
72
|
-
export var
|
|
56
|
+
export var CheckIconStyled = styled(CheckIcon)(function (_a) {
|
|
73
57
|
var theme = _a.theme;
|
|
74
58
|
return ({
|
|
59
|
+
color: theme.palette.success.main,
|
|
75
60
|
display: 'flex',
|
|
76
|
-
|
|
77
|
-
margin: theme.spacing(2.5, 2.5, 1.5, 2.5)
|
|
61
|
+
alignItems: 'flex-end'
|
|
78
62
|
});
|
|
79
63
|
});
|
|
80
|
-
var
|
|
81
|
-
export var CheckIconStyled = styled(CheckIcon)(function (_a) {
|
|
64
|
+
var ListItem = styled(Box)(function (_a) {
|
|
82
65
|
var theme = _a.theme;
|
|
83
66
|
return ({
|
|
84
|
-
color: theme.palette.primary.main,
|
|
85
67
|
display: 'flex',
|
|
86
|
-
|
|
68
|
+
justifyContent: 'space-between',
|
|
69
|
+
width: '100%',
|
|
70
|
+
paddingInlineStart: theme.spacing(2.5),
|
|
71
|
+
paddingInlineEnd: theme.spacing(2.5),
|
|
72
|
+
paddingTop: theme.spacing(1.5),
|
|
73
|
+
paddingBottom: theme.spacing(1.5)
|
|
87
74
|
});
|
|
88
75
|
});
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
76
|
+
var ListItemContainer = styled(Box)(function () { return ({
|
|
77
|
+
display: 'flex',
|
|
78
|
+
flexDirection: 'column',
|
|
79
|
+
width: '100%'
|
|
80
|
+
}); });
|
|
81
|
+
var SimpleListStyled = styled((SimpleList))(function () { return ({
|
|
82
|
+
height: 'fit-content'
|
|
83
|
+
}); });
|
|
84
|
+
var DivisionListStyled = styled((SimpleList))(function () { return ({
|
|
85
|
+
height: 'fit-content'
|
|
86
|
+
}); });
|
|
87
|
+
var ActivityListStyled = styled((SimpleList))(function () { return ({
|
|
88
|
+
height: 'fit-content'
|
|
89
|
+
}); });
|
|
90
|
+
var ActivityList = function (_a) {
|
|
91
|
+
var onListClose = _a.onListClose, onListOpen = _a.onListOpen, readOnly = _a.readOnly;
|
|
92
|
+
var _b = React.useState([]), activities = _b[0], setActivities = _b[1];
|
|
96
93
|
var _c = React.useState(null), anchorEl = _c[0], setAnchorEl = _c[1];
|
|
94
|
+
var _d = React.useState(''), subIndex = _d[0], setSubIndex = _d[1];
|
|
95
|
+
var _e = React.useState(''), subItemIndex = _e[0], setSubItemIndex = _e[1];
|
|
97
96
|
var t = useTranslation().t;
|
|
98
97
|
var isAr = useLanguage().isAr;
|
|
99
98
|
var control = useFormContext().control;
|
|
100
|
-
var dispatch = useAppDispatch();
|
|
101
|
-
var _d = useAppSelector(entitySelector), data = _d.data, error = _d.error;
|
|
102
99
|
var activitiesControl = useController({ name: 'activities', control: control });
|
|
100
|
+
var data = useAppSelector(entitySelector).data;
|
|
101
|
+
var settingsData = useAppSelector(settingsSelector).data;
|
|
102
|
+
var activityList = (data.verify.responseBody || {}).activityList;
|
|
103
103
|
var controlValue = activitiesControl.field.value;
|
|
104
|
-
var
|
|
105
|
-
var
|
|
106
|
-
|
|
107
|
-
var licenseType = (_a = entity === null || entity === void 0 ? void 0 : entity.license) === null || _a === void 0 ? void 0 : _a.type;
|
|
108
|
-
var type = licenseType === 'freelance' ? BusinessType.FL : BusinessType.CR;
|
|
109
|
-
var isCR = type === BusinessType.CR;
|
|
110
|
-
var disabled = false;
|
|
111
|
-
var setSelectedActivitiesBeginning = function (list) {
|
|
112
|
-
var mapSelectedListFirst = __spreadArray(__spreadArray([], list.filter(function (a) { return (controlValue || []).some(function (c) { return a.id === c.id; }); }), true), list.filter(function (a) { return !(controlValue || []).some(function (c) { return a.id === c.id; }); }), true);
|
|
113
|
-
setActivitiesMenuList(mapSelectedListFirst);
|
|
114
|
-
};
|
|
115
|
-
React.useEffect(function () {
|
|
116
|
-
if ((activityList === null || activityList === void 0 ? void 0 : activityList.length) > 0) {
|
|
117
|
-
var list = __spreadArray([], activityList, true);
|
|
118
|
-
var sortedList = sortActivitiesByName(list, isAr ? 'name.ar' : 'name.en');
|
|
119
|
-
setSelectedActivitiesBeginning(sortedList);
|
|
120
|
-
}
|
|
121
|
-
}, [activityList]);
|
|
122
|
-
var onOpenList = function (event) {
|
|
123
|
-
var _a, _b;
|
|
124
|
-
if (props.readOnly)
|
|
104
|
+
var countryCode = settingsData.businessCountry;
|
|
105
|
+
var handleOpenMainMenu = function (event) {
|
|
106
|
+
if (readOnly)
|
|
125
107
|
return;
|
|
126
|
-
if ((controlValue === null || controlValue === void 0 ? void 0 : controlValue.length) > ((_a = entity === null || entity === void 0 ? void 0 : entity.activities) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
127
|
-
var list = __spreadArray([], activitiesMenuList, true);
|
|
128
|
-
setSelectedActivitiesBeginning(list);
|
|
129
|
-
}
|
|
130
108
|
setAnchorEl(event.currentTarget);
|
|
131
|
-
|
|
109
|
+
onListOpen === null || onListOpen === void 0 ? void 0 : onListOpen();
|
|
132
110
|
};
|
|
133
|
-
var
|
|
134
|
-
var _a;
|
|
111
|
+
var handleCloseMainMenu = function () {
|
|
135
112
|
setAnchorEl(null);
|
|
136
|
-
|
|
113
|
+
onListClose === null || onListClose === void 0 ? void 0 : onListClose();
|
|
114
|
+
handleCloseSubMenu();
|
|
115
|
+
handleCloseSubItem();
|
|
116
|
+
if ((activityList === null || activityList === void 0 ? void 0 : activityList.length) > 0) {
|
|
117
|
+
setActivities(activityList);
|
|
118
|
+
}
|
|
137
119
|
};
|
|
138
|
-
var
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
120
|
+
var handleOpenSubMenu = function (index) {
|
|
121
|
+
if (subIndex === index)
|
|
122
|
+
setSubIndex('');
|
|
123
|
+
else
|
|
124
|
+
setSubIndex(index);
|
|
125
|
+
};
|
|
126
|
+
var handleCloseSubMenu = function () {
|
|
127
|
+
setSubIndex('');
|
|
128
|
+
};
|
|
129
|
+
var handleOpenSubItem = function (index) {
|
|
130
|
+
if (subItemIndex === index)
|
|
131
|
+
setSubItemIndex('');
|
|
132
|
+
else
|
|
133
|
+
setSubItemIndex(index);
|
|
134
|
+
};
|
|
135
|
+
var handleCloseSubItem = function () {
|
|
136
|
+
setSubItemIndex('');
|
|
137
|
+
};
|
|
138
|
+
React.useEffect(function () {
|
|
139
|
+
if ((activityList === null || activityList === void 0 ? void 0 : activityList.length) > 0) {
|
|
140
|
+
setActivities(activityList);
|
|
141
|
+
}
|
|
142
|
+
}, [activityList]);
|
|
143
|
+
var onSelectItem = function (id) {
|
|
144
|
+
var isActivityExists = controlValue === null || controlValue === void 0 ? void 0 : controlValue.find(function (activityId) { return activityId === id; });
|
|
146
145
|
if (isActivityExists) {
|
|
147
|
-
var updatedIdList = controlValue === null || controlValue === void 0 ? void 0 : controlValue.filter(function (
|
|
146
|
+
var updatedIdList = controlValue === null || controlValue === void 0 ? void 0 : controlValue.filter(function (activityId) { return activityId !== id; });
|
|
148
147
|
if (updatedIdList.length >= 1)
|
|
149
148
|
activitiesControl.field.onChange(updatedIdList);
|
|
150
149
|
return;
|
|
151
150
|
}
|
|
152
|
-
|
|
151
|
+
var ids = controlValue ? __spreadArray(__spreadArray([], controlValue, true), [id], false) : [id];
|
|
152
|
+
activitiesControl.field.onChange(ids);
|
|
153
153
|
};
|
|
154
154
|
var getSelectedActivities = function () {
|
|
155
|
-
var _a, _b;
|
|
155
|
+
var _a, _b, _c;
|
|
156
156
|
if ((controlValue === null || controlValue === void 0 ? void 0 : controlValue.length) > 1) {
|
|
157
157
|
return (controlValue === null || controlValue === void 0 ? void 0 : controlValue.length) + ' ' + t('activities_selected');
|
|
158
158
|
}
|
|
159
|
-
var item = controlValue[0];
|
|
160
|
-
return isAr ? (_a = item === null || item === void 0 ? void 0 : item.name) === null || _a === void 0 ? void 0 : _a.ar
|
|
159
|
+
var item = (controlValue || [])[0];
|
|
160
|
+
return isAr ? ((_a = item === null || item === void 0 ? void 0 : item.name) === null || _a === void 0 ? void 0 : _a.ar) || ((_b = item === null || item === void 0 ? void 0 : item.name) === null || _b === void 0 ? void 0 : _b.en) : (_c = item === null || item === void 0 ? void 0 : item.name) === null || _c === void 0 ? void 0 : _c.en;
|
|
161
|
+
};
|
|
162
|
+
var getSelectedActivityName = function (item) {
|
|
163
|
+
var _a, _b, _c;
|
|
164
|
+
return isAr ? ((_a = item === null || item === void 0 ? void 0 : item.name) === null || _a === void 0 ? void 0 : _a.ar) || ((_b = item === null || item === void 0 ? void 0 : item.name) === null || _b === void 0 ? void 0 : _b.en) : (_c = item === null || item === void 0 ? void 0 : item.name) === null || _c === void 0 ? void 0 : _c.en;
|
|
161
165
|
};
|
|
162
|
-
var
|
|
163
|
-
|
|
166
|
+
var getSelectedActivitySectionFlag = function (section) {
|
|
167
|
+
var findSection = controlValue === null || controlValue === void 0 ? void 0 : controlValue.find(function (id) { return id === section.id; });
|
|
168
|
+
var findDivision = controlValue === null || controlValue === void 0 ? void 0 : controlValue.find(function (id) { var _a; return (_a = section.divisions) === null || _a === void 0 ? void 0 : _a.find(function (division) { return division.id === id; }); });
|
|
169
|
+
var findActivity = controlValue === null || controlValue === void 0 ? void 0 : controlValue.find(function (id) { var _a; return (_a = section.divisions) === null || _a === void 0 ? void 0 : _a.find(function (division) { var _a; return (_a = division === null || division === void 0 ? void 0 : division.activities) === null || _a === void 0 ? void 0 : _a.find(function (activity) { return activity.id === id; }); }); });
|
|
170
|
+
if (findSection || findDivision || findActivity)
|
|
171
|
+
return section.id;
|
|
172
|
+
return '';
|
|
164
173
|
};
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
174
|
+
var getSelectedActivityDivisionFlag = function (division) {
|
|
175
|
+
var findDivision = controlValue === null || controlValue === void 0 ? void 0 : controlValue.find(function (id) { var _a; return (_a = division.activities) === null || _a === void 0 ? void 0 : _a.find(function (activity) { return activity.id === id; }); });
|
|
176
|
+
if (findDivision)
|
|
177
|
+
return division.id;
|
|
178
|
+
return '';
|
|
179
|
+
};
|
|
180
|
+
var getSelectedActivityFlag = function (activity) {
|
|
181
|
+
var findActivity = controlValue === null || controlValue === void 0 ? void 0 : controlValue.find(function (id) { return id === activity.id; });
|
|
182
|
+
if (findActivity)
|
|
183
|
+
return activity.id;
|
|
184
|
+
return '';
|
|
185
|
+
};
|
|
186
|
+
var handleSearch = function (value) {
|
|
187
|
+
if (!value) {
|
|
188
|
+
setActivities(activityList);
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
var filteredList = (activityList || [])
|
|
192
|
+
.flatMap(function (s) { return s.divisions; })
|
|
193
|
+
.flatMap(function (d) { return d.activities; })
|
|
194
|
+
.filter(function (a) {
|
|
195
|
+
var _a, _b, _c, _d;
|
|
196
|
+
return ((_b = (_a = a === null || a === void 0 ? void 0 : a.name) === null || _a === void 0 ? void 0 : _a.en) === null || _b === void 0 ? void 0 : _b.toLowerCase().includes(value.toLowerCase())) || ((_d = (_c = a === null || a === void 0 ? void 0 : a.name) === null || _c === void 0 ? void 0 : _c.ar) === null || _d === void 0 ? void 0 : _d.toLowerCase().includes(value.toLowerCase()));
|
|
197
|
+
});
|
|
198
|
+
setActivities(filteredList);
|
|
199
|
+
};
|
|
200
|
+
React.useEffect(function () {
|
|
201
|
+
var item = isExist(activityList || [], controlValue === null || controlValue === void 0 ? void 0 : controlValue.id);
|
|
202
|
+
if (item)
|
|
203
|
+
setSubIndex(item.id);
|
|
204
|
+
}, [anchorEl, controlValue]);
|
|
205
|
+
return (_jsxs(ScreenContainer, { children: [_jsx(InputLabelStyled, { children: t('expected_sales_monthly', {
|
|
206
|
+
currency: t(findCurrencyByIso2(countryCode.iso2))
|
|
207
|
+
}) }), _jsx(InputStyled, { readOnly: readOnly, value: getSelectedActivities() || '', onClick: !!anchorEl ? handleCloseMainMenu : handleOpenMainMenu, placeholder: t('choose_expected_sales'), endAdornment: _jsx(ExpandIcon, { anchorEl: !!anchorEl }) }), _jsxs(Collapse, __assign({ in: !!anchorEl }, { children: [_jsx(Search, { onSearchValue: handleSearch }), _jsx(SimpleListStyled, { sx: { maxHeight: '350px', paddingTop: 0 }, list: activities, listItemProps: { sx: { padding: 0 } }, onSelectItem: function (section) {
|
|
208
|
+
var isDivisionNotAvailable = !section.divisions || section.divisions.length === 0;
|
|
209
|
+
if (isDivisionNotAvailable)
|
|
210
|
+
onSelectItem(section.id);
|
|
211
|
+
else
|
|
212
|
+
handleOpenSubMenu(section.id);
|
|
213
|
+
}, renderItem: function (section) {
|
|
214
|
+
var _a;
|
|
215
|
+
var isDivisionNotAvailable = !section.divisions || ((_a = section.divisions) === null || _a === void 0 ? void 0 : _a.length) === 0;
|
|
216
|
+
var showCheck = section.id === getSelectedActivitySectionFlag(section) && isDivisionNotAvailable;
|
|
217
|
+
return (_jsxs(ListItemContainer, { children: [_jsxs(ListItem, __assign({ sx: __assign({ bgcolor: 'rgb(196 184 184 / 8%)', borderBottom: '1px solid rgba(227, 232, 238, 0.8)' }, (isDivisionNotAvailable && { bgcolor: 'inherit', borderBottom: 'none' })) }, { children: [_jsx(NameContainer, __assign({ isAr: isAr, isSelected: section.id === getSelectedActivitySectionFlag(section), sx: __assign({}, (isDivisionNotAvailable && { paddingInlineStart: '5px' })) }, { children: getSelectedActivityName(section) })), showCheck ? _jsx(CheckIconStyled, {}) : !isDivisionNotAvailable && _jsx(ExpandIcon, { anchorEl: subIndex === section.id })] })), _jsx(Collapse, __assign({ in: section.id === subIndex && !isDivisionNotAvailable }, { children: _jsx(DivisionListStyled, { sx: { pt: 0, pb: 0 }, list: (!isDivisionNotAvailable && section.divisions) || [], onSelectItem: function (division, e) {
|
|
218
|
+
e.stopPropagation();
|
|
219
|
+
var isOnlyOneItem = !division.activities || division.activities.length === 1;
|
|
220
|
+
if (isOnlyOneItem)
|
|
221
|
+
onSelectItem(division.id);
|
|
222
|
+
else
|
|
223
|
+
handleOpenSubItem(division.id);
|
|
224
|
+
}, listItemProps: { sx: { padding: 0, '&:last-child': { paddingBottom: 0 } } }, renderItem: function (division, idx) {
|
|
225
|
+
var _a;
|
|
226
|
+
var isOnlyOneItem = !division.activities || ((_a = division.activities) === null || _a === void 0 ? void 0 : _a.length) === 1;
|
|
227
|
+
var showCheck = division.id === getSelectedActivityDivisionFlag(division) && isOnlyOneItem;
|
|
228
|
+
return (_jsxs(ListItemContainer, { children: [_jsxs(ListItem, __assign({ sx: __assign({ bgcolor: 'rgb(196 184 184 / 4%)', borderBottom: '1px solid rgba(227, 232, 238, 0.4)' }, (isOnlyOneItem && { bgcolor: 'inherit', borderBottom: 'none' })) }, { children: [_jsx(NameContainer, __assign({ isAr: isAr, isSelected: division.id === getSelectedActivityDivisionFlag(division), sx: __assign({}, (isOnlyOneItem && { paddingInlineStart: '5px' })) }, { children: getSelectedActivityName(division) })), showCheck ? _jsx(CheckIconStyled, {}) : !isOnlyOneItem && _jsx(ExpandIcon, { anchorEl: subItemIndex === division.id })] })), _jsx(Collapse, __assign({ in: division.id === subItemIndex && !isOnlyOneItem }, { children: _jsx(ActivityListStyled, { sx: { pt: 0, pb: 0 }, list: (!isOnlyOneItem && division.activities) || [], onSelectItem: function (activity, e) {
|
|
229
|
+
e.stopPropagation();
|
|
230
|
+
onSelectItem(activity.id);
|
|
231
|
+
}, listItemProps: { sx: { padding: 0, '&:last-child': { paddingBottom: 0 } } }, renderItem: function (activity, idx) {
|
|
232
|
+
return (_jsxs(ListItem, __assign({ sx: { mt: idx === 0 ? 1 : 0 } }, { children: [_jsx(NameContainer, __assign({ isAr: isAr, isSelected: activity.id === getSelectedActivityFlag(activity) }, { children: getSelectedActivityName(activity) })), activity.id === getSelectedActivityFlag(activity) && _jsx(CheckIconStyled, {})] })));
|
|
233
|
+
} }) }))] }, idx));
|
|
234
|
+
} }) }))] }));
|
|
235
|
+
} })] }))] }));
|
|
169
236
|
};
|
|
170
|
-
export default
|
|
237
|
+
export default ActivityList;
|
|
@@ -1,61 +1,16 @@
|
|
|
1
1
|
import * as yup from 'yup';
|
|
2
2
|
export declare const EntityCapitalValidationSchema: () => yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
3
|
-
activities: yup.ArraySchema<yup.
|
|
4
|
-
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
5
|
-
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
6
|
-
}>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
7
|
-
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
8
|
-
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
9
|
-
}>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
10
|
-
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
11
|
-
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
12
|
-
}>>>, import("yup/lib/types").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
13
|
-
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
14
|
-
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
15
|
-
}>>[] | undefined, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
16
|
-
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
17
|
-
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
18
|
-
}>>[] | undefined>;
|
|
3
|
+
activities: yup.ArraySchema<yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>, import("yup/lib/types").AnyObject, (string | undefined)[] | undefined, (string | undefined)[] | undefined>;
|
|
19
4
|
capitalPaid: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
20
5
|
capitalShareCount: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
21
6
|
capitalShareValue: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
22
7
|
}>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
23
|
-
activities: yup.ArraySchema<yup.
|
|
24
|
-
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
25
|
-
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
26
|
-
}>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
27
|
-
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
28
|
-
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
29
|
-
}>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
30
|
-
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
31
|
-
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
32
|
-
}>>>, import("yup/lib/types").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
33
|
-
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
34
|
-
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
35
|
-
}>>[] | undefined, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
36
|
-
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
37
|
-
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
38
|
-
}>>[] | undefined>;
|
|
8
|
+
activities: yup.ArraySchema<yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>, import("yup/lib/types").AnyObject, (string | undefined)[] | undefined, (string | undefined)[] | undefined>;
|
|
39
9
|
capitalPaid: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
40
10
|
capitalShareCount: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
41
11
|
capitalShareValue: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
42
12
|
}>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
43
|
-
activities: yup.ArraySchema<yup.
|
|
44
|
-
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
45
|
-
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
46
|
-
}>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
47
|
-
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
48
|
-
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
49
|
-
}>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
50
|
-
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
51
|
-
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
52
|
-
}>>>, import("yup/lib/types").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
53
|
-
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
54
|
-
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
55
|
-
}>>[] | undefined, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
56
|
-
ar: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
57
|
-
en: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
58
|
-
}>>[] | undefined>;
|
|
13
|
+
activities: yup.ArraySchema<yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>, import("yup/lib/types").AnyObject, (string | undefined)[] | undefined, (string | undefined)[] | undefined>;
|
|
59
14
|
capitalPaid: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
60
15
|
capitalShareCount: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
61
16
|
capitalShareValue: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import * as yup from 'yup';
|
|
2
2
|
export var EntityCapitalValidationSchema = function () {
|
|
3
3
|
return yup.object().shape({
|
|
4
|
-
activities: yup
|
|
5
|
-
.array()
|
|
6
|
-
.min(1, 'activities_list_alert')
|
|
7
|
-
.of(yup.object().shape({
|
|
8
|
-
ar: yup.string(),
|
|
9
|
-
en: yup.string()
|
|
10
|
-
})),
|
|
4
|
+
activities: yup.array().min(1, 'activities_list_alert').of(yup.string()),
|
|
11
5
|
capitalPaid: yup.string().required('capital_paid_required'),
|
|
12
6
|
capitalShareCount: yup.string().required('capital_share_count_required'),
|
|
13
7
|
capitalShareValue: yup.string().required('capital_share_value_required')
|