@zohodesk/library-platform 1.2.0-exp.2 → 1.2.0-exp.4

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 (94) hide show
  1. package/es/cc/date/Properties.js +15 -0
  2. package/es/cc/fields/field/Properties.js +8 -1
  3. package/es/cc/form/Properties.js +8 -0
  4. package/es/cc/label/Properties.js +12 -5
  5. package/es/cc/multi-select/Properties.js +8 -1
  6. package/es/cc/section/Properties.js +8 -1
  7. package/es/cc/select/Properties.js +8 -1
  8. package/es/cc/textarea/Properties.js +15 -0
  9. package/es/cc/textbox/Properties.js +8 -1
  10. package/es/index.js +4 -6
  11. package/es/library/dot/components/form/adapters/presenter/TransformState.js +3 -1
  12. package/es/library/dot/components/form/frameworks/ui/FormView.js +6 -3
  13. package/es/library/dot/components/form/frameworks/ui/sub-components/Footer.js +16 -6
  14. package/es/library/dot/components/form/frameworks/ui/sub-components/Header.js +16 -6
  15. package/es/library/dot/components/form/frameworks/ui/sub-components/Sections.js +4 -2
  16. package/es/library/dot/components/form-fields/checkbox/frameworks/ui/CheckboxView.js +6 -3
  17. package/es/library/dot/components/form-fields/currency/frameworks/ui/CurrencyView.js +6 -3
  18. package/es/library/dot/components/form-fields/date/frameworks/ui/DateView.js +6 -3
  19. package/es/library/dot/components/form-fields/datetime/frameworks/ui/DateTimeView.js +6 -3
  20. package/es/library/dot/components/form-fields/decimal/frameworks/ui/DecimalView.js +6 -3
  21. package/es/library/dot/components/form-fields/email/frameworks/ui/EmailView.js +6 -3
  22. package/es/library/dot/components/form-fields/field/FieldItem.js +4 -2
  23. package/es/library/dot/components/form-fields/lookup/frameworks/ui/LookupView.js +6 -3
  24. package/es/library/dot/components/form-fields/multi-select/frameworks/ui/MultiSelectView.js +7 -4
  25. package/es/library/dot/components/form-fields/number/frameworks/ui/NumberView.js +6 -3
  26. package/es/library/dot/components/form-fields/percentage/frameworks/ui/PercentageView.js +7 -4
  27. package/es/library/dot/components/form-fields/phone/frameworks/ui/PhoneView.js +6 -3
  28. package/es/library/dot/components/form-fields/pick-list/frameworks/ui/PickListView.js +7 -4
  29. package/es/library/dot/components/form-fields/textarea/frameworks/ui/TextAreaView.js +6 -3
  30. package/es/library/dot/components/form-fields/textbox/frameworks/ui/TextBoxView.js +6 -3
  31. package/es/library/dot/components/form-fields/url/frameworks/ui/UrlView.js +6 -3
  32. package/es/library/dot/components/section/frameworks/ui/RenderField.js +3 -1
  33. package/es/library/dot/components/section/frameworks/ui/SectionView.js +14 -8
  34. package/es/library/dot/components/table-list/frameworks/ui/TableListView.js +8 -4
  35. package/es/library/dot/components/table-list/frameworks/ui/sub-components/Header.js +6 -4
  36. package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/HeaderData.js +11 -5
  37. package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/MassAction.js +11 -5
  38. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Row.js +8 -4
  39. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowActions.js +12 -5
  40. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowData.js +12 -4
  41. package/es/library/dot/legacy-to-new-arch/date/frameworks/ui/DateView.js +10 -4
  42. package/es/library/dot/legacy-to-new-arch/label/frameworks/ui/LabelView.js +11 -5
  43. package/es/library/dot/legacy-to-new-arch/multi-select/frameworks/ui/MultiSelectView.js +21 -8
  44. package/es/library/dot/legacy-to-new-arch/select/frameworks/ui/SelectView.js +18 -8
  45. package/es/library/dot/legacy-to-new-arch/text-area/frameworks/ui/TextAreaView.js +10 -4
  46. package/es/library/dot/legacy-to-new-arch/textbox/frameworks/ui/TextBoxView.js +10 -4
  47. package/es/platform/client-actions/behaviour/zclient-actions/adapters/resources/__test__/ClientActionsFetchSDK.test.js +183 -0
  48. package/es/platform/client-actions/cc/action-event-mediator/Properties.js +0 -43
  49. package/es/platform/client-actions/cc/client-actions-renderer/Properties.js +58 -0
  50. package/es/platform/client-actions/cc/client-actions-renderer/ViewMetaSchema.js +17 -0
  51. package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/ClientActionsAdapter.js +1 -2
  52. package/es/platform/client-actions/components/client-actions-renderer/adapters/presenters/ClientActionsRendererTranslator.js +24 -0
  53. package/es/platform/client-actions/components/client-actions-renderer/domain/entities/ClientActionsRendererDatatype.js +1 -0
  54. package/es/platform/client-actions/components/client-actions-renderer/domain/entities/ClientActionsRendererViewProps.js +1 -0
  55. package/es/platform/client-actions/components/client-actions-renderer/domain/entities/Context.js +1 -0
  56. package/es/platform/client-actions/components/client-actions-renderer/domain/entities/State.js +8 -0
  57. package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer.js +11 -0
  58. package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer.module.css +23 -0
  59. package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRendererView.js +25 -0
  60. package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/views/DefaultActionsRendererView.js +66 -0
  61. package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/more-actions-renderer/MoreActionsRenderer.js +9 -0
  62. package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/more-actions-renderer/MoreActionsRendererView.js +81 -0
  63. package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/resources/__test__/ClientScriptsFetchSDK.test.js +163 -0
  64. package/es/platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema.js +4 -1
  65. package/es/platform/components/form-connected/frameworks/FormConnectedView.js +2 -0
  66. package/es/platform/components/smart-action-band/adapters/presenters/ActionBandTranslator.js +7 -10
  67. package/es/platform/components/smart-action-band/frameworks/SmartActionBandView.js +18 -5
  68. package/es/platform/zform/adapters/presenter/FormTranslator.js +8 -12
  69. package/es/platform/zform/adapters/presenter/translators/SectionTranslator.js +10 -14
  70. package/es/platform/zform/adapters/presenter/translators/fields/BooleanFieldTranslator.js +4 -2
  71. package/es/platform/zform/adapters/presenter/translators/fields/CurrencyFieldTranslator.js +2 -1
  72. package/es/platform/zform/adapters/presenter/translators/fields/DateFieldTranslator.js +4 -2
  73. package/es/platform/zform/adapters/presenter/translators/fields/DateTimeFieldTranslator.js +4 -2
  74. package/es/platform/zform/adapters/presenter/translators/fields/DecimalFieldTranslator.js +4 -2
  75. package/es/platform/zform/adapters/presenter/translators/fields/EmailFieldTranslator.js +4 -2
  76. package/es/platform/zform/adapters/presenter/translators/fields/LookUpFieldTranslator.js +4 -2
  77. package/es/platform/zform/adapters/presenter/translators/fields/MultiselectFieldTranslator.js +13 -8
  78. package/es/platform/zform/adapters/presenter/translators/fields/NumberFieldTranslator.js +4 -2
  79. package/es/platform/zform/adapters/presenter/translators/fields/PercentageFieldTranslator.js +4 -2
  80. package/es/platform/zform/adapters/presenter/translators/fields/PhoneFieldTranslator.js +4 -2
  81. package/es/platform/zform/adapters/presenter/translators/fields/PicklistFieldTranslator.js +11 -12
  82. package/es/platform/zform/adapters/presenter/translators/fields/TextAreaFieldTranslator.js +4 -2
  83. package/es/platform/zform/adapters/presenter/translators/fields/TextFieldTranslator.js +4 -2
  84. package/es/platform/zform/adapters/presenter/translators/fields/URLFieldTranslator.js +4 -2
  85. package/es/platform/zlist/adapters/presenters/SelectionTranslator.js +2 -4
  86. package/es/platform/zlist/adapters/presenters/TableTranslator.js +6 -1
  87. package/es/platform/zlist/adapters/presenters/translators/ColumnTranslator.js +7 -1
  88. package/es/platform/zlist/adapters/presenters/translators/Header.js +7 -6
  89. package/es/platform/zlist/adapters/presenters/translators/Row.js +6 -5
  90. package/es/platform/zlist/adapters/presenters/translators/fields/DateFieldTranslator.js +7 -3
  91. package/es/platform/zlist/adapters/presenters/translators/fields/DateTimeFieldTranslator.js +7 -3
  92. package/package.json +2 -2
  93. package/es/.DS_Store +0 -0
  94. package/es/platform/.DS_Store +0 -0
@@ -26,7 +26,8 @@ function MultiSelectView(_ref, ref) {
26
26
  labelActions,
27
27
  actions,
28
28
  uiConfig,
29
- clientScripts
29
+ clientScripts,
30
+ context
30
31
  } = state.properties;
31
32
  const {
32
33
  size,
@@ -39,9 +40,10 @@ function MultiSelectView(_ref, ref) {
39
40
  labelActions: labelActions,
40
41
  required: required,
41
42
  errorMessage: errorMessage,
42
- testId: "smart_form_field_multiselect",
43
+ testId: 'smart_form_field_multiselect',
43
44
  size: size,
44
- breakRow: breakRow
45
+ breakRow: breakRow,
46
+ context: context
45
47
  }, /*#__PURE__*/React.createElement(FieldController, {
46
48
  $ui_className: style.multiSelectField,
47
49
  $event_onFocus: () => dispatch({
@@ -58,7 +60,8 @@ function MultiSelectView(_ref, ref) {
58
60
  disabled: disabled,
59
61
  readonly: readonly,
60
62
  actions: actions,
61
- clientScripts: clientScripts
63
+ clientScripts: clientScripts,
64
+ context: context
62
65
  })));
63
66
  }
64
67
 
@@ -21,7 +21,8 @@ function NumberView(_ref, ref) {
21
21
  uiConfig,
22
22
  labelActions,
23
23
  actions,
24
- clientScripts
24
+ clientScripts,
25
+ context
25
26
  } = state.properties;
26
27
  const {
27
28
  size,
@@ -36,7 +37,8 @@ function NumberView(_ref, ref) {
36
37
  errorMessage: errorMessage,
37
38
  testId: "smart_form_field_number",
38
39
  size: size,
39
- breakRow: breakRow
40
+ breakRow: breakRow,
41
+ context: context
40
42
  }, /*#__PURE__*/React.createElement("div", {
41
43
  className: style.field
42
44
  }, /*#__PURE__*/React.createElement(TextBox, {
@@ -48,7 +50,8 @@ function NumberView(_ref, ref) {
48
50
  readonly: readonly,
49
51
  required: required,
50
52
  actions: actions,
51
- clientScripts: clientScripts
53
+ clientScripts: clientScripts,
54
+ context: context
52
55
  })));
53
56
  }
54
57
 
@@ -20,7 +20,8 @@ function PercentageView(_ref, ref) {
20
20
  uiConfig,
21
21
  labelActions,
22
22
  actions,
23
- clientScripts
23
+ clientScripts,
24
+ context
24
25
  } = state.properties;
25
26
  const {
26
27
  size,
@@ -33,9 +34,10 @@ function PercentageView(_ref, ref) {
33
34
  labelActions: labelActions,
34
35
  required: required,
35
36
  errorMessage: errorMessage,
36
- testId: "smart_form_field_percentage",
37
+ testId: 'smart_form_field_percentage',
37
38
  size: size,
38
- breakRow: breakRow
39
+ breakRow: breakRow,
40
+ context: context
39
41
  }, /*#__PURE__*/React.createElement("div", {
40
42
  className: style.field
41
43
  }, /*#__PURE__*/React.createElement(TextBox, {
@@ -46,7 +48,8 @@ function PercentageView(_ref, ref) {
46
48
  readonly: readonly,
47
49
  required: required,
48
50
  actions: actions,
49
- clientScripts: clientScripts
51
+ clientScripts: clientScripts,
52
+ context: context
50
53
  })));
51
54
  }
52
55
 
@@ -21,7 +21,8 @@ function PhoneView(_ref, ref) {
21
21
  uiConfig,
22
22
  labelActions,
23
23
  actions,
24
- clientScripts
24
+ clientScripts,
25
+ context
25
26
  } = state.properties;
26
27
  const {
27
28
  size,
@@ -36,7 +37,8 @@ function PhoneView(_ref, ref) {
36
37
  errorMessage: errorMessage,
37
38
  testId: "smart_form_field_phone",
38
39
  size: size,
39
- breakRow: breakRow
40
+ breakRow: breakRow,
41
+ context: context
40
42
  }, /*#__PURE__*/React.createElement("div", {
41
43
  className: style.field
42
44
  }, /*#__PURE__*/React.createElement(TextBox, {
@@ -48,7 +50,8 @@ function PhoneView(_ref, ref) {
48
50
  readonly: readonly,
49
51
  required: required,
50
52
  actions: actions,
51
- clientScripts: clientScripts
53
+ clientScripts: clientScripts,
54
+ context: context
52
55
  })));
53
56
  }
54
57
 
@@ -26,7 +26,8 @@ function PickListView(_ref, ref) {
26
26
  labelActions,
27
27
  actions,
28
28
  uiConfig,
29
- clientScripts
29
+ clientScripts,
30
+ context
30
31
  } = state.properties;
31
32
  const {
32
33
  size,
@@ -39,9 +40,10 @@ function PickListView(_ref, ref) {
39
40
  labelActions: labelActions,
40
41
  required: required,
41
42
  errorMessage: errorMessage,
42
- testId: "smart_form_field_picklist",
43
+ testId: 'smart_form_field_picklist',
43
44
  size: size,
44
- breakRow: breakRow
45
+ breakRow: breakRow,
46
+ context: context
45
47
  }, /*#__PURE__*/React.createElement(FieldController, {
46
48
  $ui_className: style.field,
47
49
  $event_onFocus: () => dispatch({
@@ -58,7 +60,8 @@ function PickListView(_ref, ref) {
58
60
  disabled: disabled,
59
61
  readonly: readonly,
60
62
  actions: actions,
61
- clientScripts: clientScripts
63
+ clientScripts: clientScripts,
64
+ context: context
62
65
  })));
63
66
  }
64
67
 
@@ -21,7 +21,8 @@ function TextAreaView(_ref, ref) {
21
21
  labelActions,
22
22
  actions,
23
23
  clientScripts,
24
- maxLength
24
+ maxLength,
25
+ context
25
26
  } = state.properties;
26
27
  const {
27
28
  size,
@@ -36,7 +37,8 @@ function TextAreaView(_ref, ref) {
36
37
  errorMessage: errorMessage,
37
38
  testId: "smart_form_field_textarea",
38
39
  size: size,
39
- breakRow: breakRow
40
+ breakRow: breakRow,
41
+ context: context
40
42
  }, /*#__PURE__*/React.createElement("div", {
41
43
  className: style.field
42
44
  }, /*#__PURE__*/React.createElement(TextArea, {
@@ -48,7 +50,8 @@ function TextAreaView(_ref, ref) {
48
50
  readonly: readonly,
49
51
  actions: actions,
50
52
  clientScripts: clientScripts,
51
- maxLength: maxLength
53
+ maxLength: maxLength,
54
+ context: context
52
55
  })));
53
56
  }
54
57
 
@@ -21,7 +21,8 @@ function TextBoxView(_ref, ref) {
21
21
  uiConfig,
22
22
  labelActions,
23
23
  actions,
24
- clientScripts
24
+ clientScripts,
25
+ context
25
26
  } = state.properties;
26
27
  const {
27
28
  size,
@@ -36,7 +37,8 @@ function TextBoxView(_ref, ref) {
36
37
  errorMessage: errorMessage,
37
38
  testId: "smart_form_field_textbox",
38
39
  size: size,
39
- breakRow: breakRow
40
+ breakRow: breakRow,
41
+ context: context
40
42
  }, /*#__PURE__*/React.createElement("div", {
41
43
  className: style.field
42
44
  }, /*#__PURE__*/React.createElement(TextBox, {
@@ -48,7 +50,8 @@ function TextBoxView(_ref, ref) {
48
50
  disabled: disabled,
49
51
  readonly: readonly,
50
52
  actions: actions,
51
- clientScripts: clientScripts
53
+ clientScripts: clientScripts,
54
+ context: context
52
55
  })));
53
56
  }
54
57
 
@@ -21,7 +21,8 @@ function UrlView(_ref, ref) {
21
21
  required,
22
22
  labelActions,
23
23
  actions,
24
- clientScripts
24
+ clientScripts,
25
+ context
25
26
  } = state.properties;
26
27
  const {
27
28
  size,
@@ -36,7 +37,8 @@ function UrlView(_ref, ref) {
36
37
  size: size,
37
38
  breakRow: breakRow,
38
39
  errorMessage: errorMessage,
39
- testId: "smart_form_field_url"
40
+ testId: "smart_form_field_url",
41
+ context: context
40
42
  }, /*#__PURE__*/React.createElement("div", {
41
43
  className: style.field
42
44
  }, /*#__PURE__*/React.createElement(TextBox, {
@@ -48,7 +50,8 @@ function UrlView(_ref, ref) {
48
50
  readonly: readonly,
49
51
  required: required,
50
52
  actions: actions,
51
- clientScripts: clientScripts
53
+ clientScripts: clientScripts,
54
+ context: context
52
55
  })));
53
56
  }
54
57
 
@@ -5,6 +5,7 @@ import ComponentRegistry from "../../../../../custom-component/frameworks/ui/Com
5
5
  export function renderField(field, key, clientScripts) {
6
6
  const {
7
7
  type,
8
+ context,
8
9
  ...properties
9
10
  } = field;
10
11
  const Component = ComponentRegistry.get(type);
@@ -17,6 +18,7 @@ export function renderField(field, key, clientScripts) {
17
18
  return /*#__PURE__*/React.createElement(Component, _extends({
18
19
  key: key
19
20
  }, properties, {
20
- clientScripts: clientScripts
21
+ clientScripts: clientScripts,
22
+ context: context
21
23
  }));
22
24
  }
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import RowActionsRenderer from "../../../../../../platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer";
3
2
  import VelocityAnimationGroup from '@zohodesk/components/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup';
4
3
  import Flex from '@zohodesk/layout/es/Flex/Flex';
5
4
  import Section from '@zohodesk-private/desk-components/es/setup/SetupFormBox/SetupFormBox';
@@ -8,6 +7,8 @@ import { renderField } from "./RenderField";
8
7
  import { ActionViewGap } from "../../../../../../platform/client-actions/components/interfaces/ActionViewModel"; // @ts-ignore
9
8
 
10
9
  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";
11
12
 
12
13
  function SectionView(_ref, ref) {
13
14
  let {
@@ -21,19 +22,24 @@ function SectionView(_ref, ref) {
21
22
  fields,
22
23
  titleActions,
23
24
  headerActions,
24
- clientScripts
25
+ clientScripts,
26
+ context
25
27
  } = state.properties;
26
28
 
27
- const renderActions = actions => {
29
+ const renderActions = (actions, context) => {
28
30
  if (!actions?.length) return null;
29
31
  return /*#__PURE__*/React.createElement(Flex, {
30
32
  $ui_displayMode: "flex",
31
33
  $ui_alignItems: "center",
32
34
  $ui_className: style.actionContainer
33
- }, /*#__PURE__*/React.createElement(RowActionsRenderer, {
35
+ }, /*#__PURE__*/React.createElement(ClientActionsRenderer, {
34
36
  actions: actions,
35
- gap: ActionViewGap.LARGE,
36
- clientScripts: clientScripts
37
+ clientScripts: clientScripts,
38
+ context: context,
39
+ viewMeta: {
40
+ layout: Layout.HORIZONTAL,
41
+ gap: ActionViewGap.LARGE
42
+ }
37
43
  }));
38
44
  };
39
45
 
@@ -46,8 +52,8 @@ function SectionView(_ref, ref) {
46
52
  $tagAttributes_container: {
47
53
  ref
48
54
  },
49
- $render_headingRightElement: renderActions(titleActions),
50
- $render_headerRightElement: renderActions(headerActions)
55
+ $render_headingRightElement: renderActions(titleActions, context),
56
+ $render_headerRightElement: renderActions(headerActions, context)
51
57
  }, /*#__PURE__*/React.createElement(VelocityAnimationGroup, {
52
58
  name: "slideDown",
53
59
  isActive: !isCollapsed
@@ -44,7 +44,8 @@ function TableListView(_ref2, _ref) {
44
44
  const {
45
45
  headers,
46
46
  rows,
47
- clientScripts
47
+ clientScripts,
48
+ massActionsContext
48
49
  } = data;
49
50
  const {
50
51
  hasActions: hasRowActions,
@@ -100,7 +101,8 @@ function TableListView(_ref2, _ref) {
100
101
  hasRowActions,
101
102
  rowActionsColumnWidth,
102
103
  dispatch,
103
- clientScripts
104
+ clientScripts,
105
+ massActionsContext
104
106
  }), renderBody({
105
107
  TableRef,
106
108
  dispatch,
@@ -149,7 +151,8 @@ function renderHeader(_ref3) {
149
151
  hasRowActions,
150
152
  rowActionsColumnWidth,
151
153
  dispatch,
152
- clientScripts
154
+ clientScripts,
155
+ massActionsContext
153
156
  } = _ref3;
154
157
  return /*#__PURE__*/React.createElement(Header, {
155
158
  isReorderEnabled: isReorderEnabled,
@@ -166,7 +169,8 @@ function renderHeader(_ref3) {
166
169
  headers: headers,
167
170
  isMultiline: isMultiline,
168
171
  dispatch: dispatch,
169
- clientScripts: clientScripts
172
+ clientScripts: clientScripts,
173
+ massActionsContext: massActionsContext
170
174
  });
171
175
  }
172
176
 
@@ -26,7 +26,8 @@ function Header(_ref) {
26
26
  headers,
27
27
  isMultiline,
28
28
  dispatch,
29
- clientScripts
29
+ clientScripts,
30
+ massActionsContext
30
31
  } = _ref;
31
32
 
32
33
  if (headers.length <= 0) {
@@ -48,15 +49,16 @@ function Header(_ref) {
48
49
  }
49
50
  }, /*#__PURE__*/React.createElement(TableHeaderRow, {
50
51
  $flag_autoHeight: isMultiline
51
- }, renderReOrderColumn(isReorderEnabled), rendermassAction(isSelectionEnabled, isMultiline, actions, clientScripts), renderHeaders(headers, isMultiline, currentlyResizingColumn, isResizerEnabled, isFlexibleColumns, dispatch, clientScripts), renderActionColumn(hasRowActions, rowActionsColumnWidth), renderResizerExtraSpace(isCurrentlyResizing, resizerExtraWidth)));
52
+ }, renderReOrderColumn(isReorderEnabled), rendermassAction(isSelectionEnabled, isMultiline, actions, clientScripts, massActionsContext), renderHeaders(headers, isMultiline, currentlyResizingColumn, isResizerEnabled, isFlexibleColumns, dispatch, clientScripts), renderActionColumn(hasRowActions, rowActionsColumnWidth), renderResizerExtraSpace(isCurrentlyResizing, resizerExtraWidth)));
52
53
  }
53
54
 
54
- function rendermassAction(isSelectionEnabled, isMultiline, actions, clientScripts) {
55
+ function rendermassAction(isSelectionEnabled, isMultiline, actions, clientScripts, massActionsContext) {
55
56
  return /*#__PURE__*/React.createElement(MassAction, {
56
57
  isSelectionEnabled: isSelectionEnabled,
57
58
  isMultiline: isMultiline,
58
59
  actions: actions,
59
- clientScripts: clientScripts
60
+ clientScripts: clientScripts,
61
+ context: massActionsContext
60
62
  });
61
63
  }
62
64
 
@@ -6,7 +6,8 @@ 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 RowActionsRenderer from "../../../../../../../../platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer";
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";
10
11
 
11
12
  function HeaderData(_ref) {
12
13
  let {
@@ -26,7 +27,8 @@ function HeaderData(_ref) {
26
27
  sortable,
27
28
  width,
28
29
  alignment,
29
- actions
30
+ actions,
31
+ context
30
32
  } = header;
31
33
  const hasActions = Boolean(actions?.length);
32
34
  return (
@@ -50,10 +52,14 @@ function HeaderData(_ref) {
50
52
  }, /*#__PURE__*/React.createElement(TableHeading, {
51
53
  $i18n_text: text,
52
54
  $flag_wrapText: isMultiline
53
- }), hasActions ? /*#__PURE__*/React.createElement(RowActionsRenderer, {
55
+ }), hasActions ? /*#__PURE__*/React.createElement(ClientActionsRenderer, {
54
56
  actions: actions,
55
- gap: ActionViewGap.SMALL,
56
- clientScripts: clientScripts
57
+ clientScripts: clientScripts,
58
+ context: context,
59
+ viewMeta: {
60
+ layout: Layout.HORIZONTAL,
61
+ gap: ActionViewGap.SMALL
62
+ }
57
63
  }) : null, /*#__PURE__*/React.createElement(ColumnResizer, {
58
64
  isResizerEnabled: isResizerEnabled,
59
65
  isResizing: isResizing,
@@ -1,16 +1,18 @@
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';
4
- import AdaptiveRowActionsRenderer from "../../../../../../../../platform/client-actions/components/row-actions-renderer/frameworks/ui/AdaptiveRowActions/AdaptiveRowActionsRenderer"; // @ts-ignore
3
+ import TableHeading from '@zohodesk-private/desk-components/es/table/TableHeading/TableHeading'; // @ts-ignore
5
4
 
6
5
  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";
7
8
 
8
9
  function MassAction(_ref) {
9
10
  let {
10
11
  isSelectionEnabled,
11
12
  isMultiline,
12
13
  actions,
13
- clientScripts
14
+ clientScripts,
15
+ context
14
16
  } = _ref;
15
17
 
16
18
  if (!isSelectionEnabled) {
@@ -36,9 +38,13 @@ function MassAction(_ref) {
36
38
  customStyle: {
37
39
  container: style.massActionHeader
38
40
  }
39
- }, /*#__PURE__*/React.createElement(AdaptiveRowActionsRenderer, {
41
+ }, /*#__PURE__*/React.createElement(ClientActionsRenderer, {
40
42
  actions: actions,
41
- clientScripts: clientScripts
43
+ clientScripts: clientScripts,
44
+ context: context,
45
+ viewMeta: {
46
+ layout: Layout.HORIZONTAL
47
+ }
42
48
  }));
43
49
  }
44
50
 
@@ -47,7 +47,8 @@ function RowView(_ref, ref) {
47
47
  } = state.properties;
48
48
  const {
49
49
  type,
50
- actions
50
+ actions,
51
+ context
51
52
  } = rowActionLocation;
52
53
  return /*#__PURE__*/React.createElement(TableRow, {
53
54
  key: id,
@@ -90,7 +91,8 @@ function RowView(_ref, ref) {
90
91
  columnWidth: rowActionsColumnWidth,
91
92
  type,
92
93
  actions,
93
- clientScripts
94
+ clientScripts,
95
+ context
94
96
  }), isDroppable && /*#__PURE__*/React.createElement("div", {
95
97
  className: `${style.rowDropIndicator} ${dropPosition === 'downward' && style.dropIndicatorTop} ${dropPosition === 'upward' && style.dropIndicatorBottom}`
96
98
  }));
@@ -171,7 +173,8 @@ function renderRowActions(_ref6) {
171
173
  columnWidth,
172
174
  actions,
173
175
  type,
174
- clientScripts
176
+ clientScripts,
177
+ context
175
178
  } = _ref6;
176
179
  return /*#__PURE__*/React.createElement(RowActions, {
177
180
  hasActions: hasActions,
@@ -179,7 +182,8 @@ function renderRowActions(_ref6) {
179
182
  columnWidth: columnWidth,
180
183
  type: type,
181
184
  actions: actions,
182
- clientScripts: clientScripts
185
+ clientScripts: clientScripts,
186
+ context: context
183
187
  });
184
188
  }
185
189
 
@@ -1,7 +1,8 @@
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";
4
3
  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";
5
6
  export default function RowActions(_ref) {
6
7
  let {
7
8
  hasActions,
@@ -9,18 +10,24 @@ export default function RowActions(_ref) {
9
10
  columnWidth,
10
11
  type = '',
11
12
  actions,
12
- clientScripts
13
+ clientScripts,
14
+ context
13
15
  } = _ref;
14
16
 
15
17
  if (hasActions) {
16
18
  return /*#__PURE__*/React.createElement(TableAction, {
17
19
  $data_width: columnWidth,
18
20
  $ui_alignItems: isMultiline ? 'start' : 'center'
19
- }, /*#__PURE__*/React.createElement(AdaptiveRowActionsRenderer, {
21
+ }, /*#__PURE__*/React.createElement(ClientActionsRenderer, {
20
22
  actions: actions,
21
23
  clientScripts: clientScripts,
22
- renderComponentType: type,
23
- gap: ActionViewGap.MEDIUM
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"
24
31
  }));
25
32
  }
26
33
 
@@ -5,7 +5,9 @@ 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 RowActionsRenderer from "../../../../../../../../platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer";
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";
9
11
  export default function RowData(_ref) {
10
12
  let {
11
13
  field,
@@ -17,9 +19,11 @@ export default function RowData(_ref) {
17
19
  let {
18
20
  type,
19
21
  actions,
22
+ context,
20
23
  ...props
21
24
  } = field;
22
- const hasActions = Boolean(actions?.length);
25
+ const resolvedActions = ClientActionsTranslator.transform(actions, context.instanceName, context.moduleName, context);
26
+ const hasActions = Boolean(resolvedActions?.length);
23
27
  return /*#__PURE__*/React.createElement(TableData, {
24
28
  $ui_align: hasActions ? null : alignment,
25
29
  $data_width: width,
@@ -35,9 +39,13 @@ export default function RowData(_ref) {
35
39
  }, /*#__PURE__*/React.createElement(FieldComponent, {
36
40
  type: type,
37
41
  fieldProps: props
38
- }), hasActions ? /*#__PURE__*/React.createElement(RowActionsRenderer, {
42
+ }), hasActions ? /*#__PURE__*/React.createElement(ClientActionsRenderer, {
39
43
  actions: actions,
40
44
  clientScripts: clientScripts,
41
- gap: ActionViewGap.SMALL
45
+ context: context,
46
+ viewMeta: {
47
+ layout: Layout.HORIZONTAL,
48
+ gap: ActionViewGap.SMALL
49
+ }
42
50
  }) : null);
43
51
  }
@@ -1,10 +1,11 @@
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";
5
4
  import { ActionViewGap } from "../../../../../../platform/client-actions/components/interfaces/ActionViewModel"; // @ts-ignore
6
5
 
7
6
  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";
8
9
 
9
10
  function DateView(_ref, ref) {
10
11
  let {
@@ -24,17 +25,22 @@ function DateView(_ref, ref) {
24
25
  isTimeIncluded,
25
26
  timeZone,
26
27
  actions,
27
- clientScripts
28
+ clientScripts,
29
+ context
28
30
  } = state.properties;
29
31
 
30
32
  const renderRightFieldActions = () => {
31
33
  if (!actions?.length) return null;
32
34
  return /*#__PURE__*/React.createElement("div", {
33
35
  className: style.actionContainer
34
- }, /*#__PURE__*/React.createElement(RowActionsRenderer, {
36
+ }, /*#__PURE__*/React.createElement(ClientActionsRenderer, {
35
37
  actions: actions,
36
38
  clientScripts: clientScripts,
37
- gap: ActionViewGap.SMALL
39
+ context: context,
40
+ viewMeta: {
41
+ layout: Layout.HORIZONTAL,
42
+ gap: ActionViewGap.SMALL
43
+ }
38
44
  }));
39
45
  };
40
46
 
@@ -4,7 +4,8 @@ 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 RowActionsRenderer from "../../../../../../platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer";
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";
8
9
 
9
10
  function LabelView(_ref, ref) {
10
11
  let {
@@ -15,7 +16,8 @@ function LabelView(_ref, ref) {
15
16
  for: htmlFor,
16
17
  isMandatory,
17
18
  actions,
18
- clientScripts
19
+ clientScripts,
20
+ context
19
21
  } = state.properties;
20
22
  return /*#__PURE__*/React.createElement(Flex, {
21
23
  ref: ref,
@@ -27,10 +29,14 @@ function LabelView(_ref, ref) {
27
29
  htmlFor: htmlFor,
28
30
  palette: isMandatory ? 'mandatory' : 'default',
29
31
  customClass: `${style.label} ${isMandatory ? style.mandatory : ''}`
30
- }), actions.length ? /*#__PURE__*/React.createElement(RowActionsRenderer, {
32
+ }), actions.length ? /*#__PURE__*/React.createElement(ClientActionsRenderer, {
31
33
  actions: actions,
32
- gap: ActionViewGap.XMEDIUM,
33
- clientScripts: clientScripts
34
+ clientScripts: clientScripts,
35
+ context: context,
36
+ viewMeta: {
37
+ layout: Layout.HORIZONTAL,
38
+ gap: ActionViewGap.XMEDIUM
39
+ }
34
40
  }) : null);
35
41
  }
36
42