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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/es/.DS_Store +0 -0
  2. package/es/cc/date/Properties.js +0 -15
  3. package/es/cc/fields/field/Properties.js +1 -8
  4. package/es/cc/form/Properties.js +0 -8
  5. package/es/cc/label/Properties.js +5 -12
  6. package/es/cc/multi-select/Properties.js +1 -8
  7. package/es/cc/section/Properties.js +1 -8
  8. package/es/cc/select/Properties.js +1 -8
  9. package/es/cc/textarea/Properties.js +0 -15
  10. package/es/cc/textbox/Properties.js +1 -8
  11. package/es/index.js +6 -4
  12. package/es/library/dot/components/action-status/frameworks/ui/css/ActionStatus.module.css +3 -3
  13. package/es/library/dot/components/form/adapters/presenter/TransformState.js +1 -3
  14. package/es/library/dot/components/form/frameworks/ui/FormView.js +3 -6
  15. package/es/library/dot/components/form/frameworks/ui/css/Form.module.css +13 -13
  16. package/es/library/dot/components/form/frameworks/ui/sub-components/Footer.js +7 -16
  17. package/es/library/dot/components/form/frameworks/ui/sub-components/Header.js +7 -16
  18. package/es/library/dot/components/form/frameworks/ui/sub-components/Sections.js +2 -4
  19. package/es/library/dot/components/form-fields/checkbox/frameworks/ui/CheckboxView.js +3 -6
  20. package/es/library/dot/components/form-fields/currency/frameworks/ui/CurrencyView.js +3 -6
  21. package/es/library/dot/components/form-fields/date/frameworks/ui/DateView.js +3 -6
  22. package/es/library/dot/components/form-fields/datetime/frameworks/ui/DateTimeView.js +3 -6
  23. package/es/library/dot/components/form-fields/decimal/frameworks/ui/DecimalView.js +3 -6
  24. package/es/library/dot/components/form-fields/email/frameworks/ui/EmailView.js +3 -6
  25. package/es/library/dot/components/form-fields/field/FieldItem.js +2 -4
  26. package/es/library/dot/components/form-fields/field/css/FieldItem.module.css +2 -2
  27. package/es/library/dot/components/form-fields/lookup/frameworks/ui/LookupView.js +3 -6
  28. package/es/library/dot/components/form-fields/multi-select/frameworks/ui/MultiSelectView.js +4 -7
  29. package/es/library/dot/components/form-fields/number/frameworks/ui/NumberView.js +3 -6
  30. package/es/library/dot/components/form-fields/percentage/frameworks/ui/PercentageView.js +4 -7
  31. package/es/library/dot/components/form-fields/phone/frameworks/ui/PhoneView.js +3 -6
  32. package/es/library/dot/components/form-fields/pick-list/frameworks/ui/PickListView.js +4 -7
  33. package/es/library/dot/components/form-fields/textarea/frameworks/ui/TextAreaView.js +3 -6
  34. package/es/library/dot/components/form-fields/textbox/frameworks/ui/TextBoxView.js +3 -6
  35. package/es/library/dot/components/form-fields/url/frameworks/ui/UrlView.js +3 -6
  36. package/es/library/dot/components/section/frameworks/ui/RenderField.js +1 -3
  37. package/es/library/dot/components/section/frameworks/ui/SectionView.js +6 -11
  38. package/es/library/dot/components/section/frameworks/ui/css/Section.module.css +3 -3
  39. package/es/library/dot/components/table-list/frameworks/ui/TableListView.js +4 -8
  40. package/es/library/dot/components/table-list/frameworks/ui/css/TableList.module.css +25 -25
  41. package/es/library/dot/components/table-list/frameworks/ui/sub-components/Header.js +4 -6
  42. package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/HeaderData.js +6 -11
  43. package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/MassAction.js +5 -11
  44. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Row.js +4 -8
  45. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowActions.js +5 -12
  46. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowData.js +4 -12
  47. package/es/library/dot/legacy-to-new-arch/breadcrumb/frameworks/ui/css/Breadcrumb.module.css +4 -4
  48. package/es/library/dot/legacy-to-new-arch/date/frameworks/ui/DateView.js +4 -10
  49. package/es/library/dot/legacy-to-new-arch/date/frameworks/ui/css/DateView.module.css +1 -1
  50. package/es/library/dot/legacy-to-new-arch/highlighted-value/frameworks/ui/css/HighlightedValue.module.css +1 -1
  51. package/es/library/dot/legacy-to-new-arch/label/frameworks/ui/LabelView.js +5 -11
  52. package/es/library/dot/legacy-to-new-arch/label/frameworks/ui/css/Label.module.css +4 -4
  53. package/es/library/dot/legacy-to-new-arch/multi-select/frameworks/ui/MultiSelectView.js +8 -21
  54. package/es/library/dot/legacy-to-new-arch/multi-select/frameworks/ui/css/MultiSelectView.module.css +7 -7
  55. package/es/library/dot/legacy-to-new-arch/radio-dropdown/frameworks/ui/css/RadioDropdown.module.css +4 -4
  56. package/es/library/dot/legacy-to-new-arch/select/frameworks/ui/SelectView.js +8 -18
  57. package/es/library/dot/legacy-to-new-arch/select/frameworks/ui/css/Select.module.css +2 -2
  58. package/es/library/dot/legacy-to-new-arch/table-column-chooser/frameworks/ui/css/TableColumnChooserView.module.css +1 -1
  59. package/es/library/dot/legacy-to-new-arch/table-field-components/radio-dropdown-field/frameworks/ui/css/RadioDropdownField.module.css +1 -1
  60. package/es/library/dot/legacy-to-new-arch/text-area/frameworks/ui/TextAreaView.js +4 -10
  61. package/es/library/dot/legacy-to-new-arch/text-area/frameworks/ui/css/TextAreaView.module.css +3 -3
  62. package/es/library/dot/legacy-to-new-arch/textbox/frameworks/ui/TextBoxView.js +5 -11
  63. package/es/platform/.DS_Store +0 -0
  64. package/es/platform/client-actions/cc/action-event-mediator/Properties.js +43 -0
  65. package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/ClientActionsAdapter.js +2 -1
  66. package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer.module.css +6 -6
  67. package/es/platform/client-actions/components/interfaces/ActionViewModel.js +0 -7
  68. package/es/platform/client-actions/components/row-actions-renderer/domain/entities/interfaces/IState.js +1 -0
  69. package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/AdaptiveRowActions/AdaptiveRowActionsRenderer.js +12 -0
  70. package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/AdaptiveRowActions/AdaptiveRowActionsRendererView.js +42 -0
  71. package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/MoreActions/MoreActionsRenderer.js +10 -0
  72. package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/MoreActions/MoreActionsRendererView.js +79 -0
  73. package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer.js +12 -0
  74. package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer.module.css +23 -0
  75. package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRendererView.js +37 -0
  76. package/es/platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema.js +1 -4
  77. package/es/platform/components/form-connected/frameworks/FormConnectedView.js +0 -2
  78. package/es/platform/components/smart-action-band/adapters/presenters/ActionBandTranslator.js +10 -7
  79. package/es/platform/components/smart-action-band/frameworks/SmartActionBandView.js +5 -17
  80. package/es/platform/zform/adapters/presenter/FormTranslator.js +12 -8
  81. package/es/platform/zform/adapters/presenter/translators/SectionTranslator.js +14 -10
  82. package/es/platform/zform/adapters/presenter/translators/fields/BooleanFieldTranslator.js +2 -4
  83. package/es/platform/zform/adapters/presenter/translators/fields/CurrencyFieldTranslator.js +1 -2
  84. package/es/platform/zform/adapters/presenter/translators/fields/DateFieldTranslator.js +2 -4
  85. package/es/platform/zform/adapters/presenter/translators/fields/DateTimeFieldTranslator.js +2 -4
  86. package/es/platform/zform/adapters/presenter/translators/fields/DecimalFieldTranslator.js +2 -4
  87. package/es/platform/zform/adapters/presenter/translators/fields/EmailFieldTranslator.js +2 -4
  88. package/es/platform/zform/adapters/presenter/translators/fields/LookUpFieldTranslator.js +2 -4
  89. package/es/platform/zform/adapters/presenter/translators/fields/MultiselectFieldTranslator.js +8 -13
  90. package/es/platform/zform/adapters/presenter/translators/fields/NumberFieldTranslator.js +2 -4
  91. package/es/platform/zform/adapters/presenter/translators/fields/PercentageFieldTranslator.js +2 -4
  92. package/es/platform/zform/adapters/presenter/translators/fields/PhoneFieldTranslator.js +2 -4
  93. package/es/platform/zform/adapters/presenter/translators/fields/PicklistFieldTranslator.js +12 -15
  94. package/es/platform/zform/adapters/presenter/translators/fields/TextAreaFieldTranslator.js +2 -4
  95. package/es/platform/zform/adapters/presenter/translators/fields/TextFieldTranslator.js +2 -4
  96. package/es/platform/zform/adapters/presenter/translators/fields/URLFieldTranslator.js +2 -4
  97. package/es/platform/zlist/adapters/presenters/SelectionTranslator.js +4 -2
  98. package/es/platform/zlist/adapters/presenters/TableTranslator.js +1 -6
  99. package/es/platform/zlist/adapters/presenters/translators/ColumnTranslator.js +1 -7
  100. package/es/platform/zlist/adapters/presenters/translators/Header.js +6 -7
  101. package/es/platform/zlist/adapters/presenters/translators/Row.js +5 -6
  102. package/package.json +1 -1
package/es/.DS_Store ADDED
Binary file
@@ -1,4 +1,3 @@
1
- import { clientScriptsSchema } from "../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
2
1
  export default {
3
2
  id: {
4
3
  defaultValue: '',
@@ -80,19 +79,5 @@ export default {
80
79
  type: 'array'
81
80
  }
82
81
  }
83
- },
84
- clientScripts: {
85
- required: false,
86
- typeMetadata: {
87
- schema: clientScriptsSchema
88
- }
89
- },
90
- context: {
91
- required: false,
92
- typeMetadata: {
93
- schema: {
94
- type: 'object'
95
- }
96
- }
97
82
  }
98
83
  };
@@ -1,4 +1,3 @@
1
- import { clientScriptsSchema } from "../../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
2
1
  export default {
3
2
  type: {
4
3
  required: false,
@@ -194,16 +193,10 @@ export default {
194
193
  }
195
194
  },
196
195
  clientScripts: {
197
- required: false,
198
- typeMetadata: {
199
- schema: clientScriptsSchema
200
- }
201
- },
202
- context: {
203
196
  required: false,
204
197
  typeMetadata: {
205
198
  schema: {
206
- type: 'object'
199
+ type: 'array'
207
200
  }
208
201
  }
209
202
  }
@@ -97,13 +97,5 @@ export default {
97
97
  typeMetadata: {
98
98
  schema: clientScriptsSchema
99
99
  }
100
- },
101
- context: {
102
- required: false,
103
- typeMetadata: {
104
- schema: {
105
- type: 'object'
106
- }
107
- }
108
100
  }
109
101
  };
@@ -1,10 +1,9 @@
1
- import { clientScriptsSchema } from "../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
2
1
  export default {
3
2
  label: {
4
3
  required: false,
5
4
  typeMetadata: {
6
5
  schema: {
7
- type: 'string'
6
+ type: "string"
8
7
  }
9
8
  }
10
9
  },
@@ -12,7 +11,7 @@ export default {
12
11
  required: false,
13
12
  typeMetadata: {
14
13
  schema: {
15
- type: 'string'
14
+ type: "string"
16
15
  }
17
16
  }
18
17
  },
@@ -21,7 +20,7 @@ export default {
21
20
  defaultValue: [],
22
21
  typeMetadata: {
23
22
  schema: {
24
- type: 'array'
23
+ type: "array"
25
24
  }
26
25
  }
27
26
  },
@@ -30,21 +29,15 @@ export default {
30
29
  defaultValue: false,
31
30
  typeMetadata: {
32
31
  schema: {
33
- type: 'boolean'
32
+ type: "boolean"
34
33
  }
35
34
  }
36
35
  },
37
36
  clientScripts: {
38
- required: false,
39
- typeMetadata: {
40
- schema: clientScriptsSchema
41
- }
42
- },
43
- context: {
44
37
  required: false,
45
38
  typeMetadata: {
46
39
  schema: {
47
- type: 'object'
40
+ type: 'array'
48
41
  }
49
42
  }
50
43
  }
@@ -1,4 +1,3 @@
1
- import { clientScriptsSchema } from "../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
2
1
  export default {
3
2
  id: {
4
3
  defaultValue: '',
@@ -93,16 +92,10 @@ export default {
93
92
  }
94
93
  },
95
94
  clientScripts: {
96
- required: false,
97
- typeMetadata: {
98
- schema: clientScriptsSchema
99
- }
100
- },
101
- context: {
102
95
  required: false,
103
96
  typeMetadata: {
104
97
  schema: {
105
- type: 'object'
98
+ type: 'array'
106
99
  }
107
100
  }
108
101
  }
@@ -14,7 +14,6 @@ import PercentProperties from "../fields/percent/Properties";
14
14
  import PhoneProperties from "../fields/phone/Properties";
15
15
  import PickListProperties from "../fields/pick-list/Properties";
16
16
  import UrlProperties from "../fields/url/Properties";
17
- import { clientScriptsSchema } from "../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
18
17
  export default {
19
18
  id: {
20
19
  required: false,
@@ -109,16 +108,10 @@ export default {
109
108
  }
110
109
  },
111
110
  clientScripts: {
112
- required: false,
113
- typeMetadata: {
114
- schema: clientScriptsSchema
115
- }
116
- },
117
- context: {
118
111
  required: false,
119
112
  typeMetadata: {
120
113
  schema: {
121
- type: 'object'
114
+ type: 'array'
122
115
  }
123
116
  }
124
117
  },
@@ -1,4 +1,3 @@
1
- import { clientScriptsSchema } from "../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
2
1
  export default {
3
2
  id: {
4
3
  defaultValue: '',
@@ -85,16 +84,10 @@ export default {
85
84
  }
86
85
  },
87
86
  clientScripts: {
88
- required: false,
89
- typeMetadata: {
90
- schema: clientScriptsSchema
91
- }
92
- },
93
- context: {
94
87
  required: false,
95
88
  typeMetadata: {
96
89
  schema: {
97
- type: 'object'
90
+ type: 'array'
98
91
  }
99
92
  }
100
93
  }
@@ -1,4 +1,3 @@
1
- import { clientScriptsSchema } from "../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
2
1
  export default {
3
2
  id: {
4
3
  required: false,
@@ -76,19 +75,5 @@ export default {
76
75
  }
77
76
  }
78
77
  }
79
- },
80
- clientScripts: {
81
- required: false,
82
- typeMetadata: {
83
- schema: clientScriptsSchema
84
- }
85
- },
86
- context: {
87
- required: false,
88
- typeMetadata: {
89
- schema: {
90
- type: 'object'
91
- }
92
- }
93
78
  }
94
79
  };
@@ -1,4 +1,3 @@
1
- import { clientScriptsSchema } from "../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
2
1
  export default {
3
2
  id: {
4
3
  defaultValue: '',
@@ -93,16 +92,10 @@ export default {
93
92
  }
94
93
  },
95
94
  clientScripts: {
96
- required: false,
97
- typeMetadata: {
98
- schema: clientScriptsSchema
99
- }
100
- },
101
- context: {
102
95
  required: false,
103
96
  typeMetadata: {
104
97
  schema: {
105
- type: 'object'
98
+ type: 'array'
106
99
  }
107
100
  }
108
101
  }
package/es/index.js CHANGED
@@ -3,10 +3,11 @@ import * as CCNamespace from "./cc"; // Import only the ExternalConstants
3
3
 
4
4
  import ExternalConstants from "./cc/table-connected/constants/ExternalConstants";
5
5
  import ActionEventMediator from "./platform/client-actions/components/action-event-mediator/frameworks/ui/ActionEventMediator";
6
+ import RowActionsRenderer from "./platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer";
7
+ import AdaptiveRowActionsRenderer from "./platform/client-actions/components/row-actions-renderer/frameworks/ui/AdaptiveRowActions/AdaptiveRowActionsRenderer";
6
8
  import ClientActionReordererRegistry from "./platform/client-actions/components/action-event-mediator/frameworks/ui/ClientActionReordererRegistry";
7
9
  import ClientActionsFetchSDK from "./platform/client-actions/behaviour/zclient-actions/adapters/resources/ClientActionsFetchSDK";
8
- import ClientScriptsFetchSDK from "./platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/resources/ClientScriptsFetchSDK";
9
- import ClientActionsRenderer from "./platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer"; // Rebuild SmartTableConstants without Events
10
+ import ClientScriptsFetchSDK from "./platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/resources/ClientScriptsFetchSDK"; // Rebuild SmartTableConstants without Events
10
11
 
11
12
  const SmartTableConstants = {
12
13
  ExternalConstants
@@ -30,7 +31,9 @@ export { fetchClientActions } from "./platform/client-actions/components/action-
30
31
  export { ZFormApiActionName } from "./bc/zform/Constants";
31
32
  export { RecordApiActionName } from "./bc/zrecord/Constants";
32
33
  export { transFormValidationRules } from "./platform/data-source/utils/validation-rules/TransFormValidationRules";
34
+ export { AdaptiveRowActionsRenderer };
33
35
  export { ActionEventMediator };
36
+ export { RowActionsRenderer };
34
37
  export { renderField } from "./library/dot/components/section/frameworks/ui/RenderField";
35
38
  export { default as ResourceNamesEnum } from "./bc/sdk/ResourceNamesEnum";
36
39
  import { FieldSectionEventMappingBehaviourFactory } from "./library/dot/components/section/frameworks/ui/Section";
@@ -41,5 +44,4 @@ export const Behaviours = {
41
44
  export * from "./library/analytics";
42
45
  export { ClientActionReordererRegistry };
43
46
  export { ClientActionsFetchSDK };
44
- export { ClientScriptsFetchSDK };
45
- export { ClientActionsRenderer };
47
+ export { ClientScriptsFetchSDK };
@@ -5,13 +5,13 @@
5
5
  }
6
6
 
7
7
  .container {
8
- gap: 8px;
8
+ gap: var(--zd_size8) ;
9
9
  }
10
10
 
11
11
  .spinner {
12
12
  display: inline-block;
13
- width: 16px;
14
- height: 16px;
13
+ width: var(--zd_size16) ;
14
+ height: var(--zd_size16) ;
15
15
  /* COLOR VARIABLES TO BE UPDATED PROPERLY USING COMMON COLORS */
16
16
  flex-shrink: 0;
17
17
  box-sizing: border-box;
@@ -47,8 +47,7 @@ export function TransformState(state) {
47
47
  footerLeftActions,
48
48
  footerRightActions,
49
49
  rightPanel,
50
- clientScripts,
51
- context
50
+ clientScripts
52
51
  } = state.properties; // const { values, errorMessages } = state.behaviours.form;
53
52
 
54
53
  const updatedSections = updateFieldValues({
@@ -68,7 +67,6 @@ export function TransformState(state) {
68
67
  footerLeftActions,
69
68
  footerRightActions,
70
69
  clientScripts,
71
- context,
72
70
  rightPanel
73
71
  }
74
72
  };
@@ -18,8 +18,7 @@ function FormView(_ref, ref) {
18
18
  footerRightActions,
19
19
  isHeaderEnabled,
20
20
  isFooterEnabled,
21
- clientScripts,
22
- context
21
+ clientScripts
23
22
  } = state.viewModel;
24
23
  return /*#__PURE__*/React.createElement(Flex, {
25
24
  $ui_displayMode: "flex",
@@ -33,8 +32,7 @@ function FormView(_ref, ref) {
33
32
  hasHeader: isHeaderEnabled,
34
33
  headerLeftActions: headerLeftActions,
35
34
  headerRightActions: headerRightActions,
36
- clientScripts: clientScripts,
37
- context: context
35
+ clientScripts: clientScripts
38
36
  }), /*#__PURE__*/React.createElement(MiddleSection, {
39
37
  sections: sections,
40
38
  isLoading: isLoading,
@@ -44,8 +42,7 @@ function FormView(_ref, ref) {
44
42
  hasFooter: isFooterEnabled,
45
43
  footerLeftActions: footerLeftActions,
46
44
  footerRightActions: footerRightActions,
47
- clientScripts: clientScripts,
48
- context: context
45
+ clientScripts: clientScripts
49
46
  }));
50
47
  }
51
48
 
@@ -3,17 +3,17 @@
3
3
  }
4
4
 
5
5
  .field {
6
- margin-top: 5px;
6
+ margin-top: var(--zd_size5) ;
7
7
  }
8
8
 
9
9
  .multiSelectField {
10
- margin-top: 2px
10
+ margin-top: var(--zd_size2)
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: 8px
15
+ max-width: 100% ;
16
+ gap: var(--zd_size8)
17
17
  }
18
18
 
19
19
  .cursor_pointer {
@@ -27,36 +27,36 @@
27
27
  }
28
28
 
29
29
  [dir=ltr] .footer {
30
- padding-right: 32px
30
+ padding-right: var(--zd_size32)
31
31
  }
32
32
 
33
33
  [dir=rtl] .footer {
34
- padding-left: 32px
34
+ padding-left: var(--zd_size32)
35
35
  }
36
36
 
37
37
  /* Sections layout */
38
38
 
39
39
  .sectionsWrapper {
40
- padding-bottom: 8px
40
+ padding-bottom: var(--zd_size8)
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, 1080px)
48
+ max-width: var(--local-form-layout-max-width, var(--zd_size1080))
49
49
  }
50
50
 
51
51
  .sectionsTwoLayout {
52
- column-gap: 8px;
53
- max-width: var(--local-form-layout-max-width, 1210px)
52
+ column-gap: var(--zd_size8) ;
53
+ max-width: var(--local-form-layout-max-width, var(--zd_size1210))
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: 8px 0
60
+ top: 0 ;
61
+ padding: var(--zd_size8) 0
62
62
  }
@@ -1,39 +1,30 @@
1
1
  import React from 'react';
2
2
  import FormAction, { LeftSide, RightSide } from '@zohodesk/dot/es/FormAction/FormAction';
3
- import { ActionViewGap, Layout } from "../../../../../../../platform/client-actions/components/interfaces/ActionViewModel"; // @ts-ignore
3
+ import { ActionViewGap } from "../../../../../../../platform/client-actions/components/interfaces/ActionViewModel"; // @ts-ignore
4
4
 
5
5
  import style from "../css/Form.module.css";
6
- import ClientActionsRenderer from "../../../../../../../platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer";
6
+ import RowActionsRenderer from "../../../../../../../platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer";
7
7
  export default function Footer(_ref) {
8
8
  let {
9
9
  hasFooter,
10
10
  footerLeftActions,
11
11
  footerRightActions,
12
- clientScripts,
13
- context
12
+ clientScripts
14
13
  } = _ref;
15
14
  if (!hasFooter) return null;
16
15
  return /*#__PURE__*/React.createElement(FormAction, {
17
16
  size: "small",
18
17
  paddingLeftSize: "xmedium",
19
18
  paddingRightClass: style.footer
20
- }, /*#__PURE__*/React.createElement(LeftSide, null, footerLeftActions.length > 0 && /*#__PURE__*/React.createElement(ClientActionsRenderer, {
19
+ }, /*#__PURE__*/React.createElement(LeftSide, null, footerLeftActions.length > 0 && /*#__PURE__*/React.createElement(RowActionsRenderer, {
21
20
  testId: "formFooter_leftActions",
22
21
  actions: footerLeftActions,
23
22
  clientScripts: clientScripts,
24
- context: context,
25
- viewMeta: {
26
- layout: Layout.HORIZONTAL,
27
- gap: ActionViewGap.LARGE
28
- }
29
- })), /*#__PURE__*/React.createElement(RightSide, null, footerRightActions.length > 0 && /*#__PURE__*/React.createElement(ClientActionsRenderer, {
23
+ gap: ActionViewGap.LARGE
24
+ })), /*#__PURE__*/React.createElement(RightSide, null, footerRightActions.length > 0 && /*#__PURE__*/React.createElement(RowActionsRenderer, {
30
25
  testId: "formFooter_rightActions",
31
26
  actions: footerRightActions,
32
27
  clientScripts: clientScripts,
33
- context: context,
34
- viewMeta: {
35
- layout: Layout.HORIZONTAL,
36
- gap: ActionViewGap.LARGE
37
- }
28
+ gap: ActionViewGap.LARGE
38
29
  })));
39
30
  }
@@ -1,36 +1,27 @@
1
1
  import React from 'react';
2
2
  import FormHeader from '@zohodesk-private/desk-components/es/setup/SetupHeader/SetupHeader';
3
- import { ActionViewGap, Layout } from "../../../../../../../platform/client-actions/components/interfaces/ActionViewModel";
4
- import ClientActionsRenderer from "../../../../../../../platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer";
3
+ import { ActionViewGap } from "../../../../../../../platform/client-actions/components/interfaces/ActionViewModel";
4
+ import RowActionsRenderer from "../../../../../../../platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer";
5
5
  export default function Header(_ref) {
6
6
  let {
7
7
  hasHeader,
8
8
  headerLeftActions,
9
9
  headerRightActions,
10
- clientScripts,
11
- context
10
+ clientScripts
12
11
  } = _ref;
13
12
  if (!hasHeader) return null;
14
13
  return /*#__PURE__*/React.createElement(FormHeader, {
15
14
  customId: "formHeader",
16
15
  testId: "formHeader",
17
- $render_leftElement: headerLeftActions.length > 0 ? /*#__PURE__*/React.createElement(ClientActionsRenderer, {
16
+ $render_leftElement: headerLeftActions.length > 0 ? /*#__PURE__*/React.createElement(RowActionsRenderer, {
18
17
  actions: headerLeftActions,
19
18
  clientScripts: clientScripts,
20
- context: context,
21
- viewMeta: {
22
- layout: Layout.HORIZONTAL,
23
- gap: ActionViewGap.MEDIUM
24
- }
19
+ gap: ActionViewGap.MEDIUM
25
20
  }) : null,
26
- $render_rightElement: headerRightActions.length > 0 ? /*#__PURE__*/React.createElement(ClientActionsRenderer, {
21
+ $render_rightElement: headerRightActions.length > 0 ? /*#__PURE__*/React.createElement(RowActionsRenderer, {
27
22
  actions: headerRightActions,
28
23
  clientScripts: clientScripts,
29
- context: context,
30
- viewMeta: {
31
- layout: Layout.HORIZONTAL,
32
- gap: ActionViewGap.MEDIUM
33
- }
24
+ gap: ActionViewGap.MEDIUM
34
25
  }) : null
35
26
  });
36
27
  }
@@ -22,8 +22,7 @@ export default function Sections(_ref) {
22
22
  type,
23
23
  titleActions,
24
24
  headerActions,
25
- additionalDetails,
26
- context
25
+ additionalDetails
27
26
  } = section;
28
27
  const Section = ComponentRegistry.get(type);
29
28
  if (isVisible === false) return null;
@@ -38,8 +37,7 @@ export default function Sections(_ref) {
38
37
  titleActions: titleActions,
39
38
  headerActions: headerActions,
40
39
  additionalDetails: additionalDetails,
41
- clientScripts: clientScripts,
42
- context: context
40
+ clientScripts: clientScripts
43
41
  });
44
42
  }));
45
43
  }
@@ -35,8 +35,7 @@ function CheckboxView(_ref2, ref) {
35
35
  readonly,
36
36
  required,
37
37
  labelActions,
38
- clientScripts,
39
- context
38
+ clientScripts
40
39
  } = state.properties;
41
40
  const {
42
41
  size,
@@ -49,8 +48,7 @@ function CheckboxView(_ref2, ref) {
49
48
  errorMessage: errorMessage,
50
49
  testId: "smart_form_field_checkbox",
51
50
  size: size,
52
- breakRow: breakRow,
53
- context: context
51
+ breakRow: breakRow
54
52
  }, /*#__PURE__*/React.createElement(FieldController, {
55
53
  $ui_className: `${style.checkboxField} ${cursorStyle({
56
54
  disabled,
@@ -78,8 +76,7 @@ function CheckboxView(_ref2, ref) {
78
76
  label: label,
79
77
  actions: labelActions,
80
78
  isMandatory: required,
81
- clientScripts: clientScripts,
82
- context: context
79
+ clientScripts: clientScripts
83
80
  })));
84
81
  }
85
82
 
@@ -28,8 +28,7 @@ function CurrencyView(_ref, ref) {
28
28
  labelActions,
29
29
  actions,
30
30
  uiConfig,
31
- clientScripts,
32
- context
31
+ clientScripts
33
32
  } = properties;
34
33
  const {
35
34
  size,
@@ -49,8 +48,7 @@ function CurrencyView(_ref, ref) {
49
48
  errorMessage: errorMessage,
50
49
  testId: "smart_form_field_currency",
51
50
  size: size,
52
- breakRow: breakRow,
53
- context: context
51
+ breakRow: breakRow
54
52
  }, /*#__PURE__*/React.createElement("div", {
55
53
  className: style.field
56
54
  }, /*#__PURE__*/React.createElement(TextBox, {
@@ -62,8 +60,7 @@ function CurrencyView(_ref, ref) {
62
60
  readonly: readonly,
63
61
  required: required,
64
62
  actions: actions,
65
- clientScripts: clientScripts,
66
- context: context
63
+ clientScripts: clientScripts
67
64
  })));
68
65
  }
69
66
 
@@ -19,8 +19,7 @@ function DateView(_ref, ref) {
19
19
  uiConfig,
20
20
  labelActions,
21
21
  actions,
22
- clientScripts,
23
- context
22
+ clientScripts
24
23
  } = state.properties;
25
24
  const {
26
25
  size,
@@ -35,8 +34,7 @@ function DateView(_ref, ref) {
35
34
  size: size,
36
35
  breakRow: breakRow,
37
36
  errorMessage: errorMessage,
38
- testId: 'smart_form_field_date',
39
- context: context
37
+ testId: "smart_form_field_date"
40
38
  }, /*#__PURE__*/React.createElement("div", {
41
39
  className: style.field
42
40
  }, /*#__PURE__*/React.createElement(Date, {
@@ -46,8 +44,7 @@ function DateView(_ref, ref) {
46
44
  readonly: readonly,
47
45
  required: required,
48
46
  actions: actions,
49
- clientScripts: clientScripts,
50
- context: context
47
+ clientScripts: clientScripts
51
48
  })));
52
49
  }
53
50
 
@@ -19,8 +19,7 @@ function DateView(_ref, ref) {
19
19
  uiConfig,
20
20
  labelActions,
21
21
  actions,
22
- clientScripts,
23
- context
22
+ clientScripts
24
23
  } = state.properties;
25
24
  const {
26
25
  size,
@@ -35,8 +34,7 @@ function DateView(_ref, ref) {
35
34
  size: size,
36
35
  breakRow: breakRow,
37
36
  errorMessage: errorMessage,
38
- testId: 'smart_form_field_datetime',
39
- context: context
37
+ testId: "smart_form_field_datetime"
40
38
  }, /*#__PURE__*/React.createElement("div", {
41
39
  className: style.field
42
40
  }, /*#__PURE__*/React.createElement(Date, {
@@ -47,8 +45,7 @@ function DateView(_ref, ref) {
47
45
  readonly: readonly,
48
46
  actions: actions,
49
47
  isTimeIncluded: true,
50
- clientScripts: clientScripts,
51
- context: context
48
+ clientScripts: clientScripts
52
49
  })));
53
50
  }
54
51
 
@@ -21,8 +21,7 @@ function DecimalView(_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 DecimalView(_ref, ref) {
37
36
  errorMessage: errorMessage,
38
37
  testId: "smart_form_field_decimal",
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 DecimalView(_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