@entifix/react-controls 0.20.2 → 0.21.0

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.
Files changed (66) hide show
  1. package/dist/i18n/catalog/en.d.ts.map +1 -1
  2. package/dist/i18n/catalog/en.js +3 -0
  3. package/dist/i18n/catalog/en.js.map +1 -1
  4. package/dist/i18n/catalog/es.d.ts +3 -0
  5. package/dist/i18n/catalog/es.d.ts.map +1 -1
  6. package/dist/i18n/catalog/es.js +3 -0
  7. package/dist/i18n/catalog/es.js.map +1 -1
  8. package/dist/i18n/catalog/index.d.ts +6 -0
  9. package/dist/i18n/catalog/index.d.ts.map +1 -1
  10. package/dist/index.d.ts +1 -0
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +1 -0
  13. package/dist/index.js.map +1 -1
  14. package/dist/ui/actions/action-surfaces.d.ts +13 -0
  15. package/dist/ui/actions/action-surfaces.d.ts.map +1 -1
  16. package/dist/ui/actions/action-surfaces.js +15 -0
  17. package/dist/ui/actions/action-surfaces.js.map +1 -1
  18. package/dist/ui/atoms/cell-value/cell-value.d.ts +6 -0
  19. package/dist/ui/atoms/cell-value/cell-value.d.ts.map +1 -1
  20. package/dist/ui/atoms/cell-value/cell-value.js +97 -14
  21. package/dist/ui/atoms/cell-value/cell-value.js.map +1 -1
  22. package/dist/ui/atoms/cell-value/index.d.ts +1 -0
  23. package/dist/ui/atoms/cell-value/index.d.ts.map +1 -1
  24. package/dist/ui/atoms/cell-value/index.js +1 -0
  25. package/dist/ui/atoms/cell-value/index.js.map +1 -1
  26. package/dist/ui/atoms/cell-value/use-record-label.d.ts +16 -0
  27. package/dist/ui/atoms/cell-value/use-record-label.d.ts.map +1 -0
  28. package/dist/ui/atoms/cell-value/use-record-label.js +55 -0
  29. package/dist/ui/atoms/cell-value/use-record-label.js.map +1 -0
  30. package/dist/ui/atoms/table/table.d.ts +4 -2
  31. package/dist/ui/atoms/table/table.d.ts.map +1 -1
  32. package/dist/ui/atoms/table/table.js +3 -1
  33. package/dist/ui/atoms/table/table.js.map +1 -1
  34. package/dist/ui/organisms/entity-form/entity-form.d.ts +1 -1
  35. package/dist/ui/organisms/entity-form/entity-form.d.ts.map +1 -1
  36. package/dist/ui/organisms/entity-form/entity-form.js +19 -10
  37. package/dist/ui/organisms/entity-form/entity-form.js.map +1 -1
  38. package/dist/ui/organisms/entity-form/entity-form.types.d.ts +0 -8
  39. package/dist/ui/organisms/entity-form/entity-form.types.d.ts.map +1 -1
  40. package/dist/ui/organisms/entity-form/entity-form.types.js.map +1 -1
  41. package/dist/ui/organisms/entity-table/card-roles.d.ts +10 -0
  42. package/dist/ui/organisms/entity-table/card-roles.d.ts.map +1 -0
  43. package/dist/ui/organisms/entity-table/card-roles.js +14 -0
  44. package/dist/ui/organisms/entity-table/card-roles.js.map +1 -0
  45. package/dist/ui/organisms/entity-table/entity-table-slots.d.ts +2 -0
  46. package/dist/ui/organisms/entity-table/entity-table-slots.d.ts.map +1 -1
  47. package/dist/ui/organisms/entity-table/entity-table-slots.js.map +1 -1
  48. package/dist/ui/organisms/entity-table/entity-table.d.ts.map +1 -1
  49. package/dist/ui/organisms/entity-table/entity-table.js +242 -173
  50. package/dist/ui/organisms/entity-table/entity-table.js.map +1 -1
  51. package/dist/ui/organisms/entity-table/pivot.d.ts +32 -5
  52. package/dist/ui/organisms/entity-table/pivot.d.ts.map +1 -1
  53. package/dist/ui/organisms/entity-table/pivot.js +42 -9
  54. package/dist/ui/organisms/entity-table/pivot.js.map +1 -1
  55. package/dist/ui/organisms/entity-table/use-entity-table-columns.d.ts.map +1 -1
  56. package/dist/ui/organisms/entity-table/use-entity-table-columns.js +6 -3
  57. package/dist/ui/organisms/entity-table/use-entity-table-columns.js.map +1 -1
  58. package/dist/ui/utils/reference-labels.d.ts +59 -0
  59. package/dist/ui/utils/reference-labels.d.ts.map +1 -0
  60. package/dist/ui/utils/reference-labels.js +49 -0
  61. package/dist/ui/utils/reference-labels.js.map +1 -0
  62. package/dist/ui/utils/use-focus-on-arrival.d.ts +11 -0
  63. package/dist/ui/utils/use-focus-on-arrival.d.ts.map +1 -1
  64. package/dist/ui/utils/use-focus-on-arrival.js +33 -1
  65. package/dist/ui/utils/use-focus-on-arrival.js.map +1 -1
  66. package/package.json +11 -11
@@ -1 +1 @@
1
- {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/i18n/catalog/en.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,KAAK,UAAU,GAAG,cAAc,SAAS,EAAE,QAAQ,CAAC;AAEpD,eAAO,MAAM,QAAQ,EAAE,UAsRtB,CAAC"}
1
+ {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/i18n/catalog/en.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,KAAK,UAAU,GAAG,cAAc,SAAS,EAAE,QAAQ,CAAC;AAEpD,eAAO,MAAM,QAAQ,EAAE,UAyRtB,CAAC"}
@@ -161,6 +161,9 @@
161
161
  errorSummary_one: '{{count}} cell has errors',
162
162
  errorSummary_other: '{{count}} cells have errors'
163
163
  },
164
+ reference: {
165
+ unresolved: '{{noun}} {{id}}'
166
+ },
164
167
  value: {
165
168
  none: '— none —',
166
169
  yes: 'Yes',
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/i18n/catalog/en.ts"],"sourcesContent":["/**\n * The `es` shape is the contract: annotating with it makes a key that exists in\n * Spanish but not here a *compile* error, so a half-translated locale cannot\n * reach a build. `tools/check-i18n.mjs` covers what types cannot — empty values,\n * and keys present here but absent from `es`.\n */\ntype EsControls = typeof import('./es.js').controls;\n\nexport const controls: EsControls = {\n actions: {\n more: 'More actions',\n forRecord: 'Actions for {{record}}',\n },\n table: {\n select: 'Select',\n actions: 'Actions',\n new: 'New',\n filters: 'Filters',\n sorting: 'Sorting',\n loading: 'Loading…',\n selection: 'Selection',\n selectRow: 'Select {{record}}',\n expandRow: 'Expand {{record}}',\n collapseRow: 'Collapse {{record}}',\n selectAllOnPage: 'Select all on this page',\n selectAllMatching_one: 'Select {{count}} match',\n selectAllMatching_other: 'Select all {{count}} matches',\n selectedCount_one: '{{count}} selected',\n selectedCount_other: '{{count}} selected',\n clearSelection: 'Clear selection',\n results_one: '{{count}} result',\n results_other: '{{count}} results',\n noResultsFiltered: 'No results for these filters',\n caption: '{{entity}} · {{results}}',\n captionSorted:\n '{{entity}} · {{results}} · sorted by {{column}}, {{direction}}',\n },\n bulk: {\n running: 'Running…',\n succeeded_one: '{{count}} record updated',\n succeeded_other: '{{count}} records updated',\n failed_one: '{{count}} record failed',\n failed_other: '{{count}} records failed',\n retryFailed: 'Retry the failures',\n dismiss: 'Dismiss result',\n resultLabel: 'Bulk action result',\n barLabel: 'Actions on the selection',\n },\n form: {\n details: 'Details',\n new: 'New',\n view: 'View',\n edit: 'Edit',\n save: 'Save',\n saving: 'Saving…',\n delete: 'Delete',\n deleting: 'Deleting…',\n clone: 'Duplicate',\n back: 'Back',\n loading: 'Loading…',\n pending: 'Waiting for the server…',\n errorSummary_one: 'Fix {{count}} field before saving',\n errorSummary_other: 'Fix {{count}} fields before saving',\n requiredHint: 'Fields marked * are required.',\n requiredMarker: '*',\n },\n state: {\n retry: 'Retry',\n forbidden: \"You don't have permission to see {{plural}}.\",\n stale: 'What is shown may be out of date.',\n noResults: 'No {{plural}} match these filters.',\n clearFilters: 'Clear filters',\n empty: 'Your {{plural}} will appear here.',\n saved: 'Saved {{object}}.',\n },\n pagination: {\n label: 'Pages',\n summary: 'Page {{current}} of {{total}} · {{items}} items',\n rows: 'Rows',\n first: 'First',\n previous: 'Previous',\n next: 'Next',\n last: 'Last',\n page: 'Page {{current}} of {{total}}',\n },\n columns: {\n title: 'Columns',\n subtitle: 'Visibility and order',\n reset: 'Reset to default',\n moveUp: 'Move {{column}} up',\n moveDown: 'Move {{column}} down',\n },\n filter: {\n match: 'Match',\n all: 'all',\n any: 'any',\n add: 'Add filter',\n apply: 'Apply',\n clear: 'Clear',\n none: 'No filterable members on this entity.',\n listPlaceholder: 'comma, separated, values',\n matchAria: 'Match all or any filter',\n member: 'Filter member',\n operator: 'Filter operator',\n value: 'Filter value',\n rangeEnd: 'Filter range end',\n remove: 'Remove filter',\n applyAria: 'Apply filters',\n clearAria: 'Clear filters',\n applied: 'Applied filters',\n removeChip: 'Remove filter: {{filter}}',\n clearAll: 'Clear all',\n withCount: '{{label}} ({{count}})',\n },\n sort: {\n by: 'Sort by',\n then: 'then by',\n ascending: 'ascending',\n descending: 'descending',\n add: 'Add sort',\n apply: 'Apply',\n clear: 'Clear',\n none: 'No sortable members on this entity.',\n member: 'Sort member',\n direction: 'Sort direction',\n raisePriority: 'Raise sort priority',\n lowerPriority: 'Lower sort priority',\n remove: 'Remove sort',\n applyAria: 'Apply sorting',\n clearAria: 'Clear sorting',\n },\n alert: {\n dismiss: 'Dismiss',\n },\n quantity: {\n decrease: 'Decrease {{label}}',\n increase: 'Increase {{label}}',\n },\n tabs: {\n close: 'Close {{label}}',\n new: 'Open a new tab',\n list: 'Workspace tabs',\n withState: '{{label}}, {{state}}',\n dirty: 'unsaved changes',\n saving: 'saving',\n error: 'not saved',\n },\n link: {\n search: 'Search {{field}}',\n suggestAria: 'Show {{field}} suggestions',\n browseAria: 'Browse {{field}}',\n browseTitle: 'Select {{field}}',\n clear: 'Clear {{field}}',\n empty: '— unassigned —',\n loading: 'Loading…',\n noResults: 'No matches',\n error: 'Could not load options',\n close: 'Close',\n },\n detail: {\n addRow: 'Add row',\n removeRow: 'Remove row {{row}}',\n rowActions: 'Row actions',\n empty: 'No rows yet.',\n errorSummary_one: '{{count}} cell has errors',\n errorSummary_other: '{{count}} cells have errors',\n },\n value: {\n none: '— none —',\n yes: 'Yes',\n no: 'No',\n /**\n * A `composition` in a table: its rows are edited on the master's own\n * screen rather than in the cell, so the cell says how many there are.\n */\n rowCount_one: '{{count}} row',\n rowCount_other: '{{count}} rows',\n },\n /**\n * `required`…`option` are the metadata-derived rules. The rest are the\n * vocabulary an entity's Standard Schema writes its messages in: a schema\n * carries the *key*, never a sentence, so a rule stays translatable.\n *\n * `field` is the only parameter available — a Standard Schema issue exposes a\n * message and a path, nothing else — so these stay unquantified. A rule that\n * has to state its bound writes its own key in its domain catalog and passes\n * it namespaced (`entity:product-specification.validation.codeLength`).\n */\n validation: {\n required: '{{field}} is required',\n number: '{{field}} must be a number',\n date: '{{field}} must be a date',\n option: '{{field}} is not a valid option',\n minLength: '{{field}} is too short',\n maxLength: '{{field}} is too long',\n min: '{{field}} is too small',\n max: '{{field}} is too large',\n pattern: '{{field}} has an invalid format',\n minItems_one: '{{field}} needs at least {{count}} item',\n minItems_other: '{{field}} needs at least {{count}} items',\n maxItems_one: '{{field}} takes at most {{count}} item',\n maxItems_other: '{{field}} takes at most {{count}} items',\n notBefore: '{{field}} cannot be before {{other}}',\n locale: '{{field}} has no {{locale}} text',\n },\n operator: {\n eq: 'is',\n ne: 'is not',\n gt: 'greater than',\n gte: 'greater or equal',\n lt: 'less than',\n lte: 'less or equal',\n in: 'is one of',\n nin: 'is none of',\n between: 'between',\n nbetween: 'not between',\n like: 'contains',\n nlike: 'does not contain',\n isNull: 'is empty',\n isNotNull: 'is not empty',\n },\n density: {\n label: 'Density',\n comfortable: 'Comfortable',\n compact: 'Compact',\n },\n theme: {\n label: 'Theme',\n },\n themes: {\n aurora: 'Aurora',\n sunset: 'Sunset',\n midnight: 'Midnight',\n ocean: 'Ocean (runtime)',\n marketplace: 'Marketplace',\n marketplaceDark: 'Marketplace dark',\n auth: 'Identity',\n authDark: 'Identity dark',\n },\n confirm: {\n confirm: 'Confirm',\n cancel: 'Cancel',\n question: '{{verb}} {{object}}?',\n verbCount_one: '{{verb}}',\n verbCount_other: '{{verb}} {{count}}',\n selection_one: '{{count}} {{label}}',\n selection_other: '{{count}} {{plural}}',\n typeToConfirm: 'Type {{expected}} to confirm',\n done: 'Done: {{verb}}, {{object}}.',\n undo: 'Undo',\n deleteMessage: 'It is removed for good.',\n deleted: '{{object}} deleted.',\n },\n live: {\n reconnecting: 'Live updates paused — reconnecting',\n stopped: 'Live updates stopped',\n reconnect: 'Reconnect',\n resumed: 'Live updates resumed',\n waiting: 'Waiting for connection…',\n },\n toast: {\n region: 'Notifications',\n dismiss: 'Dismiss',\n },\n breadcrumbs: {\n label: 'Breadcrumb',\n },\n wizard: {\n steps: 'Steps',\n previous: 'Back',\n next: 'Continue',\n finish: 'Finish',\n submitting: 'Submitting…',\n stepOf: 'Step {{current}} of {{total}}',\n goToStep: 'Back to {{label}}',\n status: {\n pending: 'pending',\n active: 'in progress',\n complete: 'completed',\n error: 'has errors',\n },\n resume: {\n title: 'Picking up where you left off',\n dismiss: 'Got it',\n },\n },\n};\n"],"names":["controls","actions","more","forRecord","table","select","new","filters","sorting","loading","selection","selectRow","expandRow","collapseRow","selectAllOnPage","selectAllMatching_one","selectAllMatching_other","selectedCount_one","selectedCount_other","clearSelection","results_one","results_other","noResultsFiltered","caption","captionSorted","bulk","running","succeeded_one","succeeded_other","failed_one","failed_other","retryFailed","dismiss","resultLabel","barLabel","form","details","view","edit","save","saving","delete","deleting","clone","back","pending","errorSummary_one","errorSummary_other","requiredHint","requiredMarker","state","retry","forbidden","stale","noResults","clearFilters","empty","saved","pagination","label","summary","rows","first","previous","next","last","page","columns","title","subtitle","reset","moveUp","moveDown","filter","match","all","any","add","apply","clear","none","listPlaceholder","matchAria","member","operator","value","rangeEnd","remove","applyAria","clearAria","applied","removeChip","clearAll","withCount","sort","by","then","ascending","descending","direction","raisePriority","lowerPriority","alert","quantity","decrease","increase","tabs","close","list","withState","dirty","error","link","search","suggestAria","browseAria","browseTitle","detail","addRow","removeRow","rowActions","yes","no","rowCount_one","rowCount_other","validation","required","number","date","option","minLength","maxLength","min","max","pattern","minItems_one","minItems_other","maxItems_one","maxItems_other","notBefore","locale","eq","ne","gt","gte","lt","lte","in","nin","between","nbetween","like","nlike","isNull","isNotNull","density","comfortable","compact","theme","themes","aurora","sunset","midnight","ocean","marketplace","marketplaceDark","auth","authDark","confirm","cancel","question","verbCount_one","verbCount_other","selection_one","selection_other","typeToConfirm","done","undo","deleteMessage","deleted","live","reconnecting","stopped","reconnect","resumed","waiting","toast","region","breadcrumbs","wizard","steps","finish","submitting","stepOf","goToStep","status","active","complete","resume"],"mappings":"AAAA;;;;;CAKC,GAGD,OAAO,MAAMA,WAAuB;IAClCC,SAAS;QACPC,MAAM;QACNC,WAAW;IACb;IACAC,OAAO;QACLC,QAAQ;QACRJ,SAAS;QACTK,KAAK;QACLC,SAAS;QACTC,SAAS;QACTC,SAAS;QACTC,WAAW;QACXC,WAAW;QACXC,WAAW;QACXC,aAAa;QACbC,iBAAiB;QACjBC,uBAAuB;QACvBC,yBAAyB;QACzBC,mBAAmB;QACnBC,qBAAqB;QACrBC,gBAAgB;QAChBC,aAAa;QACbC,eAAe;QACfC,mBAAmB;QACnBC,SAAS;QACTC,eACE;IACJ;IACAC,MAAM;QACJC,SAAS;QACTC,eAAe;QACfC,iBAAiB;QACjBC,YAAY;QACZC,cAAc;QACdC,aAAa;QACbC,SAAS;QACTC,aAAa;QACbC,UAAU;IACZ;IACAC,MAAM;QACJC,SAAS;QACT9B,KAAK;QACL+B,MAAM;QACNC,MAAM;QACNC,MAAM;QACNC,QAAQ;QACRC,QAAQ;QACRC,UAAU;QACVC,OAAO;QACPC,MAAM;QACNnC,SAAS;QACToC,SAAS;QACTC,kBAAkB;QAClBC,oBAAoB;QACpBC,cAAc;QACdC,gBAAgB;IAClB;IACAC,OAAO;QACLC,OAAO;QACPC,WAAW;QACXC,OAAO;QACPC,WAAW;QACXC,cAAc;QACdC,OAAO;QACPC,OAAO;IACT;IACAC,YAAY;QACVC,OAAO;QACPC,SAAS;QACTC,MAAM;QACNC,OAAO;QACPC,UAAU;QACVC,MAAM;QACNC,MAAM;QACNC,MAAM;IACR;IACAC,SAAS;QACPC,OAAO;QACPC,UAAU;QACVC,OAAO;QACPC,QAAQ;QACRC,UAAU;IACZ;IACAC,QAAQ;QACNC,OAAO;QACPC,KAAK;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ACJC,KAAK;QACLC,IAAI;QACJC,KAAK;QACLC,IAAI;QACJC,KAAK;QACLC,SAAS;QACTC,UAAU;QACVC,MAAM;QACNC,OAAO;QACPC,QAAQ;QACRC,WAAW;IACb;IACAC,SAAS;QACPhG,OAAO;QACPiG,aAAa;QACbC,SAAS;IACX;IACAC,OAAO;QACLnG,OAAO;IACT;IACAoG,QAAQ;QACNC,QAAQ;QACRC,QAAQ;QACRC,UAAU;QACVC,OAAO;QACPC,aAAa;QACbC,iBAAiB;QACjBC,MAAM;QACNC,UAAU;IACZ;IACAC,SAAS;QACPA,SAAS;QACTC,QAAQ;QACRC,UAAU;QACVC,eAAe;QACfC,iBAAiB;QACjBC,eAAe;QACfC,iBAAiB;QACjBC,eAAe;QACfC,MAAM;QACNC,MAAM;QACNC,eAAe;QACfC,SAAS;IACX;IACAC,MAAM;QACJC,cAAc;QACdC,SAAS;QACTC,WAAW;QACXC,SAAS;QACTC,SAAS;IACX;IACAC,OAAO;QACLC,QAAQ;QACR3J,SAAS;IACX;IACA4J,aAAa;QACXjI,OAAO;IACT;IACAkI,QAAQ;QACNC,OAAO;QACP/H,UAAU;QACVC,MAAM;QACN+H,QAAQ;QACRC,YAAY;QACZC,QAAQ;QACRC,UAAU;QACVC,QAAQ;YACNtJ,SAAS;YACTuJ,QAAQ;YACRC,UAAU;YACVtF,OAAO;QACT;QACAuF,QAAQ;YACNlI,OAAO;YACPpC,SAAS;QACX;IACF;AACF,EAAE"}
1
+ {"version":3,"sources":["../../../src/i18n/catalog/en.ts"],"sourcesContent":["/**\n * The `es` shape is the contract: annotating with it makes a key that exists in\n * Spanish but not here a *compile* error, so a half-translated locale cannot\n * reach a build. `tools/check-i18n.mjs` covers what types cannot — empty values,\n * and keys present here but absent from `es`.\n */\ntype EsControls = typeof import('./es.js').controls;\n\nexport const controls: EsControls = {\n actions: {\n more: 'More actions',\n forRecord: 'Actions for {{record}}',\n },\n table: {\n select: 'Select',\n actions: 'Actions',\n new: 'New',\n filters: 'Filters',\n sorting: 'Sorting',\n loading: 'Loading…',\n selection: 'Selection',\n selectRow: 'Select {{record}}',\n expandRow: 'Expand {{record}}',\n collapseRow: 'Collapse {{record}}',\n selectAllOnPage: 'Select all on this page',\n selectAllMatching_one: 'Select {{count}} match',\n selectAllMatching_other: 'Select all {{count}} matches',\n selectedCount_one: '{{count}} selected',\n selectedCount_other: '{{count}} selected',\n clearSelection: 'Clear selection',\n results_one: '{{count}} result',\n results_other: '{{count}} results',\n noResultsFiltered: 'No results for these filters',\n caption: '{{entity}} · {{results}}',\n captionSorted:\n '{{entity}} · {{results}} · sorted by {{column}}, {{direction}}',\n },\n bulk: {\n running: 'Running…',\n succeeded_one: '{{count}} record updated',\n succeeded_other: '{{count}} records updated',\n failed_one: '{{count}} record failed',\n failed_other: '{{count}} records failed',\n retryFailed: 'Retry the failures',\n dismiss: 'Dismiss result',\n resultLabel: 'Bulk action result',\n barLabel: 'Actions on the selection',\n },\n form: {\n details: 'Details',\n new: 'New',\n view: 'View',\n edit: 'Edit',\n save: 'Save',\n saving: 'Saving…',\n delete: 'Delete',\n deleting: 'Deleting…',\n clone: 'Duplicate',\n back: 'Back',\n loading: 'Loading…',\n pending: 'Waiting for the server…',\n errorSummary_one: 'Fix {{count}} field before saving',\n errorSummary_other: 'Fix {{count}} fields before saving',\n requiredHint: 'Fields marked * are required.',\n requiredMarker: '*',\n },\n state: {\n retry: 'Retry',\n forbidden: \"You don't have permission to see {{plural}}.\",\n stale: 'What is shown may be out of date.',\n noResults: 'No {{plural}} match these filters.',\n clearFilters: 'Clear filters',\n empty: 'Your {{plural}} will appear here.',\n saved: 'Saved {{object}}.',\n },\n pagination: {\n label: 'Pages',\n summary: 'Page {{current}} of {{total}} · {{items}} items',\n rows: 'Rows',\n first: 'First',\n previous: 'Previous',\n next: 'Next',\n last: 'Last',\n page: 'Page {{current}} of {{total}}',\n },\n columns: {\n title: 'Columns',\n subtitle: 'Visibility and order',\n reset: 'Reset to default',\n moveUp: 'Move {{column}} up',\n moveDown: 'Move {{column}} down',\n },\n filter: {\n match: 'Match',\n all: 'all',\n any: 'any',\n add: 'Add filter',\n apply: 'Apply',\n clear: 'Clear',\n none: 'No filterable members on this entity.',\n listPlaceholder: 'comma, separated, values',\n matchAria: 'Match all or any filter',\n member: 'Filter member',\n operator: 'Filter operator',\n value: 'Filter value',\n rangeEnd: 'Filter range end',\n remove: 'Remove filter',\n applyAria: 'Apply filters',\n clearAria: 'Clear filters',\n applied: 'Applied filters',\n removeChip: 'Remove filter: {{filter}}',\n clearAll: 'Clear all',\n withCount: '{{label}} ({{count}})',\n },\n sort: {\n by: 'Sort by',\n then: 'then by',\n ascending: 'ascending',\n descending: 'descending',\n add: 'Add sort',\n apply: 'Apply',\n clear: 'Clear',\n none: 'No sortable members on this entity.',\n member: 'Sort member',\n direction: 'Sort direction',\n raisePriority: 'Raise sort priority',\n lowerPriority: 'Lower sort priority',\n remove: 'Remove sort',\n applyAria: 'Apply sorting',\n clearAria: 'Clear sorting',\n },\n alert: {\n dismiss: 'Dismiss',\n },\n quantity: {\n decrease: 'Decrease {{label}}',\n increase: 'Increase {{label}}',\n },\n tabs: {\n close: 'Close {{label}}',\n new: 'Open a new tab',\n list: 'Workspace tabs',\n withState: '{{label}}, {{state}}',\n dirty: 'unsaved changes',\n saving: 'saving',\n error: 'not saved',\n },\n link: {\n search: 'Search {{field}}',\n suggestAria: 'Show {{field}} suggestions',\n browseAria: 'Browse {{field}}',\n browseTitle: 'Select {{field}}',\n clear: 'Clear {{field}}',\n empty: '— unassigned —',\n loading: 'Loading…',\n noResults: 'No matches',\n error: 'Could not load options',\n close: 'Close',\n },\n detail: {\n addRow: 'Add row',\n removeRow: 'Remove row {{row}}',\n rowActions: 'Row actions',\n empty: 'No rows yet.',\n errorSummary_one: '{{count}} cell has errors',\n errorSummary_other: '{{count}} cells have errors',\n },\n reference: {\n unresolved: '{{noun}} {{id}}',\n },\n value: {\n none: '— none —',\n yes: 'Yes',\n no: 'No',\n /**\n * A `composition` in a table: its rows are edited on the master's own\n * screen rather than in the cell, so the cell says how many there are.\n */\n rowCount_one: '{{count}} row',\n rowCount_other: '{{count}} rows',\n },\n /**\n * `required`…`option` are the metadata-derived rules. The rest are the\n * vocabulary an entity's Standard Schema writes its messages in: a schema\n * carries the *key*, never a sentence, so a rule stays translatable.\n *\n * `field` is the only parameter available — a Standard Schema issue exposes a\n * message and a path, nothing else — so these stay unquantified. A rule that\n * has to state its bound writes its own key in its domain catalog and passes\n * it namespaced (`entity:product-specification.validation.codeLength`).\n */\n validation: {\n required: '{{field}} is required',\n number: '{{field}} must be a number',\n date: '{{field}} must be a date',\n option: '{{field}} is not a valid option',\n minLength: '{{field}} is too short',\n maxLength: '{{field}} is too long',\n min: '{{field}} is too small',\n max: '{{field}} is too large',\n pattern: '{{field}} has an invalid format',\n minItems_one: '{{field}} needs at least {{count}} item',\n minItems_other: '{{field}} needs at least {{count}} items',\n maxItems_one: '{{field}} takes at most {{count}} item',\n maxItems_other: '{{field}} takes at most {{count}} items',\n notBefore: '{{field}} cannot be before {{other}}',\n locale: '{{field}} has no {{locale}} text',\n },\n operator: {\n eq: 'is',\n ne: 'is not',\n gt: 'greater than',\n gte: 'greater or equal',\n lt: 'less than',\n lte: 'less or equal',\n in: 'is one of',\n nin: 'is none of',\n between: 'between',\n nbetween: 'not between',\n like: 'contains',\n nlike: 'does not contain',\n isNull: 'is empty',\n isNotNull: 'is not empty',\n },\n density: {\n label: 'Density',\n comfortable: 'Comfortable',\n compact: 'Compact',\n },\n theme: {\n label: 'Theme',\n },\n themes: {\n aurora: 'Aurora',\n sunset: 'Sunset',\n midnight: 'Midnight',\n ocean: 'Ocean (runtime)',\n marketplace: 'Marketplace',\n marketplaceDark: 'Marketplace dark',\n auth: 'Identity',\n authDark: 'Identity dark',\n },\n confirm: {\n confirm: 'Confirm',\n cancel: 'Cancel',\n question: '{{verb}} {{object}}?',\n verbCount_one: '{{verb}}',\n verbCount_other: '{{verb}} {{count}}',\n selection_one: '{{count}} {{label}}',\n selection_other: '{{count}} {{plural}}',\n typeToConfirm: 'Type {{expected}} to confirm',\n done: 'Done: {{verb}}, {{object}}.',\n undo: 'Undo',\n deleteMessage: 'It is removed for good.',\n deleted: '{{object}} deleted.',\n },\n live: {\n reconnecting: 'Live updates paused — reconnecting',\n stopped: 'Live updates stopped',\n reconnect: 'Reconnect',\n resumed: 'Live updates resumed',\n waiting: 'Waiting for connection…',\n },\n toast: {\n region: 'Notifications',\n dismiss: 'Dismiss',\n },\n breadcrumbs: {\n label: 'Breadcrumb',\n },\n wizard: {\n steps: 'Steps',\n previous: 'Back',\n next: 'Continue',\n finish: 'Finish',\n submitting: 'Submitting…',\n stepOf: 'Step {{current}} of {{total}}',\n goToStep: 'Back to {{label}}',\n status: {\n pending: 'pending',\n active: 'in progress',\n complete: 'completed',\n error: 'has errors',\n },\n resume: {\n title: 'Picking up where you left off',\n dismiss: 'Got it',\n },\n },\n};\n"],"names":["controls","actions","more","forRecord","table","select","new","filters","sorting","loading","selection","selectRow","expandRow","collapseRow","selectAllOnPage","selectAllMatching_one","selectAllMatching_other","selectedCount_one","selectedCount_other","clearSelection","results_one","results_other","noResultsFiltered","caption","captionSorted","bulk","running","succeeded_one","succeeded_other","failed_one","failed_other","retryFailed","dismiss","resultLabel","barLabel","form","details","view","edit","save","saving","delete","deleting","clone","back","pending","errorSummary_one","errorSummary_other","requiredHint","requiredMarker","state","retry","forbidden","stale","noResults","clearFilters","empty","saved","pagination","label","summary","rows","first","previous","next","last","page","columns","title","subtitle","reset","moveUp","moveDown","filter","match","all","any","add","apply","clear","none","listPlaceholder","matchAria","member","operator","value","rangeEnd","remove","applyAria","clearAria","applied","removeChip","clearAll","withCount","sort","by","then","ascending","descending","direction","raisePriority","lowerPriority","alert","quantity","decrease","increase","tabs","close","list","withState","dirty","error","link","search","suggestAria","browseAria","browseTitle","detail","addRow","removeRow","rowActions","reference","unresolved","yes","no","rowCount_one","rowCount_other","validation","required","number","date","option","minLength","maxLength","min","max","pattern","minItems_one","minItems_other","maxItems_one","maxItems_other","notBefore","locale","eq","ne","gt","gte","lt","lte","in","nin","between","nbetween","like","nlike","isNull","isNotNull","density","comfortable","compact","theme","themes","aurora","sunset","midnight","ocean","marketplace","marketplaceDark","auth","authDark","confirm","cancel","question","verbCount_one","verbCount_other","selection_one","selection_other","typeToConfirm","done","undo","deleteMessage","deleted","live","reconnecting","stopped","reconnect","resumed","waiting","toast","region","breadcrumbs","wizard","steps","finish","submitting","stepOf","goToStep","status","active","complete","resume"],"mappings":"AAAA;;;;;CAKC,GAGD,OAAO,MAAMA,WAAuB;IAClCC,SAAS;QACPC,MAAM;QACNC,WAAW;IACb;IACAC,OAAO;QACLC,QAAQ;QACRJ,SAAS;QACTK,KAAK;QACLC,SAAS;QACTC,SAAS;QACTC,SAAS;QACTC,WAAW;QACXC,WAAW;QACXC,WAAW;QACXC,aAAa;QACbC,iBAAiB;QACjBC,uBAAuB;QACvBC,yBAAyB;QACzBC,mBAAmB;QACnBC,qBAAqB;QACrBC,gBAAgB;QAChBC,aAAa;QACbC,eAAe;QACfC,mBAAmB;QACnBC,SAAS;QACTC,eACE;IACJ;IACAC,MAAM;QACJC,SAAS;QACTC,eAAe;QACfC,iBAAiB;QACjBC,YAAY;QACZC,cAAc;QACdC,aAAa;QACbC,SAAS;QACTC,aAAa;QACbC,UAAU;IACZ;IACAC,MAAM;QACJC,SAAS;QACT9B,KAAK;QACL+B,MAAM;QACNC,MAAM;QACNC,MAAM;QACNC,QAAQ;QACRC,QAAQ;QACRC,UAAU;QACVC,OAAO;QACPC,MAAM;QACNnC,SAAS;QACToC,SAAS;QACTC,kBAAkB;QAClBC,oBAAoB;QACpBC,cAAc;QACdC,gBAAgB;IAClB;IACAC,OAAO;QACLC,OAAO;QACPC,WAAW;QACXC,OAAO;QACPC,WAAW;QACXC,cAAc;QACdC,OAAO;QACPC,OAAO;IACT;IACAC,YAAY;QACVC,OAAO;QACPC,SAAS;QACTC,MAAM;QACNC,OAAO;QACPC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C,WAAW;QACXC,WAAW;QACXC,KAAK;QACLC,KAAK;QACLC,SAAS;QACTC,cAAc;QACdC,gBAAgB;QAChBC,cAAc;QACdC,gBAAgB;QAChBC,WAAW;QACXC,QAAQ;IACV;IACA1D,UAAU;QACR2D,IAAI;QACJC,IAAI;QACJC,IAAI;QACJC,KAAK;QACLC,IAAI;QACJC,KAAK;QACLC,IAAI;QACJC,KAAK;QACLC,SAAS;QACTC,UAAU;QACVC,MAAM;QACNC,OAAO;QACPC,QAAQ;QACRC,WAAW;IACb;IACAC,SAAS;QACPlG,OAAO;QACPmG,aAAa;QACbC,SAAS;IACX;IACAC,OAAO;QACLrG,OAAO;IACT;IACAsG,QAAQ;QACNC,QAAQ;QACRC,QAAQ;QACRC,UAAU;QACVC,OAAO;QACPC,aAAa;QACbC,iBAAiB;QACjBC,MAAM;QACNC,UAAU;IACZ;IACAC,SAAS;QACPA,SAAS;QACTC,QAAQ;QACRC,UAAU;QACVC,eAAe;QACfC,iBAAiB;QACjBC,eAAe;QACfC,iBAAiB;QACjBC,eAAe;QACfC,MAAM;QACNC,MAAM;QACNC,eAAe;QACfC,SAAS;IACX;IACAC,MAAM;QACJC,cAAc;QACdC,SAAS;QACTC,WAAW;QACXC,SAAS;QACTC,SAAS;IACX;IACAC,OAAO;QACLC,QAAQ;QACR7J,SAAS;IACX;IACA8J,aAAa;QACXnI,OAAO;IACT;IACAoI,QAAQ;QACNC,OAAO;QACPjI,UAAU;QACVC,MAAM;QACNiI,QAAQ;QACRC,YAAY;QACZC,QAAQ;QACRC,UAAU;QACVC,QAAQ;YACNxJ,SAAS;YACTyJ,QAAQ;YACRC,UAAU;YACVxF,OAAO;QACT;QACAyF,QAAQ;YACNpI,OAAO;YACPpC,SAAS;QACX;IACF;AACF,EAAE"}
@@ -199,6 +199,9 @@ export declare const controls: {
199
199
  errorSummary_one: string;
200
200
  errorSummary_other: string;
201
201
  };
202
+ reference: {
203
+ unresolved: string;
204
+ };
202
205
  value: {
203
206
  none: string;
204
207
  yes: string;
@@ -1 +1 @@
1
- {"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../src/i18n/catalog/es.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;QAYjB;;;;WAIG;;;;;;QAMH;;;WAGG;;;;;;QAMH;;;WAGG;;;;QAIH,sEAAsE;;;;IAKxE;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;QAyBD,4EAA4E;;;;;;IAM9E;;;OAGG;;;;;;;;;;;;;;;;;;QAkBD,8CAA8C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA8B9C,kEAAkE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoCpE;;;;OAIG;;;;;;;;;;;;;IAaH;;;;;;OAMG;;;;;;;;;;;;;QAaD;;;WAGG;;;;IAIL;;;;;;;;;;OAUG;;;;;;;;;;;;;;;;;;IAkBH;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;IAyBH;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;;;;;IAyBH,2EAA2E;;;;;;;;;;;;;;;IAe3E;;;;OAIG;;;;QAID;;;;WAIG;;;QAGH;;;;;WAKG;;;;QAIH;;;WAGG;;;;;;;QAOH;;;;WAIG;;;;;;CAMN,CAAC"}
1
+ {"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../src/i18n/catalog/es.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;QAYjB;;;;WAIG;;;;;;QAMH;;;WAGG;;;;;;QAMH;;;WAGG;;;;QAIH,sEAAsE;;;;IAKxE;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;QAyBD,4EAA4E;;;;;;IAM9E;;;OAGG;;;;;;;;;;;;;;;;;;QAkBD,8CAA8C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA8B9C,kEAAkE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoCpE;;;;OAIG;;;;;;;;;;;;;IAaH;;;;;;OAMG;;;;;;;;;;;;;;;;QAgBD;;;WAGG;;;;IAIL;;;;;;;;;;OAUG;;;;;;;;;;;;;;;;;;IAkBH;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;IAyBH;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;;;;;IAyBH,2EAA2E;;;;;;;;;;;;;;;IAe3E;;;;OAIG;;;;QAID;;;;WAIG;;;QAGH;;;;;WAKG;;;;QAIH;;;WAGG;;;;;;;QAOH;;;;WAIG;;;;;;CAMN,CAAC"}
@@ -187,6 +187,9 @@
187
187
  errorSummary_one: '{{count}} celda con errores',
188
188
  errorSummary_other: '{{count}} celdas con errores'
189
189
  },
190
+ reference: {
191
+ unresolved: '{{noun}} {{id}}'
192
+ },
190
193
  value: {
191
194
  none: '— ninguno —',
192
195
  yes: 'Sí',
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/i18n/catalog/es.ts"],"sourcesContent":["/**\n * Copy owned by `@entifix/react-controls` — the agnostic entity UI. It lives\n * here rather than next to the components because the typed-key augmentation has\n * to see every namespace from one module, and `@entifix/tooling` (T0) may not\n * import a T3 package.\n */\nexport const controls = {\n actions: {\n more: 'Más acciones',\n forRecord: 'Acciones para {{record}}',\n },\n table: {\n select: 'Seleccionar',\n actions: 'Acciones',\n new: 'Nuevo',\n filters: 'Filtros',\n sorting: 'Orden',\n loading: 'Cargando…',\n /**\n * La columna de selección. `selectRow` nombra la fila porque una casilla\n * sin etiqueta visible sólo se anuncia por su `aria-label`, y repetir el\n * encabezado en cada fila no diría cuál es.\n */\n selection: 'Selección',\n selectRow: 'Seleccionar {{record}}',\n expandRow: 'Expandir {{record}}',\n collapseRow: 'Contraer {{record}}',\n selectAllOnPage: 'Seleccionar todo en esta página',\n /**\n * La segunda selección — la que el servidor evalúa — lleva el número\n * siempre: es la diferencia entre actuar sobre 25 filas y sobre 3.200.\n */\n selectAllMatching_one: 'Seleccionar {{count}} coincidencia',\n selectAllMatching_other: 'Seleccionar las {{count}} coincidencias',\n selectedCount_one: '{{count}} seleccionado',\n selectedCount_other: '{{count}} seleccionados',\n clearSelection: 'Limpiar selección',\n /**\n * Lo que dice la región de estado tras filtrar, ordenar o cambiar de\n * página — nunca en la primera carga, que el lector pidió al llegar.\n */\n results_one: '{{count}} resultado',\n results_other: '{{count}} resultados',\n noResultsFiltered: 'Sin resultados para estos filtros',\n /** El `caption` de la tabla: qué contiene, cuántos y en qué orden. */\n caption: '{{entity}} · {{results}}',\n captionSorted:\n '{{entity}} · {{results}} · ordenado por {{column}}, {{direction}}',\n },\n /**\n * Una acción sobre una selección. El resultado es por fila, nunca un aviso\n * único: 40 seleccionadas y 3 fallidas no es ni un éxito ni un error.\n */\n bulk: {\n running: 'Ejecutando…',\n succeeded_one: '{{count}} registro actualizado',\n succeeded_other: '{{count}} registros actualizados',\n failed_one: '{{count}} registro falló',\n failed_other: '{{count}} registros fallaron',\n retryFailed: 'Reintentar los fallidos',\n dismiss: 'Cerrar resultado',\n resultLabel: 'Resultado de la acción masiva',\n barLabel: 'Acciones sobre la selección',\n },\n form: {\n details: 'Detalles',\n new: 'Nuevo',\n view: 'Ver',\n edit: 'Editar',\n save: 'Guardar',\n saving: 'Guardando…',\n delete: 'Eliminar',\n deleting: 'Eliminando…',\n clone: 'Duplicar',\n back: 'Volver',\n loading: 'Cargando…',\n pending: 'Esperando al servidor…',\n /** El resumen de un guardado rechazado: toma el foco, enlaza cada campo. */\n errorSummary_one: 'Revise {{count}} campo antes de guardar',\n errorSummary_other: 'Revise {{count}} campos antes de guardar',\n requiredHint: 'Los campos marcados con * son obligatorios.',\n requiredMarker: '*',\n },\n /**\n * Lo que dice una región cuando no muestra su contenido (ADR 0028): qué\n * pasó, qué hacer, sin culpar a nadie y sin códigos.\n */\n state: {\n retry: 'Reintentar',\n forbidden: 'No tiene permiso para ver {{plural}}.',\n stale: 'Lo que se muestra puede estar desactualizado.',\n noResults: 'No hay {{plural}} que coincidan con estos filtros.',\n clearFilters: 'Limpiar filtros',\n empty: 'Aquí aparecerán sus {{plural}}.',\n saved: 'Se guardó {{object}}.',\n },\n pagination: {\n label: 'Páginas',\n summary: 'Página {{current}} de {{total}} · {{items}} registros',\n rows: 'Filas',\n first: 'Primera',\n previous: 'Anterior',\n next: 'Siguiente',\n last: 'Última',\n /** Lo que se anuncia al cambiar de página. */\n page: 'Página {{current}} de {{total}}',\n },\n columns: {\n title: 'Columnas',\n subtitle: 'Visibilidad y orden',\n reset: 'Restablecer',\n moveUp: 'Subir {{column}}',\n moveDown: 'Bajar {{column}}',\n },\n filter: {\n match: 'Coincidir',\n all: 'todos',\n any: 'cualquiera',\n add: 'Añadir filtro',\n apply: 'Aplicar',\n clear: 'Limpiar',\n none: 'Esta entidad no tiene miembros filtrables.',\n listPlaceholder: 'valores, separados, por comas',\n matchAria: 'Coincidir todos o cualquiera de los filtros',\n member: 'Miembro del filtro',\n operator: 'Operador del filtro',\n value: 'Valor del filtro',\n rangeEnd: 'Fin del rango del filtro',\n remove: 'Quitar filtro',\n applyAria: 'Aplicar filtros',\n clearAria: 'Limpiar filtros',\n applied: 'Filtros aplicados',\n removeChip: 'Quitar filtro: {{filter}}',\n clearAll: 'Limpiar todo',\n /** Una opción con cuántos registros la tienen: «Borrador (3)». */\n withCount: '{{label}} ({{count}})',\n },\n sort: {\n by: 'Ordenar por',\n then: 'después por',\n ascending: 'ascendente',\n descending: 'descendente',\n add: 'Añadir orden',\n apply: 'Aplicar',\n clear: 'Limpiar',\n none: 'Esta entidad no tiene miembros ordenables.',\n member: 'Miembro de orden',\n direction: 'Dirección de orden',\n raisePriority: 'Subir prioridad de orden',\n lowerPriority: 'Bajar prioridad de orden',\n remove: 'Quitar orden',\n applyAria: 'Aplicar orden',\n clearAria: 'Limpiar orden',\n },\n alert: {\n dismiss: 'Descartar',\n },\n quantity: {\n decrease: 'Disminuir {{label}}',\n increase: 'Aumentar {{label}}',\n },\n tabs: {\n close: 'Cerrar {{label}}',\n new: 'Abrir una pestaña nueva',\n list: 'Pestañas del espacio de trabajo',\n withState: '{{label}}, {{state}}',\n dirty: 'cambios sin guardar',\n saving: 'guardando',\n error: 'sin guardar',\n },\n /**\n * El editor de una relación. `search` es la búsqueda rápida y `browse` abre el\n * catálogo completo; ambos botones son iconos, así que sus etiquetas `aria` son\n * lo único que un lector de pantalla anuncia.\n */\n link: {\n search: 'Buscar {{field}}',\n suggestAria: 'Ver sugerencias de {{field}}',\n browseAria: 'Examinar {{field}}',\n browseTitle: 'Seleccionar {{field}}',\n clear: 'Quitar {{field}}',\n empty: '— sin asignar —',\n loading: 'Cargando…',\n noResults: 'Sin coincidencias',\n error: 'No se pudieron cargar las opciones',\n close: 'Cerrar',\n },\n /**\n * La rejilla de detalle: las filas que un registro **posee** — las líneas de\n * un pedido, los renglones de una factura. `errorSummary` es el único\n * `role=\"alert\"` del control: un aviso por celda anunciaría la rejilla entera\n * en cada pulsación, y un mensaje que sólo vive en la celda es inalcanzable\n * cuando la fila que falla está fuera de pantalla.\n */\n detail: {\n addRow: 'Añadir fila',\n removeRow: 'Quitar fila {{row}}',\n rowActions: 'Acciones de fila',\n empty: 'Todavía no hay filas.',\n errorSummary_one: '{{count}} celda con errores',\n errorSummary_other: '{{count}} celdas con errores',\n },\n value: {\n none: '— ninguno —',\n yes: 'Sí',\n no: 'No',\n /**\n * Una `composition` en una tabla: sus filas se editan en la pantalla del\n * maestro, no en la celda, así que la celda dice cuántas hay.\n */\n rowCount_one: '{{count}} fila',\n rowCount_other: '{{count}} filas',\n },\n /**\n * `required`…`option` son las reglas derivadas de la metadata. El resto es el\n * vocabulario en el que un Standard Schema de una entidad escribe sus\n * mensajes: el esquema lleva la *clave*, nunca una frase, para que la regla\n * siga siendo traducible.\n *\n * `field` es el único parámetro disponible — un issue de Standard Schema\n * expone un mensaje y una ruta, nada más — así que estos mensajes no indican\n * el límite. Una regla que deba enunciarlo escribe su propia clave en el\n * catálogo de su dominio (`entity:product-specification.validation.codeLength`).\n */\n validation: {\n required: '{{field}} es obligatorio',\n number: '{{field}} debe ser un número',\n date: '{{field}} debe ser una fecha',\n option: '{{field}} no es una opción válida',\n minLength: '{{field}} es demasiado corto',\n maxLength: '{{field}} es demasiado largo',\n min: '{{field}} es demasiado pequeño',\n max: '{{field}} es demasiado grande',\n pattern: '{{field}} tiene un formato inválido',\n minItems_one: '{{field}} necesita al menos {{count}} elemento',\n minItems_other: '{{field}} necesita al menos {{count}} elementos',\n maxItems_one: '{{field}} admite como máximo {{count}} elemento',\n maxItems_other: '{{field}} admite como máximo {{count}} elementos',\n notBefore: '{{field}} no puede ser anterior a {{other}}',\n locale: '{{field}} no tiene texto en {{locale}}',\n },\n /**\n * The filter vocabulary shown to a user. Deliberately distinct from\n * `RSQL_TOKENS` in `@entifix/core` — those are wire tokens (`==`, `=gt=`)\n * and must never be translated.\n */\n operator: {\n eq: 'es',\n ne: 'no es',\n gt: 'mayor que',\n gte: 'mayor o igual',\n lt: 'menor que',\n lte: 'menor o igual',\n in: 'es uno de',\n nin: 'no es ninguno de',\n between: 'entre',\n nbetween: 'fuera de',\n like: 'contiene',\n nlike: 'no contiene',\n isNull: 'está vacío',\n isNotNull: 'no está vacío',\n },\n density: {\n label: 'Densidad',\n comfortable: 'Cómoda',\n compact: 'Compacta',\n },\n theme: {\n label: 'Tema',\n },\n /**\n * Captions for the theme presets shipped by `@entifix/style`, plus the\n * per-app brand sets. They name design-system tokens, not app copy, so they\n * live beside the switcher that renders them and stay reachable from\n * Storybook, where no shell is mounted.\n */\n themes: {\n aurora: 'Aurora',\n sunset: 'Atardecer',\n midnight: 'Medianoche',\n ocean: 'Océano (en runtime)',\n marketplace: 'Marketplace',\n marketplaceDark: 'Marketplace oscuro',\n auth: 'Identidad',\n authDark: 'Identidad oscura',\n },\n confirm: {\n confirm: 'Confirmar',\n cancel: 'Cancelar',\n question: '¿{{verb}} {{object}}?',\n verbCount_one: '{{verb}}',\n verbCount_other: '{{verb}} {{count}}',\n selection_one: '{{count}} {{label}}',\n selection_other: '{{count}} {{plural}}',\n typeToConfirm: 'Escriba {{expected}} para confirmar',\n done: 'Hecho: {{verb}}, {{object}}.',\n undo: 'Deshacer',\n deleteMessage: 'Se elimina de forma definitiva.',\n deleted: 'Se eliminó {{object}}.',\n },\n /** Las actualizaciones en vivo: se dicen al caer y al volver, nada más. */\n live: {\n reconnecting: 'Actualizaciones en vivo en pausa — reconectando',\n stopped: 'Actualizaciones en vivo detenidas',\n reconnect: 'Reconectar',\n resumed: 'Actualizaciones en vivo reanudadas',\n waiting: 'Esperando la conexión…',\n },\n toast: {\n region: 'Notificaciones',\n dismiss: 'Descartar',\n },\n breadcrumbs: {\n label: 'Ruta de navegación',\n },\n /**\n * El asistente. Las etiquetas de cada paso las traduce quien declara el\n * asistente, no el control: un paso es del dominio que lo definió, y su copy\n * vive en `shell:` junto al resto de sus nombres.\n */\n wizard: {\n steps: 'Pasos',\n previous: 'Atrás',\n /**\n * \"Continuar\" y no \"Siguiente\": una tabla dentro de un paso trae su propio\n * paginador, cuyo botón **es** \"Siguiente\". Dos controles con el mismo\n * nombre en la misma pantalla se anuncian igual y hacen cosas distintas.\n */\n next: 'Continuar',\n finish: 'Finalizar',\n /**\n * Un envío que **no** resuelve. El asistente entrega el trabajo y vuelve\n * antes de que la escritura termine, así que dice \"enviando\" y\n * nunca \"guardado\": lo segundo sería una afirmación que el control no puede\n * comprobar.\n */\n submitting: 'Enviando…',\n stepOf: 'Paso {{current}} de {{total}}',\n goToStep: 'Volver a {{label}}',\n /**\n * El estado de cada paso, anunciado además de mostrarse. El color por sí\n * solo no lo dice, y un lector de pantalla recorre la lista sin verlo.\n */\n status: {\n pending: 'pendiente',\n active: 'en curso',\n complete: 'completado',\n error: 'con errores',\n },\n /**\n * El recordatorio al retomar. La persistencia da el \"continuar\" gratis; lo\n * que no da es acordarse de lo ya decidido, que es la falla conocida de los\n * asistentes largos.\n */\n resume: {\n title: 'Retomando donde lo dejaste',\n dismiss: 'Entendido',\n },\n },\n};\n"],"names":["controls","actions","more","forRecord","table","select","new","filters","sorting","loading","selection","selectRow","expandRow","collapseRow","selectAllOnPage","selectAllMatching_one","selectAllMatching_other","selectedCount_one","selectedCount_other","clearSelection","results_one","results_other","noResultsFiltered","caption","captionSorted","bulk","running","succeeded_one","succeeded_other","failed_one","failed_other","retryFailed","dismiss","resultLabel","barLabel","form","details","view","edit","save","saving","delete","deleting","clone","back","pending","errorSummary_one","errorSummary_other","requiredHint","requiredMarker","state","retry","forbidden","stale","noResults","clearFilters","empty","saved","pagination","label","summary","rows","first","previous","next","last","page","columns","title","subtitle","reset","moveUp","moveDown","filter","match","all","any","add","apply","clear","none","listPlaceholder","matchAria","member","operator","value","rangeEnd","remove","applyAria","clearAria","applied","removeChip","clearAll","withCount","sort","by","then","ascending","descending","direction","raisePriority","lowerPriority","alert","quantity","decrease","increase","tabs","close","list","withState","dirty","error","link","search","suggestAria","browseAria","browseTitle","detail","addRow","removeRow","rowActions","yes","no","rowCount_one","rowCount_other","validation","required","number","date","option","minLength","maxLength","min","max","pattern","minItems_one","minItems_other","maxItems_one","maxItems_other","notBefore","locale","eq","ne","gt","gte","lt","lte","in","nin","between","nbetween","like","nlike","isNull","isNotNull","density","comfortable","compact","theme","themes","aurora","sunset","midnight","ocean","marketplace","marketplaceDark","auth","authDark","confirm","cancel","question","verbCount_one","verbCount_other","selection_one","selection_other","typeToConfirm","done","undo","deleteMessage","deleted","live","reconnecting","stopped","reconnect","resumed","waiting","toast","region","breadcrumbs","wizard","steps","finish","submitting","stepOf","goToStep","status","active","complete","resume"],"mappings":"AAAA;;;;;CAKC,GACD,OAAO,MAAMA,WAAW;IACtBC,SAAS;QACPC,MAAM;QACNC,WAAW;IACb;IACAC,OAAO;QACLC,QAAQ;QACRJ,SAAS;QACTK,KAAK;QACLC,SAAS;QACTC,SAAS;QACTC,SAAS;QACT;;;;KAIC,GACDC,WAAW;QACXC,WAAW;QACXC,WAAW;QACXC,aAAa;QACbC,iB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;;GAKC,GACDoG,QAAQ;QACNC,QAAQ;QACRC,QAAQ;QACRC,UAAU;QACVC,OAAO;QACPC,aAAa;QACbC,iBAAiB;QACjBC,MAAM;QACNC,UAAU;IACZ;IACAC,SAAS;QACPA,SAAS;QACTC,QAAQ;QACRC,UAAU;QACVC,eAAe;QACfC,iBAAiB;QACjBC,eAAe;QACfC,iBAAiB;QACjBC,eAAe;QACfC,MAAM;QACNC,MAAM;QACNC,eAAe;QACfC,SAAS;IACX;IACA,yEAAyE,GACzEC,MAAM;QACJC,cAAc;QACdC,SAAS;QACTC,WAAW;QACXC,SAAS;QACTC,SAAS;IACX;IACAC,OAAO;QACLC,QAAQ;QACR3J,SAAS;IACX;IACA4J,aAAa;QACXjI,OAAO;IACT;IACA;;;;GAIC,GACDkI,QAAQ;QACNC,OAAO;QACP/H,UAAU;QACV;;;;KAIC,GACDC,MAAM;QACN+H,QAAQ;QACR;;;;;KAKC,GACDC,YAAY;QACZC,QAAQ;QACRC,UAAU;QACV;;;KAGC,GACDC,QAAQ;YACNtJ,SAAS;YACTuJ,QAAQ;YACRC,UAAU;YACVtF,OAAO;QACT;QACA;;;;KAIC,GACDuF,QAAQ;YACNlI,OAAO;YACPpC,SAAS;QACX;IACF;AACF,EAAE"}
1
+ {"version":3,"sources":["../../../src/i18n/catalog/es.ts"],"sourcesContent":["/**\n * Copy owned by `@entifix/react-controls` — the agnostic entity UI. It lives\n * here rather than next to the components because the typed-key augmentation has\n * to see every namespace from one module, and `@entifix/tooling` (T0) may not\n * import a T3 package.\n */\nexport const controls = {\n actions: {\n more: 'Más acciones',\n forRecord: 'Acciones para {{record}}',\n },\n table: {\n select: 'Seleccionar',\n actions: 'Acciones',\n new: 'Nuevo',\n filters: 'Filtros',\n sorting: 'Orden',\n loading: 'Cargando…',\n /**\n * La columna de selección. `selectRow` nombra la fila porque una casilla\n * sin etiqueta visible sólo se anuncia por su `aria-label`, y repetir el\n * encabezado en cada fila no diría cuál es.\n */\n selection: 'Selección',\n selectRow: 'Seleccionar {{record}}',\n expandRow: 'Expandir {{record}}',\n collapseRow: 'Contraer {{record}}',\n selectAllOnPage: 'Seleccionar todo en esta página',\n /**\n * La segunda selección — la que el servidor evalúa — lleva el número\n * siempre: es la diferencia entre actuar sobre 25 filas y sobre 3.200.\n */\n selectAllMatching_one: 'Seleccionar {{count}} coincidencia',\n selectAllMatching_other: 'Seleccionar las {{count}} coincidencias',\n selectedCount_one: '{{count}} seleccionado',\n selectedCount_other: '{{count}} seleccionados',\n clearSelection: 'Limpiar selección',\n /**\n * Lo que dice la región de estado tras filtrar, ordenar o cambiar de\n * página — nunca en la primera carga, que el lector pidió al llegar.\n */\n results_one: '{{count}} resultado',\n results_other: '{{count}} resultados',\n noResultsFiltered: 'Sin resultados para estos filtros',\n /** El `caption` de la tabla: qué contiene, cuántos y en qué orden. */\n caption: '{{entity}} · {{results}}',\n captionSorted:\n '{{entity}} · {{results}} · ordenado por {{column}}, {{direction}}',\n },\n /**\n * Una acción sobre una selección. El resultado es por fila, nunca un aviso\n * único: 40 seleccionadas y 3 fallidas no es ni un éxito ni un error.\n */\n bulk: {\n running: 'Ejecutando…',\n succeeded_one: '{{count}} registro actualizado',\n succeeded_other: '{{count}} registros actualizados',\n failed_one: '{{count}} registro falló',\n failed_other: '{{count}} registros fallaron',\n retryFailed: 'Reintentar los fallidos',\n dismiss: 'Cerrar resultado',\n resultLabel: 'Resultado de la acción masiva',\n barLabel: 'Acciones sobre la selección',\n },\n form: {\n details: 'Detalles',\n new: 'Nuevo',\n view: 'Ver',\n edit: 'Editar',\n save: 'Guardar',\n saving: 'Guardando…',\n delete: 'Eliminar',\n deleting: 'Eliminando…',\n clone: 'Duplicar',\n back: 'Volver',\n loading: 'Cargando…',\n pending: 'Esperando al servidor…',\n /** El resumen de un guardado rechazado: toma el foco, enlaza cada campo. */\n errorSummary_one: 'Revise {{count}} campo antes de guardar',\n errorSummary_other: 'Revise {{count}} campos antes de guardar',\n requiredHint: 'Los campos marcados con * son obligatorios.',\n requiredMarker: '*',\n },\n /**\n * Lo que dice una región cuando no muestra su contenido (ADR 0028): qué\n * pasó, qué hacer, sin culpar a nadie y sin códigos.\n */\n state: {\n retry: 'Reintentar',\n forbidden: 'No tiene permiso para ver {{plural}}.',\n stale: 'Lo que se muestra puede estar desactualizado.',\n noResults: 'No hay {{plural}} que coincidan con estos filtros.',\n clearFilters: 'Limpiar filtros',\n empty: 'Aquí aparecerán sus {{plural}}.',\n saved: 'Se guardó {{object}}.',\n },\n pagination: {\n label: 'Páginas',\n summary: 'Página {{current}} de {{total}} · {{items}} registros',\n rows: 'Filas',\n first: 'Primera',\n previous: 'Anterior',\n next: 'Siguiente',\n last: 'Última',\n /** Lo que se anuncia al cambiar de página. */\n page: 'Página {{current}} de {{total}}',\n },\n columns: {\n title: 'Columnas',\n subtitle: 'Visibilidad y orden',\n reset: 'Restablecer',\n moveUp: 'Subir {{column}}',\n moveDown: 'Bajar {{column}}',\n },\n filter: {\n match: 'Coincidir',\n all: 'todos',\n any: 'cualquiera',\n add: 'Añadir filtro',\n apply: 'Aplicar',\n clear: 'Limpiar',\n none: 'Esta entidad no tiene miembros filtrables.',\n listPlaceholder: 'valores, separados, por comas',\n matchAria: 'Coincidir todos o cualquiera de los filtros',\n member: 'Miembro del filtro',\n operator: 'Operador del filtro',\n value: 'Valor del filtro',\n rangeEnd: 'Fin del rango del filtro',\n remove: 'Quitar filtro',\n applyAria: 'Aplicar filtros',\n clearAria: 'Limpiar filtros',\n applied: 'Filtros aplicados',\n removeChip: 'Quitar filtro: {{filter}}',\n clearAll: 'Limpiar todo',\n /** Una opción con cuántos registros la tienen: «Borrador (3)». */\n withCount: '{{label}} ({{count}})',\n },\n sort: {\n by: 'Ordenar por',\n then: 'después por',\n ascending: 'ascendente',\n descending: 'descendente',\n add: 'Añadir orden',\n apply: 'Aplicar',\n clear: 'Limpiar',\n none: 'Esta entidad no tiene miembros ordenables.',\n member: 'Miembro de orden',\n direction: 'Dirección de orden',\n raisePriority: 'Subir prioridad de orden',\n lowerPriority: 'Bajar prioridad de orden',\n remove: 'Quitar orden',\n applyAria: 'Aplicar orden',\n clearAria: 'Limpiar orden',\n },\n alert: {\n dismiss: 'Descartar',\n },\n quantity: {\n decrease: 'Disminuir {{label}}',\n increase: 'Aumentar {{label}}',\n },\n tabs: {\n close: 'Cerrar {{label}}',\n new: 'Abrir una pestaña nueva',\n list: 'Pestañas del espacio de trabajo',\n withState: '{{label}}, {{state}}',\n dirty: 'cambios sin guardar',\n saving: 'guardando',\n error: 'sin guardar',\n },\n /**\n * El editor de una relación. `search` es la búsqueda rápida y `browse` abre el\n * catálogo completo; ambos botones son iconos, así que sus etiquetas `aria` son\n * lo único que un lector de pantalla anuncia.\n */\n link: {\n search: 'Buscar {{field}}',\n suggestAria: 'Ver sugerencias de {{field}}',\n browseAria: 'Examinar {{field}}',\n browseTitle: 'Seleccionar {{field}}',\n clear: 'Quitar {{field}}',\n empty: '— sin asignar —',\n loading: 'Cargando…',\n noResults: 'Sin coincidencias',\n error: 'No se pudieron cargar las opciones',\n close: 'Cerrar',\n },\n /**\n * La rejilla de detalle: las filas que un registro **posee** — las líneas de\n * un pedido, los renglones de una factura. `errorSummary` es el único\n * `role=\"alert\"` del control: un aviso por celda anunciaría la rejilla entera\n * en cada pulsación, y un mensaje que sólo vive en la celda es inalcanzable\n * cuando la fila que falla está fuera de pantalla.\n */\n detail: {\n addRow: 'Añadir fila',\n removeRow: 'Quitar fila {{row}}',\n rowActions: 'Acciones de fila',\n empty: 'Todavía no hay filas.',\n errorSummary_one: '{{count}} celda con errores',\n errorSummary_other: '{{count}} celdas con errores',\n },\n reference: {\n unresolved: '{{noun}} {{id}}',\n },\n value: {\n none: '— ninguno —',\n yes: 'Sí',\n no: 'No',\n /**\n * Una `composition` en una tabla: sus filas se editan en la pantalla del\n * maestro, no en la celda, así que la celda dice cuántas hay.\n */\n rowCount_one: '{{count}} fila',\n rowCount_other: '{{count}} filas',\n },\n /**\n * `required`…`option` son las reglas derivadas de la metadata. El resto es el\n * vocabulario en el que un Standard Schema de una entidad escribe sus\n * mensajes: el esquema lleva la *clave*, nunca una frase, para que la regla\n * siga siendo traducible.\n *\n * `field` es el único parámetro disponible — un issue de Standard Schema\n * expone un mensaje y una ruta, nada más — así que estos mensajes no indican\n * el límite. Una regla que deba enunciarlo escribe su propia clave en el\n * catálogo de su dominio (`entity:product-specification.validation.codeLength`).\n */\n validation: {\n required: '{{field}} es obligatorio',\n number: '{{field}} debe ser un número',\n date: '{{field}} debe ser una fecha',\n option: '{{field}} no es una opción válida',\n minLength: '{{field}} es demasiado corto',\n maxLength: '{{field}} es demasiado largo',\n min: '{{field}} es demasiado pequeño',\n max: '{{field}} es demasiado grande',\n pattern: '{{field}} tiene un formato inválido',\n minItems_one: '{{field}} necesita al menos {{count}} elemento',\n minItems_other: '{{field}} necesita al menos {{count}} elementos',\n maxItems_one: '{{field}} admite como máximo {{count}} elemento',\n maxItems_other: '{{field}} admite como máximo {{count}} elementos',\n notBefore: '{{field}} no puede ser anterior a {{other}}',\n locale: '{{field}} no tiene texto en {{locale}}',\n },\n /**\n * The filter vocabulary shown to a user. Deliberately distinct from\n * `RSQL_TOKENS` in `@entifix/core` — those are wire tokens (`==`, `=gt=`)\n * and must never be translated.\n */\n operator: {\n eq: 'es',\n ne: 'no es',\n gt: 'mayor que',\n gte: 'mayor o igual',\n lt: 'menor que',\n lte: 'menor o igual',\n in: 'es uno de',\n nin: 'no es ninguno de',\n between: 'entre',\n nbetween: 'fuera de',\n like: 'contiene',\n nlike: 'no contiene',\n isNull: 'está vacío',\n isNotNull: 'no está vacío',\n },\n density: {\n label: 'Densidad',\n comfortable: 'Cómoda',\n compact: 'Compacta',\n },\n theme: {\n label: 'Tema',\n },\n /**\n * Captions for the theme presets shipped by `@entifix/style`, plus the\n * per-app brand sets. They name design-system tokens, not app copy, so they\n * live beside the switcher that renders them and stay reachable from\n * Storybook, where no shell is mounted.\n */\n themes: {\n aurora: 'Aurora',\n sunset: 'Atardecer',\n midnight: 'Medianoche',\n ocean: 'Océano (en runtime)',\n marketplace: 'Marketplace',\n marketplaceDark: 'Marketplace oscuro',\n auth: 'Identidad',\n authDark: 'Identidad oscura',\n },\n confirm: {\n confirm: 'Confirmar',\n cancel: 'Cancelar',\n question: '¿{{verb}} {{object}}?',\n verbCount_one: '{{verb}}',\n verbCount_other: '{{verb}} {{count}}',\n selection_one: '{{count}} {{label}}',\n selection_other: '{{count}} {{plural}}',\n typeToConfirm: 'Escriba {{expected}} para confirmar',\n done: 'Hecho: {{verb}}, {{object}}.',\n undo: 'Deshacer',\n deleteMessage: 'Se elimina de forma definitiva.',\n deleted: 'Se eliminó {{object}}.',\n },\n /** Las actualizaciones en vivo: se dicen al caer y al volver, nada más. */\n live: {\n reconnecting: 'Actualizaciones en vivo en pausa — reconectando',\n stopped: 'Actualizaciones en vivo detenidas',\n reconnect: 'Reconectar',\n resumed: 'Actualizaciones en vivo reanudadas',\n waiting: 'Esperando la conexión…',\n },\n toast: {\n region: 'Notificaciones',\n dismiss: 'Descartar',\n },\n breadcrumbs: {\n label: 'Ruta de navegación',\n },\n /**\n * El asistente. Las etiquetas de cada paso las traduce quien declara el\n * asistente, no el control: un paso es del dominio que lo definió, y su copy\n * vive en `shell:` junto al resto de sus nombres.\n */\n wizard: {\n steps: 'Pasos',\n previous: 'Atrás',\n /**\n * \"Continuar\" y no \"Siguiente\": una tabla dentro de un paso trae su propio\n * paginador, cuyo botón **es** \"Siguiente\". Dos controles con el mismo\n * nombre en la misma pantalla se anuncian igual y hacen cosas distintas.\n */\n next: 'Continuar',\n finish: 'Finalizar',\n /**\n * Un envío que **no** resuelve. El asistente entrega el trabajo y vuelve\n * antes de que la escritura termine, así que dice \"enviando\" y\n * nunca \"guardado\": lo segundo sería una afirmación que el control no puede\n * comprobar.\n */\n submitting: 'Enviando…',\n stepOf: 'Paso {{current}} de {{total}}',\n goToStep: 'Volver a {{label}}',\n /**\n * El estado de cada paso, anunciado además de mostrarse. El color por sí\n * solo no lo dice, y un lector de pantalla recorre la lista sin verlo.\n */\n status: {\n pending: 'pendiente',\n active: 'en curso',\n complete: 'completado',\n error: 'con errores',\n },\n /**\n * El recordatorio al retomar. La persistencia da el \"continuar\" gratis; lo\n * que no da es acordarse de lo ya decidido, que es la falla conocida de los\n * asistentes largos.\n */\n resume: {\n title: 'Retomando donde lo dejaste',\n dismiss: 'Entendido',\n },\n },\n};\n"],"names":["controls","actions","more","forRecord","table","select","new","filters","sorting","loading","selection","selectRow","expandRow","collapseRow","selectAllOnPage","selectAllMatching_one","selectAllMatching_other","selectedCount_one","selectedCount_other","clearSelection","results_one","results_other","noResultsFiltered","caption","captionSorted","bulk","running","succeeded_one","succeeded_other","failed_one","failed_other","retryFailed","dismiss","resultLabel","barLabel","form","details","view","edit","save","saving","delete","deleting","clone","back","pending","errorSummary_one","errorSummary_other","requiredHint","requiredMarker","state","retry","forbidden","stale","noResults","clearFilters","empty","saved","pagination","label","summary","rows","first","previous","next","last","page","columns","title","subtitle","reset","moveUp","moveDown","filter","match","all","any","add","apply","clear","none","listPlaceholder","matchAria","member","operator","value","rangeEnd","remove","applyAria","clearAria","applied","removeChip","clearAll","withCount","sort","by","then","ascending","descending","direction","raisePriority","lowerPriority","alert","quantity","decrease","increase","tabs","close","list","withState","dirty","error","link","search","suggestAria","browseAria","browseTitle","detail","addRow","removeRow","rowActions","reference","unresolved","yes","no","rowCount_one","rowCount_other","validation","required","number","date","option","minLength","maxLength","min","max","pattern","minItems_one","minItems_other","maxItems_one","maxItems_other","notBefore","locale","eq","ne","gt","gte","lt","lte","in","nin","between","nbetween","like","nlike","isNull","isNotNull","density","comfortable","compact","theme","themes","aurora","sunset","midnight","ocean","marketplace","marketplaceDark","auth","authDark","confirm","cancel","question","verbCount_one","verbCount_other","selection_one","selection_other","typeToConfirm","done","undo","deleteMessage","deleted","live","reconnecting","stopped","reconnect","resumed","waiting","toast","region","breadcrumbs","wizard","steps","finish","submitting","stepOf","goToStep","status","active","complete","resume"],"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,UAAU;QACR2D,IAAI;QACJC,IAAI;QACJC,IAAI;QACJC,KAAK;QACLC,IAAI;QACJC,KAAK;QACLC,IAAI;QACJC,KAAK;QACLC,SAAS;QACTC,UAAU;QACVC,MAAM;QACNC,OAAO;QACPC,QAAQ;QACRC,WAAW;IACb;IACAC,SAAS;QACPlG,OAAO;QACPmG,aAAa;QACbC,SAAS;IACX;IACAC,OAAO;QACLrG,OAAO;IACT;IACA;;;;;GAKC,GACDsG,QAAQ;QACNC,QAAQ;QACRC,QAAQ;QACRC,UAAU;QACVC,OAAO;QACPC,aAAa;QACbC,iBAAiB;QACjBC,MAAM;QACNC,UAAU;IACZ;IACAC,SAAS;QACPA,SAAS;QACTC,QAAQ;QACRC,UAAU;QACVC,eAAe;QACfC,iBAAiB;QACjBC,eAAe;QACfC,iBAAiB;QACjBC,eAAe;QACfC,MAAM;QACNC,MAAM;QACNC,eAAe;QACfC,SAAS;IACX;IACA,yEAAyE,GACzEC,MAAM;QACJC,cAAc;QACdC,SAAS;QACTC,WAAW;QACXC,SAAS;QACTC,SAAS;IACX;IACAC,OAAO;QACLC,QAAQ;QACR7J,SAAS;IACX;IACA8J,aAAa;QACXnI,OAAO;IACT;IACA;;;;GAIC,GACDoI,QAAQ;QACNC,OAAO;QACPjI,UAAU;QACV;;;;KAIC,GACDC,MAAM;QACNiI,QAAQ;QACR;;;;;KAKC,GACDC,YAAY;QACZC,QAAQ;QACRC,UAAU;QACV;;;KAGC,GACDC,QAAQ;YACNxJ,SAAS;YACTyJ,QAAQ;YACRC,UAAU;YACVxF,OAAO;QACT;QACA;;;;KAIC,GACDyF,QAAQ;YACNpI,OAAO;YACPpC,SAAS;QACX;IACF;AACF,EAAE"}
@@ -167,6 +167,9 @@ export declare const controlsCatalogs: {
167
167
  errorSummary_one: string;
168
168
  errorSummary_other: string;
169
169
  };
170
+ reference: {
171
+ unresolved: string;
172
+ };
170
173
  value: {
171
174
  none: string;
172
175
  yes: string;
@@ -433,6 +436,9 @@ export declare const controlsCatalogs: {
433
436
  errorSummary_one: string;
434
437
  errorSummary_other: string;
435
438
  };
439
+ reference: {
440
+ unresolved: string;
441
+ };
436
442
  value: {
437
443
  none: string;
438
444
  yes: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/i18n/catalog/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGnB,CAAC;AAEX,qEAAqE;AACrE,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,IAAI,CAAC,CAAC;AAEhE,eAAO,MAAM,mBAAmB,uBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/i18n/catalog/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGnB,CAAC;AAEX,qEAAqE;AACrE,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,IAAI,CAAC,CAAC;AAEhE,eAAO,MAAM,mBAAmB,uBAAwB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -66,6 +66,7 @@ export * from './ui/utils/fold-script/index.js';
66
66
  export * from './ui/utils/keep-section/index.js';
67
67
  export * from './ui/utils/live-updates.js';
68
68
  export * from './ui/utils/media-query/index.js';
69
+ export * from './ui/utils/reference-labels.js';
69
70
  export { useFocusOnArrival } from './ui/utils/use-focus-on-arrival.js';
70
71
  export { type HotkeyOptions, type HotkeyScope, HotkeyScopeProvider, PAGE_SCOPE, useHotkey, } from './ui/utils/use-hotkey.js';
71
72
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACv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C,CAAC;AACnD,cAAc,kBAAkB,CAAC;AACjC,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,mBAAmB,EACnB,UAAU,EACV,SAAS,GACV,MAAM,0BAA0B,CAAC"}
package/dist/index.js CHANGED
@@ -66,6 +66,7 @@ export * from './ui/utils/fold-script/index.js';
66
66
  export * from './ui/utils/keep-section/index.js';
67
67
  export * from './ui/utils/live-updates.js';
68
68
  export * from './ui/utils/media-query/index.js';
69
+ export * from './ui/utils/reference-labels.js';
69
70
  export { useFocusOnArrival } from './ui/utils/use-focus-on-arrival.js';
70
71
  export { HotkeyScopeProvider, PAGE_SCOPE, useHotkey } from './ui/utils/use-hotkey.js';
71
72
 
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './i18n/index.js';\nexport * from './preferences/index.js';\nexport * from './theme/index.js';\nexport * from './ui/actions/index.js';\nexport * from './ui/atoms/alert/index.js';\nexport * from './ui/atoms/button/index.js';\nexport * from './ui/atoms/cell-value/index.js';\nexport * from './ui/atoms/external-link/index.js';\nexport * from './ui/atoms/field/index.js';\nexport * from './ui/atoms/field-control/index.js';\nexport * from './ui/atoms/localized-field-control/index.js';\nexport * from './ui/atoms/money/index.js';\nexport * from './ui/atoms/number-input/index.js';\nexport * from './ui/atoms/skeleton/index.js';\nexport * from './ui/atoms/status-tag/index.js';\nexport * from './ui/atoms/switch/index.js';\nexport * from './ui/atoms/table/index.js';\nexport * from './ui/atoms/text/index.js';\nexport * from './ui/layout/box/index.js';\nexport * from './ui/layout/center/index.js';\nexport * from './ui/layout/cluster/index.js';\nexport * from './ui/layout/cover/index.js';\nexport * from './ui/layout/grid/index.js';\nexport * from './ui/layout/sidebar/index.js';\nexport * from './ui/layout/switcher/index.js';\nexport * from './ui/molecules/action-bar/index.js';\nexport * from './ui/molecules/breadcrumbs/index.js';\nexport * from './ui/molecules/bulk-action-bar/index.js';\nexport * from './ui/molecules/bulk-result/index.js';\nexport * from './ui/molecules/card/index.js';\nexport * from './ui/molecules/column-settings/index.js';\nexport * from './ui/molecules/confirm-dialog/index.js';\nexport * from './ui/molecules/description-list/index.js';\nexport * from './ui/molecules/drawer/index.js';\nexport * from './ui/molecules/empty-state/index.js';\nexport * from './ui/molecules/entity-link-input/index.js';\nexport * from './ui/molecules/entity-link-picker/index.js';\nexport * from './ui/molecules/entity-record-card/index.js';\nexport * from './ui/molecules/filter-builder/index.js';\nexport * from './ui/molecules/filter-chips/index.js';\nexport * from './ui/molecules/loading-boundary/index.js';\nexport * from './ui/molecules/media-gallery/index.js';\nexport * from './ui/molecules/menu/index.js';\nexport * from './ui/molecules/nav-menu/index.js';\nexport * from './ui/molecules/pagination/index.js';\nexport * from './ui/molecules/region-state/index.js';\nexport * from './ui/molecules/segmented-control/index.js';\nexport * from './ui/molecules/segmented-nav/index.js';\nexport * from './ui/molecules/sort-builder/index.js';\nexport * from './ui/molecules/split-view/index.js';\nexport * from './ui/molecules/stack/index.js';\nexport * from './ui/molecules/tab-strip/index.js';\nexport * from './ui/molecules/table-toolbar/index.js';\nexport * from './ui/molecules/theme-switcher/index.js';\nexport * from './ui/molecules/toast-region/index.js';\nexport * from './ui/organisms/command-palette/index.js';\nexport * from './ui/organisms/entity-detail-grid/index.js';\nexport * from './ui/organisms/entity-form/index.js';\nexport * from './ui/organisms/entity-table/index.js';\nexport * from './ui/organisms/top-bar/index.js';\nexport * from './ui/organisms/wizard/index.js';\nexport * from './ui/utils/active-heading/index.js';\nexport * from './ui/utils/active-section/index.js';\nexport * from './ui/utils/cn.js';\nexport * from './ui/utils/fold-script/index.js';\nexport * from './ui/utils/keep-section/index.js';\nexport * from './ui/utils/live-updates.js';\nexport * from './ui/utils/media-query/index.js';\nexport { useFocusOnArrival } from './ui/utils/use-focus-on-arrival.js';\nexport {\n type HotkeyOptions,\n type HotkeyScope,\n HotkeyScopeProvider,\n PAGE_SCOPE,\n useHotkey,\n} from './ui/utils/use-hotkey.js';\n"],"names":["useFocusOnArrival","HotkeyScopeProvider","PAGE_SCOPE","useHotkey"],"mappings":"AAAA,cAAc,kBAAkB;AAChC,cAAc,yBAAyB;AACvC,cAAc,mBAAmB;AACjC,cAAc,wBAAwB;AACtC,cAAc,4BAA4B;AAC1C,cAAc,6BAA6B;AAC3C,cAAc,iCAAiC;AAC/C,cAAc,oCAAoC;AAClD,cAAc,4BAA4B;AAC1C,cAAc,oCAAoC;AAClD,cAAc,8CAA8C;AAC5D,cAAc,4BAA4B;AAC1C,cAAc,mCAAmC;AACjD,cAAc,+BAA+B;AAC7C,cAAc,iCAAiC;AAC/C,cAAc,6BAA6B;AAC3C,cAAc,4BAA4B;AAC1C,cAAc,2BAA2B;AACzC,cAAc,2BAA2B;AACzC,cAAc,8BAA8B;AAC5C,cAAc,+BAA+B;AAC7C,cAAc,6BAA6B;AAC3C,cAAc,4BAA4B;AAC1C,cAAc,+BAA+B;AAC7C,cAAc,gCAAgC;AAC9C,cAAc,qCAAqC;AACnD,cAAc,sCAAsC;AACpD,cAAc,0CAA0C;AACxD,cAAc,sCAAsC;AACpD,cAAc,+BAA+B;AAC7C,cAAc,0CAA0C;AACxD,cAAc,yCAAyC;AACvD,cAAc,2CAA2C;AACzD,cAAc,iCAAiC;AAC/C,cAAc,sCAAsC;AACpD,cAAc,4CAA4C;AAC1D,cAAc,6CAA6C;AAC3D,cAAc,6CAA6C;AAC3D,cAAc,yCAAyC;AACvD,cAAc,uCAAuC;AACrD,cAAc,2CAA2C;AACzD,cAAc,wCAAwC;AACtD,cAAc,+BAA+B;AAC7C,cAAc,mCAAmC;AACjD,cAAc,qCAAqC;AACnD,cAAc,uCAAuC;AACrD,cAAc,4CAA4C;AAC1D,cAAc,wCAAwC;AACtD,cAAc,uCAAuC;AACrD,cAAc,qCAAqC;AACnD,cAAc,gCAAgC;AAC9C,cAAc,oCAAoC;AAClD,cAAc,wCAAwC;AACtD,cAAc,yCAAyC;AACvD,cAAc,uCAAuC;AACrD,cAAc,0CAA0C;AACxD,cAAc,6CAA6C;AAC3D,cAAc,sCAAsC;AACpD,cAAc,uCAAuC;AACrD,cAAc,kCAAkC;AAChD,cAAc,iCAAiC;AAC/C,cAAc,qCAAqC;AACnD,cAAc,qCAAqC;AACnD,cAAc,mBAAmB;AACjC,cAAc,kCAAkC;AAChD,cAAc,mCAAmC;AACjD,cAAc,6BAA6B;AAC3C,cAAc,kCAAkC;AAChD,SAASA,iBAAiB,QAAQ,qCAAqC;AACvE,SAGEC,mBAAmB,EACnBC,UAAU,EACVC,SAAS,QACJ,2BAA2B"}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './i18n/index.js';\nexport * from './preferences/index.js';\nexport * from './theme/index.js';\nexport * from './ui/actions/index.js';\nexport * from './ui/atoms/alert/index.js';\nexport * from './ui/atoms/button/index.js';\nexport * from './ui/atoms/cell-value/index.js';\nexport * from './ui/atoms/external-link/index.js';\nexport * from './ui/atoms/field/index.js';\nexport * from './ui/atoms/field-control/index.js';\nexport * from './ui/atoms/localized-field-control/index.js';\nexport * from './ui/atoms/money/index.js';\nexport * from './ui/atoms/number-input/index.js';\nexport * from './ui/atoms/skeleton/index.js';\nexport * from './ui/atoms/status-tag/index.js';\nexport * from './ui/atoms/switch/index.js';\nexport * from './ui/atoms/table/index.js';\nexport * from './ui/atoms/text/index.js';\nexport * from './ui/layout/box/index.js';\nexport * from './ui/layout/center/index.js';\nexport * from './ui/layout/cluster/index.js';\nexport * from './ui/layout/cover/index.js';\nexport * from './ui/layout/grid/index.js';\nexport * from './ui/layout/sidebar/index.js';\nexport * from './ui/layout/switcher/index.js';\nexport * from './ui/molecules/action-bar/index.js';\nexport * from './ui/molecules/breadcrumbs/index.js';\nexport * from './ui/molecules/bulk-action-bar/index.js';\nexport * from './ui/molecules/bulk-result/index.js';\nexport * from './ui/molecules/card/index.js';\nexport * from './ui/molecules/column-settings/index.js';\nexport * from './ui/molecules/confirm-dialog/index.js';\nexport * from './ui/molecules/description-list/index.js';\nexport * from './ui/molecules/drawer/index.js';\nexport * from './ui/molecules/empty-state/index.js';\nexport * from './ui/molecules/entity-link-input/index.js';\nexport * from './ui/molecules/entity-link-picker/index.js';\nexport * from './ui/molecules/entity-record-card/index.js';\nexport * from './ui/molecules/filter-builder/index.js';\nexport * from './ui/molecules/filter-chips/index.js';\nexport * from './ui/molecules/loading-boundary/index.js';\nexport * from './ui/molecules/media-gallery/index.js';\nexport * from './ui/molecules/menu/index.js';\nexport * from './ui/molecules/nav-menu/index.js';\nexport * from './ui/molecules/pagination/index.js';\nexport * from './ui/molecules/region-state/index.js';\nexport * from './ui/molecules/segmented-control/index.js';\nexport * from './ui/molecules/segmented-nav/index.js';\nexport * from './ui/molecules/sort-builder/index.js';\nexport * from './ui/molecules/split-view/index.js';\nexport * from './ui/molecules/stack/index.js';\nexport * from './ui/molecules/tab-strip/index.js';\nexport * from './ui/molecules/table-toolbar/index.js';\nexport * from './ui/molecules/theme-switcher/index.js';\nexport * from './ui/molecules/toast-region/index.js';\nexport * from './ui/organisms/command-palette/index.js';\nexport * from './ui/organisms/entity-detail-grid/index.js';\nexport * from './ui/organisms/entity-form/index.js';\nexport * from './ui/organisms/entity-table/index.js';\nexport * from './ui/organisms/top-bar/index.js';\nexport * from './ui/organisms/wizard/index.js';\nexport * from './ui/utils/active-heading/index.js';\nexport * from './ui/utils/active-section/index.js';\nexport * from './ui/utils/cn.js';\nexport * from './ui/utils/fold-script/index.js';\nexport * from './ui/utils/keep-section/index.js';\nexport * from './ui/utils/live-updates.js';\nexport * from './ui/utils/media-query/index.js';\nexport * from './ui/utils/reference-labels.js';\nexport { useFocusOnArrival } from './ui/utils/use-focus-on-arrival.js';\nexport {\n type HotkeyOptions,\n type HotkeyScope,\n HotkeyScopeProvider,\n PAGE_SCOPE,\n useHotkey,\n} from './ui/utils/use-hotkey.js';\n"],"names":["useFocusOnArrival","HotkeyScopeProvider","PAGE_SCOPE","useHotkey"],"mappings":"AAAA,cAAc,kBAAkB;AAChC,cAAc,yBAAyB;AACvC,cAAc,mBAAmB;AACjC,cAAc,wBAAwB;AACtC,cAAc,4BAA4B;AAC1C,cAAc,6BAA6B;AAC3C,cAAc,iCAAiC;AAC/C,cAAc,oCAAoC;AAClD,cAAc,4BAA4B;AAC1C,cAAc,oCAAoC;AAClD,cAAc,8CAA8C;AAC5D,cAAc,4BAA4B;AAC1C,cAAc,mCAAmC;AACjD,cAAc,+BAA+B;AAC7C,cAAc,iCAAiC;AAC/C,cAAc,6BAA6B;AAC3C,cAAc,4BAA4B;AAC1C,cAAc,2BAA2B;AACzC,cAAc,2BAA2B;AACzC,cAAc,8BAA8B;AAC5C,cAAc,+BAA+B;AAC7C,cAAc,6BAA6B;AAC3C,cAAc,4BAA4B;AAC1C,cAAc,+BAA+B;AAC7C,cAAc,gCAAgC;AAC9C,cAAc,qCAAqC;AACnD,cAAc,sCAAsC;AACpD,cAAc,0CAA0C;AACxD,cAAc,sCAAsC;AACpD,cAAc,+BAA+B;AAC7C,cAAc,0CAA0C;AACxD,cAAc,yCAAyC;AACvD,cAAc,2CAA2C;AACzD,cAAc,iCAAiC;AAC/C,cAAc,sCAAsC;AACpD,cAAc,4CAA4C;AAC1D,cAAc,6CAA6C;AAC3D,cAAc,6CAA6C;AAC3D,cAAc,yCAAyC;AACvD,cAAc,uCAAuC;AACrD,cAAc,2CAA2C;AACzD,cAAc,wCAAwC;AACtD,cAAc,+BAA+B;AAC7C,cAAc,mCAAmC;AACjD,cAAc,qCAAqC;AACnD,cAAc,uCAAuC;AACrD,cAAc,4CAA4C;AAC1D,cAAc,wCAAwC;AACtD,cAAc,uCAAuC;AACrD,cAAc,qCAAqC;AACnD,cAAc,gCAAgC;AAC9C,cAAc,oCAAoC;AAClD,cAAc,wCAAwC;AACtD,cAAc,yCAAyC;AACvD,cAAc,uCAAuC;AACrD,cAAc,0CAA0C;AACxD,cAAc,6CAA6C;AAC3D,cAAc,sCAAsC;AACpD,cAAc,uCAAuC;AACrD,cAAc,kCAAkC;AAChD,cAAc,iCAAiC;AAC/C,cAAc,qCAAqC;AACnD,cAAc,qCAAqC;AACnD,cAAc,mBAAmB;AACjC,cAAc,kCAAkC;AAChD,cAAc,mCAAmC;AACjD,cAAc,6BAA6B;AAC3C,cAAc,kCAAkC;AAChD,cAAc,iCAAiC;AAC/C,SAASA,iBAAiB,QAAQ,qCAAqC;AACvE,SAGEC,mBAAmB,EACnBC,UAAU,EACVC,SAAS,QACJ,2BAA2B"}
@@ -56,4 +56,17 @@ export declare function surfaceFor(descriptor: UseCaseDescriptor): ActionSurface
56
56
  * `alsoAt` is validated on that same first render, not on the surface it names.
57
57
  */
58
58
  export declare function useCasesForSurface(surface: ActionSurface, useCases: readonly UseCaseDescriptor[] | undefined): UseCaseDescriptor[];
59
+ /**
60
+ * The descriptors a surface showing one record offers on it: those whose
61
+ * declared states the record is in. A verb the record's state does not allow
62
+ * is left out rather than disabled — a shipment awaiting dispatch has no use
63
+ * for a greyed-out Record delivery, and four buttons of equal weight whatever
64
+ * the status is what made the one that applies hard to find. The verb's handler
65
+ * still refuses an illegal move: a record can change between render and click.
66
+ *
67
+ * Only for a surface about one record. A selection carries no states, so the
68
+ * bulk bar and the toolbar offer every verb and a refused row comes back as a
69
+ * failed outcome.
70
+ */
71
+ export declare function availableUseCases(useCases: readonly UseCaseDescriptor[], record: object | undefined): UseCaseDescriptor[];
59
72
  //# sourceMappingURL=action-surfaces.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"action-surfaces.d.ts","sourceRoot":"","sources":["../../../src/ui/actions/action-surfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,iBAAiB,EAEvB,MAAM,eAAe,CAAC;AAEvB;;;;;;;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AAiB,CAC/B,QAAQ,EAAE,SAAS,iBAAiB,EAAE,EACtC,MAAM,EAAE,MAAM,GAAG,SAAS,GACzB,iBAAiB,EAAE,CAErB"}
@@ -1,3 +1,4 @@
1
+ import { isUseCaseAvailable } from '@entifix/core';
1
2
  /**
2
3
  * Where a declared verb is rendered.
3
4
  *
@@ -100,5 +101,19 @@
100
101
  */ export function useCasesForSurface(surface, useCases) {
101
102
  return (useCases != null ? useCases : []).filter((descriptor)=>surfacesFor(descriptor).includes(surface));
102
103
  }
104
+ /**
105
+ * The descriptors a surface showing one record offers on it: those whose
106
+ * declared states the record is in. A verb the record's state does not allow
107
+ * is left out rather than disabled — a shipment awaiting dispatch has no use
108
+ * for a greyed-out Record delivery, and four buttons of equal weight whatever
109
+ * the status is what made the one that applies hard to find. The verb's handler
110
+ * still refuses an illegal move: a record can change between render and click.
111
+ *
112
+ * Only for a surface about one record. A selection carries no states, so the
113
+ * bulk bar and the toolbar offer every verb and a refused row comes back as a
114
+ * failed outcome.
115
+ */ export function availableUseCases(useCases, record) {
116
+ return useCases.filter((descriptor)=>isUseCaseAvailable(descriptor, record));
117
+ }
103
118
 
104
119
  //# sourceMappingURL=action-surfaces.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/ui/actions/action-surfaces.ts"],"sourcesContent":["import {\n type UseCaseBinding,\n type UseCaseDescriptor,\n type UseCasePlacement,\n} from '@entifix/core';\n\n/**\n * Where a declared verb is rendered.\n *\n * The use-case descriptor has two independent axes, and at first only one\n * surface, so four of the nine cells had nowhere to go: `EntityForm` filtered\n * `binding === 'entity' && placement !== 'context-dependent'` and everything\n * else was dropped without a word. This is the map that closes it —\n * **placement decides the surface, binding decides the payload** — and it lives\n * in one module so no surface re-derives it and the two axes cannot drift\n * apart again.\n */\nexport const ACTION_SURFACES = [\n 'form-header',\n 'form-footer',\n 'row-menu',\n 'bulk-bar',\n 'table-toolbar',\n 'command-palette',\n] as const;\nexport type ActionSurface = (typeof ACTION_SURFACES)[number];\n\n/**\n * The nine cells, exhaustively.\n *\n * `collection` + `determining` is deliberately absent, and asking for it\n * throws rather than returning `undefined`. A determining action *finalizes a\n * page* — it is the footer that ends an object page — and a list screen has no\n * such thing to finalize, which is Fiori's own rule. Dropping it silently is\n * the fault this repo already writes an assertion against elsewhere: the verb\n * would be declared, granted, exported, pass every check a register runs,\n * and simply never appear, which reads to its author as \"the permission is\n * wrong\" and sends them looking in the wrong place entirely.\n */\nconst SURFACE_BY_CELL: Record<string, ActionSurface> = {\n 'entity:context-independent': 'form-header',\n 'entity:determining': 'form-footer',\n 'entity:context-dependent': 'row-menu',\n 'collection:context-dependent': 'bulk-bar',\n 'collection:context-independent': 'table-toolbar',\n 'unbound:context-dependent': 'command-palette',\n 'unbound:context-independent': 'command-palette',\n 'unbound:determining': 'command-palette',\n};\n\n/**\n * The overflow trigger's glyph.\n *\n * A constant rather than a literal in JSX, because `react/jsx-no-literals`\n * fails the build on written-in copy and is right to: it cannot tell a\n * typographic glyph from a forgotten Spanish string. The trigger's *name* is a\n * catalog key (`actions.more`, `actions.forRecord`) — this is only the mark,\n * and it is never read aloud.\n */\nexport const OVERFLOW_GLYPH = '\\u22ef';\n\n/** Which surface renders one cell. Throws on a cell no surface owns. */\nfunction surfaceForCell(\n key: string,\n binding: UseCaseBinding,\n placement: UseCasePlacement,\n): ActionSurface {\n const surface = SURFACE_BY_CELL[`${binding}:${placement}`];\n\n if (surface === undefined) {\n throw new Error(\n `The use case \"${key}\" is declared ${binding} + ${placement}, which no surface renders. ` +\n 'A `determining` action finalizes a page — it is an object page’s footer — and a list ' +\n 'screen has no page to finalize, so a collection-bound verb cannot be determining. ' +\n 'Declare it `context-dependent` to reach the bulk bar, or `context-independent` to sit ' +\n 'in the table toolbar.',\n );\n }\n\n return surface;\n}\n\n/**\n * Every surface this descriptor renders on.\n *\n * ⚠️ **A verb may name more than one cell**, and that is what makes publishing\n * reachable from a form header, a row menu and a selection without becoming\n * three permissions. The primary `binding` + `placement` come first, then\n * whatever `alsoAt` adds, and each is validated the same way — an illegal cell\n * in `alsoAt` throws exactly as one in the primary pair does.\n *\n * Duplicates are collapsed. A descriptor that named the same cell twice would\n * otherwise render the verb twice in one menu, which reads as a bug in the\n * screen rather than in the declaration.\n */\nexport function surfacesFor(\n descriptor: UseCaseDescriptor,\n): readonly ActionSurface[] {\n const cells = [\n { binding: descriptor.binding, placement: descriptor.placement },\n ...(descriptor.alsoAt ?? []),\n ];\n\n return [\n ...new Set(\n cells.map(cell =>\n surfaceForCell(descriptor.key, cell.binding, cell.placement),\n ),\n ),\n ];\n}\n\n/**\n * The single surface this descriptor renders on.\n *\n * Kept for the callers that genuinely have one — the command palette asks \"is\n * this mine?\" of an `unbound` verb, which can only ever be in one place. Any\n * caller that renders a *list* of verbs wants {@link surfacesFor}.\n */\nexport function surfaceFor(descriptor: UseCaseDescriptor): ActionSurface {\n return surfaceForCell(\n descriptor.key,\n descriptor.binding,\n descriptor.placement,\n );\n}\n\n/**\n * The descriptors one surface should render, in declaration order.\n *\n * Every descriptor is passed through {@link surfacesFor}, so an unrenderable\n * cell throws on the **first render of any surface** rather than only on the\n * one that would have shown it — the same reason\n * `assertLinkSourcesAreEditable` runs as one pass over the registry instead of\n * per row: a check that only fires on the screen that was already looking for\n * the verb is a check that fires after the bug is reported. A cell declared in\n * `alsoAt` is validated on that same first render, not on the surface it names.\n */\nexport function useCasesForSurface(\n surface: ActionSurface,\n useCases: readonly UseCaseDescriptor[] | undefined,\n): UseCaseDescriptor[] {\n return (useCases ?? []).filter(descriptor =>\n surfacesFor(descriptor).includes(surface),\n );\n}\n"],"names":["ACTION_SURFACES","SURFACE_BY_CELL","OVERFLOW_GLYPH","surfaceForCell","key","binding","placement","surface","undefined","Error","surfacesFor","descriptor","cells","alsoAt","Set","map","cell","surfaceFor","useCasesForSurface","useCases","filter","includes"],"mappings":"AAMA;;;;;;;;;;CAUC,GACD,OAAO,MAAMA,kBAAkB;IAC7B;IACA;IACA;IACA;IACA;IACA;CACD,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ions/action-surfaces.ts"],"sourcesContent":["import {\n isUseCaseAvailable,\n type UseCaseBinding,\n type UseCaseDescriptor,\n type UseCasePlacement,\n} from '@entifix/core';\n\n/**\n * Where a declared verb is rendered.\n *\n * The use-case descriptor has two independent axes, and at first only one\n * surface, so four of the nine cells had nowhere to go: `EntityForm` filtered\n * `binding === 'entity' && placement !== 'context-dependent'` and everything\n * else was dropped without a word. This is the map that closes it —\n * **placement decides the surface, binding decides the payload** — and it lives\n * in one module so no surface re-derives it and the two axes cannot drift\n * apart again.\n */\nexport const ACTION_SURFACES = [\n 'form-header',\n 'form-footer',\n 'row-menu',\n 'bulk-bar',\n 'table-toolbar',\n 'command-palette',\n] as const;\nexport type ActionSurface = (typeof ACTION_SURFACES)[number];\n\n/**\n * The nine cells, exhaustively.\n *\n * `collection` + `determining` is deliberately absent, and asking for it\n * throws rather than returning `undefined`. A determining action *finalizes a\n * page* — it is the footer that ends an object page — and a list screen has no\n * such thing to finalize, which is Fiori's own rule. Dropping it silently is\n * the fault this repo already writes an assertion against elsewhere: the verb\n * would be declared, granted, exported, pass every check a register runs,\n * and simply never appear, which reads to its author as \"the permission is\n * wrong\" and sends them looking in the wrong place entirely.\n */\nconst SURFACE_BY_CELL: Record<string, ActionSurface> = {\n 'entity:context-independent': 'form-header',\n 'entity:determining': 'form-footer',\n 'entity:context-dependent': 'row-menu',\n 'collection:context-dependent': 'bulk-bar',\n 'collection:context-independent': 'table-toolbar',\n 'unbound:context-dependent': 'command-palette',\n 'unbound:context-independent': 'command-palette',\n 'unbound:determining': 'command-palette',\n};\n\n/**\n * The overflow trigger's glyph.\n *\n * A constant rather than a literal in JSX, because `react/jsx-no-literals`\n * fails the build on written-in copy and is right to: it cannot tell a\n * typographic glyph from a forgotten Spanish string. The trigger's *name* is a\n * catalog key (`actions.more`, `actions.forRecord`) — this is only the mark,\n * and it is never read aloud.\n */\nexport const OVERFLOW_GLYPH = '\\u22ef';\n\n/** Which surface renders one cell. Throws on a cell no surface owns. */\nfunction surfaceForCell(\n key: string,\n binding: UseCaseBinding,\n placement: UseCasePlacement,\n): ActionSurface {\n const surface = SURFACE_BY_CELL[`${binding}:${placement}`];\n\n if (surface === undefined) {\n throw new Error(\n `The use case \"${key}\" is declared ${binding} + ${placement}, which no surface renders. ` +\n 'A `determining` action finalizes a page — it is an object page’s footer — and a list ' +\n 'screen has no page to finalize, so a collection-bound verb cannot be determining. ' +\n 'Declare it `context-dependent` to reach the bulk bar, or `context-independent` to sit ' +\n 'in the table toolbar.',\n );\n }\n\n return surface;\n}\n\n/**\n * Every surface this descriptor renders on.\n *\n * ⚠️ **A verb may name more than one cell**, and that is what makes publishing\n * reachable from a form header, a row menu and a selection without becoming\n * three permissions. The primary `binding` + `placement` come first, then\n * whatever `alsoAt` adds, and each is validated the same way — an illegal cell\n * in `alsoAt` throws exactly as one in the primary pair does.\n *\n * Duplicates are collapsed. A descriptor that named the same cell twice would\n * otherwise render the verb twice in one menu, which reads as a bug in the\n * screen rather than in the declaration.\n */\nexport function surfacesFor(\n descriptor: UseCaseDescriptor,\n): readonly ActionSurface[] {\n const cells = [\n { binding: descriptor.binding, placement: descriptor.placement },\n ...(descriptor.alsoAt ?? []),\n ];\n\n return [\n ...new Set(\n cells.map(cell =>\n surfaceForCell(descriptor.key, cell.binding, cell.placement),\n ),\n ),\n ];\n}\n\n/**\n * The single surface this descriptor renders on.\n *\n * Kept for the callers that genuinely have one — the command palette asks \"is\n * this mine?\" of an `unbound` verb, which can only ever be in one place. Any\n * caller that renders a *list* of verbs wants {@link surfacesFor}.\n */\nexport function surfaceFor(descriptor: UseCaseDescriptor): ActionSurface {\n return surfaceForCell(\n descriptor.key,\n descriptor.binding,\n descriptor.placement,\n );\n}\n\n/**\n * The descriptors one surface should render, in declaration order.\n *\n * Every descriptor is passed through {@link surfacesFor}, so an unrenderable\n * cell throws on the **first render of any surface** rather than only on the\n * one that would have shown it — the same reason\n * `assertLinkSourcesAreEditable` runs as one pass over the registry instead of\n * per row: a check that only fires on the screen that was already looking for\n * the verb is a check that fires after the bug is reported. A cell declared in\n * `alsoAt` is validated on that same first render, not on the surface it names.\n */\nexport function useCasesForSurface(\n surface: ActionSurface,\n useCases: readonly UseCaseDescriptor[] | undefined,\n): UseCaseDescriptor[] {\n return (useCases ?? []).filter(descriptor =>\n surfacesFor(descriptor).includes(surface),\n );\n}\n\n/**\n * The descriptors a surface showing one record offers on it: those whose\n * declared states the record is in. A verb the record's state does not allow\n * is left out rather than disabled — a shipment awaiting dispatch has no use\n * for a greyed-out Record delivery, and four buttons of equal weight whatever\n * the status is what made the one that applies hard to find. The verb's handler\n * still refuses an illegal move: a record can change between render and click.\n *\n * Only for a surface about one record. A selection carries no states, so the\n * bulk bar and the toolbar offer every verb and a refused row comes back as a\n * failed outcome.\n */\nexport function availableUseCases(\n useCases: readonly UseCaseDescriptor[],\n record: object | undefined,\n): UseCaseDescriptor[] {\n return useCases.filter(descriptor => isUseCaseAvailable(descriptor, record));\n}\n"],"names":["isUseCaseAvailable","ACTION_SURFACES","SURFACE_BY_CELL","OVERFLOW_GLYPH","surfaceForCell","key","binding","placement","surface","undefined","Error","surfacesFor","descriptor","cells","alsoAt","Set","map","cell","surfaceFor","useCasesForSurface","useCases","filter","includes","availableUseCases","record"],"mappings":"AAAA,SACEA,kBAAkB,QAIb,gBAAgB;AAEvB;;;;;;;;;;CAUC,GACD,OAAO,MAAMC,kBAAkB;IAC7B;IACA;IACA;IACA;IACA;IACA;CACD,CAAU;AAGX;;;;;;;;;;;CAWC,GACD,MAAMC,kBAAiD;IACrD,8BAA8B;IAC9B,sBAAsB;IACtB,4BAA4B;IAC5B,gCAAgC;IAChC,kCAAkC;IAClC,6BAA6B;IAC7B,+BAA+B;IAC/B,uBAAuB;AACzB;AAEA;;;;;;;;CAQC,GACD,OAAO,MAAMC,iBAAiB,SAAS;AAEvC,sEAAsE,GACtE,SAASC,eACPC,GAAW,EACXC,OAAuB,EACvBC,SAA2B;IAE3B,MAAMC,UAAUN,eAAe,CAAC,GAAGI,QAAQ,CAAC,EAAEC,WAAW,CAAC;IAE1D,IAAIC,YAAYC,WAAW;QACzB,MAAM,IAAIC,MACR,CAAC,cAAc,EAAEL,IAAI,cAAc,EAAEC,QAAQ,GAAG,EAAEC,UAAU,4BAA4B,CAAC,GACvF,0FACA,uFACA,2FACA;IAEN;IAEA,OAAOC;AACT;AAEA;;;;;;;;;;;;CAYC,GACD,OAAO,SAASG,YACdC,UAA6B;QAIvBA;IAFN,MAAMC,QAAQ;QACZ;YAAEP,SAASM,WAAWN,OAAO;YAAEC,WAAWK,WAAWL,SAAS;QAAC;YAC3DK,qBAAAA,WAAWE,MAAM,YAAjBF,qBAAqB,EAAE;KAC5B;IAED,OAAO;WACF,IAAIG,IACLF,MAAMG,GAAG,CAACC,CAAAA,OACRb,eAAeQ,WAAWP,GAAG,EAAEY,KAAKX,OAAO,EAAEW,KAAKV,SAAS;KAGhE;AACH;AAEA;;;;;;CAMC,GACD,OAAO,SAASW,WAAWN,UAA6B;IACtD,OAAOR,eACLQ,WAAWP,GAAG,EACdO,WAAWN,OAAO,EAClBM,WAAWL,SAAS;AAExB;AAEA;;;;;;;;;;CAUC,GACD,OAAO,SAASY,mBACdX,OAAsB,EACtBY,QAAkD;IAElD,OAAO,CAACA,mBAAAA,WAAY,EAAE,EAAEC,MAAM,CAACT,CAAAA,aAC7BD,YAAYC,YAAYU,QAAQ,CAACd;AAErC;AAEA;;;;;;;;;;;CAWC,GACD,OAAO,SAASe,kBACdH,QAAsC,EACtCI,MAA0B;IAE1B,OAAOJ,SAASC,MAAM,CAACT,CAAAA,aAAcZ,mBAAmBY,YAAYY;AACtE"}
@@ -1,4 +1,10 @@
1
1
  import { type EntityFieldDescriptor } from '@entifix/core';
2
+ /**
3
+ * A filled-in member's value as one line of text, exactly as its cell reads
4
+ * it — for the places that need words rather than an element: a checkbox's
5
+ * name, a confirm dialog's object, a toast.
6
+ */
7
+ export declare function useValueText(): (value: unknown, descriptor: EntityFieldDescriptor) => string;
2
8
  export interface CellValueProps {
3
9
  value: unknown;
4
10
  descriptor: EntityFieldDescriptor;
@@ -1 +1 @@
1
- {"version":3,"file":"cell-value.d.ts","sourceRoot":"","sources":["../../../../src/ui/atoms/cell-value/cell-value.tsx"],"names":[],"mappings":"AAGA,OAAO,EAIL,KAAK,qBAAqB,EAK3B,MAAM,eAAe,CAAC;AAgIvB,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,qBAAqB,CAAC;IAClC;;;OAGG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAC5C;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,cAAc,+BAyEtE"}
1
+ {"version":3,"file":"cell-value.d.ts","sourceRoot":"","sources":["../../../../src/ui/atoms/cell-value/cell-value.tsx"],"names":[],"mappings":"AAGA,OAAO,EAIL,KAAK,qBAAqB,EAK3B,MAAM,eAAe,CAAC;AA+IvB;;;;GAIG;AACH,wBAAgB,YAAY,IAAI,CAC9B,KAAK,EAAE,OAAO,EACd,UAAU,EAAE,qBAAqB,KAC9B,MAAM,CAYV;AAsDD,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,qBAAqB,CAAC;IAClC;;;OAGG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAC5C;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,cAAc,+BA0EtE"}
@@ -1,7 +1,9 @@
1
1
  'use client';
2
- import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import { defaultLocale, EntityCollectionLink, EntityLink, isLocalizedText, localize } from '@entifix/core';
4
+ import { useCallback } from 'react';
4
5
  import { useEnumLabel, useFormatters, useLocale, useT } from '../../../i18n/index.js';
6
+ import { useReferenceLabel, useUnresolvedReference } from '../../utils/reference-labels.js';
5
7
  import { Money } from '../money/money.js';
6
8
  import { currencyOf } from '../money/money-math.js';
7
9
  import { Skeleton } from '../skeleton/index.js';
@@ -60,6 +62,91 @@ function formatByType(value, type, linkLabelProperty, formatting) {
60
62
  return String(value);
61
63
  }
62
64
  }
65
+ /** The formatting {@link formatByType} reads, resolved for the reader. */ function useCellFormatting() {
66
+ const t = useT();
67
+ const formatters = useFormatters();
68
+ const enumLabel = useEnumLabel();
69
+ const locale = useLocale();
70
+ return useCallback((descriptor)=>({
71
+ formatters,
72
+ yes: t('value.yes'),
73
+ no: t('value.no'),
74
+ enumLabel: (raw)=>enumLabel(descriptor, raw),
75
+ rowCount: (count)=>t('value.rowCount', {
76
+ count
77
+ }),
78
+ locale
79
+ }), [
80
+ enumLabel,
81
+ formatters,
82
+ locale,
83
+ t
84
+ ]);
85
+ }
86
+ /**
87
+ * A filled-in member's value as one line of text, exactly as its cell reads
88
+ * it — for the places that need words rather than an element: a checkbox's
89
+ * name, a confirm dialog's object, a toast.
90
+ */ export function useValueText() {
91
+ const formatting = useCellFormatting();
92
+ return useCallback((value, descriptor)=>formatByType(value, descriptor.type, descriptor.linkLabelProperty, formatting(descriptor)), [
93
+ formatting
94
+ ]);
95
+ }
96
+ /**
97
+ * A reference reads as its target's name, in every state the read can be in
98
+ * ([ADR 0030](../../../../../../../docs/adr/0030-a-reference-names-its-target-through-the-owners-read-port.md)):
99
+ * a skeleton while it resolves (the noun and short id for a screen reader); the name; the entity's noun and the short id,
100
+ * muted, when no record answered or the read failed — never an alert, since a
101
+ * list that loaded has not failed because one name could not be read; and the
102
+ * raw id, muted, when the host registered nothing to read it with.
103
+ */ function ReferenceValue({ entity, id }) {
104
+ const state = useReferenceLabel(entity, id);
105
+ const unresolved = useUnresolvedReference();
106
+ const locale = useLocale();
107
+ switch(state.status){
108
+ case 'resolving':
109
+ // The skeleton is hidden from assistive tech, so the noun and short id
110
+ // stand in for it there: a record's title link is never nameless.
111
+ return /*#__PURE__*/ _jsxs(_Fragment, {
112
+ children: [
113
+ /*#__PURE__*/ _jsx(Skeleton, {
114
+ shape: "line",
115
+ className: "w-16"
116
+ }),
117
+ /*#__PURE__*/ _jsx("span", {
118
+ className: "sr-only",
119
+ children: unresolved(entity, id)
120
+ })
121
+ ]
122
+ });
123
+ case 'named':
124
+ {
125
+ var _label_locale;
126
+ const { label } = state;
127
+ if (typeof label === 'string') return /*#__PURE__*/ _jsx("span", {
128
+ children: label
129
+ });
130
+ const text = localize(label, locale);
131
+ return ((_label_locale = label[locale]) != null ? _label_locale : '') === '' ? /*#__PURE__*/ _jsx("span", {
132
+ lang: defaultLocale(),
133
+ children: text
134
+ }) : /*#__PURE__*/ _jsx("span", {
135
+ children: text
136
+ });
137
+ }
138
+ case 'unregistered':
139
+ return /*#__PURE__*/ _jsx("span", {
140
+ className: "text-content-muted",
141
+ children: id
142
+ });
143
+ default:
144
+ return /*#__PURE__*/ _jsx("span", {
145
+ className: "text-content-muted",
146
+ children: unresolved(entity, id)
147
+ });
148
+ }
149
+ }
63
150
  /**
64
151
  * Tabular figures, applied once, here — not on `--font-sans` and not per call
65
152
  * site. A column of numbers or dates must align on the digit; a paragraph must
@@ -75,9 +162,7 @@ function formatByType(value, type, linkLabelProperty, formatting) {
75
162
  * "the value of an accessor", and only the descriptor decides how they read.
76
163
  */ export function CellValue({ value, descriptor, record }) {
77
164
  var _value_locale, _NUMERIC_CLASS_descriptor_type;
78
- const t = useT();
79
- const formatters = useFormatters();
80
- const enumLabel = useEnumLabel();
165
+ const formatting = useCellFormatting();
81
166
  const locale = useLocale();
82
167
  if (value === undefined || value === null || value === '') {
83
168
  return /*#__PURE__*/ _jsx("span", {
@@ -85,6 +170,13 @@ function formatByType(value, type, linkLabelProperty, formatting) {
85
170
  children: EMPTY
86
171
  });
87
172
  }
173
+ // A key into another entity reads as that record's name, never as itself.
174
+ if (descriptor.references !== undefined) {
175
+ return /*#__PURE__*/ _jsx(ReferenceValue, {
176
+ entity: descriptor.references.entity,
177
+ id: String(value)
178
+ });
179
+ }
88
180
  // An amount reads as money in the reader's locale, never as the stored
89
181
  // number. A draft holds it as a string, so a numeric string counts too. A
90
182
  // currency the record does not carry leaves it a plain number rather than
@@ -109,16 +201,7 @@ function formatByType(value, type, linkLabelProperty, formatting) {
109
201
  className: "w-16"
110
202
  });
111
203
  }
112
- const text = formatByType(value, descriptor.type, descriptor.linkLabelProperty, {
113
- formatters,
114
- yes: t('value.yes'),
115
- no: t('value.no'),
116
- enumLabel: (raw)=>enumLabel(descriptor, raw),
117
- rowCount: (count)=>t('value.rowCount', {
118
- count
119
- }),
120
- locale
121
- });
204
+ const text = formatByType(value, descriptor.type, descriptor.linkLabelProperty, formatting(descriptor));
122
205
  if (text === '') {
123
206
  return /*#__PURE__*/ _jsx("span", {
124
207
  className: "text-content-muted",