@zohodesk/library-platform 1.2.2-exp.2 → 1.2.2-exp.6

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 (144) hide show
  1. package/es/cc/action-status/Constants.js +5 -0
  2. package/es/cc/action-status/Events.js +6 -0
  3. package/es/cc/action-status/Properties.js +29 -0
  4. package/es/cc/action-status/index.js +3 -0
  5. package/es/cc/button/Properties.js +28 -0
  6. package/es/cc/date/Properties.js +15 -0
  7. package/es/cc/fields/field/Events.js +8 -0
  8. package/es/cc/fields/field/Properties.js +8 -1
  9. package/es/cc/form/Properties.js +8 -0
  10. package/es/cc/highlighted-value/Properties.js +28 -0
  11. package/es/cc/index.js +1 -0
  12. package/es/cc/label/Properties.js +12 -5
  13. package/es/cc/multi-select/Properties.js +8 -1
  14. package/es/cc/radio-dropdown/Events.js +16 -0
  15. package/es/cc/section/Properties.js +8 -1
  16. package/es/cc/select/Properties.js +8 -1
  17. package/es/cc/table-column-filter/Properties.js +9 -0
  18. package/es/cc/table-list/Events.js +8 -0
  19. package/es/cc/textarea/Properties.js +15 -0
  20. package/es/cc/textbox/Properties.js +8 -1
  21. package/es/index.js +4 -6
  22. package/es/library/dot/components/action-location/frameworks/ui/ActionComponentMapping.js +3 -1
  23. package/es/library/dot/components/action-status/frameworks/ui/ActionStatus.js +12 -0
  24. package/es/library/dot/components/action-status/frameworks/ui/ActionStatusView.js +57 -0
  25. package/es/library/dot/components/action-status/frameworks/ui/css/ActionStatus.module.css +61 -0
  26. package/es/library/dot/components/form/adapters/presenter/TransformState.js +3 -1
  27. package/es/library/dot/components/form/frameworks/ui/FormView.js +6 -3
  28. package/es/library/dot/components/form/frameworks/ui/css/Form.module.css +13 -13
  29. package/es/library/dot/components/form/frameworks/ui/sub-components/Footer.js +16 -7
  30. package/es/library/dot/components/form/frameworks/ui/sub-components/Header.js +16 -7
  31. package/es/library/dot/components/form/frameworks/ui/sub-components/Sections.js +4 -2
  32. package/es/library/dot/components/form-fields/checkbox/frameworks/ui/CheckboxView.js +6 -3
  33. package/es/library/dot/components/form-fields/currency/frameworks/ui/CurrencyView.js +6 -3
  34. package/es/library/dot/components/form-fields/date/frameworks/ui/DateView.js +6 -3
  35. package/es/library/dot/components/form-fields/datetime/frameworks/ui/DateTimeView.js +6 -3
  36. package/es/library/dot/components/form-fields/decimal/frameworks/ui/DecimalView.js +6 -3
  37. package/es/library/dot/components/form-fields/email/frameworks/ui/EmailView.js +6 -3
  38. package/es/library/dot/components/form-fields/field/FieldItem.js +4 -2
  39. package/es/library/dot/components/form-fields/field/css/FieldItem.module.css +2 -2
  40. package/es/library/dot/components/form-fields/lookup/frameworks/ui/LookupView.js +6 -3
  41. package/es/library/dot/components/form-fields/multi-select/frameworks/ui/MultiSelectView.js +7 -4
  42. package/es/library/dot/components/form-fields/number/frameworks/ui/NumberView.js +6 -3
  43. package/es/library/dot/components/form-fields/percentage/frameworks/ui/PercentageView.js +7 -4
  44. package/es/library/dot/components/form-fields/phone/frameworks/ui/PhoneView.js +6 -3
  45. package/es/library/dot/components/form-fields/pick-list/frameworks/ui/PickListView.js +7 -4
  46. package/es/library/dot/components/form-fields/textarea/frameworks/ui/TextAreaView.js +6 -3
  47. package/es/library/dot/components/form-fields/textbox/frameworks/ui/TextBoxView.js +6 -3
  48. package/es/library/dot/components/form-fields/url/frameworks/ui/UrlView.js +6 -3
  49. package/es/library/dot/components/section/frameworks/ui/RenderField.js +3 -1
  50. package/es/library/dot/components/section/frameworks/ui/SectionView.js +11 -6
  51. package/es/library/dot/components/section/frameworks/ui/css/Section.module.css +3 -3
  52. package/es/library/dot/components/table-list/adapters/controllers/FieldChangeController.js +4 -2
  53. package/es/library/dot/components/table-list/frameworks/ui/TableListView.js +8 -4
  54. package/es/library/dot/components/table-list/frameworks/ui/css/TableList.module.css +25 -25
  55. package/es/library/dot/components/table-list/frameworks/ui/sub-components/Header.js +6 -4
  56. package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/HeaderData.js +11 -6
  57. package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/MassAction.js +11 -5
  58. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Row.js +8 -4
  59. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowActions.js +12 -5
  60. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowData.js +12 -4
  61. package/es/library/dot/legacy-to-new-arch/breadcrumb/frameworks/ui/css/Breadcrumb.module.css +4 -4
  62. package/es/library/dot/legacy-to-new-arch/button/frameworks/ui/ButtonView.js +17 -2
  63. package/es/library/dot/legacy-to-new-arch/date/frameworks/ui/DateView.js +10 -4
  64. package/es/library/dot/legacy-to-new-arch/date/frameworks/ui/css/DateView.module.css +1 -1
  65. package/es/library/dot/legacy-to-new-arch/highlighted-value/frameworks/ui/HighlightedValueView.js +13 -2
  66. package/es/library/dot/legacy-to-new-arch/highlighted-value/frameworks/ui/css/HighlightedValue.module.css +4 -0
  67. package/es/library/dot/legacy-to-new-arch/label/frameworks/ui/LabelView.js +11 -5
  68. package/es/library/dot/legacy-to-new-arch/label/frameworks/ui/css/Label.module.css +4 -4
  69. package/es/library/dot/legacy-to-new-arch/multi-select/frameworks/ui/MultiSelectView.js +21 -8
  70. package/es/library/dot/legacy-to-new-arch/multi-select/frameworks/ui/css/MultiSelectView.module.css +7 -7
  71. package/es/library/dot/legacy-to-new-arch/radio-dropdown/frameworks/ui/RadioDropdownView.js +3 -1
  72. package/es/library/dot/legacy-to-new-arch/radio-dropdown/frameworks/ui/css/RadioDropdown.module.css +4 -4
  73. package/es/library/dot/legacy-to-new-arch/select/frameworks/ui/SelectView.js +18 -8
  74. package/es/library/dot/legacy-to-new-arch/select/frameworks/ui/css/Select.module.css +2 -2
  75. package/es/library/dot/legacy-to-new-arch/table-column-chooser/frameworks/ui/css/TableColumnChooserView.module.css +1 -1
  76. package/es/library/dot/legacy-to-new-arch/table-column-filter/frameworks/ui/EventHandlersFactory.js +26 -0
  77. package/es/library/dot/legacy-to-new-arch/table-column-filter/frameworks/ui/TableColumnFilter.js +19 -1
  78. package/es/library/dot/legacy-to-new-arch/table-column-filter/frameworks/ui/TableColumnFilterView.js +3 -1
  79. package/es/library/dot/legacy-to-new-arch/table-field-components/checkbox-field/frameworks/ui/EventHandlersFactory.js +2 -1
  80. package/es/library/dot/legacy-to-new-arch/table-field-components/highlighted-value-field/frameworks/ui/HighlightedValueFieldView.js +8 -2
  81. package/es/library/dot/legacy-to-new-arch/table-field-components/radio-dropdown-field/frameworks/ui/EventHandlersFactory.js +4 -2
  82. package/es/library/dot/legacy-to-new-arch/table-field-components/radio-dropdown-field/frameworks/ui/css/RadioDropdownField.module.css +1 -1
  83. package/es/library/dot/legacy-to-new-arch/table-field-components/switch-field/frameworks/ui/EventHandlersFactory.js +2 -1
  84. package/es/library/dot/legacy-to-new-arch/text-area/frameworks/ui/TextAreaView.js +10 -4
  85. package/es/library/dot/legacy-to-new-arch/text-area/frameworks/ui/css/TextAreaView.module.css +3 -3
  86. package/es/library/dot/legacy-to-new-arch/textbox/frameworks/ui/TextBoxView.js +11 -5
  87. package/es/platform/client-actions/behaviour/zclient-actions/adapters/resources/__test__/ClientActionsFetchSDK.test.js +183 -0
  88. package/es/platform/client-actions/cc/action-event-mediator/Properties.js +0 -43
  89. package/es/platform/client-actions/cc/client-actions-renderer/Properties.js +58 -0
  90. package/es/platform/client-actions/cc/client-actions-renderer/ViewMetaSchema.js +17 -0
  91. package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/ClientActionsAdapter.js +1 -2
  92. package/es/platform/client-actions/components/client-actions-renderer/adapters/presenters/ClientActionsRendererTranslator.js +24 -0
  93. package/es/platform/client-actions/components/client-actions-renderer/domain/entities/ClientActionsRendererViewProps.js +1 -0
  94. package/es/platform/client-actions/components/client-actions-renderer/domain/entities/Context.js +1 -0
  95. package/es/platform/client-actions/components/client-actions-renderer/domain/entities/State.js +1 -0
  96. package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer.js +11 -0
  97. package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer.module.css +23 -0
  98. package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRendererView.js +25 -0
  99. package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/views/DefaultActionsRendererView.js +66 -0
  100. package/es/platform/client-actions/components/{row-actions-renderer/frameworks/ui/MoreActions → client-actions-renderer/frameworks/ui/more-actions-renderer}/MoreActionsRenderer.js +3 -4
  101. package/es/platform/client-actions/components/{row-actions-renderer/frameworks/ui/MoreActions → client-actions-renderer/frameworks/ui/more-actions-renderer}/MoreActionsRendererView.js +32 -30
  102. package/es/platform/client-actions/components/interfaces/ActionViewModel.js +7 -0
  103. package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/resources/__test__/ClientScriptsFetchSDK.test.js +163 -0
  104. package/es/platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema.js +4 -1
  105. package/es/platform/components/form-connected/frameworks/FormConnectedView.js +2 -0
  106. package/es/platform/components/smart-action-band/adapters/presenters/ActionBandTranslator.js +7 -10
  107. package/es/platform/components/smart-action-band/frameworks/SmartActionBandView.js +17 -5
  108. package/es/platform/data-source/http-template/getAvailableFields.js +4 -2
  109. package/es/platform/zform/adapters/presenter/FormTranslator.js +8 -12
  110. package/es/platform/zform/adapters/presenter/translators/SectionTranslator.js +10 -14
  111. package/es/platform/zform/adapters/presenter/translators/fields/BooleanFieldTranslator.js +4 -2
  112. package/es/platform/zform/adapters/presenter/translators/fields/CurrencyFieldTranslator.js +2 -1
  113. package/es/platform/zform/adapters/presenter/translators/fields/DateFieldTranslator.js +4 -2
  114. package/es/platform/zform/adapters/presenter/translators/fields/DateTimeFieldTranslator.js +4 -2
  115. package/es/platform/zform/adapters/presenter/translators/fields/DecimalFieldTranslator.js +4 -2
  116. package/es/platform/zform/adapters/presenter/translators/fields/EmailFieldTranslator.js +4 -2
  117. package/es/platform/zform/adapters/presenter/translators/fields/LookUpFieldTranslator.js +4 -2
  118. package/es/platform/zform/adapters/presenter/translators/fields/MultiselectFieldTranslator.js +13 -8
  119. package/es/platform/zform/adapters/presenter/translators/fields/NumberFieldTranslator.js +4 -2
  120. package/es/platform/zform/adapters/presenter/translators/fields/PercentageFieldTranslator.js +4 -2
  121. package/es/platform/zform/adapters/presenter/translators/fields/PhoneFieldTranslator.js +4 -2
  122. package/es/platform/zform/adapters/presenter/translators/fields/PicklistFieldTranslator.js +15 -12
  123. package/es/platform/zform/adapters/presenter/translators/fields/TextAreaFieldTranslator.js +4 -2
  124. package/es/platform/zform/adapters/presenter/translators/fields/TextFieldTranslator.js +4 -2
  125. package/es/platform/zform/adapters/presenter/translators/fields/URLFieldTranslator.js +4 -2
  126. package/es/platform/zform/domain/interfaces/IZForm.js +2 -5
  127. package/es/platform/zform/domain/interfaces/ValidationEvents.js +4 -0
  128. package/es/platform/zlist/adapters/presenters/SelectionTranslator.js +2 -4
  129. package/es/platform/zlist/adapters/presenters/TableTranslator.js +6 -1
  130. package/es/platform/zlist/adapters/presenters/translators/ColumnTranslator.js +7 -1
  131. package/es/platform/zlist/adapters/presenters/translators/Header.js +7 -6
  132. package/es/platform/zlist/adapters/presenters/translators/Row.js +6 -5
  133. package/es/platform/zlist/adapters/presenters/translators/fields/DateFieldTranslator.js +7 -3
  134. package/es/platform/zlist/adapters/presenters/translators/fields/DateTimeFieldTranslator.js +7 -3
  135. package/package.json +19 -6
  136. package/es/.DS_Store +0 -0
  137. package/es/library/custom-component/frameworks/json-schema-validator/Validator.js +0 -1
  138. package/es/platform/.DS_Store +0 -0
  139. package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/AdaptiveRowActions/AdaptiveRowActionsRenderer.js +0 -12
  140. package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/AdaptiveRowActions/AdaptiveRowActionsRendererView.js +0 -42
  141. package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer.js +0 -12
  142. package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer.module.css +0 -23
  143. package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRendererView.js +0 -37
  144. /package/es/platform/client-actions/components/{row-actions-renderer/domain/entities/interfaces/IState.js → client-actions-renderer/domain/entities/ClientActionsRendererDatatype.js} +0 -0
@@ -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,13 +1,13 @@
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';
6
5
  import FieldsLayout from '@zohodesk-private/desk-components/es/form/FieldsLayout/FieldsLayout';
7
6
  import { renderField } from "./RenderField";
8
- import { ActionViewGap } from "../../../../../../platform/client-actions/components/interfaces/ActionViewModel"; // @ts-ignore
7
+ import { ActionViewGap, Layout } 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
11
 
12
12
  function SectionView(_ref, ref) {
13
13
  let {
@@ -21,7 +21,8 @@ function SectionView(_ref, ref) {
21
21
  fields,
22
22
  titleActions,
23
23
  headerActions,
24
- clientScripts
24
+ clientScripts,
25
+ context
25
26
  } = state.properties;
26
27
 
27
28
  const renderActions = actions => {
@@ -30,10 +31,14 @@ function SectionView(_ref, ref) {
30
31
  $ui_displayMode: "flex",
31
32
  $ui_alignItems: "center",
32
33
  $ui_className: style.actionContainer
33
- }, /*#__PURE__*/React.createElement(RowActionsRenderer, {
34
+ }, /*#__PURE__*/React.createElement(ClientActionsRenderer, {
34
35
  actions: actions,
35
- gap: ActionViewGap.LARGE,
36
- clientScripts: clientScripts
36
+ clientScripts: clientScripts,
37
+ context: context,
38
+ viewMeta: {
39
+ layout: Layout.HORIZONTAL,
40
+ gap: ActionViewGap.LARGE
41
+ }
37
42
  }));
38
43
  };
39
44
 
@@ -1,11 +1,11 @@
1
1
  .fieldsContainer {
2
- padding-top: var(--zd_size1)
2
+ padding-top: 1px
3
3
  }
4
4
 
5
5
  [dir=ltr] .actionContainer {
6
- margin-left: var(--zd_size8) ;
6
+ margin-left: 8px;
7
7
  }
8
8
 
9
9
  [dir=rtl] .actionContainer {
10
- margin-right: var(--zd_size8) ;
10
+ margin-right: 8px;
11
11
  }
@@ -13,7 +13,8 @@ class FieldChangeController extends AbstractController {
13
13
  } = state;
14
14
  const {
15
15
  fieldName,
16
- value
16
+ value,
17
+ previousValue
17
18
  } = action.payload;
18
19
  const {
19
20
  id
@@ -23,7 +24,8 @@ class FieldChangeController extends AbstractController {
23
24
  payload: {
24
25
  rowId: id,
25
26
  fieldName,
26
- value
27
+ value,
28
+ previousValue
27
29
  }
28
30
  });
29
31
  }
@@ -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
 
@@ -137,39 +137,39 @@
137
137
  }
138
138
 
139
139
  .paginationSpace {
140
- padding-bottom: var(--zd_size70) ;
140
+ padding-bottom: 70px;
141
141
  }
142
142
 
143
143
  .loader {
144
- padding: var(--zd_size20) 0
144
+ padding: 20px 0
145
145
  }
146
146
 
147
147
  .wrapper {
148
- height: 100% ;
149
- width: 100% ;
148
+ height: 100%;
149
+ width: 100%;
150
150
  z-index: 1;
151
151
  position: relative;
152
152
  }
153
153
 
154
154
  .hiddenDummyRow {
155
- height: var(--zd_size40) ;
156
- width: 0 ;
155
+ height: 40px;
156
+ width: 0;
157
157
  position: absolute;
158
158
  z-index: -100;
159
- top: 0 ;
159
+ top: 0;
160
160
  pointer-events: none;
161
161
  }
162
162
 
163
163
  [dir=ltr] .hiddenDummyRow {
164
- left: 0 ;
164
+ left: 0;
165
165
  }
166
166
 
167
167
  [dir=rtl] .hiddenDummyRow {
168
- right: 0 ;
168
+ right: 0;
169
169
  }
170
170
 
171
171
  .resizerSpace {
172
- width: calc(var(--local_table_resizer_extra_space, 0) * var(--zd_size1));
172
+ width: calc(var(--local_table_resizer_extra_space, 0) * 1px);
173
173
  flex-shrink: 0
174
174
  }
175
175
 
@@ -178,32 +178,32 @@
178
178
  }
179
179
 
180
180
  [dir=ltr] .contentWrapper {
181
- left: 0 ;
181
+ left: 0;
182
182
  }
183
183
 
184
184
  [dir=rtl] .contentWrapper {
185
- right: 0 ;
185
+ right: 0;
186
186
  }
187
187
 
188
188
  .initialLoading {
189
- height: calc(100% - (var(--zd_size100)))
189
+ height: calc(100% - 100px)
190
190
  }
191
191
 
192
192
  .emptyContent {
193
- padding: var(--zd_size160) 0 var(--zd_size60)
193
+ padding: 160px 0 60px
194
194
  }
195
195
 
196
196
  .errorContent {
197
- padding: var(--zd_size60) 0
197
+ padding: 60px 0
198
198
  }
199
199
 
200
200
  .headerWithActions,
201
201
  .fieldWithActions {
202
- gap: var(--zd_size6)
202
+ gap: 6px
203
203
  }
204
204
 
205
205
  .actions {
206
- gap: var(--zd_size8)
206
+ gap: 8px
207
207
  }
208
208
 
209
209
  .rowCursor_default {
@@ -248,7 +248,7 @@
248
248
  }
249
249
 
250
250
  .dragHandleContainer {
251
- height: 100% ;
251
+ height: 100%;
252
252
  opacity: 0;
253
253
  visibility: hidden;
254
254
  }
@@ -272,8 +272,8 @@
272
272
  }
273
273
 
274
274
  .rowDropIndicator {
275
- width: 100% ;
276
- height: var(--zd_size2) ;
275
+ width: 100%;
276
+ height: 2px;
277
277
  /* css:theme-validation:ignore */
278
278
  position: absolute;
279
279
  z-index: 2;
@@ -281,11 +281,11 @@
281
281
  }
282
282
 
283
283
  .dropIndicatorTop {
284
- top: 0 ;
284
+ top: 0;
285
285
  }
286
286
 
287
287
  .dropIndicatorBottom {
288
- bottom: calc( var(--zd_size3) * -1 ) ;
288
+ bottom: -3px;
289
289
  }
290
290
 
291
291
  .row {
@@ -341,13 +341,13 @@
341
341
 
342
342
  .pagination {
343
343
  composes: posab from '~@zohodesk/components/lib/common/common.module.css';
344
- bottom: var(--zd_size20) ;
344
+ bottom: 20px;
345
345
  }
346
346
 
347
347
  [dir=ltr] .pagination {
348
- right: var(--zd_size30) ;
348
+ right: 30px;
349
349
  }
350
350
 
351
351
  [dir=rtl] .pagination {
352
- left: var(--zd_size30) ;
352
+ left: 30px;
353
353
  }
@@ -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
 
@@ -2,11 +2,11 @@ import React from 'react';
2
2
  import TableHead from '@zohodesk-private/desk-components/es/table/TableHead/TableHead';
3
3
  import TableHeading from '@zohodesk-private/desk-components/es/table/TableHeading/TableHeading';
4
4
  import { AlignmentOfFlex } from "../../../../../../../../cc/table-list/data-types/Header";
5
- import { ActionViewGap } from "../../../../../../../../platform/client-actions/components/interfaces/ActionViewModel";
5
+ import { ActionViewGap, Layout } from "../../../../../../../../platform/client-actions/components/interfaces/ActionViewModel";
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
10
 
11
11
  function HeaderData(_ref) {
12
12
  let {
@@ -26,7 +26,8 @@ function HeaderData(_ref) {
26
26
  sortable,
27
27
  width,
28
28
  alignment,
29
- actions
29
+ actions,
30
+ context
30
31
  } = header;
31
32
  const hasActions = Boolean(actions?.length);
32
33
  return (
@@ -50,10 +51,14 @@ function HeaderData(_ref) {
50
51
  }, /*#__PURE__*/React.createElement(TableHeading, {
51
52
  $i18n_text: text,
52
53
  $flag_wrapText: isMultiline
53
- }), hasActions ? /*#__PURE__*/React.createElement(RowActionsRenderer, {
54
+ }), hasActions ? /*#__PURE__*/React.createElement(ClientActionsRenderer, {
54
55
  actions: actions,
55
- gap: ActionViewGap.SMALL,
56
- clientScripts: clientScripts
56
+ clientScripts: clientScripts,
57
+ context: context,
58
+ viewMeta: {
59
+ layout: Layout.HORIZONTAL,
60
+ gap: ActionViewGap.SMALL
61
+ }
57
62
  }) : null, /*#__PURE__*/React.createElement(ColumnResizer, {
58
63
  isResizerEnabled: isResizerEnabled,
59
64
  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/interfaces/ActionViewModel";
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/interfaces/ActionViewModel";
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
+ location: "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/interfaces/ActionViewModel";
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,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: var(--zd_size4) ;
6
+ column-gap: 4px;
7
7
  }
8
8
 
9
9
  .separator {
10
10
  --separator_fontSize: 14px;
11
- margin: 0 var(--zd_size10) ;
11
+ margin: 0 10px;
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,5 +1,6 @@
1
1
  import React from "react";
2
2
  import Button from '@zohodesk-private/dot-registry/es/Button/Button';
3
+ import Icon from "@zohodesk/icons/es/Icon";
3
4
  import ButtonConstants from "../../../../../../cc/button/Constants";
4
5
 
5
6
  function ButtonView(_ref, ref) {
@@ -18,11 +19,25 @@ function ButtonView(_ref, ref) {
18
19
  isDisabled,
19
20
  id,
20
21
  status,
21
- tooltip
22
+ tooltip,
23
+ iconName,
24
+ iconSize,
25
+ iconPosition
22
26
  } = state.properties;
27
+ const iconElement = iconName ? /*#__PURE__*/React.createElement(Icon, {
28
+ name: iconName,
29
+ size: iconSize
30
+ }) : null;
31
+ const buttonText = iconElement ? /*#__PURE__*/React.createElement("span", {
32
+ style: {
33
+ display: 'inline-flex',
34
+ alignItems: 'center',
35
+ gap: '4px'
36
+ }
37
+ }, iconPosition === 'left' && iconElement, text, iconPosition !== 'left' && iconElement) : text;
23
38
  return /*#__PURE__*/React.createElement(Button, {
24
39
  getRef: ref,
25
- text: text,
40
+ text: buttonText,
26
41
  palette: palette,
27
42
  size: size,
28
43
  isRounded: isRounded,
@@ -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/interfaces/ActionViewModel";
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
 
@@ -1,3 +1,3 @@
1
1
  .actionContainer {
2
- margin-top: var(--zd_size2) ;
2
+ margin-top: 2px;
3
3
  }
@@ -1,5 +1,6 @@
1
1
  import React from "react";
2
2
  import StatusBox from "@zohodesk-private/desk-components/es/table/StatusBox/StatusBox";
3
+ import Icon from "@zohodesk/icons/es/Icon";
3
4
  import HighlightedValueConstants from "../../../../../../cc/highlighted-value/Constants"; // @ts-ignore
4
5
 
5
6
  import style from "./css/HighlightedValue.module.css";
@@ -18,8 +19,15 @@ function HighlightedValueView(_ref, ref) {
18
19
  tooltip,
19
20
  weight,
20
21
  isDotted,
21
- cursor
22
+ cursor,
23
+ iconName,
24
+ iconSize,
25
+ iconPosition
22
26
  } = state.properties;
27
+ const iconElement = iconName ? /*#__PURE__*/React.createElement(Icon, {
28
+ name: iconName,
29
+ size: iconSize
30
+ }) : null;
23
31
  return /*#__PURE__*/React.createElement(StatusBox, {
24
32
  $customProps_container: {
25
33
  ref
@@ -29,8 +37,11 @@ function HighlightedValueView(_ref, ref) {
29
37
  $ui_weight: weight,
30
38
  $flag_wrapText: !isDotted,
31
39
  $i18n_tooltip: tooltip,
40
+ $render_leftChild: iconPosition === 'left' ? iconElement : null,
41
+ $render_rightChild: iconPosition !== 'left' ? iconElement : null,
32
42
  customStyle: {
33
- pointer: cursor === "default" && style.default
43
+ pointer: cursor === "default" && style.default,
44
+ container: iconName ? style.gap : undefined
34
45
  },
35
46
  $event_onClick: () => {
36
47
  dispatch({
@@ -1,3 +1,7 @@
1
1
  .default {
2
2
  cursor: default
3
+ }
4
+
5
+ .gap {
6
+ gap: 4px;
3
7
  }