@atscript/ui 0.1.110 → 0.1.112

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/dist/plugin.cjs CHANGED
@@ -124,7 +124,8 @@ const uiAnnotations = { ui: {
124
124
  }),
125
125
  disabled: new _atscript_core.AnnotationSpec({
126
126
  description: "Statically mark this field as disabled in the form.",
127
- nodeType: ["prop", "type"]
127
+ nodeType: ["prop", "type"],
128
+ passedWhenReferred: false
128
129
  }),
129
130
  options: new _atscript_core.AnnotationSpec({
130
131
  description: "Static option for select/radio fields. Repeat for each option. Label is the display text, value is the key (defaults to label).",
@@ -145,6 +146,7 @@ const uiAnnotations = { ui: {
145
146
  order: new _atscript_core.AnnotationSpec({
146
147
  description: "Explicit form-field ordering (lower values render first).",
147
148
  nodeType: ["prop", "type"],
149
+ passedWhenReferred: false,
148
150
  argument: {
149
151
  name: "order",
150
152
  type: "number",
@@ -175,7 +177,8 @@ const uiAnnotations = { ui: {
175
177
  }),
176
178
  hidden: new _atscript_core.AnnotationSpec({
177
179
  description: "Statically hide this field in the form.",
178
- nodeType: ["prop", "type"]
180
+ nodeType: ["prop", "type"],
181
+ passedWhenReferred: false
179
182
  }),
180
183
  attr: new _atscript_core.AnnotationSpec({
181
184
  description: "Custom attribute or component prop applied to the form input. Repeat for each attr. Passed via v-bind.",
@@ -275,6 +278,7 @@ const uiAnnotations = { ui: {
275
278
  ref: new _atscript_core.AnnotationSpec({
276
279
  description: "**Sibling-field reference** for the prefix adornment. The string argument is the name of another field on the same parent whose value will be displayed as the prefix at runtime. `@ui.form.prefix` wins over `@ui.form.prefix.ref` when both are present.\n\n**Example:**\n```atscript\ncountryCode: string\n@ui.form.prefix.ref \"countryCode\"\nphone: string\n```\n",
277
280
  nodeType: ["prop", "type"],
281
+ passedWhenReferred: false,
278
282
  argument: {
279
283
  name: "field",
280
284
  type: "string",
@@ -304,6 +308,7 @@ const uiAnnotations = { ui: {
304
308
  ref: new _atscript_core.AnnotationSpec({
305
309
  description: "**Sibling-field reference** for the suffix adornment. The string argument is the name of another field on the same parent whose value will be displayed as the suffix at runtime. `@ui.form.suffix` wins over `@ui.form.suffix.ref` when both are present.\n\n**Example:**\n```atscript\nunit: 'kg' | 'lb'\n@ui.form.suffix.ref \"unit\"\nweight: number\n```\n",
306
310
  nodeType: ["prop", "type"],
311
+ passedWhenReferred: false,
307
312
  argument: {
308
313
  name: "field",
309
314
  type: "string",
@@ -346,7 +351,8 @@ const uiAnnotations = { ui: {
346
351
  }),
347
352
  exclude: new _atscript_core.AnnotationSpec({
348
353
  description: "Completely removes this field from the table — not displayable, filterable, or sortable, and not shown in the config dialog. The field stays in the type and remains a valid `@ui.table.selectWith` target so its data can still be fetched for custom cells.",
349
- nodeType: ["prop", "type"]
354
+ nodeType: ["prop", "type"],
355
+ passedWhenReferred: false
350
356
  }),
351
357
  attr: new _atscript_core.AnnotationSpec({
352
358
  description: "Custom attribute or component prop applied to the rendered `<td>`. Repeat for each attr. Passed via v-bind.",
@@ -379,7 +385,7 @@ const uiAnnotations = { ui: {
379
385
  }
380
386
  }),
381
387
  selectWith: new _atscript_core.AnnotationSpec({
382
- description: "Extra sibling leaf field paths to include in the table `$select` whenever this column is displayed. These fields are fetched but never rendered as their own columns — use them to back a custom cell renderer or formatter. Multiple `@ui.table.selectWith` annotations are appended.\n\n**Example:**\n```atscript\n@ui.table.selectWith \"firstName\"\n@ui.table.selectWith \"lastName\"\nfullName: string\n```\n",
388
+ description: "Extra sibling leaf field paths to include in the table `$select` whenever this column is displayed. These fields are fetched but never rendered as their own columns — use them to back a custom cell renderer or formatter. Multiple `@ui.table.selectWith` annotations are appended. Names siblings of the DECLARING interface, so it never travels across refs.\n\n**Example:**\n```atscript\n@ui.table.selectWith \"firstName\"\n@ui.table.selectWith \"lastName\"\nfullName: string\n```\n",
383
389
  nodeType: [
384
390
  "prop",
385
391
  "type",
@@ -391,7 +397,8 @@ const uiAnnotations = { ui: {
391
397
  name: "path",
392
398
  type: "string",
393
399
  description: "Sibling leaf field path to fetch alongside this column."
394
- }
400
+ },
401
+ passedWhenReferred: false
395
402
  }),
396
403
  styles: new _atscript_core.AnnotationSpec({
397
404
  description: "Inline CSS styles applied to the rendered `<td>` for this column's cells. Multiple `@ui.table.styles` annotations are appended.\n\n**Example:**\n```atscript\n@ui.table.styles \"padding-left: 12px\"\ndescription: string\n```\n",
@@ -420,6 +427,7 @@ const uiAnnotations = { ui: {
420
427
  order: new _atscript_core.AnnotationSpec({
421
428
  description: "Initial column ordering — lower values appear first; user-driven runtime reorder still mutates table state's `columnNames`.",
422
429
  nodeType: ["prop", "type"],
430
+ passedWhenReferred: false,
423
431
  argument: {
424
432
  name: "order",
425
433
  type: "number",
@@ -430,29 +438,35 @@ const uiAnnotations = { ui: {
430
438
  dict: {
431
439
  label: new _atscript_core.AnnotationSpec({
432
440
  description: "Marks this field as the primary display label when the table is used as a value-help dictionary",
433
- nodeType: ["prop"]
441
+ nodeType: ["prop"],
442
+ passedWhenReferred: false
434
443
  }),
435
444
  descr: new _atscript_core.AnnotationSpec({
436
445
  description: "Marks this field as the secondary description in value-help display",
437
- nodeType: ["prop"]
446
+ nodeType: ["prop"],
447
+ passedWhenReferred: false
438
448
  }),
439
449
  attr: new _atscript_core.AnnotationSpec({
440
450
  description: "Marks this field as an additional attribute column in table-mode value help",
441
451
  nodeType: ["prop"],
442
452
  multiple: true,
443
- mergeStrategy: "append"
453
+ mergeStrategy: "append",
454
+ passedWhenReferred: false
444
455
  }),
445
456
  filterable: new _atscript_core.AnnotationSpec({
446
457
  description: "Marks this field as filterable in the value-help picker UI. Surfaced via `meta.fields[name].filterable` on value-help `/meta` responses.",
447
- nodeType: ["prop"]
458
+ nodeType: ["prop"],
459
+ passedWhenReferred: false
448
460
  }),
449
461
  sortable: new _atscript_core.AnnotationSpec({
450
462
  description: "Marks this field as sortable in the value-help picker UI. Surfaced via `meta.fields[name].sortable` on value-help `/meta` responses.",
451
- nodeType: ["prop"]
463
+ nodeType: ["prop"],
464
+ passedWhenReferred: false
452
465
  }),
453
466
  searchable: new _atscript_core.AnnotationSpec({
454
467
  description: "Marks a prop as participating in `$search`, or — on an interface — marks every `string` prop on the target as searchable. Surfaced via `meta.searchable` on value-help `/meta` responses.",
455
- nodeType: ["prop", "interface"]
468
+ nodeType: ["prop", "interface"],
469
+ passedWhenReferred: false
456
470
  })
457
471
  },
458
472
  array: {
package/dist/plugin.mjs CHANGED
@@ -124,7 +124,8 @@ const uiAnnotations = { ui: {
124
124
  }),
125
125
  disabled: new AnnotationSpec({
126
126
  description: "Statically mark this field as disabled in the form.",
127
- nodeType: ["prop", "type"]
127
+ nodeType: ["prop", "type"],
128
+ passedWhenReferred: false
128
129
  }),
129
130
  options: new AnnotationSpec({
130
131
  description: "Static option for select/radio fields. Repeat for each option. Label is the display text, value is the key (defaults to label).",
@@ -145,6 +146,7 @@ const uiAnnotations = { ui: {
145
146
  order: new AnnotationSpec({
146
147
  description: "Explicit form-field ordering (lower values render first).",
147
148
  nodeType: ["prop", "type"],
149
+ passedWhenReferred: false,
148
150
  argument: {
149
151
  name: "order",
150
152
  type: "number",
@@ -175,7 +177,8 @@ const uiAnnotations = { ui: {
175
177
  }),
176
178
  hidden: new AnnotationSpec({
177
179
  description: "Statically hide this field in the form.",
178
- nodeType: ["prop", "type"]
180
+ nodeType: ["prop", "type"],
181
+ passedWhenReferred: false
179
182
  }),
180
183
  attr: new AnnotationSpec({
181
184
  description: "Custom attribute or component prop applied to the form input. Repeat for each attr. Passed via v-bind.",
@@ -275,6 +278,7 @@ const uiAnnotations = { ui: {
275
278
  ref: new AnnotationSpec({
276
279
  description: "**Sibling-field reference** for the prefix adornment. The string argument is the name of another field on the same parent whose value will be displayed as the prefix at runtime. `@ui.form.prefix` wins over `@ui.form.prefix.ref` when both are present.\n\n**Example:**\n```atscript\ncountryCode: string\n@ui.form.prefix.ref \"countryCode\"\nphone: string\n```\n",
277
280
  nodeType: ["prop", "type"],
281
+ passedWhenReferred: false,
278
282
  argument: {
279
283
  name: "field",
280
284
  type: "string",
@@ -304,6 +308,7 @@ const uiAnnotations = { ui: {
304
308
  ref: new AnnotationSpec({
305
309
  description: "**Sibling-field reference** for the suffix adornment. The string argument is the name of another field on the same parent whose value will be displayed as the suffix at runtime. `@ui.form.suffix` wins over `@ui.form.suffix.ref` when both are present.\n\n**Example:**\n```atscript\nunit: 'kg' | 'lb'\n@ui.form.suffix.ref \"unit\"\nweight: number\n```\n",
306
310
  nodeType: ["prop", "type"],
311
+ passedWhenReferred: false,
307
312
  argument: {
308
313
  name: "field",
309
314
  type: "string",
@@ -346,7 +351,8 @@ const uiAnnotations = { ui: {
346
351
  }),
347
352
  exclude: new AnnotationSpec({
348
353
  description: "Completely removes this field from the table — not displayable, filterable, or sortable, and not shown in the config dialog. The field stays in the type and remains a valid `@ui.table.selectWith` target so its data can still be fetched for custom cells.",
349
- nodeType: ["prop", "type"]
354
+ nodeType: ["prop", "type"],
355
+ passedWhenReferred: false
350
356
  }),
351
357
  attr: new AnnotationSpec({
352
358
  description: "Custom attribute or component prop applied to the rendered `<td>`. Repeat for each attr. Passed via v-bind.",
@@ -379,7 +385,7 @@ const uiAnnotations = { ui: {
379
385
  }
380
386
  }),
381
387
  selectWith: new AnnotationSpec({
382
- description: "Extra sibling leaf field paths to include in the table `$select` whenever this column is displayed. These fields are fetched but never rendered as their own columns — use them to back a custom cell renderer or formatter. Multiple `@ui.table.selectWith` annotations are appended.\n\n**Example:**\n```atscript\n@ui.table.selectWith \"firstName\"\n@ui.table.selectWith \"lastName\"\nfullName: string\n```\n",
388
+ description: "Extra sibling leaf field paths to include in the table `$select` whenever this column is displayed. These fields are fetched but never rendered as their own columns — use them to back a custom cell renderer or formatter. Multiple `@ui.table.selectWith` annotations are appended. Names siblings of the DECLARING interface, so it never travels across refs.\n\n**Example:**\n```atscript\n@ui.table.selectWith \"firstName\"\n@ui.table.selectWith \"lastName\"\nfullName: string\n```\n",
383
389
  nodeType: [
384
390
  "prop",
385
391
  "type",
@@ -391,7 +397,8 @@ const uiAnnotations = { ui: {
391
397
  name: "path",
392
398
  type: "string",
393
399
  description: "Sibling leaf field path to fetch alongside this column."
394
- }
400
+ },
401
+ passedWhenReferred: false
395
402
  }),
396
403
  styles: new AnnotationSpec({
397
404
  description: "Inline CSS styles applied to the rendered `<td>` for this column's cells. Multiple `@ui.table.styles` annotations are appended.\n\n**Example:**\n```atscript\n@ui.table.styles \"padding-left: 12px\"\ndescription: string\n```\n",
@@ -420,6 +427,7 @@ const uiAnnotations = { ui: {
420
427
  order: new AnnotationSpec({
421
428
  description: "Initial column ordering — lower values appear first; user-driven runtime reorder still mutates table state's `columnNames`.",
422
429
  nodeType: ["prop", "type"],
430
+ passedWhenReferred: false,
423
431
  argument: {
424
432
  name: "order",
425
433
  type: "number",
@@ -430,29 +438,35 @@ const uiAnnotations = { ui: {
430
438
  dict: {
431
439
  label: new AnnotationSpec({
432
440
  description: "Marks this field as the primary display label when the table is used as a value-help dictionary",
433
- nodeType: ["prop"]
441
+ nodeType: ["prop"],
442
+ passedWhenReferred: false
434
443
  }),
435
444
  descr: new AnnotationSpec({
436
445
  description: "Marks this field as the secondary description in value-help display",
437
- nodeType: ["prop"]
446
+ nodeType: ["prop"],
447
+ passedWhenReferred: false
438
448
  }),
439
449
  attr: new AnnotationSpec({
440
450
  description: "Marks this field as an additional attribute column in table-mode value help",
441
451
  nodeType: ["prop"],
442
452
  multiple: true,
443
- mergeStrategy: "append"
453
+ mergeStrategy: "append",
454
+ passedWhenReferred: false
444
455
  }),
445
456
  filterable: new AnnotationSpec({
446
457
  description: "Marks this field as filterable in the value-help picker UI. Surfaced via `meta.fields[name].filterable` on value-help `/meta` responses.",
447
- nodeType: ["prop"]
458
+ nodeType: ["prop"],
459
+ passedWhenReferred: false
448
460
  }),
449
461
  sortable: new AnnotationSpec({
450
462
  description: "Marks this field as sortable in the value-help picker UI. Surfaced via `meta.fields[name].sortable` on value-help `/meta` responses.",
451
- nodeType: ["prop"]
463
+ nodeType: ["prop"],
464
+ passedWhenReferred: false
452
465
  }),
453
466
  searchable: new AnnotationSpec({
454
467
  description: "Marks a prop as participating in `$search`, or — on an interface — marks every `string` prop on the target as searchable. Surfaced via `meta.searchable` on value-help `/meta` responses.",
455
- nodeType: ["prop", "interface"]
468
+ nodeType: ["prop", "interface"],
469
+ passedWhenReferred: false
456
470
  })
457
471
  },
458
472
  array: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atscript/ui",
3
- "version": "0.1.110",
3
+ "version": "0.1.112",
4
4
  "description": "Framework-agnostic runtime for form and table definitions from atscript annotated types",
5
5
  "keywords": [
6
6
  "annotations",
@@ -47,18 +47,18 @@
47
47
  "access": "public"
48
48
  },
49
49
  "dependencies": {
50
- "@atscript/db-client": "^0.1.110"
50
+ "@atscript/db-client": "^0.1.111"
51
51
  },
52
52
  "devDependencies": {
53
- "@atscript/core": "^0.1.78",
54
- "@atscript/db": "^0.1.110",
55
- "@atscript/typescript": "^0.1.78",
56
- "unplugin-atscript": "^0.1.78",
53
+ "@atscript/core": "^0.1.79",
54
+ "@atscript/db": "^0.1.111",
55
+ "@atscript/typescript": "^0.1.79",
56
+ "unplugin-atscript": "^0.1.79",
57
57
  "vitest": "npm:@voidzero-dev/vite-plus-test@0.1.14"
58
58
  },
59
59
  "peerDependencies": {
60
- "@atscript/core": "^0.1.78",
61
- "@atscript/typescript": "^0.1.78"
60
+ "@atscript/core": "^0.1.79",
61
+ "@atscript/typescript": "^0.1.79"
62
62
  },
63
63
  "scripts": {
64
64
  "build": "vp pack",