@zohodesk/library-platform 1.1.0-exp.1 → 1.1.0-exp.2
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/es/bc/zclient-actions/Constants.js +11 -0
- package/es/bc/zclient-actions/EventHandlers.js +1 -0
- package/es/bc/zlist/Properties.js +3 -0
- package/es/bc/zrecord/Constants.js +3 -1
- package/es/cc/table-connected/Properties.js +3 -0
- package/es/cc/table-list/Properties.js +32 -8
- package/es/cc/table-list/data-types/Header.js +8 -7
- package/es/cc/table-list/data-types/RowActionsConfig.js +1 -0
- package/es/cc/table-list/data-types/RowCursor.js +8 -0
- package/es/cc/table-list/row/Properties.js +16 -3
- package/es/desk-frameworks/table-connected/frameworks/TableConnectedFactory.js +4 -1
- package/es/desk-frameworks/table-connected/frameworks/TableConnectedView.js +4 -2
- package/es/desk-frameworks/table-connected/frameworks/__tests__/TableConnectedFactory.spec.js +453 -0
- package/es/desk-frameworks/table-connected/frameworks/__tests__/mock/data-broker/http-template/getAvailableFields.js +86 -0
- package/es/desk-frameworks/table-connected/frameworks/__tests__/mock/data-broker/http-template/getRecords.js +81 -0
- package/es/desk-frameworks/table-connected/frameworks/__tests__/mock/data-broker/http-template/getSelectedFields.js +32 -0
- package/es/desk-frameworks/table-connected/frameworks/__tests__/mock/data-broker/index.js +11 -0
- package/es/library/behaviours/list-selection/domain/entities/ListItemSelection.js +29 -9
- package/es/library/custom-component/domain/entities/Component.js +8 -4
- package/es/library/dot/components/table-list/frameworks/ui/TableListView.js +16 -6
- package/es/library/dot/components/table-list/frameworks/ui/css/TableList.module.css +10 -0
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/Header.js +7 -6
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/Rows.js +9 -7
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/ActionColumn.js +3 -2
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/HeaderData.js +2 -4
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/Headers.js +0 -4
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/SelectAll.js +4 -4
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Columns.js +2 -6
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Row.js +13 -7
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowActions.js +2 -1
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowData.js +2 -4
- package/es/platform/data-broker/http-template/deleteRecord.js +1 -1
- package/es/platform/data-broker/http-template/deleteRecords.js +1 -1
- package/es/platform/data-broker/http-template/getAvailableFields.js +1 -1
- package/es/platform/data-broker/http-template/getClientActions.js +23 -0
- package/es/platform/data-broker/http-template/getRecords.js +1 -1
- package/es/platform/data-broker/http-template/getSelectedFields.js +1 -1
- package/es/platform/data-broker/http-template/updateRecord.js +1 -1
- package/es/platform/data-broker/index.js +3 -3
- package/es/platform/zclient-actions/Readme.md +38 -0
- package/es/platform/zclient-actions/adapters/controllers/AbstractController.js +8 -0
- package/es/platform/zclient-actions/adapters/controllers/ClientActionBehaviourExecutorController.js +27 -0
- package/es/platform/zclient-actions/adapters/controllers/FailureController.js +28 -0
- package/es/platform/zclient-actions/adapters/controllers/FetchStateStopController.js +21 -0
- package/es/platform/zclient-actions/adapters/controllers/MountController.js +25 -0
- package/es/platform/zclient-actions/adapters/controllers/NoContentController.js +23 -0
- package/es/platform/zclient-actions/adapters/controllers/SetClientActionsController.js +24 -0
- package/es/platform/zclient-actions/adapters/controllers/SuccessController.js +28 -0
- package/es/platform/zclient-actions/adapters/gateways/Repository.js +28 -0
- package/es/platform/zclient-actions/adapters/gateways/Service.js +35 -0
- package/es/platform/zclient-actions/adapters/presenters/Presenter.js +24 -0
- package/es/platform/zclient-actions/applications/entities-factory/ClientActionFactory.js +12 -0
- package/es/platform/zclient-actions/applications/entities-factory/ClientActionManagerFactory.js +10 -0
- package/es/platform/zclient-actions/applications/interfaces/InputDependencies.js +1 -0
- package/es/platform/zclient-actions/applications/interfaces/gateways/IRepository.js +1 -0
- package/es/platform/zclient-actions/applications/interfaces/gateways/IService.js +0 -0
- package/es/platform/zclient-actions/applications/interfaces/gateways/State.js +1 -0
- package/es/platform/zclient-actions/applications/interfaces/input/ExecuteActionBehaviourInputModel.js +1 -0
- package/es/platform/zclient-actions/applications/interfaces/input/FailureInputModel.js +1 -0
- package/es/platform/zclient-actions/applications/interfaces/input/FetchStateStopInputModel.js +1 -0
- package/es/platform/zclient-actions/applications/interfaces/input/InitializeInputModel.js +1 -0
- package/es/platform/zclient-actions/applications/interfaces/input/NoContentInputModel.js +1 -0
- package/es/platform/zclient-actions/applications/interfaces/input/SetClientActionsInputModel.js +1 -0
- package/es/platform/zclient-actions/applications/interfaces/input/SuccessInputModel.js +1 -0
- package/es/platform/zclient-actions/applications/interfaces/output/IPresenter.js +1 -0
- package/es/platform/zclient-actions/applications/usecases/AbstractUseCase.js +17 -0
- package/es/platform/zclient-actions/applications/usecases/ExecuteActionBehaviourUseCase.js +33 -0
- package/es/platform/zclient-actions/applications/usecases/FailureUseCase.js +22 -0
- package/es/platform/zclient-actions/applications/usecases/FetchStateStopUseCase.js +25 -0
- package/es/platform/zclient-actions/applications/usecases/InitializeUseCase.js +17 -0
- package/es/platform/zclient-actions/applications/usecases/NoContentUseCase.js +27 -0
- package/es/platform/zclient-actions/applications/usecases/SetClientActionsUseCase.js +21 -0
- package/es/platform/zclient-actions/applications/usecases/SuccessUseCase.js +22 -0
- package/es/platform/zclient-actions/domain/entities/ClientAction.js +57 -0
- package/es/platform/zclient-actions/domain/entities/ClientActionManager.js +141 -0
- package/es/platform/zclient-actions/domain/entities/ClientActions.js +54 -0
- package/es/platform/zclient-actions/domain/entities/EventMapping.js +32 -0
- package/es/platform/zclient-actions/domain/entities/EventMappings.js +15 -0
- package/es/platform/zclient-actions/domain/entities/GetClientActionsStrategy.js +44 -0
- package/es/platform/zclient-actions/domain/entities/UIComponentMapping.js +37 -0
- package/es/platform/zclient-actions/domain/entities/interfaces/BehaviourState.js +1 -0
- package/es/platform/zclient-actions/domain/entities/interfaces/ClientActionModel.js +1 -0
- package/es/platform/zclient-actions/domain/entities/interfaces/ClientActionsModel.js +1 -0
- package/es/platform/zclient-actions/domain/entities/interfaces/ComponentPropertiesModel.js +1 -0
- package/es/platform/zclient-actions/domain/entities/interfaces/EventMappingModel.js +1 -0
- package/es/platform/zclient-actions/domain/entities/interfaces/EventModel.js +1 -0
- package/es/platform/zclient-actions/domain/entities/interfaces/IAction.js +1 -0
- package/es/platform/zclient-actions/domain/entities/interfaces/IClientAction.js +0 -0
- package/es/platform/zclient-actions/domain/entities/interfaces/IClientActionExecuteStrategy.js +0 -0
- package/es/platform/zclient-actions/domain/entities/interfaces/IClientActionManager.js +0 -0
- package/es/platform/zclient-actions/domain/entities/interfaces/IClientActions.js +0 -0
- package/es/platform/zclient-actions/domain/entities/interfaces/IError.js +1 -0
- package/es/platform/zclient-actions/domain/entities/interfaces/IEvent.js +1 -0
- package/es/platform/zclient-actions/domain/entities/interfaces/IEventMapping.js +0 -0
- package/es/platform/zclient-actions/domain/entities/interfaces/IEventMappings.js +0 -0
- package/es/platform/zclient-actions/domain/entities/interfaces/IPayload.js +0 -0
- package/es/platform/zclient-actions/domain/entities/interfaces/IUIComponentMapping.js +0 -0
- package/es/platform/zclient-actions/domain/entities/interfaces/PayloadValueMappingModel.js +1 -0
- package/es/platform/zclient-actions/domain/entities/interfaces/PropsMeta.js +1 -0
- package/es/platform/zclient-actions/domain/entities/interfaces/StrategyMeta.js +1 -0
- package/es/platform/zclient-actions/domain/entities/interfaces/SubMeta.js +1 -0
- package/es/platform/zclient-actions/domain/entities/interfaces/UIComponentMappingModel.js +1 -0
- package/es/platform/zclient-actions/domain/entities/interfaces/UserDetailsModel.js +1 -0
- package/es/platform/zclient-actions/frameworks/ActionsHandlersFactory.js +47 -0
- package/es/platform/zclient-actions/frameworks/ClientActionBehaviourFactory.js +12 -0
- package/es/platform/zdata-broker/adapters/controllers/{ActionExecutorController.js → DataBrokerExecutorController.js} +1 -1
- package/es/platform/zdata-broker/frameworks/EventHandlersFactory.js +3 -3
- package/es/platform/zlist/adapters/gateways/Repository.js +3 -1
- package/es/platform/zlist/adapters/presenters/TableTranslator.js +31 -2
- package/es/platform/zlist/adapters/presenters/translators/ColumnAlignmentTranslator.js +11 -0
- package/es/platform/zlist/adapters/presenters/translators/ColumnSizeTranslator.js +23 -0
- package/es/platform/zlist/adapters/presenters/translators/Header.js +4 -3
- package/es/platform/zlist/applications/entities-factory/ListFactory.js +3 -2
- package/es/platform/zlist/domain/entities/List.js +12 -21
- package/package.json +21 -20
- package/es/platform/data-broker/http-template/getUIActions.js +0 -22
|
@@ -1,10 +1,29 @@
|
|
|
1
1
|
/* eslint-disable max-lines-per-function */
|
|
2
|
+
import { Width as ColumnWidth } from "../../../../cc/table-list/data-types/Header";
|
|
2
3
|
import HeadersTranslator from "./translators/HeadersTranslator";
|
|
3
4
|
import RowsTranslator from "./translators/RowsTranslator";
|
|
4
5
|
import Pipeline from "./utils/Pipeline";
|
|
6
|
+
import RowCursor from "../../../../cc/table-list/data-types/RowCursor";
|
|
7
|
+
import { TableListConstants } from "../../../../cc/table-list";
|
|
5
8
|
|
|
6
9
|
const fallbackToDefault = (value, defaultValue) => [undefined, null].includes(value) ? defaultValue : value;
|
|
7
10
|
|
|
11
|
+
const splitActions = rowActions => {
|
|
12
|
+
const noUiActions = [];
|
|
13
|
+
const newRowActions = [];
|
|
14
|
+
rowActions.forEach(action => {
|
|
15
|
+
if (!action.uiType || action.uiType === 'no-ui') {
|
|
16
|
+
noUiActions.push(action);
|
|
17
|
+
} else {
|
|
18
|
+
newRowActions.push(action);
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
return {
|
|
22
|
+
noUiActions,
|
|
23
|
+
newRowActions
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
|
|
8
27
|
export default class TableTranslator {
|
|
9
28
|
static transformState(state) {
|
|
10
29
|
const {
|
|
@@ -28,6 +47,12 @@ export default class TableTranslator {
|
|
|
28
47
|
|
|
29
48
|
const fieldUiMapping = uiMapping.fields;
|
|
30
49
|
const rowActionsUiType = uiMapping.rowActionsComponentName;
|
|
50
|
+
const {
|
|
51
|
+
noUiActions,
|
|
52
|
+
newRowActions
|
|
53
|
+
} = splitActions(rowActions);
|
|
54
|
+
const isRowClickable = noUiActions.some(action => action.eventMapping.some(mapping => mapping.action.dispatchType === TableListConstants.TABLE_LIST_ROW_CLICKED));
|
|
55
|
+
const rowCursor = isRowClickable ? RowCursor.Pointer : RowCursor.Default;
|
|
31
56
|
const {
|
|
32
57
|
fields: availableFields,
|
|
33
58
|
selectedFields,
|
|
@@ -38,13 +63,17 @@ export default class TableTranslator {
|
|
|
38
63
|
const isLoading = !!(isRecordsFetching || isAvailableFieldsFetching || isSelectedFieldsFetching);
|
|
39
64
|
const fields = selectedFields === null || selectedFields === void 0 ? void 0 : selectedFields.map(selectedField => availableFields === null || availableFields === void 0 ? void 0 : availableFields.find(availableField => availableField.name === selectedField)).filter(f => f != undefined);
|
|
40
65
|
const headersTranslator = new HeadersTranslator(fields);
|
|
41
|
-
const rowsTranslator = new RowsTranslator(records, fields,
|
|
66
|
+
const rowsTranslator = new RowsTranslator(records, fields, newRowActions, pageContext, fieldUiMapping, rowActionsUiType);
|
|
42
67
|
const translators = [headersTranslator.getTranslator(), rowsTranslator.getTranslator()]; // TODO: Implement ModuleTableModel, and move data and isLoading to tableViewModel Object
|
|
43
68
|
|
|
44
69
|
return {
|
|
45
70
|
properties,
|
|
46
71
|
behaviours,
|
|
47
|
-
|
|
72
|
+
rowCursor,
|
|
73
|
+
rowActionsConfig: {
|
|
74
|
+
hasActions: Boolean(newRowActions === null || newRowActions === void 0 ? void 0 : newRowActions.length),
|
|
75
|
+
columnWidth: ColumnWidth.XSmall
|
|
76
|
+
},
|
|
48
77
|
isLoading,
|
|
49
78
|
emptyStateUiType: uiMapping.emptyState || '',
|
|
50
79
|
data: Pipeline.run(translators, {})
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Alignment } from "../../../../../cc/table-list/data-types/Header";
|
|
2
|
+
|
|
3
|
+
function ColumnAlignmentTranslator(type) {
|
|
4
|
+
if (type === 'Boolean') {
|
|
5
|
+
return Alignment.Center;
|
|
6
|
+
} else {
|
|
7
|
+
return Alignment.Left;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default ColumnAlignmentTranslator;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Width } from "../../../../../cc/table-list/data-types/Header"; // TODO: Need to get the final column width from the visual team
|
|
2
|
+
|
|
3
|
+
const columnSizeMapping = {
|
|
4
|
+
Multiselect: Width.XXLarge,
|
|
5
|
+
Boolean: Width.Medium,
|
|
6
|
+
Number: Width.Medium,
|
|
7
|
+
Decimal: Width.Medium,
|
|
8
|
+
Currency: Width.Medium,
|
|
9
|
+
Date: Width.Medium,
|
|
10
|
+
Percent: Width.Medium
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
function ColumnSizeTranslator(type) {
|
|
14
|
+
const columnSize = columnSizeMapping[type];
|
|
15
|
+
|
|
16
|
+
if (columnSize) {
|
|
17
|
+
return columnSize;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return Width.Large;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default ColumnSizeTranslator;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ColumnSizeTranslator from "./ColumnSizeTranslator";
|
|
2
|
+
import ColumnAlignmentTranslator from "./ColumnAlignmentTranslator";
|
|
2
3
|
|
|
3
4
|
function HeaderTranslator(field) {
|
|
4
5
|
const {
|
|
@@ -13,8 +14,8 @@ function HeaderTranslator(field) {
|
|
|
13
14
|
name: name,
|
|
14
15
|
text: displayLabel,
|
|
15
16
|
sortable: isSortable,
|
|
16
|
-
alignment: type
|
|
17
|
-
|
|
17
|
+
alignment: ColumnAlignmentTranslator(type),
|
|
18
|
+
width: ColumnSizeTranslator(type)
|
|
18
19
|
};
|
|
19
20
|
}
|
|
20
21
|
|
|
@@ -1,24 +1,28 @@
|
|
|
1
1
|
import { RECORD_EXECUTE, RECORD_FETCH_MORE, RECORD_REFETCH, RecordApiActionName } from "../../../../bc/zrecord/Constants";
|
|
2
2
|
import { FIELD_EXECUTE, FIELD_REFETCH } from "../../../../bc/zfield/Constants";
|
|
3
3
|
import { ZLIST_RECORD_DELETE_FAILED, ZLIST_RECORD_DELETE_SUCCEEDED, ZLIST_RECORD_UPDATE_FAILED, ZLIST_RECORD_UPDATE_SUCCEEDED } from "../../../../bc/zlist/Constants";
|
|
4
|
+
import { CLIENTACTION_BEHAVIOUR_EXECUTE } from "../../../../bc/zclient-actions/Constants";
|
|
4
5
|
|
|
5
6
|
class List {
|
|
6
|
-
constructor(limit, sortBy, filter) {
|
|
7
|
+
constructor(limit, sortBy, filter, pageContext) {
|
|
7
8
|
this.limit = limit;
|
|
8
9
|
this.sortBy = sortBy;
|
|
9
10
|
this.filter = filter;
|
|
11
|
+
this.pageContext = pageContext;
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
createApiProps() {
|
|
13
15
|
const {
|
|
14
16
|
filter,
|
|
15
17
|
limit,
|
|
16
|
-
sortBy
|
|
18
|
+
sortBy,
|
|
19
|
+
pageContext
|
|
17
20
|
} = this;
|
|
18
21
|
return {
|
|
19
22
|
limit,
|
|
20
23
|
sortBy,
|
|
21
|
-
...filter
|
|
24
|
+
...filter,
|
|
25
|
+
...pageContext
|
|
22
26
|
};
|
|
23
27
|
}
|
|
24
28
|
|
|
@@ -28,8 +32,7 @@ class List {
|
|
|
28
32
|
}
|
|
29
33
|
|
|
30
34
|
getInitialMountFetchActions() {
|
|
31
|
-
return [this.createRecordsFetchAction(), this.createAvailableFieldsFetchAction(), this.createSelectedFieldsFetchAction()
|
|
32
|
-
];
|
|
35
|
+
return [this.createRecordsFetchAction(), this.createAvailableFieldsFetchAction(), this.createSelectedFieldsFetchAction(), this.createClientActionsFetchAction()];
|
|
33
36
|
}
|
|
34
37
|
|
|
35
38
|
getPropertiesChangeRefetchActions(previousProperties, currentProperties) {
|
|
@@ -234,14 +237,14 @@ class List {
|
|
|
234
237
|
};
|
|
235
238
|
}
|
|
236
239
|
|
|
237
|
-
|
|
240
|
+
createClientActionsFetchAction() {
|
|
238
241
|
const props = this.createApiProps();
|
|
239
242
|
return {
|
|
240
|
-
type:
|
|
243
|
+
type: CLIENTACTION_BEHAVIOUR_EXECUTE,
|
|
241
244
|
payload: {
|
|
242
|
-
actionName: '
|
|
245
|
+
actionName: 'getClientActions',
|
|
243
246
|
props,
|
|
244
|
-
apiName: '
|
|
247
|
+
apiName: 'clientActions'
|
|
245
248
|
}
|
|
246
249
|
};
|
|
247
250
|
}
|
|
@@ -282,18 +285,6 @@ class List {
|
|
|
282
285
|
};
|
|
283
286
|
}
|
|
284
287
|
|
|
285
|
-
createUIActionsRefetchAction() {
|
|
286
|
-
const props = this.createApiProps();
|
|
287
|
-
return {
|
|
288
|
-
type: RECORD_REFETCH,
|
|
289
|
-
payload: {
|
|
290
|
-
actionName: 'getUIActions',
|
|
291
|
-
props,
|
|
292
|
-
apiName: 'uiActions'
|
|
293
|
-
}
|
|
294
|
-
};
|
|
295
|
-
}
|
|
296
|
-
|
|
297
288
|
}
|
|
298
289
|
|
|
299
290
|
export default List;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/library-platform",
|
|
3
|
-
"version": "1.1.0-exp.
|
|
3
|
+
"version": "1.1.0-exp.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "es/index.js",
|
|
6
6
|
"files": [
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"lint:setup": "ZDPrecommit setupPlugins",
|
|
25
25
|
"lint": "eslint -c .eslintrc.js --ext .ts,.js,.tsx",
|
|
26
26
|
"lint:analytics": "ZDLintingFramework lint",
|
|
27
|
-
"lint:exemption":"ZDLintingFramework exemption-report",
|
|
28
|
-
"lint:ci":"ZDLintingFramework lint-ci",
|
|
27
|
+
"lint:exemption": "ZDLintingFramework exemption-report",
|
|
28
|
+
"lint:ci": "ZDLintingFramework lint-ci",
|
|
29
29
|
"prettify": "node prettify.js staged"
|
|
30
30
|
},
|
|
31
31
|
"author": "",
|
|
@@ -39,39 +39,40 @@
|
|
|
39
39
|
"@typescript-eslint/parser": "^7.11.0",
|
|
40
40
|
"@zoho/SecurityJS": "5.0.2",
|
|
41
41
|
"@zohodesk-private/css-variable-migrator": "^1.0.7",
|
|
42
|
-
"@zohodesk-private/desk-components": "1.2.
|
|
43
|
-
"@zohodesk-private/node-plugins": "1.1.
|
|
44
|
-
"@zohodesk/a11y": "2.2.
|
|
42
|
+
"@zohodesk-private/desk-components": "1.2.4",
|
|
43
|
+
"@zohodesk-private/node-plugins": "1.1.9",
|
|
44
|
+
"@zohodesk/a11y": "2.2.6",
|
|
45
45
|
"@zohodesk/codestandard-analytics": "0.0.2",
|
|
46
46
|
"@zohodesk/codestandard-validator": "0.0.4",
|
|
47
|
-
"@zohodesk/components": "1.2.
|
|
48
|
-
"@zohodesk/dot": "1.
|
|
47
|
+
"@zohodesk/components": "1.2.46",
|
|
48
|
+
"@zohodesk/dot": "1.7.0",
|
|
49
49
|
"@zohodesk/eslint-plugin-architecturerules": "0.0.4",
|
|
50
|
-
"@zohodesk/hooks": "2.0.
|
|
50
|
+
"@zohodesk/hooks": "2.0.5",
|
|
51
51
|
"@zohodesk/i18n": "1.0.0-beta.26",
|
|
52
|
-
"@zohodesk/icons": "1.0.
|
|
52
|
+
"@zohodesk/icons": "1.0.61",
|
|
53
53
|
"@zohodesk/layout": "3.1.0",
|
|
54
|
-
"@zohodesk/svg": "1.1.
|
|
55
|
-
"@zohodesk/utils": "1.3.
|
|
54
|
+
"@zohodesk/svg": "1.1.22",
|
|
55
|
+
"@zohodesk/utils": "1.3.14",
|
|
56
56
|
"@zohodesk/variables": "1.0.0",
|
|
57
57
|
"@zohodesk/virtualizer": "1.0.13",
|
|
58
58
|
"color": "4.2.3",
|
|
59
59
|
"dependency-cruiser": "12.0.1",
|
|
60
60
|
"eslint": "^8.26.0",
|
|
61
|
+
"jest-fetch-mock": "^3.0.3",
|
|
61
62
|
"prettier": "3.3.3",
|
|
62
63
|
"typescript": "^4.9.5"
|
|
63
64
|
},
|
|
64
65
|
"peerDependencies": {
|
|
65
|
-
"@zohodesk-private/desk-components": "1.2.
|
|
66
|
-
"@zohodesk/a11y": "2.2.
|
|
67
|
-
"@zohodesk/components": "1.2.
|
|
68
|
-
"@zohodesk/dot": "1.
|
|
69
|
-
"@zohodesk/hooks": "2.0.
|
|
66
|
+
"@zohodesk-private/desk-components": "1.2.4",
|
|
67
|
+
"@zohodesk/a11y": "2.2.6",
|
|
68
|
+
"@zohodesk/components": "1.2.46",
|
|
69
|
+
"@zohodesk/dot": "1.7.0",
|
|
70
|
+
"@zohodesk/hooks": "2.0.5",
|
|
70
71
|
"@zohodesk/i18n": "1.0.0-beta.26",
|
|
71
|
-
"@zohodesk/icons": "1.0.
|
|
72
|
+
"@zohodesk/icons": "1.0.61",
|
|
72
73
|
"@zohodesk/layout": "3.1.0",
|
|
73
|
-
"@zohodesk/svg": "1.1.
|
|
74
|
-
"@zohodesk/utils": "1.3.
|
|
74
|
+
"@zohodesk/svg": "1.1.22",
|
|
75
|
+
"@zohodesk/utils": "1.3.14",
|
|
75
76
|
"color": "4.2.3"
|
|
76
77
|
},
|
|
77
78
|
"dependencies": {
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import Transformer from "../utils/transformer/Transformer";
|
|
2
|
-
let getUIActions = {
|
|
3
|
-
name: "uiActions",
|
|
4
|
-
api: "https://vimal-19789.tsi.zohocorpin.com:9090/api/v2/records",
|
|
5
|
-
parameters: `{
|
|
6
|
-
"cf_model_name":"{{modelName}}",
|
|
7
|
-
"module":"{{modelName}}"
|
|
8
|
-
}`,
|
|
9
|
-
type: "GET",
|
|
10
|
-
transformer: data => Transformer.transform(data, "UIActionName"),
|
|
11
|
-
properties: {
|
|
12
|
-
modelName: {
|
|
13
|
-
required: true,
|
|
14
|
-
typeMetadata: {
|
|
15
|
-
schema: {
|
|
16
|
-
type: "string"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
export default getUIActions;
|