@zohodesk/library-platform 1.2.2-exp.5 → 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 (27) hide show
  1. package/es/library/dot/components/action-status/frameworks/ui/css/ActionStatus.module.css +3 -3
  2. package/es/library/dot/components/form/frameworks/ui/css/Form.module.css +13 -13
  3. package/es/library/dot/components/form-fields/field/css/FieldItem.module.css +2 -2
  4. package/es/library/dot/components/section/frameworks/ui/css/Section.module.css +3 -3
  5. package/es/library/dot/components/table-list/frameworks/ui/css/TableList.module.css +25 -25
  6. package/es/library/dot/legacy-to-new-arch/breadcrumb/frameworks/ui/css/Breadcrumb.module.css +4 -4
  7. package/es/library/dot/legacy-to-new-arch/date/frameworks/ui/css/DateView.module.css +1 -1
  8. package/es/library/dot/legacy-to-new-arch/highlighted-value/frameworks/ui/css/HighlightedValue.module.css +1 -1
  9. package/es/library/dot/legacy-to-new-arch/label/frameworks/ui/css/Label.module.css +4 -4
  10. package/es/library/dot/legacy-to-new-arch/multi-select/frameworks/ui/css/MultiSelectView.module.css +7 -7
  11. package/es/library/dot/legacy-to-new-arch/radio-dropdown/frameworks/ui/css/RadioDropdown.module.css +4 -4
  12. package/es/library/dot/legacy-to-new-arch/select/frameworks/ui/css/Select.module.css +2 -2
  13. package/es/library/dot/legacy-to-new-arch/table-column-chooser/frameworks/ui/css/TableColumnChooserView.module.css +1 -1
  14. package/es/library/dot/legacy-to-new-arch/table-field-components/radio-dropdown-field/frameworks/ui/css/RadioDropdownField.module.css +1 -1
  15. package/es/library/dot/legacy-to-new-arch/text-area/frameworks/ui/css/TextAreaView.module.css +3 -3
  16. package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer.module.css +6 -6
  17. package/package.json +1 -1
  18. package/es/.DS_Store +0 -0
  19. package/es/platform/.DS_Store +0 -0
  20. package/es/platform/client-actions/components/row-actions-renderer/domain/entities/interfaces/IState.js +0 -1
  21. package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/AdaptiveRowActions/AdaptiveRowActionsRenderer.js +0 -12
  22. package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/AdaptiveRowActions/AdaptiveRowActionsRendererView.js +0 -42
  23. package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/MoreActions/MoreActionsRenderer.js +0 -10
  24. package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/MoreActions/MoreActionsRendererView.js +0 -79
  25. package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer.js +0 -12
  26. package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer.module.css +0 -23
  27. package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRendererView.js +0 -37
@@ -5,13 +5,13 @@
5
5
  }
6
6
 
7
7
  .container {
8
- gap: var(--zd_size8) ;
8
+ gap: 8px;
9
9
  }
10
10
 
11
11
  .spinner {
12
12
  display: inline-block;
13
- width: var(--zd_size16) ;
14
- height: var(--zd_size16) ;
13
+ width: 16px;
14
+ height: 16px;
15
15
  /* COLOR VARIABLES TO BE UPDATED PROPERLY USING COMMON COLORS */
16
16
  flex-shrink: 0;
17
17
  box-sizing: border-box;
@@ -3,17 +3,17 @@
3
3
  }
4
4
 
5
5
  .field {
6
- margin-top: var(--zd_size5) ;
6
+ margin-top: 5px;
7
7
  }
8
8
 
9
9
  .multiSelectField {
10
- margin-top: var(--zd_size2)
10
+ margin-top: 2px
11
11
  }
12
12
 
13
13
  .checkboxField {
14
14
  composes: dInflex alignFstart from '~@zohodesk/components/es/common/common.module.css';
15
- max-width: 100% ;
16
- gap: var(--zd_size8)
15
+ max-width: 100%;
16
+ gap: 8px
17
17
  }
18
18
 
19
19
  .cursor_pointer {
@@ -27,36 +27,36 @@
27
27
  }
28
28
 
29
29
  [dir=ltr] .footer {
30
- padding-right: var(--zd_size32)
30
+ padding-right: 32px
31
31
  }
32
32
 
33
33
  [dir=rtl] .footer {
34
- padding-left: var(--zd_size32)
34
+ padding-left: 32px
35
35
  }
36
36
 
37
37
  /* Sections layout */
38
38
 
39
39
  .sectionsWrapper {
40
- padding-bottom: var(--zd_size8)
40
+ padding-bottom: 8px
41
41
  }
42
42
 
43
43
  .sectionsLayout, .sectionsTwoLayout {
44
- margin: 0 auto
44
+ margin: 0 auto
45
45
  }
46
46
 
47
47
  .sectionsLayout {
48
- max-width: var(--local-form-layout-max-width, var(--zd_size1080))
48
+ max-width: var(--local-form-layout-max-width, 1080px)
49
49
  }
50
50
 
51
51
  .sectionsTwoLayout {
52
- column-gap: var(--zd_size8) ;
53
- max-width: var(--local-form-layout-max-width, var(--zd_size1210))
52
+ column-gap: 8px;
53
+ max-width: var(--local-form-layout-max-width, 1210px)
54
54
  }
55
55
 
56
56
  .rightPanel {
57
57
  height: var(--local-form-right-panel-height, 100%);
58
58
  position: -webkit-sticky;
59
59
  position: sticky;
60
- top: 0 ;
61
- padding: var(--zd_size8) 0
60
+ top: 0;
61
+ padding: 8px 0
62
62
  }
@@ -1,7 +1,7 @@
1
1
  .fieldItem {
2
2
  position: relative;
3
- min-width: 0 ;
4
- min-height: 0
3
+ min-width: 0;
4
+ min-height: 0
5
5
  }
6
6
 
7
7
  .largeSize {
@@ -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
  }
@@ -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
  }
@@ -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,3 +1,3 @@
1
1
  .actionContainer {
2
- margin-top: var(--zd_size2) ;
2
+ margin-top: 2px;
3
3
  }
@@ -3,5 +3,5 @@
3
3
  }
4
4
 
5
5
  .gap {
6
- gap: var(--zd_size4) ;
6
+ gap: 4px;
7
7
  }
@@ -1,9 +1,9 @@
1
1
  .label {
2
2
  --label_cursor: inherit
3
3
  }[dir=ltr] .label {
4
- padding-right: var(--zd_size6)
4
+ padding-right: 6px
5
5
  }[dir=rtl] .label {
6
- padding-left: var(--zd_size6)
6
+ padding-left: 6px
7
7
  }
8
8
 
9
9
  .mandatory::after {
@@ -11,9 +11,9 @@
11
11
  }
12
12
 
13
13
  [dir=ltr] .mandatory::after {
14
- padding-left: var(--zd_size2)
14
+ padding-left: 2px
15
15
  }
16
16
 
17
17
  [dir=rtl] .mandatory::after {
18
- padding-right: var(--zd_size2)
18
+ padding-right: 2px
19
19
  }
@@ -1,27 +1,27 @@
1
1
  .fieldActionsContainer {
2
- margin-top: var(--zd_size4) ;
2
+ margin-top: 4px;
3
3
  }
4
4
 
5
5
  [dir=ltr] .optionActionsContainer {
6
- margin-left: var(--zd_size4) ;
6
+ margin-left: 4px;
7
7
  }
8
8
 
9
9
  [dir=rtl] .optionActionsContainer {
10
- margin-right: var(--zd_size4) ;
10
+ margin-right: 4px;
11
11
  }
12
12
 
13
13
  .custmInputWrapper {
14
14
  position: absolute;
15
- top: 0 ;
16
- width: 100% ;
15
+ top: 0;
16
+ width: 100%;
17
17
  }
18
18
 
19
19
  [dir=ltr] .custmInputWrapper {
20
- left: 0 ;
20
+ left: 0;
21
21
  }
22
22
 
23
23
  [dir=rtl] .custmInputWrapper {
24
- right: 0 ;
24
+ right: 0;
25
25
  }
26
26
 
27
27
  .clearIconContainer {
@@ -1,6 +1,6 @@
1
1
 
2
2
  .wrapper {
3
- max-width: 100%
3
+ max-width: 100%
4
4
  }
5
5
 
6
6
  .disabled {
@@ -11,13 +11,13 @@
11
11
  .downIcon {
12
12
  flex-shrink: 0;
13
13
  opacity: 0.4;
14
- margin-top: var(--zd_size2)
14
+ margin-top: 2px
15
15
  }
16
16
 
17
17
  [dir=ltr] .downIcon {
18
- margin-left: var(--zd_size4)
18
+ margin-left: 4px
19
19
  }
20
20
 
21
21
  [dir=rtl] .downIcon {
22
- margin-right: var(--zd_size4)
22
+ margin-right: 4px
23
23
  }
@@ -1,5 +1,5 @@
1
1
  [dir=ltr] .optionActionsContainer {
2
- margin-left: var(--zd_size4) ;
2
+ margin-left: 4px;
3
3
  }[dir=rtl] .optionActionsContainer {
4
- margin-right: var(--zd_size4) ;
4
+ margin-right: 4px;
5
5
  }
@@ -4,5 +4,5 @@
4
4
  }
5
5
 
6
6
  .textOverflowOptions {
7
- margin-top: var(--zd_size10)
7
+ margin-top: 10px
8
8
  }
@@ -1,3 +1,3 @@
1
1
  .wrapper {
2
- margin-inline-start: calc( var(--zd_size11) * -1 )
2
+ margin-inline-start: -11px
3
3
  }
@@ -4,13 +4,13 @@
4
4
 
5
5
  .rightPlaceholder {
6
6
  position: absolute;
7
- bottom: var(--zd_size4) ;
7
+ bottom: 4px;
8
8
  }
9
9
 
10
10
  [dir=ltr] .rightPlaceholder {
11
- right: var(--zd_size12) ;
11
+ right: 12px;
12
12
  }
13
13
 
14
14
  [dir=rtl] .rightPlaceholder {
15
- left: var(--zd_size12) ;
15
+ left: 12px;
16
16
  }
@@ -1,23 +1,23 @@
1
1
  .wrapper {
2
- max-width: 100%
2
+ max-width: 100%
3
3
  }
4
4
 
5
5
  .gap_small {
6
- gap: var(--zd_size4)
6
+ gap: 4px
7
7
  }
8
8
 
9
9
  .gap_xmedium {
10
- gap: var(--zd_size6)
10
+ gap: 6px
11
11
  }
12
12
 
13
13
  .gap_medium {
14
- gap: var(--zd_size8)
14
+ gap: 8px
15
15
  }
16
16
 
17
17
  .gap_large {
18
- gap: var(--zd_size10)
18
+ gap: 10px
19
19
  }
20
20
 
21
21
  .gap_xlarge {
22
- gap: var(--zd_size12)
22
+ gap: 12px
23
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/library-platform",
3
- "version": "1.2.2-exp.5",
3
+ "version": "1.2.2-exp.6",
4
4
  "description": "",
5
5
  "main": "es/index.js",
6
6
  "files": [
package/es/.DS_Store DELETED
Binary file
Binary file
@@ -1,12 +0,0 @@
1
- import { createCustomComponent } from "../../../../../../../library/custom-component";
2
- import RowActionsRendererProperties from "../../../../../cc/action-event-mediator/Properties";
3
- import { ComponentRegistry } from "../../../../../../../library";
4
- import AdaptiveRowActionsRendererView from "./AdaptiveRowActionsRendererView";
5
- const AdaptiveRowActionsRendererComponent = createCustomComponent({
6
- name: 'AdaptiveRowActionsRenderer',
7
- properties: RowActionsRendererProperties,
8
- eventHandlers: {},
9
- View: AdaptiveRowActionsRendererView
10
- });
11
- ComponentRegistry.register("AdaptiveRowActionsRenderer", AdaptiveRowActionsRendererComponent);
12
- export default AdaptiveRowActionsRendererComponent;
@@ -1,42 +0,0 @@
1
- /* eslint-disable react/prop-types */
2
- import React from 'react';
3
- import Flex from '@zohodesk/layout/es/Flex/Flex';
4
- import { ActionViewGap } from "../../../../interfaces/ActionViewModel";
5
- import ActionEventMediator from "../../../../action-event-mediator/frameworks/ui/ActionEventMediator";
6
- import MoreActionsRenderer from "../MoreActions/MoreActionsRenderer";
7
- import { findMappedClientScripts } from "../../../../../../client-scripts/behaviour/zclient-scripts-execution/frameworks/ClientScriptsUtils"; // @ts-ignore
8
-
9
- import style from "../RowActions/RowActionsRenderer.module.css";
10
- export default function AdaptiveRowActionsRendererView(_ref, ref) {
11
- let {
12
- state,
13
- helpers
14
- } = _ref;
15
- const {
16
- actions,
17
- gap,
18
- testId,
19
- clientScripts
20
- } = state.properties;
21
- const [firstAction, secondAction, ...moreActions] = actions;
22
- const showMore = actions.length > 3;
23
- const actionsList = showMore ? [firstAction, secondAction] : actions;
24
-
25
- const renderAction = action => /*#__PURE__*/React.createElement(ActionEventMediator, {
26
- key: action.id,
27
- action: action,
28
- clientScripts: findMappedClientScripts(action, clientScripts),
29
- instanceName: action.instanceName
30
- });
31
-
32
- return /*#__PURE__*/React.createElement(Flex, {
33
- ref: ref,
34
- testId: testId ? testId : '',
35
- $ui_className: gap !== ActionViewGap.NONE ? style[`gap_${gap}`] : '',
36
- $ui_displayMode: "inline",
37
- $ui_alignItems: "center"
38
- }, showMore ? /*#__PURE__*/React.createElement(React.Fragment, null, actionsList.map(renderAction), /*#__PURE__*/React.createElement(MoreActionsRenderer, {
39
- actions: moreActions,
40
- clientScripts: clientScripts
41
- })) : actionsList.map(renderAction));
42
- }
@@ -1,10 +0,0 @@
1
- import { createCustomComponent } from "../../../../../../../library/custom-component";
2
- import RowActionsRendererProperties from "../../../../../cc/action-event-mediator/Properties";
3
- import MoreActionsRendererView from "./MoreActionsRendererView";
4
- const MoreActionsRenderer = createCustomComponent({
5
- name: "MoreActionsRenderer",
6
- eventHandlers: {},
7
- properties: RowActionsRendererProperties,
8
- View: MoreActionsRendererView
9
- });
10
- export default MoreActionsRenderer;
@@ -1,79 +0,0 @@
1
- import React from 'react';
2
- import ActionEventMediator from "../../../../action-event-mediator/frameworks/ui/ActionEventMediator";
3
- import CustomDropdown from '@zohodesk-private/desk-components/es/CustomDropdown/CustomDropdown';
4
- import ListItemConstants from "../../../../../../../cc/list-item/Constants";
5
- import IconButton from '@zohodesk/dot/es/IconButton/IconButton';
6
- import { findMappedClientScripts } from "../../../../../../client-scripts/behaviour/zclient-scripts-execution/frameworks/ClientScriptsUtils";
7
- export const ListItemConvertor = action => {
8
- const {
9
- id,
10
- properties: {
11
- icon
12
- },
13
- eventMappings,
14
- instanceName
15
- } = action;
16
- const label = action.properties.label ? action.properties.label : action.properties.text;
17
- const updatedEventMappings = eventMappings.map(eventMapping => {
18
- return { ...eventMapping,
19
- sourceEvent: ListItemConstants.LISTITEM_CLICKED
20
- };
21
- });
22
- return {
23
- component: 'ListItem',
24
- properties: {
25
- text: label,
26
- tooltip: label,
27
- icon,
28
- id
29
- },
30
- eventMappings: updatedEventMappings,
31
- id,
32
- instanceName
33
- };
34
- };
35
-
36
- function MoreActionsRendererView(_ref, ref) {
37
- let {
38
- state,
39
- helpers
40
- } = _ref;
41
- const {
42
- actions,
43
- clientScripts
44
- } = state.properties;
45
- const listItemActions = actions.map(action => {
46
- return ListItemConvertor(action);
47
- });
48
-
49
- const renderTargetElement = _ref2 => {
50
- let {
51
- handleTogglePopup,
52
- isPopupOpen
53
- } = _ref2;
54
- return /*#__PURE__*/React.createElement(IconButton, {
55
- iconName: "ZD-GN-more",
56
- iconSize: "16",
57
- isActive: isPopupOpen,
58
- onClick: handleTogglePopup
59
- });
60
- };
61
-
62
- return /*#__PURE__*/React.createElement(CustomDropdown, {
63
- $ui_boxSize: "medium",
64
- $flag_padding: true,
65
- $render_targetElement: renderTargetElement,
66
- $method_getRef: ref,
67
- $customProps_dropbox: {
68
- onClick: undefined
69
- }
70
- }, listItemActions.map(action => /*#__PURE__*/React.createElement(ActionEventMediator, {
71
- key: action.id,
72
- action: action,
73
- clientScripts: findMappedClientScripts(action, clientScripts),
74
- instanceName: action.instanceName // getRef={ref}
75
-
76
- })));
77
- }
78
-
79
- export default MoreActionsRendererView;
@@ -1,12 +0,0 @@
1
- import { createCustomComponent } from "../../../../../../../library/custom-component";
2
- import RowActionsRendererProperties from "../../../../../cc/action-event-mediator/Properties";
3
- import RowActionsRendererView from "./RowActionsRendererView";
4
- import { ComponentRegistry } from "../../../../../../../library";
5
- const RowActionsRendererComponent = createCustomComponent({
6
- name: 'RowActionsRenderer',
7
- properties: RowActionsRendererProperties,
8
- eventHandlers: {},
9
- View: RowActionsRendererView
10
- });
11
- ComponentRegistry.register("RowActionsRenderer", RowActionsRendererComponent);
12
- export default RowActionsRendererComponent;
@@ -1,23 +0,0 @@
1
- .wrapper {
2
- max-width: 100%
3
- }
4
-
5
- .gap_small {
6
- gap: var(--zd_size4)
7
- }
8
-
9
- .gap_xmedium {
10
- gap: var(--zd_size6)
11
- }
12
-
13
- .gap_medium {
14
- gap: var(--zd_size8)
15
- }
16
-
17
- .gap_large {
18
- gap: var(--zd_size10)
19
- }
20
-
21
- .gap_xlarge {
22
- gap: var(--zd_size12)
23
- }
@@ -1,37 +0,0 @@
1
- import React from 'react';
2
- import Flex from '@zohodesk/layout/es/Flex/Flex';
3
- import { ActionViewGap } from "../../../../interfaces/ActionViewModel";
4
- // @ts-ignore
5
- import style from "./RowActionsRenderer.module.css";
6
- import ActionEventMediator from "../../../../action-event-mediator/frameworks/ui/ActionEventMediator";
7
- import { findMappedClientScripts } from "../../../../../../client-scripts/behaviour/zclient-scripts-execution/frameworks/ClientScriptsUtils";
8
-
9
- function RowActionsRendererView(_ref, ref) {
10
- let {
11
- state
12
- } = _ref;
13
- const {
14
- actions,
15
- gap,
16
- clientScripts,
17
- testId
18
- } = state.properties;
19
- return /*#__PURE__*/React.createElement(Flex, {
20
- ref: ref,
21
- testId: testId ? testId : "",
22
- $ui_displayMode: "inline",
23
- $ui_alignItems: "center",
24
- $ui_className: `${gap !== ActionViewGap.NONE ? style[`gap_${gap}`] : ''}`
25
- }, actions.map((action, index) => {
26
- // @ts-ignore
27
- return /*#__PURE__*/React.createElement(ActionEventMediator, {
28
- action: action,
29
- clientScripts: findMappedClientScripts(action, clientScripts),
30
- key: index,
31
- instanceName: action.instanceName
32
- });
33
- }));
34
- }
35
-
36
- ;
37
- export default RowActionsRendererView;