@zohodesk/library-platform 1.1.8-exp.1 → 1.1.8-exp.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 (51) hide show
  1. package/es/bc/zform/Symbol.js +1 -0
  2. package/es/cc/fields/field/FormDefaultUIType.js +1 -1
  3. package/es/cc/fields/text/Properties.js +9 -0
  4. package/es/cc/textarea/Properties.js +11 -0
  5. package/es/index.js +2 -1
  6. package/es/library/dot/components/form/frameworks/ui/DefaultComponentRegister.js +2 -1
  7. package/es/library/dot/components/form/frameworks/ui/css/Form.module.css +0 -3
  8. package/es/library/dot/components/form-fields/checkbox/frameworks/ui/CheckboxView.js +1 -3
  9. package/es/library/dot/components/form-fields/index.js +2 -1
  10. package/es/library/dot/components/form-fields/lookup/frameworks/ui/EventHandlerFactory.js +70 -0
  11. package/es/library/dot/components/form-fields/lookup/frameworks/ui/Lookup.js +13 -0
  12. package/es/library/dot/components/form-fields/lookup/frameworks/ui/LookupView.js +51 -0
  13. package/es/library/dot/components/form-fields/textarea/frameworks/ui/TextAreaView.js +4 -2
  14. package/es/library/dot/legacy-to-new-arch/date/frameworks/ui/DateView.js +8 -3
  15. package/es/library/dot/legacy-to-new-arch/date/frameworks/ui/css/DateView.module.css +3 -0
  16. package/es/library/dot/legacy-to-new-arch/label/frameworks/ui/LabelView.js +5 -7
  17. package/es/library/dot/legacy-to-new-arch/label/frameworks/ui/css/Label.module.css +3 -5
  18. package/es/library/dot/legacy-to-new-arch/multi-select/frameworks/ui/MultiSelectView.js +13 -3
  19. package/es/library/dot/legacy-to-new-arch/multi-select/frameworks/ui/css/MultiSelectView.module.css +37 -0
  20. package/es/library/dot/legacy-to-new-arch/text-area/frameworks/ui/TextAreaView.js +22 -4
  21. package/es/library/dot/legacy-to-new-arch/text-area/frameworks/ui/css/TextAreaView.module.css +40 -0
  22. package/es/platform/client-actions/behaviour/zclient-actions/frameworks/sdk/ClientActionsSDKFactory.js +2 -2
  23. package/es/platform/client-actions/components/interfaces/ActionViewModel.js +1 -0
  24. package/es/platform/client-actions/components/row-actions-renderer/frameworks/ui/RowActionsRenderer.module.css +5 -1
  25. package/es/platform/components/app/adapters/resources/AppResource.js +13 -0
  26. package/es/platform/components/form-connected/frameworks/EventHandlersFactory.js +2 -2
  27. package/es/platform/components/form-connected/frameworks/FormSdkFactory.js +2 -2
  28. package/es/platform/components/table-connected/frameworks/EventHandlersFactory.js +2 -2
  29. package/es/platform/components/table-connected/frameworks/ListSdkFactory.js +2 -2
  30. package/es/platform/data-source/http-template/fetchLookupFields.js +24 -0
  31. package/es/platform/data-source/index.js +3 -1
  32. package/es/platform/data-source/utils/validation-rules/TransFormValidationRules.js +6 -1
  33. package/es/platform/sdk/adapters/gateways/Service.js +4 -0
  34. package/es/platform/sdk/application/usecases/GetResourcesUseCase.js +12 -0
  35. package/es/platform/sdk/domain/entities/ResourceManager.js +21 -11
  36. package/es/platform/sdk/frameworks/Sdk.js +13 -2
  37. package/es/platform/sdk/frameworks/SdkRegistry.js +9 -0
  38. package/es/platform/zform/adapters/controllers/LookupFieldController.js +23 -0
  39. package/es/platform/zform/adapters/gateway/Service.js +4 -0
  40. package/es/platform/zform/adapters/presenter/translators/SectionTranslator.js +1 -1
  41. package/es/platform/zform/adapters/presenter/translators/fields/LookUpFieldTranslator.js +2 -1
  42. package/es/platform/zform/adapters/presenter/utils/DefaultClientActions.js +66 -65
  43. package/es/platform/zform/applications/interfaces/input/LookUpFieldSuccessUseCaseInputModel.js +1 -0
  44. package/es/platform/zform/applications/usecases/LookupFieldSuccessUseCase.js +40 -0
  45. package/es/platform/zform/applications/usecases/MyFormSuccessUseCase.js +35 -1
  46. package/es/platform/zform/domain/ZField.js +14 -8
  47. package/es/platform/zform/frameworks/ui/EventHandlerFactory.js +6 -3
  48. package/package.json +1 -2
  49. package/es/library/dot/legacy-to-new-arch/label/frameworks/ui/sub-components/ui/LabelAction.js +0 -9
  50. package/es/library/dot/legacy-to-new-arch/label/frameworks/ui/sub-components/ui/LabelActionView.js +0 -38
  51. package/es/library/dot/legacy-to-new-arch/label/frameworks/ui/sub-components/ui/css/LabelAction.module.css +0 -4
@@ -17,6 +17,7 @@ export const ZFORM_FIELD_VALUE_CHANGE_REQUEST = 'ZFORM#FIELD_VALUE_CHANGE_REQUES
17
17
  export const ZFORM_FIELD_VALUE_CHANGED = 'ZFORM#FIELD_VALUE_CHANGED';
18
18
  export const ZFORM_FIELD_BLURRED = 'ZFORM#FIELD_BLURRED';
19
19
  export const ZFORM_SET_FIELD_ERROR_MESSAGE = 'ZFORM#SET_FIELD_ERROR_MESSAGE';
20
+ export const ZFORM_LOOKUP_FIELD_SUCCESS = 'ZFORM#LOOKUP_FIELD_SUCCESS';
20
21
  export const ZFORM_VALIDATE_FIELDS = 'ZFORM#VALIDATE_FIELDS';
21
22
  export const ZFORM_VALIDATE_FIELD_REQUEST = 'ZFORM#VALIDATE_FIELD_REQUEST';
22
23
  export const ZFORM_SUBMIT = 'ZFORM#SUBMIT_REQUEST';
@@ -15,7 +15,7 @@ export const fieldTypeToUIType = {
15
15
  Date: 'Date',
16
16
  DateTime: 'DateTime',
17
17
  Multiselect: 'MultiSelect',
18
- LookUp: 'TextBox'
18
+ LookUp: 'LookUp'
19
19
  };
20
20
  export const ePHIFields = {
21
21
  Text: true,
@@ -27,6 +27,15 @@ export default { ...FieldProperties,
27
27
  }
28
28
  }
29
29
  },
30
+ lookup: {
31
+ required: false,
32
+ defaultValue: '',
33
+ typeMetadata: {
34
+ schema: {
35
+ type: 'object'
36
+ }
37
+ }
38
+ },
30
39
  ePHI: {
31
40
  required: false,
32
41
  defaultValue: false,
@@ -64,5 +64,16 @@ export default {
64
64
  type: 'boolean'
65
65
  }
66
66
  }
67
+ },
68
+ actions: {
69
+ required: false,
70
+ typeMetadata: {
71
+ schema: {
72
+ type: 'array',
73
+ items: {
74
+ type: 'object'
75
+ }
76
+ }
77
+ }
67
78
  }
68
79
  };
package/es/index.js CHANGED
@@ -7,8 +7,9 @@ export { ComponentRegistry, createCustomComponent } from "./library";
7
7
  export { default as TableFieldComponents } from "./library/dot/legacy-to-new-arch/table-field-components";
8
8
  import * as _Components from "./library/dot/legacy-to-new-arch";
9
9
  export { _Components as Components };
10
- export { platformSDK } from "./platform/sdk/frameworks/Sdk";
10
+ export { platformSDK_old, platformSDK } from "./platform/sdk/frameworks/Sdk";
11
11
  export { sdkRegistry } from "./platform/sdk/frameworks/SdkRegistry";
12
+ export { AppResource } from "./platform/components/app/adapters/resources/AppResource";
12
13
  export { getClientActionsAdapter, fetchClientActions } from "./platform/client-actions/components/action-event-mediator/frameworks/ui/ClientActionsAdapter";
13
14
  export { transFormValidationRules } from "./platform/data-source/utils/validation-rules/TransFormValidationRules";
14
15
  export { renderField } from "./library/dot/components/section/frameworks/ui/RenderField";
@@ -1,6 +1,6 @@
1
1
  import { DefaultFormSectionUIType } from "../../../../../../cc/fields/field/FormDefaultUIType";
2
2
  import ComponentRegistry from "../../../../../custom-component/frameworks/ui/ComponentRegistry";
3
- import { TextArea, TextBox, Email, PickList, Currency, MultiSelect, Url, Percentage, Phone, Number, Decimal, Date, DateTime, Checkbox } from "../../../form-fields";
3
+ import { TextArea, TextBox, Email, PickList, Currency, MultiSelect, Url, Percentage, Phone, Number, Decimal, Date, DateTime, Checkbox, LookUp } from "../../../form-fields";
4
4
  import Section from "../../../section/frameworks/ui/Section";
5
5
  export function registerDefaultComponents() {
6
6
  // Registering components in the ComponentRegistry
@@ -20,5 +20,6 @@ export function registerDefaultComponents() {
20
20
  ComponentRegistry.register('Date', Date);
21
21
  ComponentRegistry.register('DateTime', DateTime);
22
22
  ComponentRegistry.register('Checkbox', Checkbox);
23
+ ComponentRegistry.register('LookUp', LookUp);
23
24
  ComponentRegistry.register(DefaultFormSectionUIType, Section);
24
25
  }
@@ -15,9 +15,6 @@
15
15
  max-width: 100% ;
16
16
  gap: var(--zd_size8)
17
17
  }
18
- .checkboxWrapper {
19
- margin-top: var(--zd_size3)
20
- }
21
18
 
22
19
  .cursor_pointer {
23
20
  cursor: pointer
@@ -64,15 +64,13 @@ function CheckboxView(_ref2, ref) {
64
64
  type: CheckboxConstants.CHECKBOX_TOGGLED
65
65
  })
66
66
  } : undefined
67
- }, /*#__PURE__*/React.createElement("div", {
68
- className: style.checkboxWrapper
69
67
  }, /*#__PURE__*/React.createElement(Checkbox, {
70
68
  id: id,
71
69
  checked: value,
72
70
  required: required,
73
71
  disabled: disabled,
74
72
  readonly: readonly
75
- })), /*#__PURE__*/React.createElement(Label, {
73
+ }), /*#__PURE__*/React.createElement(Label, {
76
74
  for: id,
77
75
  label: label,
78
76
  actions: labelActions,
@@ -12,4 +12,5 @@ export { default as Number } from "./number/frameworks/ui/Number";
12
12
  export { default as Decimal } from "./decimal/frameworks/ui/Decimal";
13
13
  export { default as Date } from "./date/frameworks/ui/Date";
14
14
  export { default as DateTime } from "./datetime/frameworks/ui/DateTime";
15
- export { default as Checkbox } from "./checkbox/frameworks/ui/Checkbox";
15
+ export { default as Checkbox } from "./checkbox/frameworks/ui/Checkbox";
16
+ export { default as LookUp } from "./lookup/frameworks/ui/Lookup";
@@ -0,0 +1,70 @@
1
+ import { TextBoxConstants } from "../../../../../../../cc/textbox";
2
+ import FieldConstants from "../../../../../../../cc/fields/field/Constants";
3
+
4
+ class EventHandlersFactory {
5
+ static create() {
6
+ return {
7
+ [TextBoxConstants.TEXTBOX_FOCUSED]: this.handleTextBoxFocused,
8
+ [TextBoxConstants.TEXTBOX_BLURED]: this.handleTextBoxBlurred,
9
+ [TextBoxConstants.TEXTBOX_CHANGED]: this.handleTextBoxChanged
10
+ };
11
+ }
12
+
13
+ static handleTextBoxFocused(_ref) {
14
+ let {
15
+ state,
16
+ dispatch
17
+ } = _ref;
18
+ const {
19
+ name
20
+ } = state.properties;
21
+ dispatch({
22
+ type: FieldConstants.FIELD_FOCUSED,
23
+ payload: {
24
+ fieldName: name
25
+ },
26
+ metaData: {}
27
+ });
28
+ }
29
+
30
+ static handleTextBoxBlurred(_ref2) {
31
+ let {
32
+ state,
33
+ dispatch
34
+ } = _ref2;
35
+ const {
36
+ name
37
+ } = state.properties;
38
+ dispatch({
39
+ type: FieldConstants.FIELD_BLURRED,
40
+ payload: {
41
+ fieldName: name
42
+ }
43
+ });
44
+ }
45
+
46
+ static handleTextBoxChanged(_ref3) {
47
+ let {
48
+ state,
49
+ dispatch,
50
+ action
51
+ } = _ref3;
52
+ const {
53
+ value
54
+ } = action.payload;
55
+ const {
56
+ name
57
+ } = state.properties;
58
+ dispatch({
59
+ type: FieldConstants.FIELD_CHANGED,
60
+ payload: {
61
+ fieldName: name,
62
+ value
63
+ },
64
+ metaData: {}
65
+ });
66
+ }
67
+
68
+ }
69
+
70
+ export default EventHandlersFactory;
@@ -0,0 +1,13 @@
1
+ import { createCustomComponent } from "../../../../../../custom-component";
2
+ import LookupFieldProperties from "../../../../../../../cc/fields/text/Properties";
3
+ import FocusFieldBehaviourFactory from "../../../../../../behaviours/field-focus/frameworks/ui/FocusFieldBehaviourFactory";
4
+ import LookupView from "./LookupView";
5
+ import EventHandlersFactory from "./EventHandlerFactory";
6
+ let Lookup = createCustomComponent({
7
+ name: 'FormLookUpField',
8
+ View: LookupView,
9
+ properties: LookupFieldProperties,
10
+ eventHandlers: EventHandlersFactory.create(),
11
+ behaviours: [FocusFieldBehaviourFactory.create()]
12
+ });
13
+ export default Lookup;
@@ -0,0 +1,51 @@
1
+ import React from 'react';
2
+ import TextBox from "../../../../../legacy-to-new-arch/textbox/frameworks/ui/TextBox";
3
+ import FieldItem from "../../../field/FieldItem"; // @ts-ignore
4
+
5
+ import style from "../../../../form/frameworks/ui/css/Form.module.css";
6
+
7
+ function TextBoxView(_ref, ref) {
8
+ let {
9
+ state
10
+ } = _ref;
11
+ const {
12
+ id,
13
+ label,
14
+ value,
15
+ placeholder,
16
+ errorMessage,
17
+ disabled,
18
+ readonly,
19
+ required,
20
+ uiConfig,
21
+ labelActions,
22
+ actions
23
+ } = state.properties;
24
+ const {
25
+ size,
26
+ breakRow
27
+ } = uiConfig;
28
+ return /*#__PURE__*/React.createElement(FieldItem, {
29
+ ref: ref,
30
+ id: id,
31
+ label: label,
32
+ labelActions: labelActions,
33
+ required: required,
34
+ errorMessage: errorMessage,
35
+ testId: 'smart_form_field_lookup',
36
+ size: size,
37
+ breakRow: breakRow
38
+ }, /*#__PURE__*/React.createElement("div", {
39
+ className: style.field
40
+ }, /*#__PURE__*/React.createElement(TextBox, {
41
+ id: id,
42
+ placeholder: placeholder,
43
+ value: value,
44
+ required: required,
45
+ disabled: disabled,
46
+ readonly: readonly,
47
+ actions: actions
48
+ })));
49
+ }
50
+
51
+ export default TextBoxView;
@@ -18,7 +18,8 @@ function TextAreaView(_ref, ref) {
18
18
  readonly,
19
19
  required,
20
20
  uiConfig,
21
- labelActions
21
+ labelActions,
22
+ actions
22
23
  } = state.properties;
23
24
  const {
24
25
  size,
@@ -42,7 +43,8 @@ function TextAreaView(_ref, ref) {
42
43
  value: value,
43
44
  required: required,
44
45
  disabled: disabled,
45
- readonly: readonly
46
+ readonly: readonly,
47
+ actions: actions
46
48
  })));
47
49
  }
48
50
 
@@ -1,7 +1,9 @@
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 ActionEventMediator from "../../../../../../platform/client-actions/components/action-event-mediator/frameworks/ui/ActionEventMediator";
4
+ import ActionEventMediator from "../../../../../../platform/client-actions/components/action-event-mediator/frameworks/ui/ActionEventMediator"; // @ts-ignore
5
+
6
+ import style from "./css/DateView.module.css";
5
7
 
6
8
  function DateView(_ref, ref) {
7
9
  let {
@@ -24,9 +26,12 @@ function DateView(_ref, ref) {
24
26
  } = state.properties;
25
27
 
26
28
  const renderRightFieldActions = () => {
27
- return actions !== null && actions !== void 0 && actions.length ? /*#__PURE__*/React.createElement(ActionEventMediator, {
29
+ if (!(actions !== null && actions !== void 0 && actions.length)) return null;
30
+ return /*#__PURE__*/React.createElement("div", {
31
+ className: style.actionContainer
32
+ }, /*#__PURE__*/React.createElement(ActionEventMediator, {
28
33
  actions: actions
29
- }) : null;
34
+ }));
30
35
  };
31
36
 
32
37
  return /*#__PURE__*/React.createElement(DateWidget, {
@@ -0,0 +1,3 @@
1
+ .actionContainer {
2
+ margin-top: var(--zd_size2) ;
3
+ }
@@ -1,13 +1,10 @@
1
1
  import React from 'react';
2
2
  import Label from '@zohodesk/components/es/Label/Label';
3
3
  import Flex from '@zohodesk/layout/es/Flex/Flex';
4
- import ActionEventMediator from "../../../../../../platform/client-actions/components/action-event-mediator/frameworks/ui/ActionEventMediator"; // import ActionLocation from '@library/dot/components/action-location/frameworks/ui/ActionLocation';
5
-
6
- import ComponentRegistry from "../../../../../custom-component/frameworks/ui/ComponentRegistry";
7
- import LabelAction from "./sub-components/ui/LabelAction"; // @ts-ignore
8
-
4
+ import ActionEventMediator from "../../../../../../platform/client-actions/components/action-event-mediator/frameworks/ui/ActionEventMediator";
5
+ import { ActionViewGap } from "../../../../../../platform/client-actions/components/interfaces/ActionViewModel";
6
+ // @ts-ignore
9
7
  import style from "./css/Label.module.css";
10
- ComponentRegistry.register(`LabelAction`, LabelAction);
11
8
 
12
9
  function LabelView(_ref, ref) {
13
10
  let {
@@ -30,7 +27,8 @@ function LabelView(_ref, ref) {
30
27
  palette: isMandatory ? 'mandatory' : 'default',
31
28
  customClass: `${style.label} ${isMandatory ? style.mandatory : ''}`
32
29
  }), actions.length ? /*#__PURE__*/React.createElement(ActionEventMediator, {
33
- actions: actions
30
+ actions: actions,
31
+ gap: ActionViewGap.XMEDIUM
34
32
  }) : null);
35
33
  }
36
34
 
@@ -1,11 +1,9 @@
1
1
  .label {
2
- --label_cursor: inherit;
3
- display: inline;
4
- vertical-align: middle
2
+ --label_cursor: inherit
5
3
  }[dir=ltr] .label {
6
- padding-right: var(--zd_size4)
4
+ padding-right: var(--zd_size6)
7
5
  }[dir=rtl] .label {
8
- padding-left: var(--zd_size4)
6
+ padding-left: var(--zd_size6)
9
7
  }
10
8
 
11
9
  .mandatory::after {
@@ -1,7 +1,9 @@
1
1
  import React from "react";
2
2
  import ActionEventMediator from "../../../../../../platform/client-actions/components/action-event-mediator/frameworks/ui/ActionEventMediator";
3
3
  import MultiSelect from "@zohodesk/components/es/MultiSelect/MultiSelect";
4
- import { MultiSelectConstants } from "../../../../../../cc/multi-select";
4
+ import { MultiSelectConstants } from "../../../../../../cc/multi-select"; // @ts-ignore
5
+
6
+ import style from "./css/MultiSelectView.module.css";
5
7
 
6
8
  function MultiSelectView(_ref, ref) {
7
9
  let {
@@ -24,9 +26,12 @@ function MultiSelectView(_ref, ref) {
24
26
  } = state.properties;
25
27
 
26
28
  const renderRightFieldActions = () => {
27
- return actions !== null && actions !== void 0 && actions.length ? /*#__PURE__*/React.createElement(ActionEventMediator, {
29
+ if (!(actions !== null && actions !== void 0 && actions.length)) return null;
30
+ return /*#__PURE__*/React.createElement("div", {
31
+ className: style.actionContainer
32
+ }, /*#__PURE__*/React.createElement(ActionEventMediator, {
28
33
  actions: actions
29
- }) : null;
34
+ }));
30
35
  };
31
36
 
32
37
  return /*#__PURE__*/React.createElement(MultiSelect, {
@@ -44,6 +49,10 @@ function MultiSelectView(_ref, ref) {
44
49
  textBoxSize: "xmedium",
45
50
  customProps: {
46
51
  TextBoxIconProps: {
52
+ customClass: {
53
+ customTBoxWrap: style.custmInputWrapper,
54
+ customTBoxIcon: style.clearIconContainer
55
+ },
47
56
  'aria-required': required,
48
57
  renderRightPlaceholderNode: renderRightFieldActions()
49
58
  }
@@ -51,6 +60,7 @@ function MultiSelectView(_ref, ref) {
51
60
  selectAllText: "Select All",
52
61
  emptyMessage: "No options to select",
53
62
  searchEmptyMessage: "No Results Found",
63
+ customChildrenClass: `${(actions === null || actions === void 0 ? void 0 : actions.length) >= 2 ? style[`paddingRight${actions.length === 2 ? 64 : 96}`] : ''}`,
54
64
  onChange: selectedValues => {
55
65
  dispatch({
56
66
  type: MultiSelectConstants.MULTISELECT_CHANGED,
@@ -0,0 +1,37 @@
1
+ .actionContainer {
2
+ margin-top: var(--zd_size4) ;
3
+ }
4
+
5
+ .custmInputWrapper {
6
+ position: absolute;
7
+ top: 0 ;
8
+ width: 100% ;
9
+ }
10
+
11
+ [dir=ltr] .custmInputWrapper {
12
+ left: 0 ;
13
+ }
14
+
15
+ [dir=rtl] .custmInputWrapper {
16
+ right: 0 ;
17
+ }
18
+
19
+ .clearIconContainer {
20
+ --textboxicon_icon_margin: 0;
21
+ }
22
+
23
+ [dir=ltr] .paddingRight64 {
24
+ padding-right: var(--zd_size64) ;
25
+ }
26
+
27
+ [dir=rtl] .paddingRight64 {
28
+ padding-left: var(--zd_size64) ;
29
+ }
30
+
31
+ [dir=ltr] .paddingRight96 {
32
+ padding-right: var(--zd_size96) ;
33
+ }
34
+
35
+ [dir=rtl] .paddingRight96 {
36
+ padding-left: var(--zd_size96) ;
37
+ }
@@ -1,6 +1,9 @@
1
1
  import React from "react";
2
+ import ActionEventMediator from "../../../../../../platform/client-actions/components/action-event-mediator/frameworks/ui/ActionEventMediator";
2
3
  import Textarea from '@zohodesk/components/es/Textarea/Textarea';
3
- import TextAreaConstants from "../../../../../../cc/textarea/Constants";
4
+ import TextAreaConstants from "../../../../../../cc/textarea/Constants"; // @ts-ignore
5
+
6
+ import style from "./css/TextAreaView.module.css";
4
7
 
5
8
  function TextAreaView(_ref, ref) {
6
9
  let {
@@ -17,9 +20,10 @@ function TextAreaView(_ref, ref) {
17
20
  value,
18
21
  required,
19
22
  disabled,
20
- readonly
23
+ readonly,
24
+ actions
21
25
  } = state.properties;
22
- return /*#__PURE__*/React.createElement(Textarea, {
26
+ const textAreaRenderer = /*#__PURE__*/React.createElement(Textarea, {
23
27
  getRef: ref,
24
28
  htmlId: id,
25
29
  maxLength: maxLength,
@@ -29,6 +33,7 @@ function TextAreaView(_ref, ref) {
29
33
  isDisabled: disabled,
30
34
  animated: !readonly && !disabled,
31
35
  size: "xsmall",
36
+ resize: "vertical",
32
37
  customAttributes: {
33
38
  'aria-required': required
34
39
  },
@@ -45,8 +50,21 @@ function TextAreaView(_ref, ref) {
45
50
  value
46
51
  }
47
52
  });
48
- }
53
+ },
54
+ customClass: `${actions !== null && actions !== void 0 && actions.length ? style[`paddingRight${actions.length === 1 ? 32 : actions.length === 2 ? 64 : 96}`] : ''}`
49
55
  });
56
+
57
+ if (!(actions !== null && actions !== void 0 && actions.length)) {
58
+ return textAreaRenderer;
59
+ }
60
+
61
+ return /*#__PURE__*/React.createElement("div", {
62
+ className: style.hasChildren
63
+ }, textAreaRenderer, /*#__PURE__*/React.createElement("div", {
64
+ className: style.rightPlaceholder
65
+ }, /*#__PURE__*/React.createElement(ActionEventMediator, {
66
+ actions: actions
67
+ })));
50
68
  }
51
69
 
52
70
  export default TextAreaView;
@@ -0,0 +1,40 @@
1
+ .hasChildren {
2
+ position: relative;
3
+ }
4
+
5
+ .rightPlaceholder {
6
+ position: absolute;
7
+ bottom: var(--zd_size4) ;
8
+ }
9
+
10
+ [dir=ltr] .rightPlaceholder {
11
+ right: var(--zd_size12) ;
12
+ }
13
+
14
+ [dir=rtl] .rightPlaceholder {
15
+ left: var(--zd_size12) ;
16
+ }
17
+
18
+ [dir=ltr] .paddingRight32 {
19
+ padding-right: var(--zd_size32) ;
20
+ }
21
+
22
+ [dir=rtl] .paddingRight32 {
23
+ padding-left: var(--zd_size32) ;
24
+ }
25
+
26
+ [dir=ltr] .paddingRight64 {
27
+ padding-right: var(--zd_size64) ;
28
+ }
29
+
30
+ [dir=rtl] .paddingRight64 {
31
+ padding-left: var(--zd_size64) ;
32
+ }
33
+
34
+ [dir=ltr] .paddingRight96 {
35
+ padding-right: var(--zd_size96) ;
36
+ }
37
+
38
+ [dir=rtl] .paddingRight96 {
39
+ padding-left: var(--zd_size96) ;
40
+ }
@@ -1,5 +1,5 @@
1
1
  import ResourceNamesEnum from "../../../../../../bc/sdk/ResourceNamesEnum";
2
- import { platformSDK } from "../../../../../sdk/frameworks/Sdk";
2
+ import { platformSDK_old } from "../../../../../sdk/frameworks/Sdk";
3
3
  export default class ClientActionsSDKFactory {
4
4
  static getClientActionSDK(clientActionResource) {
5
5
  return {
@@ -14,7 +14,7 @@ export default class ClientActionsSDKFactory {
14
14
  let {
15
15
  instanceName
16
16
  } = _ref;
17
- const clientActionResource = platformSDK[ResourceNamesEnum.CLIENT_ACTION](instanceName);
17
+ const clientActionResource = platformSDK_old[ResourceNamesEnum.CLIENT_ACTION](instanceName);
18
18
  const clientActionSDK = ClientActionsSDKFactory.getClientActionSDK(clientActionResource);
19
19
  return {
20
20
  clientAction: {
@@ -1,6 +1,7 @@
1
1
  export let ActionViewGap = /*#__PURE__*/function (ActionViewGap) {
2
2
  ActionViewGap["NONE"] = "none";
3
3
  ActionViewGap["SMALL"] = "small";
4
+ ActionViewGap["XMEDIUM"] = "xmedium";
4
5
  ActionViewGap["MEDIUM"] = "medium";
5
6
  ActionViewGap["LARGE"] = "large";
6
7
  return ActionViewGap;
@@ -6,10 +6,14 @@
6
6
  gap: var(--zd_size4)
7
7
  }
8
8
 
9
+ .gap_xmedium {
10
+ gap: var(--zd_size6)
11
+ }
12
+
9
13
  .gap_medium {
10
14
  gap: var(--zd_size8)
11
15
  }
12
16
 
13
17
  .gap_large {
14
- gap: var(--zd_size12)
18
+ gap: var(--zd_size10)
15
19
  }
@@ -0,0 +1,13 @@
1
+ import { AbstractResource } from "../../../../sdk/application/interfaces/gateways/AbstractResource";
2
+ export class AppResource extends AbstractResource {
3
+ initialize() {}
4
+
5
+ destroy() {}
6
+
7
+ getContext() {
8
+ return {
9
+ context: ['organization', 'department', 'user']
10
+ };
11
+ }
12
+
13
+ }
@@ -2,7 +2,7 @@ import SmartFormConstants from "../../../../cc/form-connected/Constants";
2
2
  import FormSdkFactory from "./FormSdkFactory";
3
3
  import FormConstants from "../../../../cc/form/Constants";
4
4
  import { ZFORM_FIELD_BLURRED, ZFORM_FIELD_VALUE_CHANGED, ZFORM_SUBMIT_SUCCESS, ZFORM_SUBMIT_VALIDATION_FAILURE } from "../../../../bc/zform/Symbol";
5
- import { platformSDK } from "../../../sdk/frameworks/Sdk";
5
+ import { platformSDK_old } from "../../../sdk/frameworks/Sdk";
6
6
  const {
7
7
  SMART_FORM_FIELD_FOCUSED,
8
8
  SMART_FORM_FIELD_BLURRED,
@@ -23,7 +23,7 @@ function createHandlerWithSdk(handler) {
23
23
  } = input;
24
24
  const instanceName = state.properties.instanceName;
25
25
  handler({ ...input,
26
- platformSDK
26
+ platformSDK: platformSDK_old
27
27
  }, FormSdkFactory.create({
28
28
  instanceName
29
29
  }));
@@ -1,5 +1,5 @@
1
1
  // /* eslint-disable max-lines-per-function */
2
- import { platformSDK } from "../../../sdk/frameworks/Sdk";
2
+ import { platformSDK_old } from "../../../sdk/frameworks/Sdk";
3
3
  import ResourceNamesEnum from "../../../../bc/sdk/ResourceNamesEnum";
4
4
  export default class FormSdkFactory {
5
5
  static getFormSdks(smartForm) {
@@ -22,7 +22,7 @@ export default class FormSdkFactory {
22
22
  let {
23
23
  instanceName
24
24
  } = _ref;
25
- const smartForm = platformSDK[ResourceNamesEnum.SMART_FORM](instanceName);
25
+ const smartForm = platformSDK_old[ResourceNamesEnum.SMART_FORM](instanceName);
26
26
  const formSdks = FormSdkFactory.getFormSdks(smartForm);
27
27
  return {
28
28
  zform: {
@@ -14,7 +14,7 @@ import { ReOrderFinishController } from "../adapters/controllers/ReOrderFinishCo
14
14
  import ScrollController from "../adapters/controllers/ScrollController";
15
15
  import ColumnChooserUpdateController from "../adapters/controllers/ColumnChooserUpdateController";
16
16
  import ColumnChooserOpenedController from "../adapters/controllers/ColumnChooserOpenedController";
17
- import { platformSDK } from "../../../sdk/frameworks/Sdk";
17
+ import { platformSDK_old } from "../../../sdk/frameworks/Sdk";
18
18
  import { SET_RECORDS_SUCCESS } from "../../../../bc/zrecord/Constants";
19
19
  import ErrorEventHandlersFactory from "./ErrorEventHandlersFactory";
20
20
  const {
@@ -32,7 +32,7 @@ function createHandlerWithSdk(handler) {
32
32
  } = input;
33
33
  const instanceName = state.properties.instanceName;
34
34
  handler({ ...input,
35
- platformSDK
35
+ platformSDK: platformSDK_old
36
36
  }, ListSdkFactory.create({
37
37
  instanceName
38
38
  }));
@@ -1,5 +1,5 @@
1
1
  import ResourceNamesEnum from "../../../../bc/sdk/ResourceNamesEnum";
2
- import { platformSDK } from "../../../sdk/frameworks/Sdk";
2
+ import { platformSDK_old } from "../../../sdk/frameworks/Sdk";
3
3
  export default class ListSdkFactory {
4
4
  static getRecordSdks(smartTable) {
5
5
  return {
@@ -33,7 +33,7 @@ export default class ListSdkFactory {
33
33
  let {
34
34
  instanceName
35
35
  } = _ref;
36
- const smartTable = platformSDK[ResourceNamesEnum.SMART_TABLE](instanceName);
36
+ const smartTable = platformSDK_old[ResourceNamesEnum.SMART_TABLE](instanceName);
37
37
  const recordSdks = ListSdkFactory.getRecordSdks(smartTable);
38
38
  const selectionSdks = ListSdkFactory.getSelectionSdks(smartTable);
39
39
  return {