@zohodesk/library-platform 1.2.2-exp.1 → 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 (135) 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-connected/SdkContract.js +3 -28
  19. package/es/cc/table-list/Events.js +8 -0
  20. package/es/cc/table-list/Properties.js +8 -9
  21. package/es/cc/table-list/row/Properties.js +6 -19
  22. package/es/cc/textarea/Properties.js +15 -0
  23. package/es/cc/textbox/Properties.js +8 -1
  24. package/es/index.js +4 -6
  25. package/es/library/custom-component/frameworks/ui/DependencyFactory.js +1 -17
  26. package/es/library/dot/components/action-location/frameworks/ui/ActionComponentMapping.js +3 -1
  27. package/es/library/dot/components/action-status/frameworks/ui/ActionStatus.js +12 -0
  28. package/es/library/dot/components/action-status/frameworks/ui/ActionStatusView.js +57 -0
  29. package/es/library/dot/components/action-status/frameworks/ui/css/ActionStatus.module.css +61 -0
  30. package/es/library/dot/components/form/adapters/presenter/TransformState.js +3 -1
  31. package/es/library/dot/components/form/frameworks/ui/FormView.js +6 -3
  32. package/es/library/dot/components/form/frameworks/ui/sub-components/Footer.js +16 -7
  33. package/es/library/dot/components/form/frameworks/ui/sub-components/Header.js +16 -7
  34. package/es/library/dot/components/form/frameworks/ui/sub-components/Sections.js +4 -2
  35. package/es/library/dot/components/form-fields/checkbox/frameworks/ui/CheckboxView.js +6 -3
  36. package/es/library/dot/components/form-fields/currency/frameworks/ui/CurrencyView.js +6 -3
  37. package/es/library/dot/components/form-fields/date/frameworks/ui/DateView.js +6 -3
  38. package/es/library/dot/components/form-fields/datetime/frameworks/ui/DateTimeView.js +6 -3
  39. package/es/library/dot/components/form-fields/decimal/frameworks/ui/DecimalView.js +6 -3
  40. package/es/library/dot/components/form-fields/email/frameworks/ui/EmailView.js +6 -3
  41. package/es/library/dot/components/form-fields/field/FieldItem.js +4 -2
  42. package/es/library/dot/components/form-fields/lookup/frameworks/ui/LookupView.js +6 -3
  43. package/es/library/dot/components/form-fields/multi-select/frameworks/ui/MultiSelectView.js +7 -4
  44. package/es/library/dot/components/form-fields/number/frameworks/ui/NumberView.js +6 -3
  45. package/es/library/dot/components/form-fields/percentage/frameworks/ui/PercentageView.js +7 -4
  46. package/es/library/dot/components/form-fields/phone/frameworks/ui/PhoneView.js +6 -3
  47. package/es/library/dot/components/form-fields/pick-list/frameworks/ui/PickListView.js +7 -4
  48. package/es/library/dot/components/form-fields/textarea/frameworks/ui/TextAreaView.js +6 -3
  49. package/es/library/dot/components/form-fields/textbox/frameworks/ui/TextBoxView.js +6 -3
  50. package/es/library/dot/components/form-fields/url/frameworks/ui/UrlView.js +6 -3
  51. package/es/library/dot/components/section/frameworks/ui/RenderField.js +3 -1
  52. package/es/library/dot/components/section/frameworks/ui/SectionView.js +11 -6
  53. package/es/library/dot/components/table-list/adapters/controllers/FieldChangeController.js +4 -2
  54. package/es/library/dot/components/table-list/frameworks/ui/TableListView.js +8 -4
  55. package/es/library/dot/components/table-list/frameworks/ui/sub-components/Header.js +6 -4
  56. package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/HeaderData.js +11 -6
  57. package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/MassAction.js +11 -5
  58. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Row.js +8 -4
  59. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowActions.js +12 -5
  60. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowData.js +12 -4
  61. package/es/library/dot/legacy-to-new-arch/button/frameworks/ui/ButtonView.js +17 -2
  62. package/es/library/dot/legacy-to-new-arch/date/frameworks/ui/DateView.js +10 -4
  63. package/es/library/dot/legacy-to-new-arch/highlighted-value/frameworks/ui/HighlightedValueView.js +13 -2
  64. package/es/library/dot/legacy-to-new-arch/highlighted-value/frameworks/ui/css/HighlightedValue.module.css +4 -0
  65. package/es/library/dot/legacy-to-new-arch/label/frameworks/ui/LabelView.js +11 -5
  66. package/es/library/dot/legacy-to-new-arch/multi-select/frameworks/ui/MultiSelectView.js +21 -8
  67. package/es/library/dot/legacy-to-new-arch/radio-dropdown/frameworks/ui/RadioDropdownView.js +3 -1
  68. package/es/library/dot/legacy-to-new-arch/select/frameworks/ui/SelectView.js +18 -8
  69. package/es/library/dot/legacy-to-new-arch/table-column-filter/frameworks/ui/EventHandlersFactory.js +26 -0
  70. package/es/library/dot/legacy-to-new-arch/table-column-filter/frameworks/ui/TableColumnFilter.js +19 -1
  71. package/es/library/dot/legacy-to-new-arch/table-column-filter/frameworks/ui/TableColumnFilterView.js +3 -1
  72. package/es/library/dot/legacy-to-new-arch/table-field-components/checkbox-field/frameworks/ui/EventHandlersFactory.js +2 -1
  73. package/es/library/dot/legacy-to-new-arch/table-field-components/highlighted-value-field/frameworks/ui/HighlightedValueFieldView.js +8 -2
  74. package/es/library/dot/legacy-to-new-arch/table-field-components/radio-dropdown-field/frameworks/ui/EventHandlersFactory.js +4 -2
  75. package/es/library/dot/legacy-to-new-arch/table-field-components/switch-field/frameworks/ui/EventHandlersFactory.js +2 -1
  76. package/es/library/dot/legacy-to-new-arch/text-area/frameworks/ui/TextAreaView.js +10 -4
  77. package/es/library/dot/legacy-to-new-arch/textbox/frameworks/ui/TextBoxView.js +11 -5
  78. package/es/library/json-schema-validator/Validator.js +338 -0
  79. package/es/library/json-schema-validator/__tests__/Validator.test.js +753 -0
  80. package/es/library/json-schema-validator/index.js +1 -0
  81. package/es/platform/client-actions/behaviour/zclient-actions/adapters/resources/__test__/ClientActionsFetchSDK.test.js +183 -0
  82. package/es/platform/client-actions/cc/action-event-mediator/Properties.js +1 -58
  83. package/es/platform/client-actions/cc/client-actions-renderer/Properties.js +58 -0
  84. package/es/platform/client-actions/cc/client-actions-renderer/ViewMetaSchema.js +17 -0
  85. package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/ClientActionsAdapter.js +1 -2
  86. package/es/platform/client-actions/components/client-actions-renderer/adapters/presenters/ClientActionsRendererTranslator.js +24 -0
  87. package/es/platform/client-actions/components/client-actions-renderer/domain/entities/ClientActionsRendererViewProps.js +1 -0
  88. package/es/platform/client-actions/components/client-actions-renderer/domain/entities/Context.js +1 -0
  89. package/es/platform/client-actions/components/client-actions-renderer/domain/entities/State.js +1 -0
  90. package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer.js +11 -0
  91. package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRenderer.module.css +23 -0
  92. package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/ClientActionsRendererView.js +25 -0
  93. package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/client-actions-renderer/views/DefaultActionsRendererView.js +66 -0
  94. package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/more-actions-renderer/MoreActionsRenderer.js +9 -0
  95. package/es/platform/client-actions/components/client-actions-renderer/frameworks/ui/more-actions-renderer/MoreActionsRendererView.js +81 -0
  96. package/es/platform/client-actions/components/interfaces/ActionViewModel.js +7 -0
  97. package/es/platform/client-scripts/behaviour/zclient-scripts-fetch/adapters/resources/__test__/ClientScriptsFetchSDK.test.js +163 -0
  98. package/es/platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema.js +4 -1
  99. package/es/platform/components/form-connected/frameworks/FormConnectedView.js +2 -0
  100. package/es/platform/components/smart-action-band/adapters/presenters/ActionBandTranslator.js +7 -10
  101. package/es/platform/components/smart-action-band/frameworks/SmartActionBandView.js +17 -5
  102. package/es/platform/data-source/http-template/getAvailableFields.js +4 -2
  103. package/es/platform/sdk/application/interfaces/gateways/AbstractResource.js +1 -1
  104. package/es/platform/zform/adapters/presenter/FormTranslator.js +8 -12
  105. package/es/platform/zform/adapters/presenter/translators/SectionTranslator.js +10 -14
  106. package/es/platform/zform/adapters/presenter/translators/fields/BooleanFieldTranslator.js +4 -2
  107. package/es/platform/zform/adapters/presenter/translators/fields/CurrencyFieldTranslator.js +2 -1
  108. package/es/platform/zform/adapters/presenter/translators/fields/DateFieldTranslator.js +4 -2
  109. package/es/platform/zform/adapters/presenter/translators/fields/DateTimeFieldTranslator.js +4 -2
  110. package/es/platform/zform/adapters/presenter/translators/fields/DecimalFieldTranslator.js +4 -2
  111. package/es/platform/zform/adapters/presenter/translators/fields/EmailFieldTranslator.js +4 -2
  112. package/es/platform/zform/adapters/presenter/translators/fields/LookUpFieldTranslator.js +4 -2
  113. package/es/platform/zform/adapters/presenter/translators/fields/MultiselectFieldTranslator.js +13 -8
  114. package/es/platform/zform/adapters/presenter/translators/fields/NumberFieldTranslator.js +4 -2
  115. package/es/platform/zform/adapters/presenter/translators/fields/PercentageFieldTranslator.js +4 -2
  116. package/es/platform/zform/adapters/presenter/translators/fields/PhoneFieldTranslator.js +4 -2
  117. package/es/platform/zform/adapters/presenter/translators/fields/PicklistFieldTranslator.js +15 -12
  118. package/es/platform/zform/adapters/presenter/translators/fields/TextAreaFieldTranslator.js +4 -2
  119. package/es/platform/zform/adapters/presenter/translators/fields/TextFieldTranslator.js +4 -2
  120. package/es/platform/zform/adapters/presenter/translators/fields/URLFieldTranslator.js +4 -2
  121. package/es/platform/zform/domain/interfaces/IZForm.js +2 -5
  122. package/es/platform/zform/domain/interfaces/ValidationEvents.js +4 -0
  123. package/es/platform/zlist/adapters/presenters/SelectionTranslator.js +2 -4
  124. package/es/platform/zlist/adapters/presenters/TableTranslator.js +6 -1
  125. package/es/platform/zlist/adapters/presenters/translators/ColumnTranslator.js +7 -1
  126. package/es/platform/zlist/adapters/presenters/translators/Header.js +7 -6
  127. package/es/platform/zlist/adapters/presenters/translators/Row.js +6 -5
  128. package/es/platform/zlist/adapters/presenters/translators/fields/DateFieldTranslator.js +7 -3
  129. package/es/platform/zlist/adapters/presenters/translators/fields/DateTimeFieldTranslator.js +7 -3
  130. package/package.json +19 -9
  131. package/es/library/custom-component/frameworks/json-schema-validator/Validator.js +0 -177
  132. package/es/library/custom-component/frameworks/json-schema-validator/__generated__/registry.js +0 -92
  133. package/es/library/custom-component/frameworks/json-schema-validator/__generated__/validators.js +0 -1
  134. package/es/library/custom-component/frameworks/json-schema-validator/__tests__/Validator.test.js +0 -478
  135. /package/es/{library/custom-component/frameworks/json-schema-validator/__generated__/registry.d.js → platform/client-actions/components/client-actions-renderer/domain/entities/ClientActionsRendererDatatype.js} +0 -0
@@ -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,
@@ -1,30 +1,5 @@
1
- // OPTIMIZE: Duplicated comparator values from bc/zrecord/Types.ts enums (CommonComparators, TextComparators, NumberComparators, DateComparators)
2
- const filterConfigSchema = {
3
- type: 'object',
4
- properties: {
5
- conditions: {
6
- type: 'array',
7
- items: {
8
- type: 'object',
9
- properties: {
10
- fieldName: {
11
- type: 'string'
12
- },
13
- condition: {
14
- type: 'string',
15
- enum: ['is empty', 'is not empty', 'is', "isn't", 'starts with', 'ends with', 'contains', "doesn't contain", '=', '<>', '<', '<=', '>', '>=', 'is after', 'is before', 'between', 'not between']
16
- },
17
- value: {}
18
- },
19
- required: ['fieldName', 'condition', 'value']
20
- }
21
- },
22
- pattern: {
23
- type: 'string'
24
- }
25
- },
26
- required: ['conditions', 'pattern']
27
- };
1
+ import { SortOrder } from "../../bc/zlist/Types";
2
+ import { filterConfigSchema } from "../../bc/zrecord/Schemas";
28
3
  export const SdkContracts = {
29
4
  getRecordInputMeta: {
30
5
  type: 'object',
@@ -192,7 +167,7 @@ export const SdkContracts = {
192
167
  },
193
168
  order: {
194
169
  type: 'string',
195
- enum: ['ASC', 'DES', 'NONE']
170
+ enum: [SortOrder.ASC, SortOrder.DES, SortOrder.NONE]
196
171
  }
197
172
  }
198
173
  },
@@ -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,8 +1,7 @@
1
+ import { Alignment, Width, SortedBy } from "./data-types/Header";
2
+ import RowCursor from "./data-types/RowCursor";
1
3
  import SelectionConfigProperties from "../../bc/list-selection/Properties";
2
- const actionsSchema = {
3
- type: 'array',
4
- minItems: 0
5
- };
4
+ import { actionsSchema } from "../../platform/client-actions/cc/action-event-mediator/Properties";
6
5
  const TableListProperties = {
7
6
  isReOrderLoading: {
8
7
  required: false,
@@ -48,7 +47,7 @@ const TableListProperties = {
48
47
  properties: {
49
48
  order: {
50
49
  type: 'string',
51
- enum: ['none', 'ascending', 'descending']
50
+ enum: Object.values(SortedBy)
52
51
  },
53
52
  name: {
54
53
  type: 'string'
@@ -111,7 +110,7 @@ const TableListProperties = {
111
110
  required: false,
112
111
  defaultValue: {
113
112
  hasActions: false,
114
- columnWidth: 120
113
+ columnWidth: Width.XSmall
115
114
  },
116
115
  typeMetadata: {
117
116
  schema: {
@@ -143,7 +142,7 @@ const TableListProperties = {
143
142
  typeMetadata: {
144
143
  schema: {
145
144
  type: 'string',
146
- enum: ['default', 'pointer', 'not-allowed']
145
+ enum: Object.values(RowCursor)
147
146
  }
148
147
  }
149
148
  },
@@ -176,11 +175,11 @@ const TableListProperties = {
176
175
  },
177
176
  alignment: {
178
177
  type: 'string',
179
- enum: ['left', 'center', 'right']
178
+ enum: Object.values(Alignment)
180
179
  },
181
180
  sortOrder: {
182
181
  type: 'string',
183
- enum: ['none', 'ascending', 'descending']
182
+ enum: Object.values(SortedBy)
184
183
  }
185
184
  },
186
185
  required: ['id', 'name', 'text']
@@ -1,19 +1,6 @@
1
- // OPTIMIZE: Duplicated clientScriptsSchema in platform/client-actions/cc/action-event-mediator/Properties.ts
2
- const clientScriptsSchema = {
3
- type: 'array',
4
- minItems: 0,
5
- items: {
6
- type: 'object',
7
- properties: {
8
- targetEventName: {
9
- type: 'string'
10
- },
11
- clientScript: {
12
- type: 'string'
13
- }
14
- }
15
- }
16
- };
1
+ import { Width } from "../data-types/Header";
2
+ import RowCursor from "../data-types/RowCursor";
3
+ import { clientScriptsSchema } from "../../../platform/client-scripts/cc/zclient-scripts-execution/clientScriptsSchema";
17
4
  const TableRowProperties = {
18
5
  isReorderEnabled: {
19
6
  required: false,
@@ -102,7 +89,7 @@ const TableRowProperties = {
102
89
  typeMetadata: {
103
90
  schema: {
104
91
  type: 'string',
105
- enum: ['default', 'pointer', 'not-allowed']
92
+ enum: Object.values(RowCursor)
106
93
  }
107
94
  }
108
95
  },
@@ -135,11 +122,11 @@ const TableRowProperties = {
135
122
  },
136
123
  rowActionsColumnWidth: {
137
124
  required: false,
138
- defaultValue: 120,
125
+ defaultValue: Width.XSmall,
139
126
  typeMetadata: {
140
127
  schema: {
141
128
  type: 'number',
142
- enum: [120, 160, 200, 240, 280, 320]
129
+ enum: Object.values(Width)
143
130
  }
144
131
  }
145
132
  },
@@ -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 };
@@ -2,30 +2,14 @@ import Presenter from "../../adapters/presenters/Presenter";
2
2
  import Service from "../../adapters/gateways/service/Service";
3
3
  import Controller from "../../adapters/controllers/Controller";
4
4
  import Repository from "../../adapters/gateways/repository/Repository";
5
- import Validator from "../json-schema-validator/Validator";
5
+ import { Validator } from "../../../json-schema-validator";
6
6
  import EventManager from "../../adapters/gateways/event-manager/EventManager";
7
- // One-time registration of precompiled validators
8
- let precompiledRegistered = false;
9
-
10
- function ensurePrecompiledRegistered() {
11
- if (precompiledRegistered) return;
12
- precompiledRegistered = true;
13
-
14
- try {
15
- // eslint-disable-next-line @typescript-eslint/no-var-requires
16
- const registry = require("../json-schema-validator/__generated__/registry");
17
-
18
- Validator.registerPrecompiled(registry.default || registry);
19
- } catch (e) {// __generated__ not available (e.g., first build) — runtime fallback
20
- }
21
- }
22
7
 
23
8
  class DependencyFactory {
24
9
  static create(_ref, input) {
25
10
  let {
26
11
  updateState
27
12
  } = _ref;
28
- ensurePrecompiledRegistered();
29
13
  const repository = new Repository();
30
14
  const presenter = new Presenter({
31
15
  updateState
@@ -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;