cabloy 5.1.169 → 5.1.171
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 +16 -0
- package/package.json +1 -1
- package/repo-e2e/specs/cabloy-basic.spec.ts +45 -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 +177 -500
- package/vona/src/suite/a-training/modules/training-student/src/dto/studentSelectResItem.tsx +4 -0
- package/vona/src/suite/a-training/modules/training-student/test/student.test.ts +5 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/package.json +54 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/.metadata/index.ts +346 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/.metadata/this.ts +2 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/bean/meta.index.ts +12 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/bean/meta.redlock.ts +11 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/bean/meta.version.ts +20 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/controller/layoutprofile.ts +38 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/dto/layoutProfile.tsx +26 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/dto/layoutProfileLoad.tsx +13 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/dto/layoutProfileSave.tsx +31 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/entity/layoutprofile.ts +20 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/index.ts +2 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/model/layoutprofile.ts +10 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/service/layoutprofile.ts +64 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/types/index.ts +1 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/types/layoutprofile.ts +21 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/test/layoutprofile.test.ts +258 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/tsconfig.build.json +11 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-layoutprofile/tsconfig.json +7 -0
- package/vona/src/suite-vendor/a-cabloy/package.json +2 -1
- package/vona/src/suite-vendor/a-cabloy/tsconfig.json +3 -0
- package/zova/packages-zova/zova/package.json +2 -2
- package/zova/pnpm-lock.yaml +37 -22
- package/zova/src/suite/a-home/modules/home-base/src/service/ssrLayout.ts +20 -10
- package/zova/src/suite/cabloy-basic/modules/basic-page/src/component/blockPage/controller.tsx +44 -1
- package/zova/src/suite/cabloy-basic/modules/basic-page/src/component/blockTable/controller.tsx +1 -0
- package/zova/src/suite/cabloy-basic/modules/basic-page/src/component/blockToolbarBulk/controller.tsx +40 -25
- package/zova/src/suite/cabloy-basic/modules/basic-page/src/lib/selection.ts +11 -0
- package/zova/src/suite/cabloy-basic/modules/basic-page/test/lib/selection.test.ts +23 -0
- package/zova/src/suite/cabloy-basic/modules/basic-table/src/.metadata/component/actionColumnConfig.ts +31 -0
- package/zova/src/suite/cabloy-basic/modules/basic-table/src/.metadata/index.ts +25 -12
- package/zova/src/suite/cabloy-basic/modules/basic-table/src/component/actionColumnConfig/controller.tsx +260 -0
- package/zova/src/suite/cabloy-basic/modules/basic-table/src/component/table/render.tsx +3 -3
- package/zova/src/suite/cabloy-basic/modules/basic-table/src/config/locale/en-us.ts +10 -0
- package/zova/src/suite/cabloy-basic/modules/basic-table/src/config/locale/zh-cn.ts +10 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-layoutprofile/cli/openapi.config.ts +9 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-layoutprofile/package.json +53 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/.metadata/index.ts +140 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/.metadata/this.ts +2 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/api/layoutprofile.ts +67 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/api/openapi/baseURL.ts +5 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/api/openapi/index.ts +3 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/api/openapi/schemas.ts +663 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/api/openapi/types.ts +10150 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/apiSchema/layoutprofile.ts +25 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/index.ts +1 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-layoutprofile/src/model/layoutprofile.ts +76 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-layoutprofile/tsconfig.build.json +13 -0
- package/zova/src/suite-vendor/a-cabloy/modules/a-layoutprofile/tsconfig.json +5 -0
- package/zova/src/suite-vendor/a-cabloy/package.json +2 -1
- package/zova/src/suite-vendor/a-zova/modules/a-openapi/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-openapi/src/types/resource/tableActionBulk.ts +3 -0
- package/zova/src/suite-vendor/a-zova/modules/a-ssr/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-ssr/src/lib/bodyReadyObserver.ts +13 -11
- package/zova/src/suite-vendor/a-zova/modules/a-table/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-table/src/component/table/controller.tsx +64 -2
- package/zova/src/suite-vendor/a-zova/modules/a-table/src/component/table/render.tsx +2 -3
- package/zova/src/suite-vendor/a-zova/modules/a-table/src/lib/beanControllerTableBase.ts +10 -0
- package/zova/src/suite-vendor/a-zova/modules/a-table/src/types/index.ts +1 -0
- package/zova/src/suite-vendor/a-zova/modules/a-table/src/types/tableLayout.ts +101 -0
- package/zova/src/suite-vendor/a-zova/modules/a-table/test/lib/tableLayout.test.ts +112 -0
- package/zova/src/suite-vendor/a-zova/package.json +4 -4
package/.cabloy-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
5.1.
|
|
1
|
+
5.1.171
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.1.171
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- Update functionality.
|
|
8
|
+
- Update functionality.
|
|
9
|
+
|
|
10
|
+
## 5.1.170
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- Add CLI column configuration.
|
|
15
|
+
- Add SSR layout support.
|
|
16
|
+
- Add column layout support.
|
|
17
|
+
- Add a resource picker.
|
|
18
|
+
|
|
3
19
|
## 5.1.169
|
|
4
20
|
|
|
5
21
|
### Features
|
package/package.json
CHANGED
|
@@ -273,6 +273,51 @@ test(
|
|
|
273
273
|
},
|
|
274
274
|
);
|
|
275
275
|
|
|
276
|
+
test(
|
|
277
|
+
'ATP-BASIC-SSR-05: Admin sidebar readiness waits for a complete drawer',
|
|
278
|
+
{ tag: ['@admin', '@smoke'] },
|
|
279
|
+
async ({ page }) => {
|
|
280
|
+
await page.setViewportSize({ width: 1440, height: 900 });
|
|
281
|
+
await loginAsAdmin(page);
|
|
282
|
+
const pageErrors = collectPageErrors(page);
|
|
283
|
+
|
|
284
|
+
await page.route(studentResourceUrl, async route => {
|
|
285
|
+
const response = await route.fetch();
|
|
286
|
+
const html = await response.text();
|
|
287
|
+
const body = html.replace(
|
|
288
|
+
'<div class="drawer-side"',
|
|
289
|
+
'<script>const __targets=window.ssr_body_ready_condition?.();if(__targets){window.ssr_body_ready_callback?.(__targets);}</script><div class="drawer-side"',
|
|
290
|
+
);
|
|
291
|
+
expect(body).not.toBe(html);
|
|
292
|
+
await route.fulfill({ response, body });
|
|
293
|
+
});
|
|
294
|
+
try {
|
|
295
|
+
const response = await page.goto('/admin/rest/resource/training-student%3Astudent', {
|
|
296
|
+
waitUntil: 'load',
|
|
297
|
+
});
|
|
298
|
+
expect(response?.ok()).toBeTruthy();
|
|
299
|
+
await expect(page.locator('html')).toHaveAttribute('data-zova-hydrated', 'admin');
|
|
300
|
+
await expect(page.locator('body')).toBeVisible();
|
|
301
|
+
await expect(page.locator('.drawer').first()).toHaveClass(/\bdrawer-open\b/);
|
|
302
|
+
await expect(page.locator('#__leftDrawerOpenJS')).toHaveCount(0);
|
|
303
|
+
await expect(page.locator('#ssr-body-ready-observer')).toHaveCount(0);
|
|
304
|
+
expect(
|
|
305
|
+
await page.evaluate(() => {
|
|
306
|
+
const ssrWindow = window as unknown as Record<string, unknown>;
|
|
307
|
+
return {
|
|
308
|
+
callback: ssrWindow.ssr_body_ready_callback,
|
|
309
|
+
condition: ssrWindow.ssr_body_ready_condition,
|
|
310
|
+
observer: ssrWindow.ssr_bodyReadyObserver,
|
|
311
|
+
};
|
|
312
|
+
}),
|
|
313
|
+
).toEqual({ callback: undefined, condition: undefined, observer: undefined });
|
|
314
|
+
expect(pageErrors).toEqual([]);
|
|
315
|
+
} finally {
|
|
316
|
+
await page.unroute(studentResourceUrl);
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
);
|
|
320
|
+
|
|
276
321
|
test(
|
|
277
322
|
'ATP-BASIC-FLOW-01: Training Student flow filter wraps and submits queries',
|
|
278
323
|
{ tag: ['@admin', '@flow'] },
|
|
@@ -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:actionColumnConfig', {
|
|
48
|
+
permission: { public: true },
|
|
49
|
+
placement: 'end',
|
|
50
|
+
}),
|
|
47
51
|
],
|
|
48
52
|
}),
|
|
49
53
|
ZovaRender.block('basic-page:blockTable'),
|
|
@@ -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:actionColumnConfig', {
|
|
48
|
+
permission: { public: true },
|
|
49
|
+
placement: 'end',
|
|
50
|
+
}),
|
|
47
51
|
],
|
|
48
52
|
}),
|
|
49
53
|
ZovaRender.block('start-page:blockTable'),
|