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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/es/cc/date/Properties.js +0 -15
  2. package/es/cc/fields/field/Properties.js +1 -8
  3. package/es/cc/form/Properties.js +0 -8
  4. package/es/cc/label/Properties.js +5 -12
  5. package/es/cc/multi-select/Properties.js +1 -8
  6. package/es/cc/section/Properties.js +1 -8
  7. package/es/cc/select/Properties.js +1 -8
  8. package/es/cc/textarea/Properties.js +0 -15
  9. package/es/cc/textbox/Properties.js +1 -8
  10. package/es/index.js +6 -4
  11. package/es/library/dot/components/form/adapters/presenter/TransformState.js +1 -3
  12. package/es/library/dot/components/form/frameworks/ui/FormView.js +3 -6
  13. package/es/library/dot/components/form/frameworks/ui/sub-components/Footer.js +6 -16
  14. package/es/library/dot/components/form/frameworks/ui/sub-components/Header.js +6 -16
  15. package/es/library/dot/components/form/frameworks/ui/sub-components/Sections.js +2 -4
  16. package/es/library/dot/components/form-fields/checkbox/frameworks/ui/CheckboxView.js +3 -6
  17. package/es/library/dot/components/form-fields/currency/frameworks/ui/CurrencyView.js +3 -6
  18. package/es/library/dot/components/form-fields/date/frameworks/ui/DateView.js +3 -6
  19. package/es/library/dot/components/form-fields/datetime/frameworks/ui/DateTimeView.js +3 -6
  20. package/es/library/dot/components/form-fields/decimal/frameworks/ui/DecimalView.js +3 -6
  21. package/es/library/dot/components/form-fields/email/frameworks/ui/EmailView.js +3 -6
  22. package/es/library/dot/components/form-fields/field/FieldItem.js +2 -4
  23. package/es/library/dot/components/form-fields/lookup/frameworks/ui/LookupView.js +3 -6
  24. package/es/library/dot/components/form-fields/multi-select/frameworks/ui/MultiSelectView.js +4 -7
  25. package/es/library/dot/components/form-fields/number/frameworks/ui/NumberView.js +3 -6
  26. package/es/library/dot/components/form-fields/percentage/frameworks/ui/PercentageView.js +4 -7
  27. package/es/library/dot/components/form-fields/phone/frameworks/ui/PhoneView.js +3 -6
  28. package/es/library/dot/components/form-fields/pick-list/frameworks/ui/PickListView.js +4 -7
  29. package/es/library/dot/components/form-fields/textarea/frameworks/ui/TextAreaView.js +3 -6
  30. package/es/library/dot/components/form-fields/textbox/frameworks/ui/TextBoxView.js +3 -6
  31. package/es/library/dot/components/form-fields/url/frameworks/ui/UrlView.js +3 -6
  32. package/es/library/dot/components/section/frameworks/ui/RenderField.js +1 -3
  33. package/es/library/dot/components/section/frameworks/ui/SectionView.js +8 -14
  34. package/es/library/dot/components/table-list/frameworks/ui/TableListView.js +4 -8
  35. package/es/library/dot/components/table-list/frameworks/ui/sub-components/Header.js +4 -6
  36. package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/HeaderData.js +5 -11
  37. package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/MassAction.js +5 -11
  38. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Row.js +4 -8
  39. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowActions.js +5 -12
  40. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowData.js +4 -12
  41. package/es/library/dot/legacy-to-new-arch/date/frameworks/ui/DateView.js +4 -10
  42. package/es/library/dot/legacy-to-new-arch/label/frameworks/ui/LabelView.js +5 -11
  43. package/es/library/dot/legacy-to-new-arch/multi-select/frameworks/ui/MultiSelectView.js +8 -21
  44. package/es/library/dot/legacy-to-new-arch/select/frameworks/ui/SelectView.js +8 -18
  45. package/es/library/dot/legacy-to-new-arch/text-area/frameworks/ui/TextAreaView.js +4 -10
  46. package/es/library/dot/legacy-to-new-arch/textbox/frameworks/ui/TextBoxView.js +4 -10
  47. package/es/platform/client-actions/cc/action-event-mediator/Properties.js +43 -0
  48. package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/ClientActionsAdapter.js +2 -1
  49. package/es/platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema.js +1 -4
  50. package/es/platform/components/form-connected/frameworks/FormConnectedView.js +0 -2
  51. package/es/platform/components/smart-action-band/adapters/presenters/ActionBandTranslator.js +10 -7
  52. package/es/platform/components/smart-action-band/frameworks/SmartActionBandView.js +5 -18
  53. package/es/platform/zform/adapters/presenter/FormTranslator.js +12 -8
  54. package/es/platform/zform/adapters/presenter/translators/SectionTranslator.js +14 -10
  55. package/es/platform/zform/adapters/presenter/translators/fields/BooleanFieldTranslator.js +2 -4
  56. package/es/platform/zform/adapters/presenter/translators/fields/CurrencyFieldTranslator.js +1 -2
  57. package/es/platform/zform/adapters/presenter/translators/fields/DateFieldTranslator.js +2 -4
  58. package/es/platform/zform/adapters/presenter/translators/fields/DateTimeFieldTranslator.js +2 -4
  59. package/es/platform/zform/adapters/presenter/translators/fields/DecimalFieldTranslator.js +2 -4
  60. package/es/platform/zform/adapters/presenter/translators/fields/EmailFieldTranslator.js +2 -4
  61. package/es/platform/zform/adapters/presenter/translators/fields/LookUpFieldTranslator.js +2 -4
  62. package/es/platform/zform/adapters/presenter/translators/fields/MultiselectFieldTranslator.js +8 -13
  63. package/es/platform/zform/adapters/presenter/translators/fields/NumberFieldTranslator.js +2 -4
  64. package/es/platform/zform/adapters/presenter/translators/fields/PercentageFieldTranslator.js +2 -4
  65. package/es/platform/zform/adapters/presenter/translators/fields/PhoneFieldTranslator.js +2 -4
  66. package/es/platform/zform/adapters/presenter/translators/fields/PicklistFieldTranslator.js +12 -11
  67. package/es/platform/zform/adapters/presenter/translators/fields/TextAreaFieldTranslator.js +2 -4
  68. package/es/platform/zform/adapters/presenter/translators/fields/TextFieldTranslator.js +2 -4
  69. package/es/platform/zform/adapters/presenter/translators/fields/URLFieldTranslator.js +2 -4
  70. package/es/platform/zlist/adapters/presenters/SelectionTranslator.js +4 -2
  71. package/es/platform/zlist/adapters/presenters/TableTranslator.js +1 -6
  72. package/es/platform/zlist/adapters/presenters/translators/ColumnTranslator.js +1 -7
  73. package/es/platform/zlist/adapters/presenters/translators/Header.js +6 -7
  74. package/es/platform/zlist/adapters/presenters/translators/Row.js +5 -6
  75. package/package.json +1 -1
@@ -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 };
@@ -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,38 +3,28 @@ import FormAction, { LeftSide, RightSide } from '@zohodesk/dot/es/FormAction/For
3
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";
7
- import { Layout } from "../../../../../../../platform/client-actions/components/client-actions-renderer/domain/entities/State";
6
+ import { RowActionsRenderer } from "../../../../../../../index";
8
7
  export default function Footer(_ref) {
9
8
  let {
10
9
  hasFooter,
11
10
  footerLeftActions,
12
11
  footerRightActions,
13
- clientScripts,
14
- context
12
+ clientScripts
15
13
  } = _ref;
16
14
  if (!hasFooter) return null;
17
15
  return /*#__PURE__*/React.createElement(FormAction, {
18
16
  size: "small",
19
17
  paddingLeftSize: "xmedium",
20
18
  paddingRightClass: style.footer
21
- }, /*#__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, {
22
20
  testId: "formFooter_leftActions",
23
21
  actions: footerLeftActions,
24
22
  clientScripts: clientScripts,
25
- context: context,
26
- viewMeta: {
27
- layout: Layout.HORIZONTAL,
28
- gap: ActionViewGap.LARGE
29
- }
30
- })), /*#__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, {
31
25
  testId: "formFooter_rightActions",
32
26
  actions: footerRightActions,
33
27
  clientScripts: clientScripts,
34
- context: context,
35
- viewMeta: {
36
- layout: Layout.HORIZONTAL,
37
- gap: ActionViewGap.LARGE
38
- }
28
+ gap: ActionViewGap.LARGE
39
29
  })));
40
30
  }
@@ -1,37 +1,27 @@
1
1
  import React from 'react';
2
2
  import FormHeader from '@zohodesk-private/desk-components/es/setup/SetupHeader/SetupHeader';
3
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";
4
+ import RowActionsRenderer from "../../../../../../../platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActions/RowActionsRenderer";
6
5
  export default function Header(_ref) {
7
6
  let {
8
7
  hasHeader,
9
8
  headerLeftActions,
10
9
  headerRightActions,
11
- clientScripts,
12
- context
10
+ clientScripts
13
11
  } = _ref;
14
12
  if (!hasHeader) return null;
15
13
  return /*#__PURE__*/React.createElement(FormHeader, {
16
14
  customId: "formHeader",
17
15
  testId: "formHeader",
18
- $render_leftElement: headerLeftActions.length > 0 ? /*#__PURE__*/React.createElement(ClientActionsRenderer, {
16
+ $render_leftElement: headerLeftActions.length > 0 ? /*#__PURE__*/React.createElement(RowActionsRenderer, {
19
17
  actions: headerLeftActions,
20
18
  clientScripts: clientScripts,
21
- context: context,
22
- viewMeta: {
23
- layout: Layout.HORIZONTAL,
24
- gap: ActionViewGap.LARGE
25
- }
19
+ gap: ActionViewGap.MEDIUM
26
20
  }) : null,
27
- $render_rightElement: headerRightActions.length > 0 ? /*#__PURE__*/React.createElement(ClientActionsRenderer, {
21
+ $render_rightElement: headerRightActions.length > 0 ? /*#__PURE__*/React.createElement(RowActionsRenderer, {
28
22
  actions: headerRightActions,
29
23
  clientScripts: clientScripts,
30
- context: context,
31
- viewMeta: {
32
- layout: Layout.HORIZONTAL,
33
- gap: ActionViewGap.MEDIUM
34
- }
24
+ gap: ActionViewGap.MEDIUM
35
25
  }) : null
36
26
  });
37
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
 
@@ -21,8 +21,7 @@ function EmailView(_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 EmailView(_ref, ref) {
37
36
  errorMessage: errorMessage,
38
37
  testId: "smart_form_field_email",
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 EmailView(_ref, ref) {
50
48
  readonly: readonly,
51
49
  required: required,
52
50
  actions: actions,
53
- clientScripts: clientScripts,
54
- context: context
51
+ clientScripts: clientScripts
55
52
  })));
56
53
  }
57
54
 
@@ -13,8 +13,7 @@ const FieldItem = /*#__PURE__*/forwardRef((props, ref) => {
13
13
  breakRow,
14
14
  errorMessage,
15
15
  testId,
16
- children,
17
- context
16
+ children
18
17
  } = props;
19
18
  const isLargeSize = size === 'large';
20
19
  return /*#__PURE__*/React.createElement("div", {
@@ -25,8 +24,7 @@ const FieldItem = /*#__PURE__*/forwardRef((props, ref) => {
25
24
  for: id,
26
25
  label: label,
27
26
  actions: labelActions,
28
- isMandatory: required,
29
- context: context
27
+ isMandatory: required
30
28
  }), !isLargeSize && breakRow ? /*#__PURE__*/React.createElement("div", {
31
29
  className: style.breakRow
32
30
  }, children) : children, errorMessage ? /*#__PURE__*/React.createElement(ErrorMessage, {
@@ -20,8 +20,7 @@ function TextBoxView(_ref, ref) {
20
20
  uiConfig,
21
21
  labelActions,
22
22
  actions,
23
- clientScripts,
24
- context
23
+ clientScripts
25
24
  } = state.properties;
26
25
  const {
27
26
  size,
@@ -36,8 +35,7 @@ function TextBoxView(_ref, ref) {
36
35
  errorMessage: errorMessage,
37
36
  testId: 'smart_form_field_lookup',
38
37
  size: size,
39
- breakRow: breakRow,
40
- context: context
38
+ breakRow: breakRow
41
39
  }, /*#__PURE__*/React.createElement("div", {
42
40
  className: style.field
43
41
  }, /*#__PURE__*/React.createElement(TextBox, {
@@ -48,8 +46,7 @@ function TextBoxView(_ref, ref) {
48
46
  disabled: disabled,
49
47
  readonly: readonly,
50
48
  actions: actions,
51
- clientScripts: clientScripts,
52
- context: context
49
+ clientScripts: clientScripts
53
50
  })));
54
51
  }
55
52