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

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 (124) hide show
  1. package/es/cc/action-status/Constants.js +5 -0
  2. package/es/cc/action-status/Events.js +6 -0
  3. package/es/cc/action-status/Properties.js +29 -0
  4. package/es/cc/action-status/index.js +3 -0
  5. package/es/cc/button/Properties.js +28 -0
  6. package/es/cc/date/Properties.js +15 -0
  7. package/es/cc/fields/field/Events.js +8 -0
  8. package/es/cc/fields/field/Properties.js +8 -1
  9. package/es/cc/form/Properties.js +8 -0
  10. package/es/cc/highlighted-value/Properties.js +28 -0
  11. package/es/cc/index.js +1 -0
  12. package/es/cc/label/Properties.js +12 -5
  13. package/es/cc/multi-select/Properties.js +8 -1
  14. package/es/cc/radio-dropdown/Events.js +16 -0
  15. package/es/cc/section/Properties.js +8 -1
  16. package/es/cc/select/Properties.js +8 -1
  17. package/es/cc/table-column-filter/Properties.js +9 -0
  18. package/es/cc/table-list/Events.js +8 -0
  19. package/es/cc/textarea/Properties.js +15 -0
  20. package/es/cc/textbox/Properties.js +8 -1
  21. package/es/index.js +4 -6
  22. package/es/library/dot/components/action-location/frameworks/ui/ActionComponentMapping.js +3 -1
  23. package/es/library/dot/components/action-status/frameworks/ui/ActionStatus.js +12 -0
  24. package/es/library/dot/components/action-status/frameworks/ui/ActionStatusView.js +57 -0
  25. package/es/library/dot/components/action-status/frameworks/ui/css/ActionStatus.module.css +61 -0
  26. package/es/library/dot/components/form/adapters/presenter/TransformState.js +3 -1
  27. package/es/library/dot/components/form/frameworks/ui/FormView.js +6 -3
  28. package/es/library/dot/components/form/frameworks/ui/sub-components/Footer.js +16 -7
  29. package/es/library/dot/components/form/frameworks/ui/sub-components/Header.js +16 -7
  30. package/es/library/dot/components/form/frameworks/ui/sub-components/Sections.js +4 -2
  31. package/es/library/dot/components/form-fields/checkbox/frameworks/ui/CheckboxView.js +6 -3
  32. package/es/library/dot/components/form-fields/currency/frameworks/ui/CurrencyView.js +6 -3
  33. package/es/library/dot/components/form-fields/date/frameworks/ui/DateView.js +6 -3
  34. package/es/library/dot/components/form-fields/datetime/frameworks/ui/DateTimeView.js +6 -3
  35. package/es/library/dot/components/form-fields/decimal/frameworks/ui/DecimalView.js +6 -3
  36. package/es/library/dot/components/form-fields/email/frameworks/ui/EmailView.js +6 -3
  37. package/es/library/dot/components/form-fields/field/FieldItem.js +4 -2
  38. package/es/library/dot/components/form-fields/lookup/frameworks/ui/LookupView.js +6 -3
  39. package/es/library/dot/components/form-fields/multi-select/frameworks/ui/MultiSelectView.js +7 -4
  40. package/es/library/dot/components/form-fields/number/frameworks/ui/NumberView.js +6 -3
  41. package/es/library/dot/components/form-fields/percentage/frameworks/ui/PercentageView.js +7 -4
  42. package/es/library/dot/components/form-fields/phone/frameworks/ui/PhoneView.js +6 -3
  43. package/es/library/dot/components/form-fields/pick-list/frameworks/ui/PickListView.js +7 -4
  44. package/es/library/dot/components/form-fields/textarea/frameworks/ui/TextAreaView.js +6 -3
  45. package/es/library/dot/components/form-fields/textbox/frameworks/ui/TextBoxView.js +6 -3
  46. package/es/library/dot/components/form-fields/url/frameworks/ui/UrlView.js +6 -3
  47. package/es/library/dot/components/section/frameworks/ui/RenderField.js +3 -1
  48. package/es/library/dot/components/section/frameworks/ui/SectionView.js +11 -6
  49. package/es/library/dot/components/table-list/adapters/controllers/FieldChangeController.js +4 -2
  50. package/es/library/dot/components/table-list/frameworks/ui/TableListView.js +8 -4
  51. package/es/library/dot/components/table-list/frameworks/ui/sub-components/Header.js +6 -4
  52. package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/HeaderData.js +11 -6
  53. package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/MassAction.js +11 -5
  54. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Row.js +8 -4
  55. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowActions.js +12 -5
  56. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowData.js +12 -4
  57. package/es/library/dot/legacy-to-new-arch/button/frameworks/ui/ButtonView.js +17 -2
  58. package/es/library/dot/legacy-to-new-arch/date/frameworks/ui/DateView.js +10 -4
  59. package/es/library/dot/legacy-to-new-arch/highlighted-value/frameworks/ui/HighlightedValueView.js +13 -2
  60. package/es/library/dot/legacy-to-new-arch/highlighted-value/frameworks/ui/css/HighlightedValue.module.css +4 -0
  61. package/es/library/dot/legacy-to-new-arch/label/frameworks/ui/LabelView.js +11 -5
  62. package/es/library/dot/legacy-to-new-arch/multi-select/frameworks/ui/MultiSelectView.js +21 -8
  63. package/es/library/dot/legacy-to-new-arch/radio-dropdown/frameworks/ui/RadioDropdownView.js +3 -1
  64. package/es/library/dot/legacy-to-new-arch/select/frameworks/ui/SelectView.js +18 -8
  65. package/es/library/dot/legacy-to-new-arch/table-column-filter/frameworks/ui/EventHandlersFactory.js +26 -0
  66. package/es/library/dot/legacy-to-new-arch/table-column-filter/frameworks/ui/TableColumnFilter.js +19 -1
  67. package/es/library/dot/legacy-to-new-arch/table-column-filter/frameworks/ui/TableColumnFilterView.js +3 -1
  68. package/es/library/dot/legacy-to-new-arch/table-field-components/checkbox-field/frameworks/ui/EventHandlersFactory.js +2 -1
  69. package/es/library/dot/legacy-to-new-arch/table-field-components/highlighted-value-field/frameworks/ui/HighlightedValueFieldView.js +8 -2
  70. package/es/library/dot/legacy-to-new-arch/table-field-components/radio-dropdown-field/frameworks/ui/EventHandlersFactory.js +4 -2
  71. package/es/library/dot/legacy-to-new-arch/table-field-components/switch-field/frameworks/ui/EventHandlersFactory.js +2 -1
  72. package/es/library/dot/legacy-to-new-arch/text-area/frameworks/ui/TextAreaView.js +10 -4
  73. package/es/library/dot/legacy-to-new-arch/textbox/frameworks/ui/TextBoxView.js +11 -5
  74. package/es/platform/client-actions/behaviour/zclient-actions/adapters/resources/__test__/ClientActionsFetchSDK.test.js +183 -0
  75. package/es/platform/client-actions/cc/action-event-mediator/Properties.js +0 -43
  76. package/es/platform/client-actions/cc/client-actions-renderer/Properties.js +58 -0
  77. package/es/platform/client-actions/cc/client-actions-renderer/ViewMetaSchema.js +17 -0
  78. package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/ClientActionsAdapter.js +1 -2
  79. package/es/platform/client-actions/components/client-actions-renderer/adapters/presenters/ClientActionsRendererTranslator.js +24 -0
  80. package/es/platform/client-actions/components/client-actions-renderer/domain/entities/ClientActionsRendererDatatype.js +1 -0
  81. package/es/platform/client-actions/components/client-actions-renderer/domain/entities/ClientActionsRendererViewProps.js +1 -0
  82. package/es/platform/client-actions/components/client-actions-renderer/domain/entities/Context.js +1 -0
  83. package/es/platform/client-actions/components/client-actions-renderer/domain/entities/State.js +1 -0
  84. package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer.js +11 -0
  85. package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer.module.css +23 -0
  86. package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRendererView.js +25 -0
  87. package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/views/DefaultActionsRendererView.js +66 -0
  88. package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/more-actions-renderer/MoreActionsRenderer.js +9 -0
  89. package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/more-actions-renderer/MoreActionsRendererView.js +81 -0
  90. package/es/platform/client-actions/components/interfaces/ActionViewModel.js +7 -0
  91. package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/resources/__test__/ClientScriptsFetchSDK.test.js +163 -0
  92. package/es/platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema.js +4 -1
  93. package/es/platform/components/form-connected/frameworks/FormConnectedView.js +2 -0
  94. package/es/platform/components/smart-action-band/adapters/presenters/ActionBandTranslator.js +7 -10
  95. package/es/platform/components/smart-action-band/frameworks/SmartActionBandView.js +17 -5
  96. package/es/platform/data-source/http-template/getAvailableFields.js +4 -2
  97. package/es/platform/zform/adapters/presenter/FormTranslator.js +8 -12
  98. package/es/platform/zform/adapters/presenter/translators/SectionTranslator.js +10 -14
  99. package/es/platform/zform/adapters/presenter/translators/fields/BooleanFieldTranslator.js +4 -2
  100. package/es/platform/zform/adapters/presenter/translators/fields/CurrencyFieldTranslator.js +2 -1
  101. package/es/platform/zform/adapters/presenter/translators/fields/DateFieldTranslator.js +4 -2
  102. package/es/platform/zform/adapters/presenter/translators/fields/DateTimeFieldTranslator.js +4 -2
  103. package/es/platform/zform/adapters/presenter/translators/fields/DecimalFieldTranslator.js +4 -2
  104. package/es/platform/zform/adapters/presenter/translators/fields/EmailFieldTranslator.js +4 -2
  105. package/es/platform/zform/adapters/presenter/translators/fields/LookUpFieldTranslator.js +4 -2
  106. package/es/platform/zform/adapters/presenter/translators/fields/MultiselectFieldTranslator.js +13 -8
  107. package/es/platform/zform/adapters/presenter/translators/fields/NumberFieldTranslator.js +4 -2
  108. package/es/platform/zform/adapters/presenter/translators/fields/PercentageFieldTranslator.js +4 -2
  109. package/es/platform/zform/adapters/presenter/translators/fields/PhoneFieldTranslator.js +4 -2
  110. package/es/platform/zform/adapters/presenter/translators/fields/PicklistFieldTranslator.js +15 -12
  111. package/es/platform/zform/adapters/presenter/translators/fields/TextAreaFieldTranslator.js +4 -2
  112. package/es/platform/zform/adapters/presenter/translators/fields/TextFieldTranslator.js +4 -2
  113. package/es/platform/zform/adapters/presenter/translators/fields/URLFieldTranslator.js +4 -2
  114. package/es/platform/zform/domain/interfaces/IZForm.js +2 -5
  115. package/es/platform/zform/domain/interfaces/ValidationEvents.js +4 -0
  116. package/es/platform/zlist/adapters/presenters/SelectionTranslator.js +2 -4
  117. package/es/platform/zlist/adapters/presenters/TableTranslator.js +6 -1
  118. package/es/platform/zlist/adapters/presenters/translators/ColumnTranslator.js +7 -1
  119. package/es/platform/zlist/adapters/presenters/translators/Header.js +7 -6
  120. package/es/platform/zlist/adapters/presenters/translators/Row.js +6 -5
  121. package/es/platform/zlist/adapters/presenters/translators/fields/DateFieldTranslator.js +7 -3
  122. package/es/platform/zlist/adapters/presenters/translators/fields/DateTimeFieldTranslator.js +7 -3
  123. package/package.json +19 -6
  124. package/es/library/custom-component/frameworks/json-schema-validator/Validator.js +0 -1
@@ -0,0 +1,5 @@
1
+ class Constants {
2
+ static ACTION_STATUS_ACTION_CLICKED = "ACTION_STATUS#ACTION_CLICKED";
3
+ }
4
+
5
+ export default Constants;
@@ -0,0 +1,6 @@
1
+ import Constants from "./Constants";
2
+ let Events = [{
3
+ type: Constants.ACTION_STATUS_ACTION_CLICKED,
4
+ payload: {}
5
+ }];
6
+ export default Events;
@@ -0,0 +1,29 @@
1
+ export default {
2
+ label: {
3
+ defaultValue: '',
4
+ required: false,
5
+ typeMetadata: {
6
+ schema: {
7
+ type: 'string'
8
+ }
9
+ }
10
+ },
11
+ actionLabel: {
12
+ defaultValue: 'Undo',
13
+ required: false,
14
+ typeMetadata: {
15
+ schema: {
16
+ type: 'string'
17
+ }
18
+ }
19
+ },
20
+ hasAction: {
21
+ defaultValue: false,
22
+ required: false,
23
+ typeMetadata: {
24
+ schema: {
25
+ type: 'boolean'
26
+ }
27
+ }
28
+ }
29
+ };
@@ -0,0 +1,3 @@
1
+ export { default as ActionStatusProperties } from "./Properties";
2
+ export { default as ActionStatusEvents } from "./Events";
3
+ export { default as ActionStatusConstants } from "./Constants";
@@ -73,5 +73,33 @@ export default {
73
73
  type: 'string'
74
74
  }
75
75
  }
76
+ },
77
+ iconName: {
78
+ defaultValue: '',
79
+ required: false,
80
+ typeMetadata: {
81
+ schema: {
82
+ type: 'string'
83
+ }
84
+ }
85
+ },
86
+ iconSize: {
87
+ defaultValue: '14',
88
+ required: false,
89
+ typeMetadata: {
90
+ schema: {
91
+ type: 'string'
92
+ }
93
+ }
94
+ },
95
+ iconPosition: {
96
+ defaultValue: 'right',
97
+ required: false,
98
+ typeMetadata: {
99
+ schema: {
100
+ type: 'string',
101
+ enum: ['left', 'right']
102
+ }
103
+ }
76
104
  }
77
105
  };
@@ -1,3 +1,4 @@
1
+ import { clientScriptsSchema } from "../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
1
2
  export default {
2
3
  id: {
3
4
  defaultValue: '',
@@ -79,5 +80,19 @@ export default {
79
80
  type: 'array'
80
81
  }
81
82
  }
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
+ }
82
97
  }
83
98
  };
@@ -29,6 +29,14 @@ const Events = [{
29
29
  type: 'any'
30
30
  }
31
31
  }
32
+ },
33
+ previousValue: {
34
+ name: 'previousValue',
35
+ typeMetadata: {
36
+ schema: {
37
+ type: 'any'
38
+ }
39
+ }
32
40
  }
33
41
  }
34
42
  }];
@@ -1,3 +1,4 @@
1
+ import { clientScriptsSchema } from "../../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
1
2
  export default {
2
3
  type: {
3
4
  required: false,
@@ -193,10 +194,16 @@ export default {
193
194
  }
194
195
  },
195
196
  clientScripts: {
197
+ required: false,
198
+ typeMetadata: {
199
+ schema: clientScriptsSchema
200
+ }
201
+ },
202
+ context: {
196
203
  required: false,
197
204
  typeMetadata: {
198
205
  schema: {
199
- type: 'array'
206
+ type: 'object'
200
207
  }
201
208
  }
202
209
  }
@@ -97,5 +97,13 @@ 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
+ }
100
108
  }
101
109
  };
@@ -52,5 +52,33 @@ export default {
52
52
  enum: ["default", "pointer"]
53
53
  }
54
54
  }
55
+ },
56
+ iconName: {
57
+ required: false,
58
+ defaultValue: '',
59
+ typeMetadata: {
60
+ schema: {
61
+ type: "string"
62
+ }
63
+ }
64
+ },
65
+ iconSize: {
66
+ required: false,
67
+ defaultValue: '14',
68
+ typeMetadata: {
69
+ schema: {
70
+ type: "string"
71
+ }
72
+ }
73
+ },
74
+ iconPosition: {
75
+ required: false,
76
+ defaultValue: 'right',
77
+ typeMetadata: {
78
+ schema: {
79
+ type: "string",
80
+ enum: ['left', 'right']
81
+ }
82
+ }
55
83
  }
56
84
  };
package/es/cc/index.js CHANGED
@@ -10,6 +10,7 @@ export * from "./table-list";
10
10
  export * from "./tags";
11
11
  export * from "./text";
12
12
  export * from "./action-icon";
13
+ export * from "./action-status";
13
14
  export * from "./empty-state";
14
15
  export * from "./textbox";
15
16
  export * from "./textarea";
@@ -1,9 +1,10 @@
1
+ import { clientScriptsSchema } from "../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
1
2
  export default {
2
3
  label: {
3
4
  required: false,
4
5
  typeMetadata: {
5
6
  schema: {
6
- type: "string"
7
+ type: 'string'
7
8
  }
8
9
  }
9
10
  },
@@ -11,7 +12,7 @@ export default {
11
12
  required: false,
12
13
  typeMetadata: {
13
14
  schema: {
14
- type: "string"
15
+ type: 'string'
15
16
  }
16
17
  }
17
18
  },
@@ -20,7 +21,7 @@ export default {
20
21
  defaultValue: [],
21
22
  typeMetadata: {
22
23
  schema: {
23
- type: "array"
24
+ type: 'array'
24
25
  }
25
26
  }
26
27
  },
@@ -29,15 +30,21 @@ export default {
29
30
  defaultValue: false,
30
31
  typeMetadata: {
31
32
  schema: {
32
- type: "boolean"
33
+ type: 'boolean'
33
34
  }
34
35
  }
35
36
  },
36
37
  clientScripts: {
38
+ required: false,
39
+ typeMetadata: {
40
+ schema: clientScriptsSchema
41
+ }
42
+ },
43
+ context: {
37
44
  required: false,
38
45
  typeMetadata: {
39
46
  schema: {
40
- type: 'array'
47
+ type: 'object'
41
48
  }
42
49
  }
43
50
  }
@@ -1,3 +1,4 @@
1
+ import { clientScriptsSchema } from "../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
1
2
  export default {
2
3
  id: {
3
4
  defaultValue: '',
@@ -92,10 +93,16 @@ export default {
92
93
  }
93
94
  },
94
95
  clientScripts: {
96
+ required: false,
97
+ typeMetadata: {
98
+ schema: clientScriptsSchema
99
+ }
100
+ },
101
+ context: {
95
102
  required: false,
96
103
  typeMetadata: {
97
104
  schema: {
98
- type: 'array'
105
+ type: 'object'
99
106
  }
100
107
  }
101
108
  }
@@ -25,6 +25,22 @@ export default [{
25
25
  type: 'string'
26
26
  }
27
27
  }
28
+ },
29
+ previousId: {
30
+ name: 'previousId',
31
+ typeMetadata: {
32
+ schema: {
33
+ type: 'string'
34
+ }
35
+ }
36
+ },
37
+ previousValue: {
38
+ name: 'previousValue',
39
+ typeMetadata: {
40
+ schema: {
41
+ type: 'string'
42
+ }
43
+ }
28
44
  }
29
45
  }
30
46
  }, {
@@ -14,6 +14,7 @@ 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";
17
18
  export default {
18
19
  id: {
19
20
  required: false,
@@ -108,10 +109,16 @@ export default {
108
109
  }
109
110
  },
110
111
  clientScripts: {
112
+ required: false,
113
+ typeMetadata: {
114
+ schema: clientScriptsSchema
115
+ }
116
+ },
117
+ context: {
111
118
  required: false,
112
119
  typeMetadata: {
113
120
  schema: {
114
- type: 'array'
121
+ type: 'object'
115
122
  }
116
123
  }
117
124
  },
@@ -1,3 +1,4 @@
1
+ import { clientScriptsSchema } from "../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
1
2
  export default {
2
3
  id: {
3
4
  defaultValue: '',
@@ -84,10 +85,16 @@ export default {
84
85
  }
85
86
  },
86
87
  clientScripts: {
88
+ required: false,
89
+ typeMetadata: {
90
+ schema: clientScriptsSchema
91
+ }
92
+ },
93
+ context: {
87
94
  required: false,
88
95
  typeMetadata: {
89
96
  schema: {
90
- type: 'array'
97
+ type: 'object'
91
98
  }
92
99
  }
93
100
  }
@@ -97,6 +97,15 @@ export default {
97
97
  }
98
98
  }
99
99
  },
100
+ emptyStateMessage: {
101
+ defaultValue: "No results found",
102
+ required: false,
103
+ typeMetadata: {
104
+ schema: {
105
+ type: "string"
106
+ }
107
+ }
108
+ },
100
109
  clearFilterLabel: {
101
110
  defaultValue: "Clear Filter",
102
111
  required: false,
@@ -63,6 +63,14 @@ const Events = [{
63
63
  type: 'date'
64
64
  }
65
65
  }
66
+ },
67
+ previousValue: {
68
+ name: 'previousValue',
69
+ typeMetadata: {
70
+ schema: {
71
+ type: 'any'
72
+ }
73
+ }
66
74
  }
67
75
  }
68
76
  }, {
@@ -1,3 +1,4 @@
1
+ import { clientScriptsSchema } from "../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
1
2
  export default {
2
3
  id: {
3
4
  required: false,
@@ -75,5 +76,19 @@ export default {
75
76
  }
76
77
  }
77
78
  }
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
+ }
78
93
  }
79
94
  };
@@ -1,3 +1,4 @@
1
+ import { clientScriptsSchema } from "../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
1
2
  export default {
2
3
  id: {
3
4
  defaultValue: '',
@@ -92,10 +93,16 @@ export default {
92
93
  }
93
94
  },
94
95
  clientScripts: {
96
+ required: false,
97
+ typeMetadata: {
98
+ schema: clientScriptsSchema
99
+ }
100
+ },
101
+ context: {
95
102
  required: false,
96
103
  typeMetadata: {
97
104
  schema: {
98
- type: 'array'
105
+ type: 'object'
99
106
  }
100
107
  }
101
108
  }
package/es/index.js CHANGED
@@ -3,11 +3,10 @@ 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";
8
6
  import ClientActionReordererRegistry from "./platform/client-actions/components/action-event-mediator/frameworks/ui/ClientActionReordererRegistry";
9
7
  import ClientActionsFetchSDK from "./platform/client-actions/behaviour/zclient-actions/adapters/resources/ClientActionsFetchSDK";
10
- import ClientScriptsFetchSDK from "./platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/resources/ClientScriptsFetchSDK"; // Rebuild SmartTableConstants without Events
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
11
10
 
12
11
  const SmartTableConstants = {
13
12
  ExternalConstants
@@ -31,9 +30,7 @@ export { fetchClientActions } from "./platform/client-actions/components/action-
31
30
  export { ZFormApiActionName } from "./bc/zform/Constants";
32
31
  export { RecordApiActionName } from "./bc/zrecord/Constants";
33
32
  export { transFormValidationRules } from "./platform/data-source/utils/validation-rules/TransFormValidationRules";
34
- export { AdaptiveRowActionsRenderer };
35
33
  export { ActionEventMediator };
36
- export { RowActionsRenderer };
37
34
  export { renderField } from "./library/dot/components/section/frameworks/ui/RenderField";
38
35
  export { default as ResourceNamesEnum } from "./bc/sdk/ResourceNamesEnum";
39
36
  import { FieldSectionEventMappingBehaviourFactory } from "./library/dot/components/section/frameworks/ui/Section";
@@ -44,4 +41,5 @@ export const Behaviours = {
44
41
  export * from "./library/analytics";
45
42
  export { ClientActionReordererRegistry };
46
43
  export { ClientActionsFetchSDK };
47
- export { ClientScriptsFetchSDK };
44
+ export { ClientScriptsFetchSDK };
45
+ export { ClientActionsRenderer };
@@ -14,6 +14,7 @@ import ListItem from "../../../../legacy-to-new-arch/list-item/frameworks/ui/Lis
14
14
  import Ribbon from "../../../../legacy-to-new-arch/ribbon/frameworks/ui/Ribbon";
15
15
  import Search from "../../../../legacy-to-new-arch/action-band-components/search/frameworks/ui/Search";
16
16
  import SortDropdown from "../../../../legacy-to-new-arch/sort-dropdown/frameworks/ui/SortDropdown";
17
+ import ActionStatus from "../../../action-status/frameworks/ui/ActionStatus";
17
18
  const ActionComponentMapping = {
18
19
  ['ActionIcon']: ActionIcon,
19
20
  ['Button']: Button,
@@ -29,6 +30,7 @@ const ActionComponentMapping = {
29
30
  ['HighlightedValue']: HighlightedValue,
30
31
  ['Ribbon']: Ribbon,
31
32
  ['Search']: Search,
32
- ['SortDropdown']: SortDropdown
33
+ ['SortDropdown']: SortDropdown,
34
+ ['ActionStatus']: ActionStatus
33
35
  };
34
36
  export default ActionComponentMapping;
@@ -0,0 +1,12 @@
1
+ import { createCustomComponent } from "../../../../../custom-component";
2
+ import ActionStatusProperties from "../../../../../../cc/action-status/Properties";
3
+ import ActionStatusEvents from "../../../../../../cc/action-status/Events";
4
+ import ActionStatusView from "./ActionStatusView";
5
+ let ActionStatus = createCustomComponent({
6
+ name: "ActionStatus",
7
+ View: ActionStatusView,
8
+ properties: ActionStatusProperties,
9
+ events: ActionStatusEvents,
10
+ eventHandlers: {}
11
+ });
12
+ export default ActionStatus;
@@ -0,0 +1,57 @@
1
+ import React from 'react';
2
+ import Flex from '@zohodesk/layout/es/Flex/Flex';
3
+ import ColoredTypography from '@zohodesk-private/desk-components/es/ColoredTypography/ColoredTypography';
4
+ import Button from '@zohodesk-private/dot-registry/es/Button/Button';
5
+ import { ActionStatusConstants } from "../../../../../../cc"; // @ts-ignore
6
+
7
+ import styles from "./css/ActionStatus.module.css";
8
+
9
+ function ActionStatusView(_ref, ref) {
10
+ let {
11
+ state,
12
+ helpers
13
+ } = _ref;
14
+ let {
15
+ dispatch
16
+ } = helpers;
17
+ let {
18
+ label,
19
+ actionLabel,
20
+ hasAction
21
+ } = state.properties;
22
+ return /*#__PURE__*/React.createElement(Flex, {
23
+ ref: ref,
24
+ $ui_displayMode: "inline",
25
+ $ui_alignItems: "center",
26
+ $ui_direction: "row",
27
+ $ui_className: styles.container,
28
+ $a11yAttributes_container: {
29
+ 'role': 'status',
30
+ 'aria-live': 'polite',
31
+ 'aria-busy': true
32
+ }
33
+ }, /*#__PURE__*/React.createElement("span", {
34
+ className: styles.spinner,
35
+ "aria-hidden": "true"
36
+ }), label && /*#__PURE__*/React.createElement(ColoredTypography, {
37
+ $ui_size: "15",
38
+ $ui_weight: "regular",
39
+ $ui_color: "grey",
40
+ $flag_dotted: true,
41
+ $ui_className: styles.label
42
+ }, label), hasAction && /*#__PURE__*/React.createElement(Button, {
43
+ palette: "plainPrimary",
44
+ needAppearance: true,
45
+ text: actionLabel,
46
+ onClick: () => {
47
+ dispatch({
48
+ type: ActionStatusConstants.ACTION_STATUS_ACTION_CLICKED
49
+ });
50
+ },
51
+ customClass: {
52
+ customButton: styles.actionButton
53
+ }
54
+ }));
55
+ }
56
+
57
+ export default ActionStatusView;
@@ -0,0 +1,61 @@
1
+ @property --_fill {
2
+ syntax: '<angle>';
3
+ inherits: false;
4
+ initial-value: 0deg;
5
+ }
6
+
7
+ .container {
8
+ gap: var(--zd_size8) ;
9
+ }
10
+
11
+ .spinner {
12
+ display: inline-block;
13
+ width: var(--zd_size16) ;
14
+ height: var(--zd_size16) ;
15
+ /* COLOR VARIABLES TO BE UPDATED PROPERLY USING COMMON COLORS */
16
+ flex-shrink: 0;
17
+ box-sizing: border-box;
18
+ border-radius: 50%;
19
+ border: 1px solid transparent;
20
+ background:
21
+ conic-gradient(var(--zdt_coloredtypography_grey_text) var(--_fill, 0deg),
22
+ var(--zdt_filterdropdown_clearbutton_bg) var(--_fill, 0deg)) content-box,
23
+ conic-gradient(var(--zdt_coloredtypography_grey_text) 0deg var(--_fill, 0deg),
24
+ transparent var(--_fill, 0deg) 360deg) border-box,
25
+ conic-gradient(transparent 0deg 4deg,
26
+ var(--zdt_coloredtypography_grey_text) 4deg 86deg,
27
+ transparent 86deg 94deg,
28
+ var(--zdt_coloredtypography_grey_text) 94deg 176deg,
29
+ transparent 176deg 184deg,
30
+ var(--zdt_coloredtypography_grey_text) 184deg 266deg,
31
+ transparent 266deg 274deg,
32
+ var(--zdt_coloredtypography_grey_text) 274deg 356deg,
33
+ transparent 356deg 360deg) border-box;
34
+ }
35
+
36
+ [dir=ltr] .spinner {
37
+ animation: fill 9s linear infinite;
38
+ }
39
+
40
+ [dir=rtl] .spinner {
41
+ animation: fill 9s linear infinite;
42
+ }
43
+
44
+ @keyframes fill {
45
+ 0% {
46
+ --_fill: 0deg;
47
+ }
48
+
49
+ 100% {
50
+ --_fill: 360deg;
51
+ }
52
+ }
53
+
54
+ .label {
55
+ line-height: 1.07;
56
+ }
57
+
58
+ .actionButton {
59
+ --button_font_size: 15px;
60
+ --button_text_transform: none;
61
+ }
@@ -47,7 +47,8 @@ export function TransformState(state) {
47
47
  footerLeftActions,
48
48
  footerRightActions,
49
49
  rightPanel,
50
- clientScripts
50
+ clientScripts,
51
+ context
51
52
  } = state.properties; // const { values, errorMessages } = state.behaviours.form;
52
53
 
53
54
  const updatedSections = updateFieldValues({
@@ -67,6 +68,7 @@ export function TransformState(state) {
67
68
  footerLeftActions,
68
69
  footerRightActions,
69
70
  clientScripts,
71
+ context,
70
72
  rightPanel
71
73
  }
72
74
  };
@@ -18,7 +18,8 @@ function FormView(_ref, ref) {
18
18
  footerRightActions,
19
19
  isHeaderEnabled,
20
20
  isFooterEnabled,
21
- clientScripts
21
+ clientScripts,
22
+ context
22
23
  } = state.viewModel;
23
24
  return /*#__PURE__*/React.createElement(Flex, {
24
25
  $ui_displayMode: "flex",
@@ -32,7 +33,8 @@ function FormView(_ref, ref) {
32
33
  hasHeader: isHeaderEnabled,
33
34
  headerLeftActions: headerLeftActions,
34
35
  headerRightActions: headerRightActions,
35
- clientScripts: clientScripts
36
+ clientScripts: clientScripts,
37
+ context: context
36
38
  }), /*#__PURE__*/React.createElement(MiddleSection, {
37
39
  sections: sections,
38
40
  isLoading: isLoading,
@@ -42,7 +44,8 @@ function FormView(_ref, ref) {
42
44
  hasFooter: isFooterEnabled,
43
45
  footerLeftActions: footerLeftActions,
44
46
  footerRightActions: footerRightActions,
45
- clientScripts: clientScripts
47
+ clientScripts: clientScripts,
48
+ context: context
46
49
  }));
47
50
  }
48
51