@zohodesk/library-platform 1.2.2-exp.6 → 1.2.3
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/.DS_Store +0 -0
- package/es/cc/date/Properties.js +0 -15
- package/es/cc/fields/field/Properties.js +1 -8
- package/es/cc/form/Properties.js +0 -8
- package/es/cc/label/Properties.js +5 -12
- package/es/cc/multi-select/Properties.js +1 -8
- package/es/cc/section/Properties.js +1 -8
- package/es/cc/select/Properties.js +1 -8
- package/es/cc/textarea/Properties.js +0 -15
- package/es/cc/textbox/Properties.js +1 -8
- package/es/index.js +6 -4
- package/es/library/dot/components/action-status/frameworks/ui/css/ActionStatus.module.css +3 -3
- package/es/library/dot/components/form/adapters/presenter/TransformState.js +1 -3
- package/es/library/dot/components/form/frameworks/ui/FormView.js +3 -6
- package/es/library/dot/components/form/frameworks/ui/css/Form.module.css +13 -13
- package/es/library/dot/components/form/frameworks/ui/sub-components/Footer.js +7 -16
- package/es/library/dot/components/form/frameworks/ui/sub-components/Header.js +7 -16
- package/es/library/dot/components/form/frameworks/ui/sub-components/Sections.js +2 -4
- package/es/library/dot/components/form-fields/checkbox/frameworks/ui/CheckboxView.js +3 -6
- package/es/library/dot/components/form-fields/currency/frameworks/ui/CurrencyView.js +3 -6
- package/es/library/dot/components/form-fields/date/frameworks/ui/DateView.js +3 -6
- package/es/library/dot/components/form-fields/datetime/frameworks/ui/DateTimeView.js +3 -6
- package/es/library/dot/components/form-fields/decimal/frameworks/ui/DecimalView.js +3 -6
- package/es/library/dot/components/form-fields/email/frameworks/ui/EmailView.js +3 -6
- package/es/library/dot/components/form-fields/field/FieldItem.js +2 -4
- package/es/library/dot/components/form-fields/field/css/FieldItem.module.css +2 -2
- package/es/library/dot/components/form-fields/lookup/frameworks/ui/LookupView.js +3 -6
- package/es/library/dot/components/form-fields/multi-select/frameworks/ui/MultiSelectView.js +4 -7
- package/es/library/dot/components/form-fields/number/frameworks/ui/NumberView.js +3 -6
- package/es/library/dot/components/form-fields/percentage/frameworks/ui/PercentageView.js +4 -7
- package/es/library/dot/components/form-fields/phone/frameworks/ui/PhoneView.js +3 -6
- package/es/library/dot/components/form-fields/pick-list/frameworks/ui/PickListView.js +4 -7
- package/es/library/dot/components/form-fields/textarea/frameworks/ui/TextAreaView.js +3 -6
- package/es/library/dot/components/form-fields/textbox/frameworks/ui/TextBoxView.js +3 -6
- package/es/library/dot/components/form-fields/url/frameworks/ui/UrlView.js +3 -6
- package/es/library/dot/components/section/frameworks/ui/RenderField.js +1 -3
- package/es/library/dot/components/section/frameworks/ui/SectionView.js +6 -11
- package/es/library/dot/components/section/frameworks/ui/css/Section.module.css +3 -3
- package/es/library/dot/components/table-list/frameworks/ui/TableListView.js +4 -8
- package/es/library/dot/components/table-list/frameworks/ui/css/TableList.module.css +25 -25
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/Header.js +4 -6
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/HeaderData.js +6 -11
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/MassAction.js +5 -11
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Row.js +4 -8
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowActions.js +5 -12
- package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowData.js +4 -12
- package/es/library/dot/legacy-to-new-arch/breadcrumb/frameworks/ui/css/Breadcrumb.module.css +4 -4
- package/es/library/dot/legacy-to-new-arch/date/frameworks/ui/DateView.js +4 -10
- package/es/library/dot/legacy-to-new-arch/date/frameworks/ui/css/DateView.module.css +1 -1
- package/es/library/dot/legacy-to-new-arch/highlighted-value/frameworks/ui/css/HighlightedValue.module.css +1 -1
- package/es/library/dot/legacy-to-new-arch/label/frameworks/ui/LabelView.js +5 -11
- package/es/library/dot/legacy-to-new-arch/label/frameworks/ui/css/Label.module.css +4 -4
- package/es/library/dot/legacy-to-new-arch/multi-select/frameworks/ui/MultiSelectView.js +8 -21
- package/es/library/dot/legacy-to-new-arch/multi-select/frameworks/ui/css/MultiSelectView.module.css +7 -7
- package/es/library/dot/legacy-to-new-arch/radio-dropdown/frameworks/ui/css/RadioDropdown.module.css +4 -4
- package/es/library/dot/legacy-to-new-arch/select/frameworks/ui/SelectView.js +8 -18
- package/es/library/dot/legacy-to-new-arch/select/frameworks/ui/css/Select.module.css +2 -2
- package/es/library/dot/legacy-to-new-arch/table-column-chooser/frameworks/ui/css/TableColumnChooserView.module.css +1 -1
- package/es/library/dot/legacy-to-new-arch/table-field-components/radio-dropdown-field/frameworks/ui/css/RadioDropdownField.module.css +1 -1
- package/es/library/dot/legacy-to-new-arch/text-area/frameworks/ui/TextAreaView.js +4 -10
- package/es/library/dot/legacy-to-new-arch/text-area/frameworks/ui/css/TextAreaView.module.css +3 -3
- package/es/library/dot/legacy-to-new-arch/textbox/frameworks/ui/TextBoxView.js +5 -11
- package/es/platform/.DS_Store +0 -0
- package/es/platform/client-actions/cc/action-event-mediator/Properties.js +43 -0
- package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/ClientActionsAdapter.js +2 -1
- package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer.module.css +6 -6
- package/es/platform/client-actions/components/interfaces/ActionViewModel.js +0 -7
- package/es/platform/client-actions/components/row-actions-renderer/domain/entities/interfaces/IState.js +1 -0
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/AdaptiveRowActions/AdaptiveRowActionsRenderer.js +12 -0
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/AdaptiveRowActions/AdaptiveRowActionsRendererView.js +42 -0
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/MoreActions/MoreActionsRenderer.js +10 -0
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/MoreActions/MoreActionsRendererView.js +79 -0
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer.js +12 -0
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer.module.css +23 -0
- package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRendererView.js +37 -0
- package/es/platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema.js +1 -4
- package/es/platform/components/form-connected/frameworks/FormConnectedView.js +0 -2
- package/es/platform/components/smart-action-band/adapters/presenters/ActionBandTranslator.js +10 -7
- package/es/platform/components/smart-action-band/frameworks/SmartActionBandView.js +5 -17
- package/es/platform/zform/adapters/presenter/FormTranslator.js +12 -8
- package/es/platform/zform/adapters/presenter/translators/SectionTranslator.js +14 -10
- package/es/platform/zform/adapters/presenter/translators/fields/BooleanFieldTranslator.js +2 -4
- package/es/platform/zform/adapters/presenter/translators/fields/CurrencyFieldTranslator.js +1 -2
- package/es/platform/zform/adapters/presenter/translators/fields/DateFieldTranslator.js +2 -4
- package/es/platform/zform/adapters/presenter/translators/fields/DateTimeFieldTranslator.js +2 -4
- package/es/platform/zform/adapters/presenter/translators/fields/DecimalFieldTranslator.js +2 -4
- package/es/platform/zform/adapters/presenter/translators/fields/EmailFieldTranslator.js +2 -4
- package/es/platform/zform/adapters/presenter/translators/fields/LookUpFieldTranslator.js +2 -4
- package/es/platform/zform/adapters/presenter/translators/fields/MultiselectFieldTranslator.js +8 -13
- package/es/platform/zform/adapters/presenter/translators/fields/NumberFieldTranslator.js +2 -4
- package/es/platform/zform/adapters/presenter/translators/fields/PercentageFieldTranslator.js +2 -4
- package/es/platform/zform/adapters/presenter/translators/fields/PhoneFieldTranslator.js +2 -4
- package/es/platform/zform/adapters/presenter/translators/fields/PicklistFieldTranslator.js +12 -15
- package/es/platform/zform/adapters/presenter/translators/fields/TextAreaFieldTranslator.js +2 -4
- package/es/platform/zform/adapters/presenter/translators/fields/TextFieldTranslator.js +2 -4
- package/es/platform/zform/adapters/presenter/translators/fields/URLFieldTranslator.js +2 -4
- package/es/platform/zlist/adapters/presenters/SelectionTranslator.js +4 -2
- package/es/platform/zlist/adapters/presenters/TableTranslator.js +1 -6
- package/es/platform/zlist/adapters/presenters/translators/ColumnTranslator.js +1 -7
- package/es/platform/zlist/adapters/presenters/translators/Header.js +6 -7
- package/es/platform/zlist/adapters/presenters/translators/Row.js +5 -6
- package/package.json +1 -1
package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/MassAction.js
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import TableHeadFirstNode from '@zohodesk-private/desk-components/es/table/TableHeadFirstNode/TableHeadFirstNode';
|
|
3
|
-
import TableHeading from '@zohodesk-private/desk-components/es/table/TableHeading/TableHeading';
|
|
3
|
+
import TableHeading from '@zohodesk-private/desk-components/es/table/TableHeading/TableHeading';
|
|
4
|
+
import AdaptiveRowActionsRenderer from "../../../../../../../../platform/client-actions/components/row-actions-renderer/frameworks/ui/AdaptiveRowActions/AdaptiveRowActionsRenderer"; // @ts-ignore
|
|
4
5
|
|
|
5
6
|
import style from "./../../css/TableList.module.css";
|
|
6
|
-
import ClientActionsRenderer from "../../../../../../../../platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer";
|
|
7
|
-
import { Layout } from "../../../../../../../../platform/client-actions/components/interfaces/ActionViewModel";
|
|
8
7
|
|
|
9
8
|
function MassAction(_ref) {
|
|
10
9
|
let {
|
|
11
10
|
isSelectionEnabled,
|
|
12
11
|
isMultiline,
|
|
13
12
|
actions,
|
|
14
|
-
clientScripts
|
|
15
|
-
context
|
|
13
|
+
clientScripts
|
|
16
14
|
} = _ref;
|
|
17
15
|
|
|
18
16
|
if (!isSelectionEnabled) {
|
|
@@ -38,13 +36,9 @@ function MassAction(_ref) {
|
|
|
38
36
|
customStyle: {
|
|
39
37
|
container: style.massActionHeader
|
|
40
38
|
}
|
|
41
|
-
}, /*#__PURE__*/React.createElement(
|
|
39
|
+
}, /*#__PURE__*/React.createElement(AdaptiveRowActionsRenderer, {
|
|
42
40
|
actions: actions,
|
|
43
|
-
clientScripts: clientScripts
|
|
44
|
-
context: context,
|
|
45
|
-
viewMeta: {
|
|
46
|
-
layout: Layout.HORIZONTAL
|
|
47
|
-
}
|
|
41
|
+
clientScripts: clientScripts
|
|
48
42
|
}));
|
|
49
43
|
}
|
|
50
44
|
|
|
@@ -47,8 +47,7 @@ function RowView(_ref, ref) {
|
|
|
47
47
|
} = state.properties;
|
|
48
48
|
const {
|
|
49
49
|
type,
|
|
50
|
-
actions
|
|
51
|
-
context
|
|
50
|
+
actions
|
|
52
51
|
} = rowActionLocation;
|
|
53
52
|
return /*#__PURE__*/React.createElement(TableRow, {
|
|
54
53
|
key: id,
|
|
@@ -91,8 +90,7 @@ function RowView(_ref, ref) {
|
|
|
91
90
|
columnWidth: rowActionsColumnWidth,
|
|
92
91
|
type,
|
|
93
92
|
actions,
|
|
94
|
-
clientScripts
|
|
95
|
-
context
|
|
93
|
+
clientScripts
|
|
96
94
|
}), isDroppable && /*#__PURE__*/React.createElement("div", {
|
|
97
95
|
className: `${style.rowDropIndicator} ${dropPosition === 'downward' && style.dropIndicatorTop} ${dropPosition === 'upward' && style.dropIndicatorBottom}`
|
|
98
96
|
}));
|
|
@@ -173,8 +171,7 @@ function renderRowActions(_ref6) {
|
|
|
173
171
|
columnWidth,
|
|
174
172
|
actions,
|
|
175
173
|
type,
|
|
176
|
-
clientScripts
|
|
177
|
-
context
|
|
174
|
+
clientScripts
|
|
178
175
|
} = _ref6;
|
|
179
176
|
return /*#__PURE__*/React.createElement(RowActions, {
|
|
180
177
|
hasActions: hasActions,
|
|
@@ -182,8 +179,7 @@ function renderRowActions(_ref6) {
|
|
|
182
179
|
columnWidth: columnWidth,
|
|
183
180
|
type: type,
|
|
184
181
|
actions: actions,
|
|
185
|
-
clientScripts: clientScripts
|
|
186
|
-
context: context
|
|
182
|
+
clientScripts: clientScripts
|
|
187
183
|
});
|
|
188
184
|
}
|
|
189
185
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import TableAction from '@zohodesk-private/desk-components/es/table/TableAction/TableAction';
|
|
3
|
+
import AdaptiveRowActionsRenderer from "../../../../../../../../platform/client-actions/components/row-actions-renderer/frameworks/ui/AdaptiveRowActions/AdaptiveRowActionsRenderer";
|
|
3
4
|
import { ActionViewGap } from "../../../../../../../../platform/client-actions/components/interfaces/ActionViewModel";
|
|
4
|
-
import ClientActionsRenderer from "../../../../../../../../platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer";
|
|
5
|
-
import { Layout } from "../../../../../../../../platform/client-actions/components/interfaces/ActionViewModel";
|
|
6
5
|
export default function RowActions(_ref) {
|
|
7
6
|
let {
|
|
8
7
|
hasActions,
|
|
@@ -10,24 +9,18 @@ export default function RowActions(_ref) {
|
|
|
10
9
|
columnWidth,
|
|
11
10
|
type = '',
|
|
12
11
|
actions,
|
|
13
|
-
clientScripts
|
|
14
|
-
context
|
|
12
|
+
clientScripts
|
|
15
13
|
} = _ref;
|
|
16
14
|
|
|
17
15
|
if (hasActions) {
|
|
18
16
|
return /*#__PURE__*/React.createElement(TableAction, {
|
|
19
17
|
$data_width: columnWidth,
|
|
20
18
|
$ui_alignItems: isMultiline ? 'start' : 'center'
|
|
21
|
-
}, /*#__PURE__*/React.createElement(
|
|
19
|
+
}, /*#__PURE__*/React.createElement(AdaptiveRowActionsRenderer, {
|
|
22
20
|
actions: actions,
|
|
23
21
|
clientScripts: clientScripts,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
layout: Layout.HORIZONTAL_WITH_MORE_ACTIONS,
|
|
27
|
-
gap: ActionViewGap.MEDIUM
|
|
28
|
-
},
|
|
29
|
-
instanceName: context.instanceName,
|
|
30
|
-
location: "row_actions"
|
|
22
|
+
renderComponentType: type,
|
|
23
|
+
gap: ActionViewGap.MEDIUM
|
|
31
24
|
}));
|
|
32
25
|
}
|
|
33
26
|
|
|
@@ -5,9 +5,7 @@ import { AlignmentOfFlex } from "../../../../../../../../cc/table-list/data-type
|
|
|
5
5
|
import FieldComponent from "../field/FieldComponent"; // @ts-ignore
|
|
6
6
|
|
|
7
7
|
import style from "./../../css/TableList.module.css";
|
|
8
|
-
import
|
|
9
|
-
import ClientActionsTranslator from "../../../../../../../../platform/client-actions/translators/client-actions-translator";
|
|
10
|
-
import { Layout } from "../../../../../../../../platform/client-actions/components/interfaces/ActionViewModel";
|
|
8
|
+
import RowActionsRenderer from "../../../../../../../../platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer";
|
|
11
9
|
export default function RowData(_ref) {
|
|
12
10
|
let {
|
|
13
11
|
field,
|
|
@@ -19,11 +17,9 @@ export default function RowData(_ref) {
|
|
|
19
17
|
let {
|
|
20
18
|
type,
|
|
21
19
|
actions,
|
|
22
|
-
context,
|
|
23
20
|
...props
|
|
24
21
|
} = field;
|
|
25
|
-
const
|
|
26
|
-
const hasActions = Boolean(resolvedActions?.length);
|
|
22
|
+
const hasActions = Boolean(actions?.length);
|
|
27
23
|
return /*#__PURE__*/React.createElement(TableData, {
|
|
28
24
|
$ui_align: hasActions ? null : alignment,
|
|
29
25
|
$data_width: width,
|
|
@@ -39,13 +35,9 @@ export default function RowData(_ref) {
|
|
|
39
35
|
}, /*#__PURE__*/React.createElement(FieldComponent, {
|
|
40
36
|
type: type,
|
|
41
37
|
fieldProps: props
|
|
42
|
-
}), hasActions ? /*#__PURE__*/React.createElement(
|
|
38
|
+
}), hasActions ? /*#__PURE__*/React.createElement(RowActionsRenderer, {
|
|
43
39
|
actions: actions,
|
|
44
40
|
clientScripts: clientScripts,
|
|
45
|
-
|
|
46
|
-
viewMeta: {
|
|
47
|
-
layout: Layout.HORIZONTAL,
|
|
48
|
-
gap: ActionViewGap.SMALL
|
|
49
|
-
}
|
|
41
|
+
gap: ActionViewGap.SMALL
|
|
50
42
|
}) : null);
|
|
51
43
|
}
|
package/es/library/dot/legacy-to-new-arch/breadcrumb/frameworks/ui/css/Breadcrumb.module.css
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
.wrapper, .itemContainer {
|
|
2
|
-
max-width: 100%
|
|
2
|
+
max-width: 100%
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.itemContainer {
|
|
6
|
-
column-gap:
|
|
6
|
+
column-gap: var(--zd_size4) ;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.separator {
|
|
10
10
|
--separator_fontSize: 14px;
|
|
11
|
-
margin: 0
|
|
11
|
+
margin: 0 var(--zd_size10) ;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.buttonStyle {
|
|
15
15
|
--button_font_size: 14px;
|
|
16
16
|
--button_padding: 0px;
|
|
17
17
|
--button_letter_spacing: 0px;
|
|
18
|
-
max-width: 100
|
|
18
|
+
max-width: 100% ;
|
|
19
19
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import DateWidget from '@zohodesk/components/es/DateTime/DateWidget';
|
|
3
3
|
import DateConstants from "../../../../../../cc/date/Constants";
|
|
4
|
+
import RowActionsRenderer from "../../../../../../platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer";
|
|
4
5
|
import { ActionViewGap } from "../../../../../../platform/client-actions/components/interfaces/ActionViewModel"; // @ts-ignore
|
|
5
6
|
|
|
6
7
|
import style from "./css/DateView.module.css";
|
|
7
|
-
import ClientActionsRenderer from "../../../../../../platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer";
|
|
8
|
-
import { Layout } from "../../../../../../platform/client-actions/components/interfaces/ActionViewModel";
|
|
9
8
|
|
|
10
9
|
function DateView(_ref, ref) {
|
|
11
10
|
let {
|
|
@@ -25,22 +24,17 @@ function DateView(_ref, ref) {
|
|
|
25
24
|
isTimeIncluded,
|
|
26
25
|
timeZone,
|
|
27
26
|
actions,
|
|
28
|
-
clientScripts
|
|
29
|
-
context
|
|
27
|
+
clientScripts
|
|
30
28
|
} = state.properties;
|
|
31
29
|
|
|
32
30
|
const renderRightFieldActions = () => {
|
|
33
31
|
if (!actions?.length) return null;
|
|
34
32
|
return /*#__PURE__*/React.createElement("div", {
|
|
35
33
|
className: style.actionContainer
|
|
36
|
-
}, /*#__PURE__*/React.createElement(
|
|
34
|
+
}, /*#__PURE__*/React.createElement(RowActionsRenderer, {
|
|
37
35
|
actions: actions,
|
|
38
36
|
clientScripts: clientScripts,
|
|
39
|
-
|
|
40
|
-
viewMeta: {
|
|
41
|
-
layout: Layout.HORIZONTAL,
|
|
42
|
-
gap: ActionViewGap.SMALL
|
|
43
|
-
}
|
|
37
|
+
gap: ActionViewGap.SMALL
|
|
44
38
|
}));
|
|
45
39
|
};
|
|
46
40
|
|
|
@@ -4,8 +4,7 @@ import Flex from '@zohodesk/layout/es/Flex/Flex';
|
|
|
4
4
|
import { ActionViewGap } from "../../../../../../platform/client-actions/components/interfaces/ActionViewModel";
|
|
5
5
|
// @ts-ignore
|
|
6
6
|
import style from "./css/Label.module.css";
|
|
7
|
-
import
|
|
8
|
-
import { Layout } from "../../../../../../platform/client-actions/components/interfaces/ActionViewModel";
|
|
7
|
+
import RowActionsRenderer from "../../../../../../platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer";
|
|
9
8
|
|
|
10
9
|
function LabelView(_ref, ref) {
|
|
11
10
|
let {
|
|
@@ -16,8 +15,7 @@ function LabelView(_ref, ref) {
|
|
|
16
15
|
for: htmlFor,
|
|
17
16
|
isMandatory,
|
|
18
17
|
actions,
|
|
19
|
-
clientScripts
|
|
20
|
-
context
|
|
18
|
+
clientScripts
|
|
21
19
|
} = state.properties;
|
|
22
20
|
return /*#__PURE__*/React.createElement(Flex, {
|
|
23
21
|
ref: ref,
|
|
@@ -29,14 +27,10 @@ function LabelView(_ref, ref) {
|
|
|
29
27
|
htmlFor: htmlFor,
|
|
30
28
|
palette: isMandatory ? 'mandatory' : 'default',
|
|
31
29
|
customClass: `${style.label} ${isMandatory ? style.mandatory : ''}`
|
|
32
|
-
}), actions.length ? /*#__PURE__*/React.createElement(
|
|
30
|
+
}), actions.length ? /*#__PURE__*/React.createElement(RowActionsRenderer, {
|
|
33
31
|
actions: actions,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
viewMeta: {
|
|
37
|
-
layout: Layout.HORIZONTAL,
|
|
38
|
-
gap: ActionViewGap.XMEDIUM
|
|
39
|
-
}
|
|
32
|
+
gap: ActionViewGap.XMEDIUM,
|
|
33
|
+
clientScripts: clientScripts
|
|
40
34
|
}) : null);
|
|
41
35
|
}
|
|
42
36
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
.label {
|
|
2
2
|
--label_cursor: inherit
|
|
3
3
|
}[dir=ltr] .label {
|
|
4
|
-
padding-right:
|
|
4
|
+
padding-right: var(--zd_size6)
|
|
5
5
|
}[dir=rtl] .label {
|
|
6
|
-
padding-left:
|
|
6
|
+
padding-left: var(--zd_size6)
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.mandatory::after {
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
[dir=ltr] .mandatory::after {
|
|
14
|
-
padding-left:
|
|
14
|
+
padding-left: var(--zd_size2)
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
[dir=rtl] .mandatory::after {
|
|
18
|
-
padding-right:
|
|
18
|
+
padding-right: var(--zd_size2)
|
|
19
19
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import MultiSelect from "@zohodesk/components/es/MultiSelect/MultiSelect";
|
|
3
3
|
import { MultiSelectConstants } from "../../../../../../cc/multi-select";
|
|
4
|
+
import RowActionsRenderer from "../../../../../../platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer";
|
|
4
5
|
import { ActionViewGap } from "../../../../../../platform/client-actions/components/interfaces/ActionViewModel"; // @ts-ignore
|
|
5
6
|
|
|
6
7
|
import style from "./css/MultiSelectView.module.css";
|
|
7
|
-
import ClientActionsRenderer from "../../../../../../platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer";
|
|
8
|
-
import { Layout } from "../../../../../../platform/client-actions/components/interfaces/ActionViewModel";
|
|
9
8
|
|
|
10
9
|
function MultiSelectView(_ref, ref) {
|
|
11
10
|
let {
|
|
@@ -25,26 +24,18 @@ function MultiSelectView(_ref, ref) {
|
|
|
25
24
|
disabled,
|
|
26
25
|
readonly,
|
|
27
26
|
actions,
|
|
28
|
-
clientScripts
|
|
29
|
-
context
|
|
27
|
+
clientScripts
|
|
30
28
|
} = state.properties;
|
|
31
29
|
const transformedOptions = options.map(option => {
|
|
32
|
-
const {
|
|
33
|
-
context
|
|
34
|
-
} = option;
|
|
35
30
|
const baseOption = option;
|
|
36
31
|
|
|
37
32
|
if (option.optionActions && option.optionActions.length !== 0) {
|
|
38
33
|
return { ...option,
|
|
39
34
|
listItemCustomProps: {
|
|
40
|
-
renderValueRightPlaceholderNode: () => /*#__PURE__*/React.createElement(
|
|
35
|
+
renderValueRightPlaceholderNode: () => /*#__PURE__*/React.createElement(RowActionsRenderer, {
|
|
41
36
|
actions: option.optionActions,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
viewMeta: {
|
|
45
|
-
layout: Layout.HORIZONTAL,
|
|
46
|
-
gap: ActionViewGap.SMALL
|
|
47
|
-
}
|
|
37
|
+
gap: ActionViewGap.SMALL,
|
|
38
|
+
clientScripts: clientScripts
|
|
48
39
|
}),
|
|
49
40
|
customClass: {
|
|
50
41
|
customValueRightPlaceholder: style.optionActionsContainer
|
|
@@ -60,14 +51,10 @@ function MultiSelectView(_ref, ref) {
|
|
|
60
51
|
if (!actions?.length) return null;
|
|
61
52
|
return /*#__PURE__*/React.createElement("div", {
|
|
62
53
|
className: style.fieldActionsContainer
|
|
63
|
-
}, /*#__PURE__*/React.createElement(
|
|
54
|
+
}, /*#__PURE__*/React.createElement(RowActionsRenderer, {
|
|
64
55
|
actions: actions,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
viewMeta: {
|
|
68
|
-
layout: Layout.HORIZONTAL,
|
|
69
|
-
gap: ActionViewGap.SMALL
|
|
70
|
-
}
|
|
56
|
+
gap: ActionViewGap.SMALL,
|
|
57
|
+
clientScripts: clientScripts
|
|
71
58
|
}));
|
|
72
59
|
};
|
|
73
60
|
|
package/es/library/dot/legacy-to-new-arch/multi-select/frameworks/ui/css/MultiSelectView.module.css
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
.fieldActionsContainer {
|
|
2
|
-
margin-top:
|
|
2
|
+
margin-top: var(--zd_size4) ;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
[dir=ltr] .optionActionsContainer {
|
|
6
|
-
margin-left:
|
|
6
|
+
margin-left: var(--zd_size4) ;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
[dir=rtl] .optionActionsContainer {
|
|
10
|
-
margin-right:
|
|
10
|
+
margin-right: var(--zd_size4) ;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.custmInputWrapper {
|
|
14
14
|
position: absolute;
|
|
15
|
-
top: 0;
|
|
16
|
-
width: 100
|
|
15
|
+
top: 0 ;
|
|
16
|
+
width: 100% ;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
[dir=ltr] .custmInputWrapper {
|
|
20
|
-
left: 0;
|
|
20
|
+
left: 0 ;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
[dir=rtl] .custmInputWrapper {
|
|
24
|
-
right: 0;
|
|
24
|
+
right: 0 ;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.clearIconContainer {
|
package/es/library/dot/legacy-to-new-arch/radio-dropdown/frameworks/ui/css/RadioDropdown.module.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
.wrapper {
|
|
3
|
-
max-width: 100%
|
|
3
|
+
max-width: 100%
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.disabled {
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
.downIcon {
|
|
12
12
|
flex-shrink: 0;
|
|
13
13
|
opacity: 0.4;
|
|
14
|
-
margin-top:
|
|
14
|
+
margin-top: var(--zd_size2)
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
[dir=ltr] .downIcon {
|
|
18
|
-
margin-left:
|
|
18
|
+
margin-left: var(--zd_size4)
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
[dir=rtl] .downIcon {
|
|
22
|
-
margin-right:
|
|
22
|
+
margin-right: var(--zd_size4)
|
|
23
23
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import Select from '@zohodesk/components/es/Select/Select';
|
|
3
3
|
import SelectConstants from "../../../../../../cc/select/Constants";
|
|
4
|
+
import RowActionsRenderer from "../../../../../../platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer";
|
|
4
5
|
import { ActionViewGap } from "../../../../../../platform/client-actions/components/interfaces/ActionViewModel"; // @ts-ignore
|
|
5
6
|
|
|
6
7
|
import style from "./css/Select.module.css";
|
|
7
|
-
import ClientActionsRenderer from "../../../../../../platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer";
|
|
8
|
-
import { Layout } from "../../../../../../platform/client-actions/components/interfaces/ActionViewModel";
|
|
9
8
|
|
|
10
9
|
function SelectView(_ref, ref) {
|
|
11
10
|
let {
|
|
@@ -24,8 +23,7 @@ function SelectView(_ref, ref) {
|
|
|
24
23
|
disabled,
|
|
25
24
|
readonly,
|
|
26
25
|
actions,
|
|
27
|
-
clientScripts
|
|
28
|
-
context
|
|
26
|
+
clientScripts
|
|
29
27
|
} = state.properties;
|
|
30
28
|
const transformedOptions = options.map(option => {
|
|
31
29
|
const baseOption = {
|
|
@@ -36,14 +34,10 @@ function SelectView(_ref, ref) {
|
|
|
36
34
|
if (option.optionActions && option.optionActions.length !== 0) {
|
|
37
35
|
return { ...baseOption,
|
|
38
36
|
listItemCustomProps: {
|
|
39
|
-
renderValueRightPlaceholderNode: () => /*#__PURE__*/React.createElement(
|
|
37
|
+
renderValueRightPlaceholderNode: () => /*#__PURE__*/React.createElement(RowActionsRenderer, {
|
|
40
38
|
actions: option.optionActions,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
viewMeta: {
|
|
44
|
-
layout: Layout.HORIZONTAL,
|
|
45
|
-
gap: ActionViewGap.SMALL
|
|
46
|
-
}
|
|
39
|
+
gap: ActionViewGap.SMALL,
|
|
40
|
+
clientScripts: clientScripts
|
|
47
41
|
}),
|
|
48
42
|
customClass: {
|
|
49
43
|
customValueRightPlaceholder: style.optionActionsContainer
|
|
@@ -56,14 +50,10 @@ function SelectView(_ref, ref) {
|
|
|
56
50
|
});
|
|
57
51
|
|
|
58
52
|
const renderRightFieldActions = () => {
|
|
59
|
-
return actions?.length ? /*#__PURE__*/React.createElement(
|
|
53
|
+
return actions?.length ? /*#__PURE__*/React.createElement(RowActionsRenderer, {
|
|
60
54
|
actions: actions,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
viewMeta: {
|
|
64
|
-
layout: Layout.HORIZONTAL,
|
|
65
|
-
gap: ActionViewGap.SMALL
|
|
66
|
-
}
|
|
55
|
+
gap: ActionViewGap.SMALL,
|
|
56
|
+
clientScripts: clientScripts
|
|
67
57
|
}) : null;
|
|
68
58
|
};
|
|
69
59
|
|
|
@@ -3,9 +3,8 @@ import Textarea from '@zohodesk/components/es/Textarea/Textarea';
|
|
|
3
3
|
import TextAreaConstants from "../../../../../../cc/textarea/Constants"; // @ts-ignore
|
|
4
4
|
|
|
5
5
|
import style from "./css/TextAreaView.module.css";
|
|
6
|
+
import RowActionsRenderer from "../../../../../../platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer";
|
|
6
7
|
import { ActionViewGap } from "../../../../../../platform/client-actions/components/interfaces/ActionViewModel";
|
|
7
|
-
import ClientActionsRenderer from "../../../../../../platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer";
|
|
8
|
-
import { Layout } from "../../../../../../platform/client-actions/components/interfaces/ActionViewModel";
|
|
9
8
|
|
|
10
9
|
function TextAreaView(_ref, ref) {
|
|
11
10
|
let {
|
|
@@ -24,8 +23,7 @@ function TextAreaView(_ref, ref) {
|
|
|
24
23
|
disabled,
|
|
25
24
|
readonly,
|
|
26
25
|
actions,
|
|
27
|
-
clientScripts
|
|
28
|
-
context
|
|
26
|
+
clientScripts
|
|
29
27
|
} = state.properties;
|
|
30
28
|
const textAreaRenderer = /*#__PURE__*/React.createElement(Textarea, {
|
|
31
29
|
getRef: ref,
|
|
@@ -66,14 +64,10 @@ function TextAreaView(_ref, ref) {
|
|
|
66
64
|
className: style.hasChildren
|
|
67
65
|
}, textAreaRenderer, /*#__PURE__*/React.createElement("div", {
|
|
68
66
|
className: style.rightPlaceholder
|
|
69
|
-
}, /*#__PURE__*/React.createElement(
|
|
67
|
+
}, /*#__PURE__*/React.createElement(RowActionsRenderer, {
|
|
70
68
|
actions: actions,
|
|
71
69
|
clientScripts: clientScripts,
|
|
72
|
-
|
|
73
|
-
viewMeta: {
|
|
74
|
-
layout: Layout.HORIZONTAL,
|
|
75
|
-
gap: ActionViewGap.SMALL
|
|
76
|
-
}
|
|
70
|
+
gap: ActionViewGap.SMALL
|
|
77
71
|
})));
|
|
78
72
|
}
|
|
79
73
|
|
package/es/library/dot/legacy-to-new-arch/text-area/frameworks/ui/css/TextAreaView.module.css
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
.rightPlaceholder {
|
|
6
6
|
position: absolute;
|
|
7
|
-
bottom:
|
|
7
|
+
bottom: var(--zd_size4) ;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
[dir=ltr] .rightPlaceholder {
|
|
11
|
-
right:
|
|
11
|
+
right: var(--zd_size12) ;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
[dir=rtl] .rightPlaceholder {
|
|
15
|
-
left:
|
|
15
|
+
left: var(--zd_size12) ;
|
|
16
16
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import TextBox from "@zohodesk/components/es/TextBoxIcon/TextBoxIcon";
|
|
3
3
|
import TextBoxConstants from "../../../../../../cc/textbox/Constants";
|
|
4
|
-
|
|
5
|
-
import { ActionViewGap
|
|
6
|
-
import ClientActionsRenderer from "../../../../../../platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer";
|
|
4
|
+
import RowActionsRenderer from "../../../../../../platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer";
|
|
5
|
+
import { ActionViewGap } from "../../../../../../platform/client-actions/components/interfaces/ActionViewModel";
|
|
7
6
|
|
|
8
7
|
function TextBoxView(_ref, ref) {
|
|
9
8
|
let {
|
|
@@ -24,19 +23,14 @@ function TextBoxView(_ref, ref) {
|
|
|
24
23
|
disabled,
|
|
25
24
|
readonly,
|
|
26
25
|
actions,
|
|
27
|
-
clientScripts
|
|
28
|
-
context
|
|
26
|
+
clientScripts
|
|
29
27
|
} = state.properties;
|
|
30
28
|
|
|
31
29
|
const renderRightFieldActions = () => {
|
|
32
|
-
return actions?.length ? /*#__PURE__*/React.createElement(
|
|
30
|
+
return actions?.length ? /*#__PURE__*/React.createElement(RowActionsRenderer, {
|
|
33
31
|
actions: actions,
|
|
34
32
|
clientScripts: clientScripts,
|
|
35
|
-
|
|
36
|
-
viewMeta: {
|
|
37
|
-
layout: Layout.HORIZONTAL,
|
|
38
|
-
gap: ActionViewGap.SMALL
|
|
39
|
-
}
|
|
33
|
+
gap: ActionViewGap.SMALL
|
|
40
34
|
}) : null;
|
|
41
35
|
};
|
|
42
36
|
|
|
Binary file
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ActionViewGap } from "../../components/interfaces/ActionViewModel";
|
|
1
2
|
import { clientScriptsSchema } from "../../../client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
|
|
2
3
|
export const actionSchema = {
|
|
3
4
|
type: 'object',
|
|
@@ -69,4 +70,46 @@ export const ActionEventMediatorProperties = {
|
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
72
|
}
|
|
73
|
+
};
|
|
74
|
+
export default {
|
|
75
|
+
testId: {
|
|
76
|
+
required: false,
|
|
77
|
+
typeMetadata: {
|
|
78
|
+
schema: {
|
|
79
|
+
type: 'string'
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
defaultValue: ''
|
|
83
|
+
},
|
|
84
|
+
actions: {
|
|
85
|
+
required: true,
|
|
86
|
+
typeMetadata: {
|
|
87
|
+
schema: actionsSchema
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
clientScripts: {
|
|
91
|
+
required: false,
|
|
92
|
+
typeMetadata: {
|
|
93
|
+
schema: clientScriptsSchema
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
renderComponentType: {
|
|
97
|
+
required: false,
|
|
98
|
+
typeMetadata: {
|
|
99
|
+
schema: {
|
|
100
|
+
type: 'string'
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
defaultValue: ''
|
|
104
|
+
},
|
|
105
|
+
gap: {
|
|
106
|
+
required: false,
|
|
107
|
+
defaultValue: ActionViewGap.NONE,
|
|
108
|
+
typeMetadata: {
|
|
109
|
+
schema: {
|
|
110
|
+
type: 'string',
|
|
111
|
+
enum: Object.values(ActionViewGap)
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
72
115
|
};
|
|
@@ -40,7 +40,8 @@ const ClientActionsAdapter = {
|
|
|
40
40
|
if (response.errorCode) {
|
|
41
41
|
return Promise.reject(response);
|
|
42
42
|
} else {
|
|
43
|
-
|
|
43
|
+
const actions = ClientActionsAdapterUtils.transform(response);
|
|
44
|
+
return Promise.resolve(actions);
|
|
44
45
|
}
|
|
45
46
|
});
|
|
46
47
|
}
|