@zohodesk/library-platform 1.1.3-exp.2 → 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 (93) 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 +6 -1
  4. package/es/bc/zlist/Events.js +140 -0
  5. package/es/bc/zlist/index.js +2 -1
  6. package/es/cc/component/FallbackView.js +1 -0
  7. package/es/cc/fields/currency/Model.js +2 -0
  8. package/es/cc/fields/field/Properties.js +1 -1
  9. package/es/cc/fields/formula/Model.js +5 -0
  10. package/es/cc/index.js +1 -0
  11. package/es/cc/link/Properties.js +0 -1
  12. package/es/cc/table-connected/ErrorEventType.js +32 -0
  13. package/es/cc/table-connected/Events.js +96 -0
  14. package/es/cc/table-connected/SdkContract.js +120 -0
  15. package/es/cc/table-connected/constants/Events.js +2 -0
  16. package/es/cc/table-connected/index.js +3 -1
  17. package/es/cc/table-list/Properties.js +9 -0
  18. package/es/cc/table-list/row/Properties.js +9 -0
  19. package/es/index.js +2 -1
  20. package/es/library/custom-component/adapters/gateways/event-manager/EventManager.js +116 -4
  21. package/es/library/custom-component/applications/interfaces/gateways/ISchemaValidator.js +1 -0
  22. package/es/library/custom-component/applications/usecases/InitializeUseCase.js +3 -2
  23. package/es/library/custom-component/applications/usecases/UpdatePropertyUseCase.js +3 -2
  24. package/es/library/custom-component/domain/entities/Component.js +16 -3
  25. package/es/library/custom-component/domain/entities/Properties.js +19 -1
  26. package/es/library/custom-component/frameworks/json-schema-validator/Validator.js +36 -1
  27. package/es/library/custom-component/frameworks/ui/CreateCustomComponent.js +23 -11
  28. package/es/library/custom-component/frameworks/ui/DependencyFactory.js +4 -3
  29. package/es/library/dot/components/table-list/frameworks/hooks/useRowData.js +12 -5
  30. package/es/library/dot/components/table-list/frameworks/hooks/useTableRowReorder.js +17 -5
  31. package/es/library/dot/components/table-list/frameworks/ui/TableListView.js +35 -26
  32. package/es/library/dot/components/table-list/frameworks/ui/css/TableList.module.css +152 -56
  33. package/es/library/dot/components/table-list/frameworks/ui/sub-components/Header.js +22 -16
  34. package/es/library/dot/components/table-list/frameworks/ui/sub-components/Rows.js +7 -4
  35. package/es/library/dot/components/table-list/frameworks/ui/sub-components/header/MassAction.js +5 -13
  36. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/Row.js +31 -34
  37. package/es/library/dot/components/table-list/frameworks/ui/sub-components/row/RowSelection.js +3 -8
  38. package/es/library/dot/components/table-list/frameworks/utils/getHeaderClasses.js +37 -0
  39. package/es/library/dot/components/table-list/frameworks/utils/getTableListClassName.js +37 -0
  40. package/es/library/dot/components/table-list/frameworks/utils/reOrder.js +28 -14
  41. package/es/library/dot/legacy-to-new-arch/text-area/frameworks/ui/TextAreaView.js +1 -1
  42. package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/ClientActionsAdapter.js +96 -0
  43. package/es/platform/client-actions/components/action-event-mediator/frameworks/ui/EventHandlersFactory.js +11 -3
  44. package/es/platform/client-actions/template-resolver/index.js +1 -0
  45. package/es/platform/client-actions/translators/context-resolver/index.js +6 -6
  46. package/es/platform/components/table-connected/adapters/controllers/ColumnChooserOpenedController.js +1 -1
  47. package/es/platform/components/table-connected/adapters/resources/ErrorPrinter.js +20 -0
  48. package/es/platform/components/table-connected/adapters/resources/SmartTableResource.js +71 -0
  49. package/es/platform/components/table-connected/frameworks/ErrorEventHandlersFactory.js +126 -0
  50. package/es/platform/components/table-connected/frameworks/EventHandlersFactory.js +34 -1
  51. package/es/platform/components/table-connected/frameworks/TableConnectedFactory.js +2 -0
  52. package/es/platform/components/table-connected/frameworks/TableConnectedView.js +5 -1
  53. package/es/platform/zdata-source/domain/entities/DataSource.js +18 -12
  54. package/es/platform/zfield/domain/entities/fields-manager/FieldsManager.js +7 -1
  55. package/es/platform/zform/adapters/presenter/FormTranslator.js +6 -127
  56. package/es/platform/zform/adapters/presenter/translators/SectionTranslator.js +32 -0
  57. package/es/platform/zform/adapters/presenter/translators/fields/BooleanFieldTranslator.js +20 -0
  58. package/es/platform/zform/adapters/presenter/translators/fields/CurrencyFieldTranslator.js +29 -0
  59. package/es/platform/zform/adapters/presenter/translators/fields/DateFieldTranslator.js +20 -0
  60. package/es/platform/zform/adapters/presenter/translators/fields/DateTimeFieldTranslator.js +21 -0
  61. package/es/platform/zform/adapters/presenter/translators/fields/DecimalFieldTranslator.js +29 -0
  62. package/es/platform/zform/adapters/presenter/translators/fields/EmailFieldTranslator.js +30 -0
  63. package/es/platform/zform/adapters/presenter/translators/fields/LookUpFieldTranslator.js +30 -0
  64. package/es/platform/zform/adapters/presenter/translators/fields/MultiselectFieldTranslator.js +29 -0
  65. package/es/platform/zform/adapters/presenter/translators/fields/NumberFieldTranslator.js +30 -0
  66. package/es/platform/zform/adapters/presenter/translators/fields/PercentageFieldTranslator.js +30 -0
  67. package/es/platform/zform/adapters/presenter/translators/fields/PhoneFieldTranslator.js +29 -0
  68. package/es/platform/zform/adapters/presenter/translators/fields/PicklistFieldTranslator.js +29 -0
  69. package/es/platform/zform/adapters/presenter/translators/fields/TextAreaFieldTranslator.js +30 -0
  70. package/es/platform/zform/adapters/presenter/translators/fields/TextFieldTranslator.js +27 -0
  71. package/es/platform/zform/adapters/presenter/translators/fields/URLFieldTranslator.js +30 -0
  72. package/es/platform/zform/adapters/presenter/translators/fields/index.js +15 -0
  73. package/es/platform/zform/applications/usecases/MyFormSuccessUseCase.js +3 -1
  74. package/es/platform/zform/domain/ZField.js +61 -16
  75. package/es/platform/zform/domain/ZSection.js +20 -7
  76. package/es/platform/zhttp/applications/usecases/FetchUseCase.js +111 -66
  77. package/es/platform/zlist/adapters/controllers/FieldExecuteFailedController.js +25 -0
  78. package/es/platform/zlist/adapters/gateways/Repository.js +5 -2
  79. package/es/platform/zlist/adapters/presenters/TableTranslator.js +12 -5
  80. package/es/platform/zlist/adapters/presenters/translators/ColumnTranslator.js +2 -2
  81. package/es/platform/zlist/adapters/presenters/translators/EmptyViewModel.js +2 -1
  82. package/es/platform/zlist/adapters/presenters/translators/Header.js +3 -2
  83. package/es/platform/zlist/adapters/presenters/translators/HeadersTranslator.js +3 -2
  84. package/es/platform/zlist/adapters/presenters/translators/fields/CurrencyFieldTranslator.js +1 -0
  85. package/es/platform/zlist/adapters/presenters/translators/fields/FormulaFieldTranslator.js +3 -0
  86. package/es/platform/zlist/applications/entities-factory/ListFactory.js +3 -2
  87. package/es/platform/zlist/applications/usecases/FetchMoreUseCase.js +1 -1
  88. package/es/platform/zlist/applications/usecases/RecordExecuteFailedUseCase.js +3 -2
  89. package/es/platform/zlist/domain/entities/List.js +12 -63
  90. package/es/platform/zlist/domain/entities/ListErrorState.js +167 -0
  91. package/es/platform/zlist/frameworks/EventHandlersFactory.js +6 -0
  92. package/es/platform/zlist/frameworks/ZListBehaviourFactory.js +6 -1
  93. package/package.json +3 -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 };
@@ -9,4 +9,9 @@ export const ZLIST_RECORD_UPDATE_FAILED = 'ZLIST#RECORD_UPDATE_FAILED';
9
9
  export const ZLIST_RECORD_DELETE_SUCCEEDED = 'ZLIST#RECORD_DELETE_SUCCEEDED';
10
10
  export const ZLIST_RECORD_DELETE_FAILED = 'ZLIST#RECORD_DELETE_FAILED';
11
11
  export const ZLIST_RECORD_REORDER = 'ZLIST#RECORD_REORDER';
12
- export const ZLIST_RECORD_REORDER_FAILED = 'ZLIST#RECORD_REORDER_FAILED';
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";
@@ -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[];
@@ -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";
@@ -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: {
@@ -154,6 +154,15 @@ const TableRowProperties = {
154
154
  type: "string"
155
155
  }
156
156
  }
157
+ },
158
+ isReOrderLoading: {
159
+ required: false,
160
+ defaultValue: false,
161
+ typeMetadata: {
162
+ schema: {
163
+ type: 'boolean'
164
+ }
165
+ }
157
166
  }
158
167
  };
159
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";