@jskit-ai/crud-ui-generator 0.1.33 → 0.1.35

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.
@@ -1,7 +1,7 @@
1
1
  export default Object.freeze({
2
2
  packageVersion: 1,
3
3
  packageId: "@jskit-ai/crud-ui-generator",
4
- version: "0.1.33",
4
+ version: "0.1.35",
5
5
  kind: "generator",
6
6
  description: "Generate CRUD route trees from resource validators at an explicit route root relative to src/pages/.",
7
7
  options: {
@@ -168,7 +168,7 @@ export default Object.freeze({
168
168
  mutations: {
169
169
  dependencies: {
170
170
  runtime: {
171
- "@jskit-ai/users-web": "0.1.65"
171
+ "@jskit-ai/users-web": "0.1.67"
172
172
  },
173
173
  dev: {}
174
174
  },
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@jskit-ai/crud-ui-generator",
3
- "version": "0.1.33",
3
+ "version": "0.1.35",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "test": "node --test"
7
7
  },
8
8
  "dependencies": {
9
- "@jskit-ai/crud-core": "0.1.58",
10
- "@jskit-ai/kernel": "0.1.50"
9
+ "@jskit-ai/crud-core": "0.1.60",
10
+ "@jskit-ai/kernel": "0.1.52"
11
11
  },
12
12
  "exports": {
13
13
  "./server/buildTemplateContext": "./src/server/buildTemplateContext.js"
@@ -323,7 +323,8 @@ function buildLookupFormProps(fields = []) {
323
323
  return "";
324
324
  }
325
325
 
326
- return ` :resolve-lookup-items="resolveLookupItems"
326
+ return `
327
+ :resolve-lookup-items="resolveLookupItems"
327
328
  :resolve-lookup-loading="resolveLookupLoading"
328
329
  :resolve-lookup-search="resolveLookupSearch"
329
330
  :set-lookup-search="setLookupSearch"`;
@@ -5,8 +5,7 @@
5
5
  title="Edit __JSKIT_UI_RESOURCE_SINGULAR_TITLE__"
6
6
  subtitle="Update the selected __JSKIT_UI_RESOURCE_SINGULAR_TITLE__."
7
7
  save-label="Save changes"
8
- :cancel-to="cancelTo"
9
- __JSKIT_UI_EDIT_LOOKUP_FORM_PROPS__
8
+ :cancel-to="cancelTo"__JSKIT_UI_EDIT_LOOKUP_FORM_PROPS__
10
9
  />
11
10
  </template>
12
11
 
@@ -5,8 +5,7 @@
5
5
  title="New __JSKIT_UI_RESOURCE_SINGULAR_TITLE__"
6
6
  subtitle="Create a new __JSKIT_UI_RESOURCE_SINGULAR_TITLE__."
7
7
  save-label="Save __JSKIT_UI_RESOURCE_SINGULAR_TITLE__"
8
- :cancel-to="UI_CANCEL_URL"
9
- __JSKIT_UI_CREATE_LOOKUP_FORM_PROPS__
8
+ :cancel-to="UI_CANCEL_URL"__JSKIT_UI_CREATE_LOOKUP_FORM_PROPS__
10
9
  />
11
10
  </template>
12
11
 
@@ -498,6 +498,8 @@ test("buildUiTemplateContext includes lookup runtime placeholders when form fiel
498
498
 
499
499
  assert.match(context.__JSKIT_UI_CREATE_LOOKUP_IMPORT_LINE__, /createCrudLookupFieldRuntime/);
500
500
  assert.match(context.__JSKIT_UI_EDIT_LOOKUP_IMPORT_LINE__, /createCrudLookupFieldRuntime/);
501
+ assert.match(context.__JSKIT_UI_CREATE_LOOKUP_FORM_PROPS__, /^\n :resolve-lookup-items=/);
502
+ assert.match(context.__JSKIT_UI_EDIT_LOOKUP_FORM_PROPS__, /^\n :resolve-lookup-items=/);
501
503
  assert.match(context.__JSKIT_UI_CREATE_LOOKUP_RUNTIME_SETUP__, /resolveLookupItems/);
502
504
  assert.match(context.__JSKIT_UI_EDIT_LOOKUP_RUNTIME_SETUP__, /resolveLookupItems/);
503
505
  assert.match(context.__JSKIT_UI_CREATE_LOOKUP_FORM_PROPS__, /resolve-lookup-items/);