@zohodesk/library-platform 1.1.3-exp.3 → 1.1.3-exp.4

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 (113) hide show
  1. package/es/bc/zhttp/Errors.js +14 -0
  2. package/es/bc/zhttp/index.js +3 -1
  3. package/es/bc/zlist/Constants.js +8 -1
  4. package/es/bc/zlist/Events.js +140 -0
  5. package/es/bc/zlist/index.js +2 -1
  6. package/es/bc/zrecord/Constants.js +3 -1
  7. package/es/cc/component/FallbackView.js +1 -0
  8. package/es/cc/fields/currency/Model.js +2 -0
  9. package/es/cc/fields/field/Properties.js +1 -1
  10. package/es/cc/fields/formula/Model.js +5 -0
  11. package/es/cc/index.js +1 -0
  12. package/es/cc/link/Properties.js +0 -1
  13. package/es/cc/table-connected/ErrorEventType.js +32 -0
  14. package/es/cc/table-connected/Events.js +96 -0
  15. package/es/cc/table-connected/Properties.js +16 -0
  16. package/es/cc/table-connected/SdkContract.js +120 -0
  17. package/es/cc/table-connected/constants/Events.js +2 -0
  18. package/es/cc/table-connected/index.js +3 -1
  19. package/es/cc/table-list/Constants.js +4 -0
  20. package/es/cc/table-list/Properties.js +25 -0
  21. package/es/cc/table-list/row/Properties.js +44 -0
  22. package/es/index.js +2 -1
  23. package/es/library/custom-component/adapters/gateways/event-manager/EventManager.js +116 -4
  24. package/es/library/custom-component/applications/interfaces/gateways/ISchemaValidator.js +1 -0
  25. package/es/library/custom-component/applications/usecases/InitializeUseCase.js +3 -2
  26. package/es/library/custom-component/applications/usecases/UpdatePropertyUseCase.js +3 -2
  27. package/es/library/custom-component/domain/entities/Component.js +16 -3
  28. package/es/library/custom-component/domain/entities/Properties.js +19 -1
  29. package/es/library/custom-component/frameworks/json-schema-validator/Validator.js +36 -1
  30. package/es/library/custom-component/frameworks/ui/CreateCustomComponent.js +23 -11
  31. package/es/library/custom-component/frameworks/ui/DependencyFactory.js +4 -3
  32. package/es/library/dot/components/table-list/frameworks/hooks/useDropIndicator.js +8 -0
  33. package/es/library/dot/components/table-list/frameworks/hooks/useRowData.js +15 -0
  34. package/es/library/dot/components/table-list/frameworks/hooks/useTableRowReorder.js +105 -0
  35. package/es/library/dot/components/table-list/frameworks/ui/TableListView.js +85 -15
  36. package/es/library/dot/components/table-list/frameworks/ui/css/TableList.module.css +240 -1
  37. package/es/library/dot/components/table-list/frameworks/ui/sub-components/Header.js +28 -4
  38. package/es/library/dot/components/table-list/frameworks/ui/sub-components/Rows.js +25 -9
  39. package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/MassAction.js +11 -2
  40. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Row.js +50 -8
  41. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowSelection.js +6 -1
  42. package/es/library/dot/components/table-list/frameworks/utils/getHeaderClasses.js +37 -0
  43. package/es/library/dot/components/table-list/frameworks/utils/getTableListClassName.js +37 -0
  44. package/es/library/dot/components/table-list/frameworks/utils/reOrder.js +90 -0
  45. package/es/library/dot/legacy-to-new-arch/text-area/frameworks/ui/TextAreaView.js +1 -1
  46. package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/ClientActionsAdapter.js +96 -0
  47. package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/EventHandlersFactory.js +11 -3
  48. package/es/platform/client-actions/template-resolver/index.js +1 -0
  49. package/es/platform/client-actions/translators/context-resolver/index.js +6 -6
  50. package/es/platform/components/table-connected/adapters/controllers/ColumnChooserOpenedController.js +1 -1
  51. package/es/platform/components/table-connected/adapters/controllers/ReOrderFinishController.js +21 -0
  52. package/es/platform/components/table-connected/adapters/resources/ErrorPrinter.js +20 -0
  53. package/es/platform/components/table-connected/adapters/resources/SmartTableResource.js +85 -0
  54. package/es/platform/components/table-connected/frameworks/ErrorEventHandlersFactory.js +126 -0
  55. package/es/platform/components/table-connected/frameworks/EventHandlersFactory.js +39 -3
  56. package/es/platform/components/table-connected/frameworks/ListSdkFactory.js +4 -2
  57. package/es/platform/components/table-connected/frameworks/TableConnectedFactory.js +2 -0
  58. package/es/platform/components/table-connected/frameworks/TableConnectedView.js +8 -2
  59. package/es/platform/data-source/http-template/reOrderRecord.js +44 -0
  60. package/es/platform/data-source/index.js +2 -0
  61. package/es/platform/sdk/application/interfaces/gateways/AbstractResource.js +1 -2
  62. package/es/platform/sdk/domain/entities/ResourceManager.js +1 -1
  63. package/es/platform/zdata-source/domain/entities/DataSource.js +18 -12
  64. package/es/platform/zfield/domain/entities/fields-manager/FieldsManager.js +7 -1
  65. package/es/platform/zform/adapters/presenter/FormTranslator.js +6 -127
  66. package/es/platform/zform/adapters/presenter/translators/SectionTranslator.js +32 -0
  67. package/es/platform/zform/adapters/presenter/translators/fields/BooleanFieldTranslator.js +20 -0
  68. package/es/platform/zform/adapters/presenter/translators/fields/CurrencyFieldTranslator.js +29 -0
  69. package/es/platform/zform/adapters/presenter/translators/fields/DateFieldTranslator.js +20 -0
  70. package/es/platform/zform/adapters/presenter/translators/fields/DateTimeFieldTranslator.js +21 -0
  71. package/es/platform/zform/adapters/presenter/translators/fields/DecimalFieldTranslator.js +29 -0
  72. package/es/platform/zform/adapters/presenter/translators/fields/EmailFieldTranslator.js +30 -0
  73. package/es/platform/zform/adapters/presenter/translators/fields/LookUpFieldTranslator.js +30 -0
  74. package/es/platform/zform/adapters/presenter/translators/fields/MultiselectFieldTranslator.js +29 -0
  75. package/es/platform/zform/adapters/presenter/translators/fields/NumberFieldTranslator.js +30 -0
  76. package/es/platform/zform/adapters/presenter/translators/fields/PercentageFieldTranslator.js +30 -0
  77. package/es/platform/zform/adapters/presenter/translators/fields/PhoneFieldTranslator.js +29 -0
  78. package/es/platform/zform/adapters/presenter/translators/fields/PicklistFieldTranslator.js +29 -0
  79. package/es/platform/zform/adapters/presenter/translators/fields/TextAreaFieldTranslator.js +30 -0
  80. package/es/platform/zform/adapters/presenter/translators/fields/TextFieldTranslator.js +27 -0
  81. package/es/platform/zform/adapters/presenter/translators/fields/URLFieldTranslator.js +30 -0
  82. package/es/platform/zform/adapters/presenter/translators/fields/index.js +15 -0
  83. package/es/platform/zform/applications/usecases/MyFormSuccessUseCase.js +3 -1
  84. package/es/platform/zform/domain/ZField.js +61 -16
  85. package/es/platform/zform/domain/ZSection.js +20 -7
  86. package/es/platform/zhttp/applications/usecases/FetchUseCase.js +111 -66
  87. package/es/platform/zlist/adapters/controllers/FieldExecuteFailedController.js +25 -0
  88. package/es/platform/zlist/adapters/controllers/ReOrderController.js +25 -0
  89. package/es/platform/zlist/adapters/controllers/ReOrderFailedController.js +26 -0
  90. package/es/platform/zlist/adapters/gateways/Repository.js +12 -2
  91. package/es/platform/zlist/adapters/gateways/Service.js +8 -0
  92. package/es/platform/zlist/adapters/presenters/TableTranslator.js +15 -4
  93. package/es/platform/zlist/adapters/presenters/translators/ColumnTranslator.js +11 -12
  94. package/es/platform/zlist/adapters/presenters/translators/EmptyViewModel.js +2 -1
  95. package/es/platform/zlist/adapters/presenters/translators/Header.js +3 -2
  96. package/es/platform/zlist/adapters/presenters/translators/HeadersTranslator.js +3 -2
  97. package/es/platform/zlist/adapters/presenters/translators/fields/CurrencyFieldTranslator.js +1 -0
  98. package/es/platform/zlist/adapters/presenters/translators/fields/FormulaFieldTranslator.js +3 -0
  99. package/es/platform/zlist/adapters/presenters/utils/DefaultClientActions.js +1 -1
  100. package/es/platform/zlist/applications/entities-factory/ListFactory.js +3 -2
  101. package/es/platform/zlist/applications/interfaces/input/ReOrderRecordUseCaseInput.js +1 -0
  102. package/es/platform/zlist/applications/usecases/FetchMoreUseCase.js +1 -1
  103. package/es/platform/zlist/applications/usecases/ReOrderFailedUseCase.js +22 -0
  104. package/es/platform/zlist/applications/usecases/ReOrderUseCase.js +25 -0
  105. package/es/platform/zlist/applications/usecases/RecordExecuteFailedUseCase.js +3 -2
  106. package/es/platform/zlist/applications/usecases/RecordSuccessCallbackUsecase.js +24 -3
  107. package/es/platform/zlist/domain/entities/List.js +61 -48
  108. package/es/platform/zlist/domain/entities/ListErrorState.js +167 -0
  109. package/es/platform/zlist/frameworks/EventHandlersFactory.js +13 -3
  110. package/es/platform/zlist/frameworks/ZListBehaviourFactory.js +6 -0
  111. package/es/platform/zrecord/domain/entities/GetReOrderRecordsStrategy.js +40 -0
  112. package/es/platform/zrecord/domain/entities/RecordsManager.js +3 -1
  113. package/package.json +6 -3
@@ -0,0 +1,14 @@
1
+ export let ZHttpErrorSource = /*#__PURE__*/function (ZHttpErrorSource) {
2
+ ZHttpErrorSource["GetResponse"] = "getResponse";
3
+ ZHttpErrorSource["Fetch"] = "fetch";
4
+ return ZHttpErrorSource;
5
+ }({});
6
+ export let ZHttpErrorCode = /*#__PURE__*/function (ZHttpErrorCode) {
7
+ ZHttpErrorCode["UnknownError"] = "UnknownError";
8
+ ZHttpErrorCode["NotFound"] = "NotFound";
9
+ ZHttpErrorCode["InternalServerError"] = "InternalServerError";
10
+ ZHttpErrorCode["ServiceUnavailable"] = "ServiceUnavailable";
11
+ ZHttpErrorCode["NetworkError"] = "NetworkError";
12
+ ZHttpErrorCode["ApiError"] = "ApiError";
13
+ return ZHttpErrorCode;
14
+ }({});
@@ -1,2 +1,4 @@
1
1
  import * as _ZHttpConstants from "./Constants";
2
- export { _ZHttpConstants as ZHttpConstants };
2
+ export { _ZHttpConstants as ZHttpConstants };
3
+ import * as _ZHttpErrors from "./Errors";
4
+ export { _ZHttpErrors as ZHttpErrors };
@@ -7,4 +7,11 @@ export const ZLIST_FETCH_SORTED = 'ZLIST#FETCH_SORTED';
7
7
  export const ZLIST_RECORD_UPDATE_SUCCEEDED = 'ZLIST#RECORD_UPDATE_SUCCEEDED';
8
8
  export const ZLIST_RECORD_UPDATE_FAILED = 'ZLIST#RECORD_UPDATE_FAILED';
9
9
  export const ZLIST_RECORD_DELETE_SUCCEEDED = 'ZLIST#RECORD_DELETE_SUCCEEDED';
10
- export const ZLIST_RECORD_DELETE_FAILED = 'ZLIST#RECORD_DELETE_FAILED';
10
+ export const ZLIST_RECORD_DELETE_FAILED = 'ZLIST#RECORD_DELETE_FAILED';
11
+ export const ZLIST_RECORD_REORDER = 'ZLIST#RECORD_REORDER';
12
+ export const ZLIST_RECORD_REORDER_FAILED = 'ZLIST#RECORD_REORDER_FAILED';
13
+ export const ZLIST_INITIAL_AVAILABLE_FIELDS_FETCH_FAILED = 'ZLIST#INITIAL_AVAILABLE_FIELDS_FETCH_FAILED';
14
+ export const ZLIST_INITIAL_SELECTED_FIELDS_FETCH_FAILED = 'ZLIST#INITIAL_SELECTED_FIELDS_FETCH_FAILED';
15
+ export const ZLIST_INITIAL_RECORDS_FETCH_FAILED = 'ZLIST#INITIAL_RECORDS_FETCH_FAILED';
16
+ export const ZLIST_INITIAL_CLIENT_ACTIONS_FETCH_FAILED = 'ZLIST#INITIAL_CLIENT_ACTIONS_FETCH_FAILED';
17
+ export const ZLIST_FETCH_MORE_RECORDS_FAILED = 'ZLIST#FETCH_MORE_RECORDS_FAILED';
@@ -0,0 +1,140 @@
1
+ import { ZLIST_FETCH_MORE_RECORDS_FAILED, ZLIST_INITIAL_AVAILABLE_FIELDS_FETCH_FAILED, ZLIST_INITIAL_CLIENT_ACTIONS_FETCH_FAILED, ZLIST_INITIAL_RECORDS_FETCH_FAILED, ZLIST_INITIAL_SELECTED_FIELDS_FETCH_FAILED, ZLIST_RECORD_DELETE_FAILED, ZLIST_RECORD_UPDATE_FAILED } from "./Constants";
2
+ export default [{
3
+ type: ZLIST_INITIAL_AVAILABLE_FIELDS_FETCH_FAILED,
4
+ payload: {
5
+ type: 'object',
6
+ properties: {
7
+ error: {
8
+ type: 'object',
9
+ properties: {
10
+ message: {
11
+ type: 'string'
12
+ },
13
+ code: {
14
+ type: 'string'
15
+ }
16
+ }
17
+ }
18
+ }
19
+ }
20
+ }, {
21
+ type: ZLIST_INITIAL_SELECTED_FIELDS_FETCH_FAILED,
22
+ payload: {
23
+ type: 'object',
24
+ properties: {
25
+ error: {
26
+ type: 'object',
27
+ properties: {
28
+ message: {
29
+ type: 'string'
30
+ },
31
+ code: {
32
+ type: 'string'
33
+ }
34
+ }
35
+ }
36
+ }
37
+ }
38
+ }, {
39
+ type: ZLIST_INITIAL_RECORDS_FETCH_FAILED,
40
+ payload: {
41
+ type: 'object',
42
+ properties: {
43
+ error: {
44
+ type: 'object',
45
+ properties: {
46
+ message: {
47
+ type: 'string'
48
+ },
49
+ code: {
50
+ type: 'string'
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }, {
57
+ type: ZLIST_INITIAL_CLIENT_ACTIONS_FETCH_FAILED,
58
+ payload: {
59
+ type: 'object',
60
+ properties: {
61
+ error: {
62
+ type: 'object',
63
+ properties: {
64
+ message: {
65
+ type: 'string'
66
+ },
67
+ code: {
68
+ type: 'string'
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
74
+ }, {
75
+ type: ZLIST_FETCH_MORE_RECORDS_FAILED,
76
+ payload: {
77
+ type: 'object',
78
+ properties: {
79
+ from: {
80
+ type: 'number'
81
+ },
82
+ limit: {
83
+ type: 'number'
84
+ },
85
+ error: {
86
+ type: 'object',
87
+ properties: {
88
+ message: {
89
+ type: 'string'
90
+ },
91
+ code: {
92
+ type: 'string'
93
+ }
94
+ }
95
+ }
96
+ }
97
+ }
98
+ }, {
99
+ type: ZLIST_RECORD_UPDATE_FAILED,
100
+ payload: {
101
+ type: 'object',
102
+ properties: {
103
+ recordId: {
104
+ type: 'string'
105
+ },
106
+ error: {
107
+ type: 'object',
108
+ properties: {
109
+ message: {
110
+ type: 'string'
111
+ },
112
+ code: {
113
+ type: 'string'
114
+ }
115
+ }
116
+ }
117
+ }
118
+ }
119
+ }, {
120
+ type: ZLIST_RECORD_DELETE_FAILED,
121
+ payload: {
122
+ type: 'object',
123
+ properties: {
124
+ recordId: {
125
+ type: 'string'
126
+ },
127
+ error: {
128
+ type: 'object',
129
+ properties: {
130
+ message: {
131
+ type: 'string'
132
+ },
133
+ code: {
134
+ type: 'string'
135
+ }
136
+ }
137
+ }
138
+ }
139
+ }
140
+ }]; // as EventMeta[];
@@ -1,2 +1,3 @@
1
1
  import * as _ZListConstants from "./Constants";
2
- export { _ZListConstants as ZListConstants };
2
+ export { _ZListConstants as ZListConstants };
3
+ export { default as ZListEvents } from "./Events";
@@ -27,4 +27,6 @@ _defineProperty(RecordApiActionName, "UPDATE_RECORD", 'updateRecord');
27
27
 
28
28
  _defineProperty(RecordApiActionName, "GET_CLIENTACTIONS", 'getClientActions');
29
29
 
30
- _defineProperty(RecordApiActionName, "CREATE_RECORD", 'createRecord');
30
+ _defineProperty(RecordApiActionName, "CREATE_RECORD", 'createRecord');
31
+
32
+ _defineProperty(RecordApiActionName, "GET_REORDERRECORD", 'reorderRecord');
@@ -0,0 +1 @@
1
+ export {};
@@ -1,12 +1,14 @@
1
1
  export default function CurrencyFieldModel(_ref) {
2
2
  let {
3
3
  name,
4
+ currencyLocale,
4
5
  value,
5
6
  uiType,
6
7
  appendToActionPayload
7
8
  } = _ref;
8
9
  return {
9
10
  name,
11
+ currencyLocale,
10
12
  appendToActionPayload,
11
13
  type: uiType,
12
14
  value
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  type: {
3
- required: true,
3
+ required: false,
4
4
  typeMetadata: {
5
5
  schema: {
6
6
  anyOf: [// {
@@ -1,12 +1,17 @@
1
+ import FieldTypes from "../field/Types";
1
2
  export default function FormulaFieldModel(_ref) {
2
3
  let {
3
4
  name,
5
+ currencyLocale,
4
6
  value,
5
7
  uiType,
6
8
  appendToActionPayload
7
9
  } = _ref;
8
10
  return {
9
11
  name,
12
+ ...(uiType === FieldTypes.CurrencyField ? {
13
+ currencyLocale
14
+ } : {}),
10
15
  appendToActionPayload,
11
16
  type: uiType,
12
17
  value
package/es/cc/index.js CHANGED
@@ -12,4 +12,5 @@ export * from "./action-icon";
12
12
  export * from "./empty-state";
13
13
  export * from "./textbox";
14
14
  export * from "./textarea";
15
+ export * from "./table-connected";
15
16
  export * from "./fields";
@@ -27,7 +27,6 @@ export default {
27
27
  }
28
28
  },
29
29
  opensNewTab: {
30
- required: true,
31
30
  defaultValue: false,
32
31
  typeMetadata: {
33
32
  schema: {
@@ -0,0 +1,32 @@
1
+ export let ErrorCode = /*#__PURE__*/function (ErrorCode) {
2
+ ErrorCode["FETCH_MORE_RECORDS_FAILED"] = "FETCH_MORE_RECORDS_FAILED";
3
+ ErrorCode["INITIAL_AVAILABLE_FIELDS_FETCH_FAILED"] = "INITIAL_AVAILABLE_FIELDS_FETCH_FAILED";
4
+ ErrorCode["INITIAL_CLIENT_ACTIONS_FETCH_FAILED"] = "INITIAL_CLIENT_ACTIONS_FETCH_FAILED";
5
+ ErrorCode["INITIAL_RECORDS_FETCH_FAILED"] = "INITIAL_RECORDS_FETCH_FAILED";
6
+ ErrorCode["INITIAL_SELECTED_FIELDS_FETCH_FAILED"] = "INITIAL_SELECTED_FIELDS_FETCH_FAILED";
7
+ ErrorCode["RECORD_DELETE_FAILED"] = "RECORD_DELETE_FAILED";
8
+ ErrorCode["RECORD_UPDATE_FAILED"] = "RECORD_UPDATE_FAILED";
9
+ return ErrorCode;
10
+ }({}); // Future error event types can be added here as reference
11
+ // export type RecordsUpdateFailedErrorEvent = {
12
+ // type: typeof ERROR_OCCURRED;
13
+ // payload: {
14
+ // code: ErrorCode.RECORD_UPDATE_FAILED;
15
+ // message: string;
16
+ // errorDetails: {
17
+ // recordIds: string[];
18
+ // error: any;
19
+ // };
20
+ // };
21
+ // };
22
+ // export type RecordsDeleteFailedErrorEvent = {
23
+ // type: typeof ERROR_OCCURRED;
24
+ // payload: {
25
+ // code: ErrorCode.RECORD_DELETE_FAILED;
26
+ // message: string;
27
+ // errorDetails: {
28
+ // recordIds: string[];
29
+ // error: any;
30
+ // };
31
+ // };
32
+ // };
@@ -0,0 +1,96 @@
1
+ import { ZListEvents } from "../../bc/zlist";
2
+ import SmartTableEventConstants from "./constants/Events";
3
+ const {
4
+ DELETE_RECORDS_SUCCESS,
5
+ UPDATE_RECORDS_SUCCESS,
6
+ RECORDS_SELECTED,
7
+ RECORDS_DESELECTED,
8
+ SMART_TABLE_ROW_ACTION_TRIGGERED,
9
+ // TODO: need to change in doc SMART_TABLE#ROW_CLICKED
10
+ SELECTION_LIMIT_EXCEEDED
11
+ } = SmartTableEventConstants;
12
+ export default [...ZListEvents, {
13
+ type: DELETE_RECORDS_SUCCESS,
14
+ payload: {
15
+ type: 'object',
16
+ properties: {
17
+ recordIds: {
18
+ type: 'array',
19
+ items: {
20
+ type: 'string'
21
+ }
22
+ }
23
+ }
24
+ }
25
+ }, {
26
+ type: UPDATE_RECORDS_SUCCESS,
27
+ payload: {
28
+ type: 'object',
29
+ properties: {
30
+ recordIds: {
31
+ type: 'array',
32
+ items: {
33
+ type: 'string'
34
+ }
35
+ },
36
+ updatedFields: {
37
+ type: 'object',
38
+ additionalProperties: true
39
+ }
40
+ }
41
+ }
42
+ }, {
43
+ type: RECORDS_SELECTED,
44
+ payload: {
45
+ type: 'object',
46
+ properties: {
47
+ recordIds: {
48
+ type: 'array',
49
+ items: {
50
+ type: 'string'
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }, {
56
+ type: RECORDS_DESELECTED,
57
+ payload: {
58
+ type: 'object',
59
+ properties: {
60
+ recordIds: {
61
+ type: 'array',
62
+ items: {
63
+ type: 'string'
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }, {
69
+ type: SMART_TABLE_ROW_ACTION_TRIGGERED,
70
+ payload: {
71
+ type: 'object',
72
+ properties: {
73
+ recordId: {
74
+ type: 'string'
75
+ },
76
+ action: {
77
+ type: 'string'
78
+ },
79
+ data: {
80
+ type: 'object',
81
+ additionalProperties: true
82
+ }
83
+ }
84
+ }
85
+ }, {
86
+ type: SELECTION_LIMIT_EXCEEDED,
87
+ payload: {
88
+ type: 'object',
89
+ properties: {
90
+ maxSelectionAllowed: {
91
+ type: 'number'
92
+ }
93
+ },
94
+ required: ['maxSelectionAllowed']
95
+ }
96
+ }]; // as EventMeta[];
@@ -45,6 +45,22 @@ export default {
45
45
  }
46
46
  }
47
47
  },
48
+ reOrderConfig: {
49
+ required: false,
50
+ defaultValue: {
51
+ isEnabled: false
52
+ },
53
+ typeMetadata: {
54
+ schema: {
55
+ type: 'object',
56
+ properties: {
57
+ isEnabled: {
58
+ type: 'boolean'
59
+ }
60
+ }
61
+ }
62
+ }
63
+ },
48
64
  componentMapping: {
49
65
  required: false,
50
66
  defaultValue: {
@@ -0,0 +1,120 @@
1
+ export const SdkContracts = {
2
+ getRecordInputMeta: {
3
+ type: 'object',
4
+ properties: {
5
+ recordId: {
6
+ type: 'string'
7
+ }
8
+ },
9
+ required: ['recordId']
10
+ },
11
+ createRecordInputMeta: {
12
+ type: 'object',
13
+ properties: {
14
+ data: {
15
+ type: 'object'
16
+ }
17
+ },
18
+ required: ['data']
19
+ },
20
+ getContextInputMeta: {
21
+ type: 'object',
22
+ properties: {
23
+ variableName: {
24
+ type: 'string'
25
+ }
26
+ }
27
+ },
28
+ updateRecordInputMeta: {
29
+ type: 'object',
30
+ properties: {
31
+ shouldFetch: {
32
+ type: 'boolean'
33
+ },
34
+ recordId: {
35
+ type: 'string'
36
+ },
37
+ record: {
38
+ type: 'object'
39
+ }
40
+ },
41
+ required: ['recordId', 'record']
42
+ },
43
+ deleteRecordInputMeta: {
44
+ type: 'object',
45
+ properties: {
46
+ recordId: {
47
+ type: 'string'
48
+ }
49
+ },
50
+ required: ['recordId']
51
+ },
52
+ deleteRecordsInputMeta: {
53
+ type: 'object',
54
+ properties: {
55
+ shouldFetch: {
56
+ type: 'boolean'
57
+ },
58
+ recordIds: {
59
+ type: 'array',
60
+ items: {
61
+ type: 'string'
62
+ },
63
+ minItems: 1,
64
+ uniqueItems: true
65
+ }
66
+ },
67
+ required: ['recordIds']
68
+ },
69
+ updateRecordsInputMeta: {
70
+ type: 'object',
71
+ properties: {
72
+ shouldFetch: {
73
+ type: 'boolean'
74
+ },
75
+ recordsMap: {
76
+ type: 'array',
77
+ items: {
78
+ type: 'object',
79
+ properties: {
80
+ id: {
81
+ type: 'string'
82
+ }
83
+ },
84
+ required: ['id']
85
+ },
86
+ minItems: 1,
87
+ uniqueItems: true
88
+ }
89
+ },
90
+ required: ['recordsMap']
91
+ },
92
+ selectRecordsInputMeta: {
93
+ type: 'object',
94
+ properties: {
95
+ ids: {
96
+ type: 'array',
97
+ items: {
98
+ type: 'string'
99
+ },
100
+ minItems: 1,
101
+ uniqueItems: true
102
+ }
103
+ },
104
+ required: ['ids']
105
+ },
106
+ deselectRecordsInputMeta: {
107
+ type: 'object',
108
+ properties: {
109
+ ids: {
110
+ type: 'array',
111
+ items: {
112
+ type: 'string'
113
+ },
114
+ minItems: 1,
115
+ uniqueItems: true
116
+ }
117
+ },
118
+ required: ['ids']
119
+ }
120
+ };
@@ -1,3 +1,4 @@
1
+ export const ERROR_OCCURRED = 'SMART_TABLE#ERROR_OCCURRED';
1
2
  export default {
2
3
  DELETE_RECORDS_SUCCESS: 'SMART_TABLE#RECORD_DELETED',
3
4
  UPDATE_RECORDS_SUCCESS: 'SMART_TABLE#RECORD_UPDATED',
@@ -6,6 +7,7 @@ export default {
6
7
  RECORDS_SELECTED: 'SMART_TABLE#RECORDS_SELECTED',
7
8
  RECORDS_DESELECTED: 'SMART_TABLE#RECORDS_DESELECTED',
8
9
  SMART_TABLE_ROW_ACTION_TRIGGERED: 'SMART_TABLE#ROW_ACTION_TRIGGERED',
10
+ ERROR_OCCURRED,
9
11
  SELECTION_LIMIT_EXCEEDED: 'SMART_TABLE#SELECTION_LIMIT_EXCEEDED'
10
12
  };
11
13
  export const SMART_TABLE_SELECTION_TOGGLED = 'SMART_TABLE#SELECTION_TOGGLED';
@@ -1,4 +1,6 @@
1
+ export { ErrorCode as SmartTableErrorCode } from "./ErrorEventType";
1
2
  import * as _SmartTableConstants from "./constants";
2
3
  export { _SmartTableConstants as SmartTableConstants };
3
4
  import * as _SmartTableProperties from "./Properties";
4
- export { _SmartTableProperties as SmartTableProperties };
5
+ export { _SmartTableProperties as SmartTableProperties };
6
+ export { default as SmartTableEventsContracts } from "./Events";
@@ -22,4 +22,8 @@ _defineProperty(Constants, "TABLE_LIST_FIELD_CHANGED", 'TABLE_LIST#FIELD_CHANGED
22
22
 
23
23
  _defineProperty(Constants, "TABLE_LIST_ROW_CLICKED", 'TABLE_LIST#ROW_CLICKED');
24
24
 
25
+ _defineProperty(Constants, "TABLE_LIST_ROW_DRAG_START", 'TABLE_LIST#ROW_DRAG_START');
26
+
27
+ _defineProperty(Constants, "TABLE_LIST_ROW_DRAG_END", 'TABLE_LIST#ROW_DRAG_END');
28
+
25
29
  export default Constants;
@@ -18,6 +18,15 @@ import PickListProperties from "../fields/pick-list/Properties";
18
18
  import TextProperties from "../fields/text/Properties";
19
19
  import UrlProperties from "../fields/url/Properties";
20
20
  const TableListProperties = {
21
+ isReOrderLoading: {
22
+ required: false,
23
+ typeMetadata: {
24
+ schema: {
25
+ type: 'boolean'
26
+ }
27
+ },
28
+ defaultValue: false
29
+ },
21
30
  isLoading: {
22
31
  required: false,
23
32
  typeMetadata: {
@@ -308,6 +317,22 @@ const TableListProperties = {
308
317
  }
309
318
  }
310
319
  },
320
+ reOrderConfig: {
321
+ required: false,
322
+ defaultValue: {
323
+ isEnabled: false
324
+ },
325
+ typeMetadata: {
326
+ schema: {
327
+ type: 'object',
328
+ properties: {
329
+ isEnabled: {
330
+ type: 'boolean'
331
+ }
332
+ }
333
+ }
334
+ }
335
+ },
311
336
  ...SelectionConfigProperties
312
337
  };
313
338
  export default TableListProperties;
@@ -1,6 +1,15 @@
1
1
  import { Width } from "../data-types/Header";
2
2
  import RowCursor from "../data-types/RowCursor";
3
3
  const TableRowProperties = {
4
+ isReorderEnabled: {
5
+ required: false,
6
+ defaultValue: false,
7
+ typeMetadata: {
8
+ schema: {
9
+ type: 'boolean'
10
+ }
11
+ }
12
+ },
4
13
  isSelectionEnabled: {
5
14
  required: false,
6
15
  defaultValue: false,
@@ -119,6 +128,41 @@ const TableRowProperties = {
119
128
  type: 'boolean'
120
129
  }
121
130
  }
131
+ },
132
+ isSorting: {
133
+ required: false,
134
+ defaultValue: false,
135
+ typeMetadata: {
136
+ schema: {
137
+ type: 'boolean'
138
+ }
139
+ }
140
+ },
141
+ isDroppable: {
142
+ required: false,
143
+ defaultValue: false,
144
+ typeMetadata: {
145
+ schema: {
146
+ type: 'boolean'
147
+ }
148
+ }
149
+ },
150
+ dropPosition: {
151
+ required: false,
152
+ typeMetadata: {
153
+ schema: {
154
+ type: "string"
155
+ }
156
+ }
157
+ },
158
+ isReOrderLoading: {
159
+ required: false,
160
+ defaultValue: false,
161
+ typeMetadata: {
162
+ schema: {
163
+ type: 'boolean'
164
+ }
165
+ }
122
166
  }
123
167
  };
124
168
  export default TableRowProperties;
package/es/index.js CHANGED
@@ -9,4 +9,5 @@ import * as _Components from "./library/dot/legacy-to-new-arch";
9
9
  export { _Components as Components };
10
10
  export { platformSDK } from "./platform/sdk/frameworks/Sdk";
11
11
  export { sdkRegistry } from "./platform/sdk/frameworks/SdkRegistry";
12
- export { validations as defaultFieldValidations } from "./library/behaviours/field-validation/frameworks/utils/FormBasicValidationAdaptor";
12
+ export { validations as defaultFieldValidations } from "./library/behaviours/field-validation/frameworks/utils/FormBasicValidationAdaptor";
13
+ export { getClientActionsAdapter, fetchClientActions } from "./platform/client-actions/components/action-event-mediator/frameworks/ui/ClientActionsAdapter";