cabloy 5.1.170 → 5.1.172
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/.cabloy-version +1 -1
- package/CHANGELOG.md +19 -0
- package/package.json +1 -1
- package/repo-docs/frontend/table-guide.md +26 -0
- package/vona/packages-cli/cli/package.json +1 -1
- package/vona/packages-cli/cli-set-api/cli/templates/tools/crudBasic/boilerplate/src/dto/{{resourceName}}SelectResItem.tsx_ +4 -0
- package/vona/packages-cli/cli-set-api/cli/templates/tools/crudStart/boilerplate/src/dto/{{resourceName}}SelectResItem.tsx_ +4 -0
- package/vona/packages-cli/cli-set-api/package.json +1 -1
- package/vona/pnpm-lock.yaml +131 -404
- package/vona/src/suite/a-training/modules/training-student/src/dto/studentSelectResItem.tsx +5 -1
- package/vona/src/suite/a-training/modules/training-student/test/student.test.ts +5 -0
- package/zova/packages-cli/cli/package.json +2 -2
- package/zova/packages-cli/cli-set-front/package.json +1 -1
- package/zova/packages-cli/cli-set-front/src/lib/bean/cli.bin.buildRest.ts +14 -3
- package/zova/pnpm-lock.yaml +19 -19
- package/zova/src/suite/cabloy-basic/modules/basic-table/src/.metadata/component/actionRefresh.ts +31 -0
- package/zova/src/suite/cabloy-basic/modules/basic-table/src/.metadata/index.ts +13 -0
- package/zova/src/suite/cabloy-basic/modules/basic-table/src/component/actionRefresh/controller.tsx +42 -0
- package/zova/src/suite/cabloy-basic/modules/basic-table/src/config/locale/en-us.ts +1 -0
- package/zova/src/suite/cabloy-basic/modules/basic-table/src/config/locale/zh-cn.ts +1 -0
package/.cabloy-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
5.1.
|
|
1
|
+
5.1.172
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.1.172
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- Add action refresh capabilities.
|
|
8
|
+
- Add update functionality.
|
|
9
|
+
|
|
10
|
+
### Improvements
|
|
11
|
+
|
|
12
|
+
- Update the table guide documentation.
|
|
13
|
+
- Improve REST build handling in the CLI.
|
|
14
|
+
|
|
15
|
+
## 5.1.171
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
- Update functionality.
|
|
20
|
+
- Update functionality.
|
|
21
|
+
|
|
3
22
|
## 5.1.170
|
|
4
23
|
|
|
5
24
|
### Features
|
package/package.json
CHANGED
|
@@ -245,6 +245,32 @@ In the shared table CEL scope, `getValue(name)` reads the current row value and
|
|
|
245
245
|
|
|
246
246
|
For the schema side of that contract, also see [API Schema Guide](/frontend/api-schema-guide).
|
|
247
247
|
|
|
248
|
+
## Persisted per-user column layouts
|
|
249
|
+
|
|
250
|
+
`ZovaRender.column(...)` defines the schema defaults for column visibility, order, width, and fixed regions. On a standard resource list page, an authenticated user can personalize those defaults through the **Column Configuration** toolbar action. The saved layout is scoped to that user and the current page route path, then restored on later visits.
|
|
251
|
+
|
|
252
|
+
| Edition | Toolbar block | Column-configuration action |
|
|
253
|
+
| ------------ | ----------------------------- | -------------------------------- |
|
|
254
|
+
| Cabloy Basic | `basic-page:blockToolbarBulk` | `basic-table:actionColumnConfig` |
|
|
255
|
+
| Cabloy Start | `start-page:blockToolbarBulk` | `start-table:actionColumnConfig` |
|
|
256
|
+
|
|
257
|
+
For example, in Cabloy Basic:
|
|
258
|
+
|
|
259
|
+
```ts
|
|
260
|
+
ZovaRender.tableActionBulk('basic-table:actionColumnConfig', {
|
|
261
|
+
permission: { public: true },
|
|
262
|
+
placement: 'end',
|
|
263
|
+
});
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
In Cabloy Start, use `start-table:actionColumnConfig` in the corresponding `start-page:blockToolbarBulk`. `permission: { public: true }` controls action discoverability in the toolbar; loading and saving a personal layout still require an authenticated user.
|
|
267
|
+
|
|
268
|
+
The dialog lets the user show or hide eligible columns, choose a numeric or automatic width, and reorder columns within their schema-defined left, center, or right fixed region. **Save** persists the layout. **Reset** removes the saved profile and restores the current schema defaults.
|
|
269
|
+
|
|
270
|
+
Schema metadata remains authoritative. When the schema changes, stale or malformed saved entries are discarded, newly eligible schema columns are appended with their defaults, fixed regions are preserved, and the synthetic row-selection column is never persisted.
|
|
271
|
+
|
|
272
|
+
Automatic loading, saving, and resetting belong to the standard resource-page `blockPage` flow. A direct `ZTable` consumer can pass a `layout`, but it owns any persistence workflow itself. Current CRUD generators add the edition-appropriate column-configuration action.
|
|
273
|
+
|
|
248
274
|
## Step 5: Use built-in or custom `tableCell` render resources
|
|
249
275
|
|
|
250
276
|
A column render is usually chosen through schema metadata such as:
|
|
@@ -44,6 +44,10 @@ export interface IDtoOptions<%=argv.resourceNameCapitalize%>SelectResItem extend
|
|
|
44
44
|
requiresSelection: true,
|
|
45
45
|
selectedMaxIds: 100,
|
|
46
46
|
}),
|
|
47
|
+
ZovaRender.tableActionBulk('basic-table:actionRefresh', {
|
|
48
|
+
permission: { public: true },
|
|
49
|
+
placement: 'end',
|
|
50
|
+
}),
|
|
47
51
|
ZovaRender.tableActionBulk('basic-table:actionColumnConfig', {
|
|
48
52
|
permission: { public: true },
|
|
49
53
|
placement: 'end',
|
|
@@ -44,6 +44,10 @@ export interface IDtoOptions<%=argv.resourceNameCapitalize%>SelectResItem extend
|
|
|
44
44
|
requiresSelection: true,
|
|
45
45
|
selectedMaxIds: 100,
|
|
46
46
|
}),
|
|
47
|
+
ZovaRender.tableActionBulk('start-table:actionRefresh', {
|
|
48
|
+
permission: { public: true },
|
|
49
|
+
placement: 'end',
|
|
50
|
+
}),
|
|
47
51
|
ZovaRender.tableActionBulk('start-table:actionColumnConfig', {
|
|
48
52
|
permission: { public: true },
|
|
49
53
|
placement: 'end',
|