@zohodesk/library-platform 1.2.0-exp.4 → 1.2.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.
Files changed (75) hide show
  1. package/es/cc/date/Properties.js +0 -15
  2. package/es/cc/fields/field/Properties.js +1 -8
  3. package/es/cc/form/Properties.js +0 -8
  4. package/es/cc/label/Properties.js +5 -12
  5. package/es/cc/multi-select/Properties.js +1 -8
  6. package/es/cc/section/Properties.js +1 -8
  7. package/es/cc/select/Properties.js +1 -8
  8. package/es/cc/textarea/Properties.js +0 -15
  9. package/es/cc/textbox/Properties.js +1 -8
  10. package/es/index.js +6 -4
  11. package/es/library/dot/components/form/adapters/presenter/TransformState.js +1 -3
  12. package/es/library/dot/components/form/frameworks/ui/FormView.js +3 -6
  13. package/es/library/dot/components/form/frameworks/ui/sub-components/Footer.js +6 -16
  14. package/es/library/dot/components/form/frameworks/ui/sub-components/Header.js +6 -16
  15. package/es/library/dot/components/form/frameworks/ui/sub-components/Sections.js +2 -4
  16. package/es/library/dot/components/form-fields/checkbox/frameworks/ui/CheckboxView.js +3 -6
  17. package/es/library/dot/components/form-fields/currency/frameworks/ui/CurrencyView.js +3 -6
  18. package/es/library/dot/components/form-fields/date/frameworks/ui/DateView.js +3 -6
  19. package/es/library/dot/components/form-fields/datetime/frameworks/ui/DateTimeView.js +3 -6
  20. package/es/library/dot/components/form-fields/decimal/frameworks/ui/DecimalView.js +3 -6
  21. package/es/library/dot/components/form-fields/email/frameworks/ui/EmailView.js +3 -6
  22. package/es/library/dot/components/form-fields/field/FieldItem.js +2 -4
  23. package/es/library/dot/components/form-fields/lookup/frameworks/ui/LookupView.js +3 -6
  24. package/es/library/dot/components/form-fields/multi-select/frameworks/ui/MultiSelectView.js +4 -7
  25. package/es/library/dot/components/form-fields/number/frameworks/ui/NumberView.js +3 -6
  26. package/es/library/dot/components/form-fields/percentage/frameworks/ui/PercentageView.js +4 -7
  27. package/es/library/dot/components/form-fields/phone/frameworks/ui/PhoneView.js +3 -6
  28. package/es/library/dot/components/form-fields/pick-list/frameworks/ui/PickListView.js +4 -7
  29. package/es/library/dot/components/form-fields/textarea/frameworks/ui/TextAreaView.js +3 -6
  30. package/es/library/dot/components/form-fields/textbox/frameworks/ui/TextBoxView.js +3 -6
  31. package/es/library/dot/components/form-fields/url/frameworks/ui/UrlView.js +3 -6
  32. package/es/library/dot/components/section/frameworks/ui/RenderField.js +1 -3
  33. package/es/library/dot/components/section/frameworks/ui/SectionView.js +8 -14
  34. package/es/library/dot/components/table-list/frameworks/ui/TableListView.js +4 -8
  35. package/es/library/dot/components/table-list/frameworks/ui/sub-components/Header.js +4 -6
  36. package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/HeaderData.js +5 -11
  37. package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/MassAction.js +5 -11
  38. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Row.js +4 -8
  39. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowActions.js +5 -12
  40. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowData.js +4 -12
  41. package/es/library/dot/legacy-to-new-arch/date/frameworks/ui/DateView.js +4 -10
  42. package/es/library/dot/legacy-to-new-arch/label/frameworks/ui/LabelView.js +5 -11
  43. package/es/library/dot/legacy-to-new-arch/multi-select/frameworks/ui/MultiSelectView.js +8 -21
  44. package/es/library/dot/legacy-to-new-arch/select/frameworks/ui/SelectView.js +8 -18
  45. package/es/library/dot/legacy-to-new-arch/text-area/frameworks/ui/TextAreaView.js +4 -10
  46. package/es/library/dot/legacy-to-new-arch/textbox/frameworks/ui/TextBoxView.js +4 -10
  47. package/es/platform/client-actions/cc/action-event-mediator/Properties.js +43 -0
  48. package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/ClientActionsAdapter.js +2 -1
  49. package/es/platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema.js +1 -4
  50. package/es/platform/components/form-connected/frameworks/FormConnectedView.js +0 -2
  51. package/es/platform/components/smart-action-band/adapters/presenters/ActionBandTranslator.js +10 -7
  52. package/es/platform/components/smart-action-band/frameworks/SmartActionBandView.js +5 -18
  53. package/es/platform/zform/adapters/presenter/FormTranslator.js +12 -8
  54. package/es/platform/zform/adapters/presenter/translators/SectionTranslator.js +14 -10
  55. package/es/platform/zform/adapters/presenter/translators/fields/BooleanFieldTranslator.js +2 -4
  56. package/es/platform/zform/adapters/presenter/translators/fields/CurrencyFieldTranslator.js +1 -2
  57. package/es/platform/zform/adapters/presenter/translators/fields/DateFieldTranslator.js +2 -4
  58. package/es/platform/zform/adapters/presenter/translators/fields/DateTimeFieldTranslator.js +2 -4
  59. package/es/platform/zform/adapters/presenter/translators/fields/DecimalFieldTranslator.js +2 -4
  60. package/es/platform/zform/adapters/presenter/translators/fields/EmailFieldTranslator.js +2 -4
  61. package/es/platform/zform/adapters/presenter/translators/fields/LookUpFieldTranslator.js +2 -4
  62. package/es/platform/zform/adapters/presenter/translators/fields/MultiselectFieldTranslator.js +8 -13
  63. package/es/platform/zform/adapters/presenter/translators/fields/NumberFieldTranslator.js +2 -4
  64. package/es/platform/zform/adapters/presenter/translators/fields/PercentageFieldTranslator.js +2 -4
  65. package/es/platform/zform/adapters/presenter/translators/fields/PhoneFieldTranslator.js +2 -4
  66. package/es/platform/zform/adapters/presenter/translators/fields/PicklistFieldTranslator.js +12 -11
  67. package/es/platform/zform/adapters/presenter/translators/fields/TextAreaFieldTranslator.js +2 -4
  68. package/es/platform/zform/adapters/presenter/translators/fields/TextFieldTranslator.js +2 -4
  69. package/es/platform/zform/adapters/presenter/translators/fields/URLFieldTranslator.js +2 -4
  70. package/es/platform/zlist/adapters/presenters/SelectionTranslator.js +4 -2
  71. package/es/platform/zlist/adapters/presenters/TableTranslator.js +1 -6
  72. package/es/platform/zlist/adapters/presenters/translators/ColumnTranslator.js +1 -7
  73. package/es/platform/zlist/adapters/presenters/translators/Header.js +6 -7
  74. package/es/platform/zlist/adapters/presenters/translators/Row.js +5 -6
  75. package/package.json +1 -1
@@ -26,8 +26,7 @@ function MultiSelectView(_ref, ref) {
26
26
  labelActions,
27
27
  actions,
28
28
  uiConfig,
29
- clientScripts,
30
- context
29
+ clientScripts
31
30
  } = state.properties;
32
31
  const {
33
32
  size,
@@ -40,10 +39,9 @@ function MultiSelectView(_ref, ref) {
40
39
  labelActions: labelActions,
41
40
  required: required,
42
41
  errorMessage: errorMessage,
43
- testId: 'smart_form_field_multiselect',
42
+ testId: "smart_form_field_multiselect",
44
43
  size: size,
45
- breakRow: breakRow,
46
- context: context
44
+ breakRow: breakRow
47
45
  }, /*#__PURE__*/React.createElement(FieldController, {
48
46
  $ui_className: style.multiSelectField,
49
47
  $event_onFocus: () => dispatch({
@@ -60,8 +58,7 @@ function MultiSelectView(_ref, ref) {
60
58
  disabled: disabled,
61
59
  readonly: readonly,
62
60
  actions: actions,
63
- clientScripts: clientScripts,
64
- context: context
61
+ clientScripts: clientScripts
65
62
  })));
66
63
  }
67
64
 
@@ -21,8 +21,7 @@ function NumberView(_ref, ref) {
21
21
  uiConfig,
22
22
  labelActions,
23
23
  actions,
24
- clientScripts,
25
- context
24
+ clientScripts
26
25
  } = state.properties;
27
26
  const {
28
27
  size,
@@ -37,8 +36,7 @@ function NumberView(_ref, ref) {
37
36
  errorMessage: errorMessage,
38
37
  testId: "smart_form_field_number",
39
38
  size: size,
40
- breakRow: breakRow,
41
- context: context
39
+ breakRow: breakRow
42
40
  }, /*#__PURE__*/React.createElement("div", {
43
41
  className: style.field
44
42
  }, /*#__PURE__*/React.createElement(TextBox, {
@@ -50,8 +48,7 @@ function NumberView(_ref, ref) {
50
48
  readonly: readonly,
51
49
  required: required,
52
50
  actions: actions,
53
- clientScripts: clientScripts,
54
- context: context
51
+ clientScripts: clientScripts
55
52
  })));
56
53
  }
57
54
 
@@ -20,8 +20,7 @@ function PercentageView(_ref, ref) {
20
20
  uiConfig,
21
21
  labelActions,
22
22
  actions,
23
- clientScripts,
24
- context
23
+ clientScripts
25
24
  } = state.properties;
26
25
  const {
27
26
  size,
@@ -34,10 +33,9 @@ function PercentageView(_ref, ref) {
34
33
  labelActions: labelActions,
35
34
  required: required,
36
35
  errorMessage: errorMessage,
37
- testId: 'smart_form_field_percentage',
36
+ testId: "smart_form_field_percentage",
38
37
  size: size,
39
- breakRow: breakRow,
40
- context: context
38
+ breakRow: breakRow
41
39
  }, /*#__PURE__*/React.createElement("div", {
42
40
  className: style.field
43
41
  }, /*#__PURE__*/React.createElement(TextBox, {
@@ -48,8 +46,7 @@ function PercentageView(_ref, ref) {
48
46
  readonly: readonly,
49
47
  required: required,
50
48
  actions: actions,
51
- clientScripts: clientScripts,
52
- context: context
49
+ clientScripts: clientScripts
53
50
  })));
54
51
  }
55
52
 
@@ -21,8 +21,7 @@ function PhoneView(_ref, ref) {
21
21
  uiConfig,
22
22
  labelActions,
23
23
  actions,
24
- clientScripts,
25
- context
24
+ clientScripts
26
25
  } = state.properties;
27
26
  const {
28
27
  size,
@@ -37,8 +36,7 @@ function PhoneView(_ref, ref) {
37
36
  errorMessage: errorMessage,
38
37
  testId: "smart_form_field_phone",
39
38
  size: size,
40
- breakRow: breakRow,
41
- context: context
39
+ breakRow: breakRow
42
40
  }, /*#__PURE__*/React.createElement("div", {
43
41
  className: style.field
44
42
  }, /*#__PURE__*/React.createElement(TextBox, {
@@ -50,8 +48,7 @@ function PhoneView(_ref, ref) {
50
48
  readonly: readonly,
51
49
  required: required,
52
50
  actions: actions,
53
- clientScripts: clientScripts,
54
- context: context
51
+ clientScripts: clientScripts
55
52
  })));
56
53
  }
57
54
 
@@ -26,8 +26,7 @@ function PickListView(_ref, ref) {
26
26
  labelActions,
27
27
  actions,
28
28
  uiConfig,
29
- clientScripts,
30
- context
29
+ clientScripts
31
30
  } = state.properties;
32
31
  const {
33
32
  size,
@@ -40,10 +39,9 @@ function PickListView(_ref, ref) {
40
39
  labelActions: labelActions,
41
40
  required: required,
42
41
  errorMessage: errorMessage,
43
- testId: 'smart_form_field_picklist',
42
+ testId: "smart_form_field_picklist",
44
43
  size: size,
45
- breakRow: breakRow,
46
- context: context
44
+ breakRow: breakRow
47
45
  }, /*#__PURE__*/React.createElement(FieldController, {
48
46
  $ui_className: style.field,
49
47
  $event_onFocus: () => dispatch({
@@ -60,8 +58,7 @@ function PickListView(_ref, ref) {
60
58
  disabled: disabled,
61
59
  readonly: readonly,
62
60
  actions: actions,
63
- clientScripts: clientScripts,
64
- context: context
61
+ clientScripts: clientScripts
65
62
  })));
66
63
  }
67
64
 
@@ -21,8 +21,7 @@ function TextAreaView(_ref, ref) {
21
21
  labelActions,
22
22
  actions,
23
23
  clientScripts,
24
- maxLength,
25
- context
24
+ maxLength
26
25
  } = state.properties;
27
26
  const {
28
27
  size,
@@ -37,8 +36,7 @@ function TextAreaView(_ref, ref) {
37
36
  errorMessage: errorMessage,
38
37
  testId: "smart_form_field_textarea",
39
38
  size: size,
40
- breakRow: breakRow,
41
- context: context
39
+ breakRow: breakRow
42
40
  }, /*#__PURE__*/React.createElement("div", {
43
41
  className: style.field
44
42
  }, /*#__PURE__*/React.createElement(TextArea, {
@@ -50,8 +48,7 @@ function TextAreaView(_ref, ref) {
50
48
  readonly: readonly,
51
49
  actions: actions,
52
50
  clientScripts: clientScripts,
53
- maxLength: maxLength,
54
- context: context
51
+ maxLength: maxLength
55
52
  })));
56
53
  }
57
54
 
@@ -21,8 +21,7 @@ function TextBoxView(_ref, ref) {
21
21
  uiConfig,
22
22
  labelActions,
23
23
  actions,
24
- clientScripts,
25
- context
24
+ clientScripts
26
25
  } = state.properties;
27
26
  const {
28
27
  size,
@@ -37,8 +36,7 @@ function TextBoxView(_ref, ref) {
37
36
  errorMessage: errorMessage,
38
37
  testId: "smart_form_field_textbox",
39
38
  size: size,
40
- breakRow: breakRow,
41
- context: context
39
+ breakRow: breakRow
42
40
  }, /*#__PURE__*/React.createElement("div", {
43
41
  className: style.field
44
42
  }, /*#__PURE__*/React.createElement(TextBox, {
@@ -50,8 +48,7 @@ function TextBoxView(_ref, ref) {
50
48
  disabled: disabled,
51
49
  readonly: readonly,
52
50
  actions: actions,
53
- clientScripts: clientScripts,
54
- context: context
51
+ clientScripts: clientScripts
55
52
  })));
56
53
  }
57
54
 
@@ -21,8 +21,7 @@ function UrlView(_ref, ref) {
21
21
  required,
22
22
  labelActions,
23
23
  actions,
24
- clientScripts,
25
- context
24
+ clientScripts
26
25
  } = state.properties;
27
26
  const {
28
27
  size,
@@ -37,8 +36,7 @@ function UrlView(_ref, ref) {
37
36
  size: size,
38
37
  breakRow: breakRow,
39
38
  errorMessage: errorMessage,
40
- testId: "smart_form_field_url",
41
- context: context
39
+ testId: "smart_form_field_url"
42
40
  }, /*#__PURE__*/React.createElement("div", {
43
41
  className: style.field
44
42
  }, /*#__PURE__*/React.createElement(TextBox, {
@@ -50,8 +48,7 @@ function UrlView(_ref, ref) {
50
48
  readonly: readonly,
51
49
  required: required,
52
50
  actions: actions,
53
- clientScripts: clientScripts,
54
- context: context
51
+ clientScripts: clientScripts
55
52
  })));
56
53
  }
57
54
 
@@ -5,7 +5,6 @@ import ComponentRegistry from "../../../../../custom-component/frameworks/ui/Com
5
5
  export function renderField(field, key, clientScripts) {
6
6
  const {
7
7
  type,
8
- context,
9
8
  ...properties
10
9
  } = field;
11
10
  const Component = ComponentRegistry.get(type);
@@ -18,7 +17,6 @@ export function renderField(field, key, clientScripts) {
18
17
  return /*#__PURE__*/React.createElement(Component, _extends({
19
18
  key: key
20
19
  }, properties, {
21
- clientScripts: clientScripts,
22
- context: context
20
+ clientScripts: clientScripts
23
21
  }));
24
22
  }
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import RowActionsRenderer from "../../../../../../platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer";
2
3
  import VelocityAnimationGroup from '@zohodesk/components/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup';
3
4
  import Flex from '@zohodesk/layout/es/Flex/Flex';
4
5
  import Section from '@zohodesk-private/desk-components/es/setup/SetupFormBox/SetupFormBox';
@@ -7,8 +8,6 @@ import { renderField } from "./RenderField";
7
8
  import { ActionViewGap } from "../../../../../../platform/client-actions/components/interfaces/ActionViewModel"; // @ts-ignore
8
9
 
9
10
  import style from "./css/Section.module.css";
10
- import ClientActionsRenderer from "../../../../../../platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer";
11
- import { Layout } from "../../../../../../platform/client-actions/components/client-actions-renderer/domain/entities/State";
12
11
 
13
12
  function SectionView(_ref, ref) {
14
13
  let {
@@ -22,24 +21,19 @@ function SectionView(_ref, ref) {
22
21
  fields,
23
22
  titleActions,
24
23
  headerActions,
25
- clientScripts,
26
- context
24
+ clientScripts
27
25
  } = state.properties;
28
26
 
29
- const renderActions = (actions, context) => {
27
+ const renderActions = actions => {
30
28
  if (!actions?.length) return null;
31
29
  return /*#__PURE__*/React.createElement(Flex, {
32
30
  $ui_displayMode: "flex",
33
31
  $ui_alignItems: "center",
34
32
  $ui_className: style.actionContainer
35
- }, /*#__PURE__*/React.createElement(ClientActionsRenderer, {
33
+ }, /*#__PURE__*/React.createElement(RowActionsRenderer, {
36
34
  actions: actions,
37
- clientScripts: clientScripts,
38
- context: context,
39
- viewMeta: {
40
- layout: Layout.HORIZONTAL,
41
- gap: ActionViewGap.LARGE
42
- }
35
+ gap: ActionViewGap.LARGE,
36
+ clientScripts: clientScripts
43
37
  }));
44
38
  };
45
39
 
@@ -52,8 +46,8 @@ function SectionView(_ref, ref) {
52
46
  $tagAttributes_container: {
53
47
  ref
54
48
  },
55
- $render_headingRightElement: renderActions(titleActions, context),
56
- $render_headerRightElement: renderActions(headerActions, context)
49
+ $render_headingRightElement: renderActions(titleActions),
50
+ $render_headerRightElement: renderActions(headerActions)
57
51
  }, /*#__PURE__*/React.createElement(VelocityAnimationGroup, {
58
52
  name: "slideDown",
59
53
  isActive: !isCollapsed
@@ -44,8 +44,7 @@ function TableListView(_ref2, _ref) {
44
44
  const {
45
45
  headers,
46
46
  rows,
47
- clientScripts,
48
- massActionsContext
47
+ clientScripts
49
48
  } = data;
50
49
  const {
51
50
  hasActions: hasRowActions,
@@ -101,8 +100,7 @@ function TableListView(_ref2, _ref) {
101
100
  hasRowActions,
102
101
  rowActionsColumnWidth,
103
102
  dispatch,
104
- clientScripts,
105
- massActionsContext
103
+ clientScripts
106
104
  }), renderBody({
107
105
  TableRef,
108
106
  dispatch,
@@ -151,8 +149,7 @@ function renderHeader(_ref3) {
151
149
  hasRowActions,
152
150
  rowActionsColumnWidth,
153
151
  dispatch,
154
- clientScripts,
155
- massActionsContext
152
+ clientScripts
156
153
  } = _ref3;
157
154
  return /*#__PURE__*/React.createElement(Header, {
158
155
  isReorderEnabled: isReorderEnabled,
@@ -169,8 +166,7 @@ function renderHeader(_ref3) {
169
166
  headers: headers,
170
167
  isMultiline: isMultiline,
171
168
  dispatch: dispatch,
172
- clientScripts: clientScripts,
173
- massActionsContext: massActionsContext
169
+ clientScripts: clientScripts
174
170
  });
175
171
  }
176
172
 
@@ -26,8 +26,7 @@ function Header(_ref) {
26
26
  headers,
27
27
  isMultiline,
28
28
  dispatch,
29
- clientScripts,
30
- massActionsContext
29
+ clientScripts
31
30
  } = _ref;
32
31
 
33
32
  if (headers.length <= 0) {
@@ -49,16 +48,15 @@ function Header(_ref) {
49
48
  }
50
49
  }, /*#__PURE__*/React.createElement(TableHeaderRow, {
51
50
  $flag_autoHeight: isMultiline
52
- }, renderReOrderColumn(isReorderEnabled), rendermassAction(isSelectionEnabled, isMultiline, actions, clientScripts, massActionsContext), renderHeaders(headers, isMultiline, currentlyResizingColumn, isResizerEnabled, isFlexibleColumns, dispatch, clientScripts), renderActionColumn(hasRowActions, rowActionsColumnWidth), renderResizerExtraSpace(isCurrentlyResizing, resizerExtraWidth)));
51
+ }, renderReOrderColumn(isReorderEnabled), rendermassAction(isSelectionEnabled, isMultiline, actions, clientScripts), renderHeaders(headers, isMultiline, currentlyResizingColumn, isResizerEnabled, isFlexibleColumns, dispatch, clientScripts), renderActionColumn(hasRowActions, rowActionsColumnWidth), renderResizerExtraSpace(isCurrentlyResizing, resizerExtraWidth)));
53
52
  }
54
53
 
55
- function rendermassAction(isSelectionEnabled, isMultiline, actions, clientScripts, massActionsContext) {
54
+ function rendermassAction(isSelectionEnabled, isMultiline, actions, clientScripts) {
56
55
  return /*#__PURE__*/React.createElement(MassAction, {
57
56
  isSelectionEnabled: isSelectionEnabled,
58
57
  isMultiline: isMultiline,
59
58
  actions: actions,
60
- clientScripts: clientScripts,
61
- context: massActionsContext
59
+ clientScripts: clientScripts
62
60
  });
63
61
  }
64
62
 
@@ -6,8 +6,7 @@ import { ActionViewGap } from "../../../../../../../../platform/client-actions/c
6
6
  import ColumnResizer from "./ColumnResizer"; // @ts-ignore
7
7
 
8
8
  import style from "./../../css/TableList.module.css";
9
- import ClientActionsRenderer from "../../../../../../../../platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer";
10
- import { Layout } from "../../../../../../../../platform/client-actions/components/client-actions-renderer/domain/entities/State";
9
+ import RowActionsRenderer from "../../../../../../../../platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer";
11
10
 
12
11
  function HeaderData(_ref) {
13
12
  let {
@@ -27,8 +26,7 @@ function HeaderData(_ref) {
27
26
  sortable,
28
27
  width,
29
28
  alignment,
30
- actions,
31
- context
29
+ actions
32
30
  } = header;
33
31
  const hasActions = Boolean(actions?.length);
34
32
  return (
@@ -52,14 +50,10 @@ function HeaderData(_ref) {
52
50
  }, /*#__PURE__*/React.createElement(TableHeading, {
53
51
  $i18n_text: text,
54
52
  $flag_wrapText: isMultiline
55
- }), hasActions ? /*#__PURE__*/React.createElement(ClientActionsRenderer, {
53
+ }), hasActions ? /*#__PURE__*/React.createElement(RowActionsRenderer, {
56
54
  actions: actions,
57
- clientScripts: clientScripts,
58
- context: context,
59
- viewMeta: {
60
- layout: Layout.HORIZONTAL,
61
- gap: ActionViewGap.SMALL
62
- }
55
+ gap: ActionViewGap.SMALL,
56
+ clientScripts: clientScripts
63
57
  }) : null, /*#__PURE__*/React.createElement(ColumnResizer, {
64
58
  isResizerEnabled: isResizerEnabled,
65
59
  isResizing: isResizing,
@@ -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'; // @ts-ignore
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/client-actions-renderer/domain/entities/State";
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(ClientActionsRenderer, {
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/client-actions-renderer/domain/entities/State";
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(ClientActionsRenderer, {
19
+ }, /*#__PURE__*/React.createElement(AdaptiveRowActionsRenderer, {
22
20
  actions: actions,
23
21
  clientScripts: clientScripts,
24
- context: context,
25
- viewMeta: {
26
- layout: Layout.HORIZONTAL_WITH_MORE_ACTIONS,
27
- gap: ActionViewGap.MEDIUM
28
- },
29
- instanceName: context.instanceName,
30
- slotName: "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 ClientActionsRenderer from "../../../../../../../../platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer";
9
- import ClientActionsTranslator from "../../../../../../../../platform/client-actions/translators/client-actions-translator";
10
- import { Layout } from "../../../../../../../../platform/client-actions/components/client-actions-renderer/domain/entities/State";
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 resolvedActions = ClientActionsTranslator.transform(actions, context.instanceName, context.moduleName, context);
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(ClientActionsRenderer, {
38
+ }), hasActions ? /*#__PURE__*/React.createElement(RowActionsRenderer, {
43
39
  actions: actions,
44
40
  clientScripts: clientScripts,
45
- context: context,
46
- viewMeta: {
47
- layout: Layout.HORIZONTAL,
48
- gap: ActionViewGap.SMALL
49
- }
41
+ gap: ActionViewGap.SMALL
50
42
  }) : null);
51
43
  }
@@ -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/client-actions-renderer/domain/entities/State";
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(ClientActionsRenderer, {
34
+ }, /*#__PURE__*/React.createElement(RowActionsRenderer, {
37
35
  actions: actions,
38
36
  clientScripts: clientScripts,
39
- context: context,
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 ClientActionsRenderer from "../../../../../../platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer";
8
- import { Layout } from "../../../../../../platform/client-actions/components/client-actions-renderer/domain/entities/State";
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(ClientActionsRenderer, {
30
+ }), actions.length ? /*#__PURE__*/React.createElement(RowActionsRenderer, {
33
31
  actions: actions,
34
- clientScripts: clientScripts,
35
- context: context,
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