@zohodesk/library-platform 1.1.3-temp-1.1 → 1.1.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.
- package/README.md +1 -1
- package/es/cc/table-connected/SdkContract.js +12 -0
- package/es/library/custom-component/frameworks/object-path-immutable/ImmutableHelper.js +5 -0
- package/es/platform/components/table-connected/adapters/resources/SmartTableResource.js +4 -0
- package/package.json +8 -8
- package/ChangeLogs.md +0 -201
package/README.md
CHANGED
|
@@ -80,4 +80,4 @@ The `TableConnectedFactory.create` method accepts the following parameters:
|
|
|
80
80
|
- **EventHandlersFactory**: Factory to manage event handlers for the component.
|
|
81
81
|
- **Behaviour Factories**: Include various behaviours such as HTTP requests, field management, and list rendering.
|
|
82
82
|
- **ComponentRegistry**: Singleton for managing component instances across your application.
|
|
83
|
-
- **createCustomComponent**: Function to create custom components with necessary dependencies and lifecycle methods.
|
|
83
|
+
- **createCustomComponent**: Function to create custom components with necessary dependencies and lifecycle methods.
|
|
@@ -103,6 +103,18 @@ export const SdkContracts = {
|
|
|
103
103
|
},
|
|
104
104
|
required: ['ids']
|
|
105
105
|
},
|
|
106
|
+
reOrderRecordInputMeta: {
|
|
107
|
+
type: 'object',
|
|
108
|
+
properties: {
|
|
109
|
+
fromIndex: {
|
|
110
|
+
type: 'number'
|
|
111
|
+
},
|
|
112
|
+
toIndex: {
|
|
113
|
+
type: 'number'
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
required: ['fromIndex', 'toIndex']
|
|
117
|
+
},
|
|
106
118
|
deselectRecordsInputMeta: {
|
|
107
119
|
type: 'object',
|
|
108
120
|
properties: {
|
|
@@ -307,6 +307,10 @@ export class SmartTableResource extends AbstractResource {
|
|
|
307
307
|
}
|
|
308
308
|
|
|
309
309
|
reOrderRecord(fromIndex, toIndex) {
|
|
310
|
+
this.validateInput('reOrderRecord', {
|
|
311
|
+
fromIndex,
|
|
312
|
+
toIndex
|
|
313
|
+
}, SdkContracts.reOrderRecordInputMeta);
|
|
310
314
|
const {
|
|
311
315
|
dispatch
|
|
312
316
|
} = this.dependencies;
|
package/package.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/library-platform",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "es/index.js",
|
|
6
6
|
"files": [
|
|
7
|
-
"ChangeLogs.md",
|
|
8
7
|
"es/",
|
|
9
8
|
"!es/*.test.js",
|
|
10
9
|
"!es/*.spec.js"
|
|
@@ -23,7 +22,6 @@
|
|
|
23
22
|
"publish:alpha": "npm publish --tag alpha",
|
|
24
23
|
"publish:beta": "npm publish --tag beta",
|
|
25
24
|
"publish:exp": "npm publish --tag experimental",
|
|
26
|
-
"publish:temp": "npm publish --tag temp",
|
|
27
25
|
"postpublish": "node ./post_publish.js",
|
|
28
26
|
"lint:setup": "ZDPrecommit setupPlugins",
|
|
29
27
|
"lint": "eslint -c .eslintrc.js --ext .ts,.js,.tsx",
|
|
@@ -46,7 +44,7 @@
|
|
|
46
44
|
"@typescript-eslint/parser": "^7.11.0",
|
|
47
45
|
"@zoho/SecurityJS": "5.0.2",
|
|
48
46
|
"@zohodesk-private/css-variable-migrator": "^1.0.7",
|
|
49
|
-
"@zohodesk-private/desk-components": "1.3
|
|
47
|
+
"@zohodesk-private/desk-components": "1.0.0-temp-53.3",
|
|
50
48
|
"@zohodesk-private/node-plugins": "1.1.9",
|
|
51
49
|
"@zohodesk/a11y": "2.2.6",
|
|
52
50
|
"@zohodesk/codestandard-analytics": "0.0.2",
|
|
@@ -56,7 +54,6 @@
|
|
|
56
54
|
"@zohodesk/eslint-plugin-architecturerules": "0.0.5-exp-3",
|
|
57
55
|
"@zohodesk/eslint-plugin-no-hardcoding": "1.0.6",
|
|
58
56
|
"@zohodesk/hooks": "2.0.5",
|
|
59
|
-
"@zohodesk/i18n": "1.0.0-beta.31",
|
|
60
57
|
"@zohodesk/icons": "1.0.72",
|
|
61
58
|
"@zohodesk/layout": "3.1.0",
|
|
62
59
|
"@zohodesk/svg": "1.1.27",
|
|
@@ -79,7 +76,7 @@
|
|
|
79
76
|
"typescript": "4.9.5"
|
|
80
77
|
},
|
|
81
78
|
"peerDependencies": {
|
|
82
|
-
"@zohodesk-private/desk-components": "1.3
|
|
79
|
+
"@zohodesk-private/desk-components": "1.0.0-temp-53.3",
|
|
83
80
|
"@zohodesk/a11y": "2.2.6",
|
|
84
81
|
"@zohodesk/components": "1.2.62",
|
|
85
82
|
"@zohodesk/dot": "1.7.8",
|
|
@@ -90,10 +87,13 @@
|
|
|
90
87
|
"@zohodesk/svg": "1.1.27",
|
|
91
88
|
"@zohodesk/utils": "1.3.14",
|
|
92
89
|
"color": "4.2.3",
|
|
93
|
-
"jsep": "0.3.5",
|
|
94
90
|
"react-sortable-hoc": "1.11.0"
|
|
95
91
|
},
|
|
96
92
|
"dependencies": {
|
|
97
|
-
"
|
|
93
|
+
"@zohodesk/i18n": "^1.0.0-beta.33",
|
|
94
|
+
"ajv": "6.12.6",
|
|
95
|
+
"array-move": "^4.0.0",
|
|
96
|
+
"jsep": "0.3.5",
|
|
97
|
+
"object-path-immutable": "4.1.2"
|
|
98
98
|
}
|
|
99
99
|
}
|
package/ChangeLogs.md
DELETED
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
# Change Logs
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### 1.1.3-exp.4
|
|
5
|
-
**Issue Fix**
|
|
6
|
-
- Global SDK
|
|
7
|
-
- i18n support
|
|
8
|
-
- custom-component props translator
|
|
9
|
-
|
|
10
|
-
- supported client actions context variable recordsLength ex : {{@context.recordsLength}}
|
|
11
|
-
-
|
|
12
|
-
**Breaking Changes**
|
|
13
|
-
- removed `desk-frameworks` and moved TableConnected and FormConnected into `platform/components` folder, So you should only import package not path inside (NOTE: those are un recommenced way, So we removed )
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
### 1.1.3-exp.1
|
|
17
|
-
**Issue Fix**
|
|
18
|
-
- Global SDK
|
|
19
|
-
- i18n support
|
|
20
|
-
- custom-component props translator
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
### 1.1.4 – Context resolution fix
|
|
24
|
-
- Fixed: Resolved an issue where "record.name" was working for condition field in client action instead of {{@context.record.name}}.
|
|
25
|
-
|
|
26
|
-
- Syntax matches documentation for condition field in client actions
|
|
27
|
-
|
|
28
|
-
### 1.1.3 – Bug Fixes
|
|
29
|
-
- Fixed: Resolved an issue in infinite scroll where API calls were repeatedly triggered unnecessarily or failed to stop at the end of the list.
|
|
30
|
-
|
|
31
|
-
- Prevented redundant API calls during fast scroll.
|
|
32
|
-
- Ensured correct detection of end-of-data to stop further fetching.
|
|
33
|
-
|
|
34
|
-
### 1.1.2-exp.0
|
|
35
|
-
**Issue Fix**
|
|
36
|
-
- More scroll issue fix (record-api infinite fail handling)
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
### 1.1.2
|
|
40
|
-
**Feature**
|
|
41
|
-
- In core component , Added the SLOT
|
|
42
|
-
### 1.1.1-exp.6
|
|
43
|
-
**Feature**
|
|
44
|
-
- Supported the `routing` param in `context` for **filter** and added the **TableColumnFilter** component for client actions.
|
|
45
|
-
|
|
46
|
-
## 🔄 Breaking Changes
|
|
47
|
-
|
|
48
|
-
### 1. `dataBroker` → `dataSource`
|
|
49
|
-
- **Old:** `dataBroker` → **New:** `dataSource`
|
|
50
|
-
- **Update your configurations to use `dataSource` instead of `dataBroker`.**
|
|
51
|
-
|
|
52
|
-
### 2. `limit` (Deprecated)
|
|
53
|
-
- **`limit` is now deprecated.**
|
|
54
|
-
- **Module-based usage:** Fetch count is managed internally.
|
|
55
|
-
- **Non-module use cases:** Use `get-records` in `apiTemplates` for customization.
|
|
56
|
-
|
|
57
|
-
### 3. `uiMapping` → `componentMapping`
|
|
58
|
-
- **Old:** `uiMapping` → **New:** `componentMapping`
|
|
59
|
-
- **Customization for fields, `emptyState`, and UI parts.**
|
|
60
|
-
- **Row Actions:** Now handled through `clientActions` (deprecated in `componentMapping`).
|
|
61
|
-
|
|
62
|
-
### 4. `pageContext` → `context`
|
|
63
|
-
- **Old:** `pageContext` → **New:** `context`
|
|
64
|
-
- **Used for variable replacement in `apiTemplates` and `clientActions`.**
|
|
65
|
-
- **Allowed Keys:** `departmentName`, `orgName`, `orgId`
|
|
66
|
-
|
|
67
|
-
### 5. `record.name`,`field.name`,`departmentId` → `{{@context.record.name}}`,`{{@context.field.name}}`,`{{@context.departmentId}}`
|
|
68
|
-
- **Old:** `record.name`,`field.name`,`departmentId` → **New:** `{{@context.record.name}}`,`{{@context.field.name}}`,`{{@context.departmentId}}`
|
|
69
|
-
- **Used for variable replacement in `clientActions`.**
|
|
70
|
-
- **Allowed Keys:** `departmentName`, `orgName`, `orgId`,`record`,`field`
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
## 📥 Filter Changes
|
|
74
|
-
- **`departmentId` and `viewId` moved to top-level properties in `smart-table-list`.**
|
|
75
|
-
- **On `departmentId` change:** Fields & records are re-fetched.
|
|
76
|
-
- **On `viewId` change:** Only records are re-fetched (UI updates on client-side).
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
## 🛠️ New: `preference` Object
|
|
80
|
-
- **Holds user-facing display preferences.**
|
|
81
|
-
- **`isFlexibleColumns` moved to `preference.autoColumnSizing`.**
|
|
82
|
-
- **`autoColumnSizing` (boolean):** Adjusts column width to fit content (avoids scrolling).
|
|
83
|
-
|
|
84
|
-
**Feature**
|
|
85
|
-
|
|
86
|
-
- Row Actions `properties` template support added
|
|
87
|
-
|
|
88
|
-
**Internal Changes**
|
|
89
|
-
|
|
90
|
-
- Component and Behaviour properties are merged in custom-component
|
|
91
|
-
- defaultValue not assigned from JSON schema - **Issue Fixed**
|
|
92
|
-
- In Row data, "rowActions" renamed as "rowActionLocation"
|
|
93
|
-
- Properties properly defined for table-list, table-connected, action-location, zlist, zhttp, sort-by, list-selection
|
|
94
|
-
- `PropertiesConverter` implemented in cc/component
|
|
95
|
-
- refactor: update field types to use simplified naming conventions
|
|
96
|
-
- chore: remove unused redux-modules dependency and update testing libraries
|
|
97
|
-
- TableListView - hasRowActions property removed. rowActionsConfig property added with hasActions and columnWidth.
|
|
98
|
-
- Column size and align translator added
|
|
99
|
-
- `rowCursor` property introduced in the TableListView
|
|
100
|
-
- TableListView - Select All checkbox component updated
|
|
101
|
-
- TableListView - Header size property updated as width
|
|
102
|
-
|
|
103
|
-
**Bug Fixes**
|
|
104
|
-
|
|
105
|
-
- Set initial state not working for SortBy behaviour - **Issue Fixed**
|
|
106
|
-
|
|
107
|
-
### `1.0.2`
|
|
108
|
-
|
|
109
|
-
**Changes**:
|
|
110
|
-
add new exports for BC and CC modules, including SortBy and ZHttp constants
|
|
111
|
-
|
|
112
|
-
### `1.0.1`
|
|
113
|
-
|
|
114
|
-
**Changes**: add new index files for BC and CC modules, export field properties and components
|
|
115
|
-
|
|
116
|
-
**Bug Fixes**
|
|
117
|
-
|
|
118
|
-
Resolved an issue with case-sensitive file names in the npm registry that was causing errors with the **cases-sensitive-webpack-plugin**. The following files were affected due to discrepancies in case sensitivity:
|
|
119
|
-
|
|
120
|
-
- `@zohodesk/library-platform/es/platform/data-broker/utils/transformer/CreateCf.js`
|
|
121
|
-
- `@zohodesk/library-platform/es/platform/data-broker/utils/transformer/createCf.js`
|
|
122
|
-
- `@zohodesk/library-platform/es/platform/data-broker/utils/transformer/Transformer.js`
|
|
123
|
-
- `@zohodesk/library-platform/es/platform/data-broker/utils/transformer/transformer.js`
|
|
124
|
-
|
|
125
|
-
The case sensitivity issue has now been fixed.
|
|
126
|
-
|
|
127
|
-
### `1.0.0`
|
|
128
|
-
|
|
129
|
-
with changes from `1.0.0-exp.6`
|
|
130
|
-
**Features:**
|
|
131
|
-
|
|
132
|
-
- From this version on below fields custom events will receive `rowId` as payload on table level event listeners
|
|
133
|
-
- Currency
|
|
134
|
-
- SingleLine
|
|
135
|
-
- MultiLine
|
|
136
|
-
- Number
|
|
137
|
-
- Decimal
|
|
138
|
-
- URL
|
|
139
|
-
- Email
|
|
140
|
-
- Phone
|
|
141
|
-
- Currency
|
|
142
|
-
- Percentage
|
|
143
|
-
- Date
|
|
144
|
-
- DateTime
|
|
145
|
-
- PickList
|
|
146
|
-
- MultiSelect
|
|
147
|
-
- LookUp
|
|
148
|
-
|
|
149
|
-
**Bug Fixes**
|
|
150
|
-
|
|
151
|
-
- in http-behaviour if fetch response status code 422 or some similar status code did not consider
|
|
152
|
-
as failed **issue fixed**
|
|
153
|
-
|
|
154
|
-
**Internal Changes**
|
|
155
|
-
|
|
156
|
-
- add initial interfaces and types for zdata-broker module
|
|
157
|
-
- zdata-broker behaviour separated form zrecord and zfield
|
|
158
|
-
- add FetchStateStop use case and controller, enhance event handling
|
|
159
|
-
|
|
160
|
-
### `1.0.0-exp.6`
|
|
161
|
-
|
|
162
|
-
with changes from `1.0.0-exp.4`
|
|
163
|
-
**Features:**
|
|
164
|
-
|
|
165
|
-
- `isFlexibleColumns` support added for TableConnected
|
|
166
|
-
|
|
167
|
-
**Bug Fixes**
|
|
168
|
-
|
|
169
|
-
- in record actions post and patch request goes as GET **issue fixed**
|
|
170
|
-
|
|
171
|
-
### `1.0.0-exp.4`
|
|
172
|
-
|
|
173
|
-
**Features:**
|
|
174
|
-
|
|
175
|
-
- `getRecord` zlist sdk added
|
|
176
|
-
- `deleteRecord` zlist sdk added
|
|
177
|
-
- Success and Failure Events of updateRecord and deleteRecord support added
|
|
178
|
-
- `ZLIST#RECORD_UPDATE_SUCCEEDED`
|
|
179
|
-
- `ZLIST#RECORD_UPDATE_FAILED`
|
|
180
|
-
- `ZLIST#RECORD_DELETE_SUCCEEDED`
|
|
181
|
-
- `ZLIST#RECORD_DELETE_FAILED`
|
|
182
|
-
- **Boolean** Field appendToActionPayload logic added for custom event, for table level event listen and `rowId` payload
|
|
183
|
-
- data-broker `getResponse` support for json support added
|
|
184
|
-
|
|
185
|
-
**Bug Fixes**
|
|
186
|
-
|
|
187
|
-
- unwanted loading state other then Record Fetch removed
|
|
188
|
-
- no content `records` api 204 issue fix
|
|
189
|
-
- when refetch triggered before record success then refetch and record Fetch data both appended issue fixed
|
|
190
|
-
- when next record Fetch call from value triggered one number previous, So duplicate data added end of each set next record request
|
|
191
|
-
|
|
192
|
-
### `1.0.0-exp.2`
|
|
193
|
-
|
|
194
|
-
#### Added
|
|
195
|
-
|
|
196
|
-
- Initial experimental release.
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
***Features:**
|
|
200
|
-
|
|
201
|
-
- `Client Action : zclient-actions` behaviour added
|