@entifix/react-controls 0.22.2 → 0.22.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/i18n/catalog/en.d.ts.map +1 -1
- package/dist/i18n/catalog/en.js +2 -1
- package/dist/i18n/catalog/en.js.map +1 -1
- package/dist/i18n/catalog/es.d.ts +1 -0
- package/dist/i18n/catalog/es.d.ts.map +1 -1
- package/dist/i18n/catalog/es.js +2 -1
- package/dist/i18n/catalog/es.js.map +1 -1
- package/dist/i18n/catalog/index.d.ts +2 -0
- package/dist/i18n/catalog/index.d.ts.map +1 -1
- package/dist/ui/molecules/summary-tile/summary-tile.d.ts +18 -1
- package/dist/ui/molecules/summary-tile/summary-tile.d.ts.map +1 -1
- package/dist/ui/molecules/summary-tile/summary-tile.js +83 -24
- package/dist/ui/molecules/summary-tile/summary-tile.js.map +1 -1
- package/dist/ui/organisms/entity-table/entity-table-slots.d.ts +6 -1
- package/dist/ui/organisms/entity-table/entity-table-slots.d.ts.map +1 -1
- package/dist/ui/organisms/entity-table/entity-table-slots.js.map +1 -1
- package/dist/ui/organisms/entity-table/entity-table.d.ts +1 -1
- package/dist/ui/organisms/entity-table/entity-table.d.ts.map +1 -1
- package/dist/ui/organisms/entity-table/entity-table.js +73 -37
- package/dist/ui/organisms/entity-table/entity-table.js.map +1 -1
- package/dist/ui/organisms/entity-table/entity-table.types.d.ts +7 -0
- package/dist/ui/organisms/entity-table/entity-table.types.d.ts.map +1 -1
- package/dist/ui/organisms/entity-table/entity-table.types.js.map +1 -1
- package/dist/ui/organisms/entity-table/use-entity-table-columns.d.ts +4 -3
- package/dist/ui/organisms/entity-table/use-entity-table-columns.d.ts.map +1 -1
- package/dist/ui/organisms/entity-table/use-entity-table-columns.js +15 -5
- package/dist/ui/organisms/entity-table/use-entity-table-columns.js.map +1 -1
- package/package.json +5 -5
|
@@ -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,
|
|
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,UA8RtB,CAAC"}
|
package/dist/i18n/catalog/en.js
CHANGED
|
@@ -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 summary: {\n loading: 'Loading…',\n failed: 'Could not load {{label}}.',\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","summary","failed","pagination","label","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;Q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AO;IACT;IACAqG,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;QACR9J,SAAS;IACX;IACA+J,aAAa;QACXlI,OAAO;IACT;IACAmI,QAAQ;QACNC,OAAO;QACPjI,UAAU;QACVC,MAAM;QACNiI,QAAQ;QACRC,YAAY;QACZC,QAAQ;QACRC,UAAU;QACVC,QAAQ;YACNzJ,SAAS;YACT0J,QAAQ;YACRC,UAAU;YACVxF,OAAO;QACT;QACAyF,QAAQ;YACNpI,OAAO;YACPrC,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 summary: {\n loading: 'Loading…',\n failed: 'Could not load {{label}}.',\n empty: 'Nothing here yet.',\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","summary","failed","pagination","label","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,SAAS;QACPjD,SAAS;QACTkD,QAAQ;QACRH,OAAO;IACT;IACAI,YAAY;QACVC,OAAO;QACPH,SAAS;QACTI,MAAM;QACNC,OAAO;QACPC,UAAU;QACVC,MAAM;QACNC,MAAM;QACNC,MAAM;IACR;IACAC,SAAS;QACPC,OAAO;QACPC,UAA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;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;QACPjG,OAAO;QACPkG,aAAa;QACbC,SAAS;IACX;IACAC,OAAO;QACLpG,OAAO;IACT;IACAqG,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;QACR9J,SAAS;IACX;IACA+J,aAAa;QACXlI,OAAO;IACT;IACAmI,QAAQ;QACNC,OAAO;QACPjI,UAAU;QACVC,MAAM;QACNiI,QAAQ;QACRC,YAAY;QACZC,QAAQ;QACRC,UAAU;QACVC,QAAQ;YACNzJ,SAAS;YACT0J,QAAQ;YACRC,UAAU;YACVxF,OAAO;QACT;QACAyF,QAAQ;YACNpI,OAAO;YACPrC,SAAS;QACX;IACF;AACF,EAAE"}
|
|
@@ -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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;QAuBD,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"}
|
package/dist/i18n/catalog/es.js
CHANGED
|
@@ -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 summary: {\n loading: 'Cargando…',\n failed: 'No se pudo cargar {{label}}.',\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","summary","failed","pagination","label","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,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,iBAAiB;QACjB;;;KAGC,GACDC,uBAAuB;QACvBC,yBAAyB;QACzBC,mBAAmB;QACnBC,qBAAqB;QACrBC,gBAAgB;QAChB;;;KAGC,GACDC,aAAa;QACbC,eAAe;QACfC,mBAAmB;QACnB,oEAAoE,GACpEC,SAAS;QACTC,eACE;IACJ;IACA;;;GAGC,GACDC,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;QACT,0EAA0E,GAC1EC,kBAAkB;QAClBC,oBAAoB;QACpBC,cAAc;QACdC,gBAAgB;IAClB;IACA;;;GAGC,GACDC,OAAO;QACLC,OAAO;QACPC,WAAW;QACXC,OAAO;QACPC,WAAW;QACXC,cAAc;QACdC,OAAO;QACPC,OAAO;IACT;IACAC,SAAS;QACPjD,SAAS;QACTkD,QAAQ;IACV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AAQ;YACRC,UAAU;YACVxF,OAAO;QACT;QACA;;;;KAIC,GACDyF,QAAQ;YACNpI,OAAO;YACPrC,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 summary: {\n loading: 'Cargando…',\n failed: 'No se pudo cargar {{label}}.',\n empty: 'Nada por ahora.',\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","summary","failed","pagination","label","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,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,iBAAiB;QACjB;;;KAGC,GACDC,uBAAuB;QACvBC,yBAAyB;QACzBC,mBAAmB;QACnBC,qBAAqB;QACrBC,gBAAgB;QAChB;;;KAGC,GACDC,aAAa;QACbC,eAAe;QACfC,mBAAmB;QACnB,oEAAoE,GACpEC,SAAS;QACTC,eACE;IACJ;IACA;;;GAGC,GACDC,MAAM;QACJC,SAAS;QACTC,eAAe;QACfC,iBAAiB;QACjBC,YAAY;QACZC,cAAc;QACdC,aAAa;QACbC,SAAS;QACTC,aAAa;QACbC,UAAU;IACZ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fC,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;QACR9J,SAAS;IACX;IACA+J,aAAa;QACXlI,OAAO;IACT;IACA;;;;GAIC,GACDmI,QAAQ;QACNC,OAAO;QACPjI,UAAU;QACV;;;;KAIC,GACDC,MAAM;QACNiI,QAAQ;QACR;;;;;KAKC,GACDC,YAAY;QACZC,QAAQ;QACRC,UAAU;QACV;;;KAGC,GACDC,QAAQ;YACNzJ,SAAS;YACT0J,QAAQ;YACRC,UAAU;YACVxF,OAAO;QACT;QACA;;;;KAIC,GACDyF,QAAQ;YACNpI,OAAO;YACPrC,SAAS;QACX;IACF;AACF,EAAE"}
|
|
@@ -78,6 +78,7 @@ export declare const controlsCatalogs: {
|
|
|
78
78
|
summary: {
|
|
79
79
|
loading: string;
|
|
80
80
|
failed: string;
|
|
81
|
+
empty: string;
|
|
81
82
|
};
|
|
82
83
|
pagination: {
|
|
83
84
|
label: string;
|
|
@@ -351,6 +352,7 @@ export declare const controlsCatalogs: {
|
|
|
351
352
|
summary: {
|
|
352
353
|
loading: string;
|
|
353
354
|
failed: string;
|
|
355
|
+
empty: string;
|
|
354
356
|
};
|
|
355
357
|
pagination: {
|
|
356
358
|
label: 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
|
|
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"}
|
|
@@ -14,6 +14,14 @@ export interface SummaryTileStatus {
|
|
|
14
14
|
/** The words for it; the tone never stands alone. */
|
|
15
15
|
readonly label: string;
|
|
16
16
|
}
|
|
17
|
+
/** One record a list tile leads to — "Pedido 1042", and when it was placed. */
|
|
18
|
+
export interface SummaryTileItem {
|
|
19
|
+
readonly href: string;
|
|
20
|
+
/** What the record is called; the link's name. */
|
|
21
|
+
readonly label: string;
|
|
22
|
+
/** A muted detail after it — a date, an amount, a status in words. */
|
|
23
|
+
readonly meta?: ReactNode;
|
|
24
|
+
}
|
|
17
25
|
export interface SummaryTileProps {
|
|
18
26
|
/** What is counted — "Envíos por despachar". The tile's heading. */
|
|
19
27
|
label: string;
|
|
@@ -23,6 +31,15 @@ export interface SummaryTileProps {
|
|
|
23
31
|
count?: number;
|
|
24
32
|
/** An amount instead of a count — "Próximo pago". */
|
|
25
33
|
money?: SummaryTileMoney;
|
|
34
|
+
/**
|
|
35
|
+
* A short list instead of a figure — "Últimos pedidos". The heading links
|
|
36
|
+
* to all of them and each item to its own record, so the tile is not one
|
|
37
|
+
* link. Ignored when {@link money} is given; takes precedence over
|
|
38
|
+
* {@link count}.
|
|
39
|
+
*/
|
|
40
|
+
items?: readonly SummaryTileItem[];
|
|
41
|
+
/** What an empty list says. A neutral "nothing yet" when omitted. */
|
|
42
|
+
emptyLabel?: string;
|
|
26
43
|
/** The figure's meaning as a tag beside it. */
|
|
27
44
|
status?: SummaryTileStatus;
|
|
28
45
|
/** Its own source's state: one tile failing leaves every other one standing. */
|
|
@@ -50,7 +67,7 @@ export interface SummaryTileProps {
|
|
|
50
67
|
* Nothing is announced live: the figure is read once, when the reader
|
|
51
68
|
* reaches it.
|
|
52
69
|
*/
|
|
53
|
-
export declare function SummaryTile({ label, href, count, money, status, state, onRetry, renderLink, className, }: SummaryTileProps):
|
|
70
|
+
export declare function SummaryTile({ label, href, count, money, items, emptyLabel, status, state, onRetry, renderLink, className, }: SummaryTileProps): import("react").JSX.Element;
|
|
54
71
|
export type SummaryTileListProps = Omit<ClusterProps, 'as' | 'role' | 'align'>;
|
|
55
72
|
/** Tiles side by side, wrapping as the width runs out; a list, so its size is read out. */
|
|
56
73
|
export declare function SummaryTileList({ children, ...props }: SummaryTileListProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"summary-tile.d.ts","sourceRoot":"","sources":["../../../../src/ui/molecules/summary-tile/summary-tile.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA4B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAKjE,OAAO,EAAS,KAAK,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEnE,OAAO,EAAa,KAAK,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAW,KAAK,YAAY,EAA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C;QAClB,QAAQ,EAAE,SAAS,CAAC;KACrB,KAAK,SAAS,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AASD;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,IAAI,EACJ,KAAK,EACL,KAAK,EACL,KAAK,EACL,UAAU,EACV,MAAM,EACN,KAAK,EACL,OAAO,EACP,UAAU,EACV,SAAS,GACV,EAAE,gBAAgB,+BA6HlB;AAED,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,YAAY,EAAE,IAAI,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;AAE/E,2FAA2F;AAC3F,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,+BAQ3E"}
|
|
@@ -12,7 +12,9 @@ import { StatusTag } from '../../atoms/status-tag/index.js';
|
|
|
12
12
|
import { Cluster } from '../../layout/cluster/index.js';
|
|
13
13
|
import { cn } from '../../utils/cn.js';
|
|
14
14
|
const SURFACE = 'flex min-h-(--target-min) flex-col gap-2xs rounded-xl border border-border bg-surface-elevated p-s text-content';
|
|
15
|
-
const LINK = '
|
|
15
|
+
const LINK = 'rounded-xl text-content no-underline focus-ring hover:shadow-overlay';
|
|
16
|
+
const HEADING_LINK = 'focus-ring rounded-sm text-content hover:underline';
|
|
17
|
+
const ITEM_LINK = `inline-flex min-h-(--target-min) items-center ${HEADING_LINK}`;
|
|
16
18
|
/**
|
|
17
19
|
* One figure that leads somewhere: a heading, a count or an amount, and a
|
|
18
20
|
* status in words. The whole tile is one link to the records it counts, named
|
|
@@ -21,26 +23,27 @@ const LINK = 'block rounded-xl text-content no-underline focus-ring hover:shadow
|
|
|
21
23
|
* figures ([ADR 0028](../../../../../../../docs/adr/0028-states-an-organism-must-render.md)).
|
|
22
24
|
* Nothing is announced live: the figure is read once, when the reader
|
|
23
25
|
* reaches it.
|
|
24
|
-
*/ export function SummaryTile({ label, href, count, money, status, state, onRetry, renderLink, className }) {
|
|
26
|
+
*/ export function SummaryTile({ label, href, count, money, items, emptyLabel, status, state, onRetry, renderLink, className }) {
|
|
25
27
|
const t = useT();
|
|
26
28
|
const formatters = useFormatters();
|
|
27
29
|
const locale = useLocale();
|
|
28
|
-
const
|
|
29
|
-
href:
|
|
30
|
+
const linkTo = (to, content, linkClass)=>renderLink === undefined ? /*#__PURE__*/ _jsx("a", {
|
|
31
|
+
href: to,
|
|
30
32
|
className: linkClass,
|
|
31
33
|
children: content
|
|
32
34
|
}) : renderLink({
|
|
33
|
-
href,
|
|
35
|
+
href: to,
|
|
34
36
|
className: linkClass,
|
|
35
37
|
children: content
|
|
36
38
|
});
|
|
39
|
+
const link = (content, linkClass)=>linkTo(href, content, linkClass);
|
|
37
40
|
if (state === 'failed') {
|
|
38
41
|
return /*#__PURE__*/ _jsxs("article", {
|
|
39
42
|
className: cn(SURFACE, className),
|
|
40
43
|
children: [
|
|
41
44
|
/*#__PURE__*/ _jsx("h3", {
|
|
42
45
|
className: "text-step-sm font-semibold",
|
|
43
|
-
children: link(label,
|
|
46
|
+
children: link(label, HEADING_LINK)
|
|
44
47
|
}),
|
|
45
48
|
/*#__PURE__*/ _jsx(Alert, {
|
|
46
49
|
tone: "danger",
|
|
@@ -58,6 +61,56 @@ const LINK = 'block rounded-xl text-content no-underline focus-ring hover:shadow
|
|
|
58
61
|
]
|
|
59
62
|
});
|
|
60
63
|
}
|
|
64
|
+
// A list tile holds a link per record, and links cannot nest: its heading
|
|
65
|
+
// is the link to all of them rather than the whole tile.
|
|
66
|
+
if (items !== undefined && money === undefined) {
|
|
67
|
+
return /*#__PURE__*/ _jsxs("article", {
|
|
68
|
+
className: cn(SURFACE, className),
|
|
69
|
+
children: [
|
|
70
|
+
/*#__PURE__*/ _jsx("h3", {
|
|
71
|
+
className: "text-step-sm font-semibold",
|
|
72
|
+
children: link(label, HEADING_LINK)
|
|
73
|
+
}),
|
|
74
|
+
state === 'loading' ? /*#__PURE__*/ _jsxs(_Fragment, {
|
|
75
|
+
children: [
|
|
76
|
+
/*#__PURE__*/ _jsx(Skeleton, {
|
|
77
|
+
shape: "line",
|
|
78
|
+
className: "w-full"
|
|
79
|
+
}),
|
|
80
|
+
/*#__PURE__*/ _jsx(Skeleton, {
|
|
81
|
+
shape: "line",
|
|
82
|
+
className: "w-3/4"
|
|
83
|
+
}),
|
|
84
|
+
/*#__PURE__*/ _jsx("span", {
|
|
85
|
+
className: "sr-only",
|
|
86
|
+
children: t('summary.loading')
|
|
87
|
+
})
|
|
88
|
+
]
|
|
89
|
+
}) : items.length === 0 ? /*#__PURE__*/ _jsx("p", {
|
|
90
|
+
className: "m-0 text-step-sm text-content-muted",
|
|
91
|
+
children: emptyLabel != null ? emptyLabel : t('summary.empty')
|
|
92
|
+
}) : /*#__PURE__*/ _jsx("ul", {
|
|
93
|
+
role: "list",
|
|
94
|
+
className: "m-0 p-0 flex list-none flex-col gap-2xs",
|
|
95
|
+
children: items.map((item)=>/*#__PURE__*/ _jsxs("li", {
|
|
96
|
+
className: "flex flex-wrap items-baseline justify-between gap-x-s",
|
|
97
|
+
children: [
|
|
98
|
+
linkTo(item.href, item.label, ITEM_LINK),
|
|
99
|
+
item.meta !== undefined && /*#__PURE__*/ _jsx("span", {
|
|
100
|
+
className: "text-step-sm text-content-muted tabular-nums",
|
|
101
|
+
children: item.meta
|
|
102
|
+
})
|
|
103
|
+
]
|
|
104
|
+
}, item.href))
|
|
105
|
+
}),
|
|
106
|
+
state === 'ready' && status !== undefined && /*#__PURE__*/ _jsx(StatusTag, {
|
|
107
|
+
tone: status.tone,
|
|
108
|
+
className: "self-start",
|
|
109
|
+
children: status.label
|
|
110
|
+
})
|
|
111
|
+
]
|
|
112
|
+
});
|
|
113
|
+
}
|
|
61
114
|
const figure = state === 'loading' ? /*#__PURE__*/ _jsxs(_Fragment, {
|
|
62
115
|
children: [
|
|
63
116
|
/*#__PURE__*/ _jsx(Skeleton, {
|
|
@@ -75,24 +128,30 @@ const LINK = 'block rounded-xl text-content no-underline focus-ring hover:shadow
|
|
|
75
128
|
unit: money.unit,
|
|
76
129
|
locale: locale
|
|
77
130
|
}) : formatters.number(count != null ? count : 0);
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
131
|
+
// The link sits inside the article, never around it: an article does not
|
|
132
|
+
// take its name from its content, so a link wrapping one reads as nameless
|
|
133
|
+
// to a spec-following tree and to every query by role. Inside, the link is
|
|
134
|
+
// named by its heading, its figure and its status.
|
|
135
|
+
return /*#__PURE__*/ _jsx("article", {
|
|
136
|
+
className: cn('flex flex-col', className),
|
|
137
|
+
children: link(/*#__PURE__*/ _jsxs(_Fragment, {
|
|
138
|
+
children: [
|
|
139
|
+
/*#__PURE__*/ _jsx("h3", {
|
|
140
|
+
className: "text-step-sm font-semibold",
|
|
141
|
+
children: label
|
|
142
|
+
}),
|
|
143
|
+
/*#__PURE__*/ _jsx("span", {
|
|
144
|
+
className: "text-step-2 font-semibold tabular-nums",
|
|
145
|
+
children: figure
|
|
146
|
+
}),
|
|
147
|
+
state === 'ready' && status !== undefined && /*#__PURE__*/ _jsx(StatusTag, {
|
|
148
|
+
tone: status.tone,
|
|
149
|
+
className: "self-start",
|
|
150
|
+
children: status.label
|
|
151
|
+
})
|
|
152
|
+
]
|
|
153
|
+
}), cn(SURFACE, LINK, 'flex-1'))
|
|
154
|
+
});
|
|
96
155
|
}
|
|
97
156
|
/** Tiles side by side, wrapping as the width runs out; a list, so its size is read out. */ export function SummaryTileList(_0) {
|
|
98
157
|
let { children } = _0, props = _object_without_properties_loose(_0, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/ui/molecules/summary-tile/summary-tile.tsx"],"sourcesContent":["'use client';\n\nimport { Children, isValidElement, type ReactNode } from 'react';\n\nimport { useFormatters, useLocale, useT } from '../../../i18n/index.js';\nimport { Alert } from '../../atoms/alert/index.js';\nimport { Button } from '../../atoms/button/index.js';\nimport { Money, type MoneyUnit } from '../../atoms/money/index.js';\nimport { Skeleton } from '../../atoms/skeleton/index.js';\nimport { StatusTag, type StatusTagTone } from '../../atoms/status-tag/index.js';\nimport { Cluster, type ClusterProps } from '../../layout/cluster/index.js';\nimport { cn } from '../../utils/cn.js';\n\n/** An amount of money a tile states instead of a count. */\nexport interface SummaryTileMoney {\n readonly amount: number;\n readonly currency: string;\n readonly unit: MoneyUnit;\n}\n\n/** What the tile's figure means at a glance, in a tone and in words. */\nexport interface SummaryTileStatus {\n readonly tone: StatusTagTone;\n /** The words for it; the tone never stands alone. */\n readonly label: string;\n}\n\nexport interface SummaryTileProps {\n /** What is counted — \"Envíos por despachar\". The tile's heading. */\n label: string;\n /** Where the counted records are: the tile is one link there. */\n href: string;\n /** How many. Ignored when {@link money} is given. */\n count?: number;\n /** An amount instead of a count — \"Próximo pago\". */\n money?: SummaryTileMoney;\n /** The figure's meaning as a tag beside it. */\n status?: SummaryTileStatus;\n /** Its own source's state: one tile failing leaves every other one standing. */\n state: 'loading' | 'ready' | 'failed';\n /** Reads the tile's source again. Without it, a failed tile offers no Retry. */\n onRetry?: () => void;\n /**\n * Routing escape hatch. It receives the tile's `href`, `className` and\n * content, and must spread `className` onto what it renders; a plain `<a>`\n * when omitted.\n */\n renderLink?: (link: {\n href: string;\n className: string;\n children: ReactNode;\n }) => ReactNode;\n className?: string;\n}\n\nconst SURFACE =\n 'flex min-h-(--target-min) flex-col gap-2xs rounded-xl border border-border bg-surface-elevated p-s text-content';\nconst LINK =\n 'block rounded-xl text-content no-underline focus-ring hover:shadow-overlay';\n\n/**\n * One figure that leads somewhere: a heading, a count or an amount, and a\n * status in words. The whole tile is one link to the records it counts, named\n * by its heading and its figure. It loads, and fails, on its own — a failed\n * tile says so in place and offers Retry while its neighbours keep their\n * figures ([ADR 0028](../../../../../../../docs/adr/0028-states-an-organism-must-render.md)).\n * Nothing is announced live: the figure is read once, when the reader\n * reaches it.\n */\nexport function SummaryTile({\n label,\n href,\n count,\n money,\n status,\n state,\n onRetry,\n renderLink,\n className,\n}: SummaryTileProps) {\n const t = useT();\n const formatters = useFormatters();\n const locale = useLocale();\n const link = (content: ReactNode, linkClass: string) =>\n renderLink === undefined ? (\n <a href={href} className={linkClass}>\n {content}\n </a>\n ) : (\n renderLink({ href, className: linkClass, children: content })\n );\n\n if (state === 'failed') {\n return (\n <article className={cn(SURFACE, className)}>\n <h3 className=\"text-step-sm font-semibold\">\n {link(label, 'focus-ring rounded-sm text-content hover:underline')}\n </h3>\n <Alert\n tone=\"danger\"\n action={\n onRetry === undefined ? undefined : (\n <Button\n type=\"button\"\n variant=\"secondary\"\n size=\"sm\"\n onClick={onRetry}\n >\n {t('state.retry')}\n </Button>\n )\n }\n >\n {t('summary.failed', { label })}\n </Alert>\n </article>\n );\n }\n\n const figure =\n state === 'loading' ? (\n <>\n <Skeleton shape=\"line\" className=\"w-12\" />\n <span className=\"sr-only\">{t('summary.loading')}</span>\n </>\n ) : money !== undefined ? (\n <Money\n amount={money.amount}\n currency={money.currency}\n unit={money.unit}\n locale={locale}\n />\n ) : (\n formatters.number(count ?? 0)\n );\n\n return link(\n <article className={cn(SURFACE, className)}>\n <h3 className=\"text-step-sm font-semibold\">{label}</h3>\n <div className=\"text-step-2 font-semibold tabular-nums\">{figure}</div>\n {state === 'ready' && status !== undefined && (\n <StatusTag tone={status.tone} className=\"self-start\">\n {status.label}\n </StatusTag>\n )}\n </article>,\n LINK,\n );\n}\n\nexport type SummaryTileListProps = Omit<ClusterProps, 'as' | 'role' | 'align'>;\n\n/** Tiles side by side, wrapping as the width runs out; a list, so its size is read out. */\nexport function SummaryTileList({ children, ...props }: SummaryTileListProps) {\n return (\n <Cluster as=\"ul\" role=\"list\" gap=\"s\" align=\"stretch\" {...props}>\n {Children.map(children, child =>\n isValidElement(child) ? <li className=\"min-w-0\">{child}</li> : child,\n )}\n </Cluster>\n );\n}\n"],"names":["Children","isValidElement","useFormatters","useLocale","useT","Alert","Button","Money","Skeleton","StatusTag","Cluster","cn","SURFACE","LINK","SummaryTile","label","href","count","money","status","state","onRetry","renderLink","className","t","formatters","locale","link","content","linkClass","undefined","a","children","article","h3","tone","action","type","variant","size","onClick","figure","shape","span","amount","currency","unit","number","div","SummaryTileList","props","as","role","gap","align","map","child","li"],"mappings":"AAAA;;;;AAEA,SAASA,QAAQ,EAAEC,cAAc,QAAwB,QAAQ;AAEjE,SAASC,aAAa,EAAEC,SAAS,EAAEC,IAAI,QAAQ,yBAAyB;AACxE,SAASC,KAAK,QAAQ,6BAA6B;AACnD,SAASC,MAAM,QAAQ,8BAA8B;AACrD,SAASC,KAAK,QAAwB,6BAA6B;AACnE,SAASC,QAAQ,QAAQ,gCAAgC;AACzD,SAASC,SAAS,QAA4B,kCAAkC;AAChF,SAASC,OAAO,QAA2B,gCAAgC;AAC3E,SAASC,EAAE,QAAQ,oBAAoB;AA4CvC,MAAMC,UACJ;AACF,MAAMC,OACJ;AAEF;;;;;;;;CAQC,GACD,OAAO,SAASC,YAAY,EAC1BC,KAAK,EACLC,IAAI,EACJC,KAAK,EACLC,KAAK,EACLC,MAAM,EACNC,KAAK,EACLC,OAAO,EACPC,UAAU,EACVC,SAAS,EACQ;IACjB,MAAMC,IAAIpB;IACV,MAAMqB,aAAavB;IACnB,MAAMwB,SAASvB;IACf,MAAMwB,OAAO,CAACC,SAAoBC,YAChCP,eAAeQ,0BACb,KAACC;YAAEf,MAAMA;YAAMO,WAAWM;sBACvBD;aAGHN,WAAW;YAAEN;YAAMO,WAAWM;YAAWG,UAAUJ;QAAQ;IAG/D,IAAIR,UAAU,UAAU;QACtB,qBACE,MAACa;YAAQV,WAAWZ,GAAGC,SAASW;;8BAC9B,KAACW;oBAAGX,WAAU;8BACXI,KAAKZ,OAAO;;8BAEf,KAACV;oBACC8B,MAAK;oBACLC,QACEf,YAAYS,YAAYA,0BACtB,KAACxB;wBACC+B,MAAK;wBACLC,SAAQ;wBACRC,MAAK;wBACLC,SAASnB;kCAERG,EAAE;;8BAKRA,EAAE,kBAAkB;wBAAET;oBAAM;;;;IAIrC;IAEA,MAAM0B,SACJrB,UAAU,0BACR;;0BACE,KAACZ;gBAASkC,OAAM;gBAAOnB,WAAU;;0BACjC,KAACoB;gBAAKpB,WAAU;0BAAWC,EAAE;;;SAE7BN,UAAUY,0BACZ,KAACvB;QACCqC,QAAQ1B,MAAM0B,MAAM;QACpBC,UAAU3B,MAAM2B,QAAQ;QACxBC,MAAM5B,MAAM4B,IAAI;QAChBpB,QAAQA;SAGVD,WAAWsB,MAAM,CAAC9B,gBAAAA,QAAS;IAG/B,OAAOU,mBACL,MAACM;QAAQV,WAAWZ,GAAGC,SAASW;;0BAC9B,KAACW;gBAAGX,WAAU;0BAA8BR;;0BAC5C,KAACiC;gBAAIzB,WAAU;0BAA0CkB;;YACxDrB,UAAU,WAAWD,WAAWW,2BAC/B,KAACrB;gBAAU0B,MAAMhB,OAAOgB,IAAI;gBAAEZ,WAAU;0BACrCJ,OAAOJ,KAAK;;;QAInBF;AAEJ;AAIA,yFAAyF,GACzF,OAAO,SAASoC,gBAAgB,EAA4C;QAA5C,EAAEjB,QAAQ,EAAkC,OAA7BkB;;;IAC7C,qBACE,KAACxC;QAAQyC,IAAG;QAAKC,MAAK;QAAOC,KAAI;QAAIC,OAAM;OAAcJ;kBACtDlD,SAASuD,GAAG,CAACvB,UAAUwB,CAAAA,sBACtBvD,eAAeuD,uBAAS,KAACC;gBAAGlC,WAAU;0BAAWiC;iBAAcA;;AAIvE"}
|
|
1
|
+
{"version":3,"sources":["../../../../src/ui/molecules/summary-tile/summary-tile.tsx"],"sourcesContent":["'use client';\n\nimport { Children, isValidElement, type ReactNode } from 'react';\n\nimport { useFormatters, useLocale, useT } from '../../../i18n/index.js';\nimport { Alert } from '../../atoms/alert/index.js';\nimport { Button } from '../../atoms/button/index.js';\nimport { Money, type MoneyUnit } from '../../atoms/money/index.js';\nimport { Skeleton } from '../../atoms/skeleton/index.js';\nimport { StatusTag, type StatusTagTone } from '../../atoms/status-tag/index.js';\nimport { Cluster, type ClusterProps } from '../../layout/cluster/index.js';\nimport { cn } from '../../utils/cn.js';\n\n/** An amount of money a tile states instead of a count. */\nexport interface SummaryTileMoney {\n readonly amount: number;\n readonly currency: string;\n readonly unit: MoneyUnit;\n}\n\n/** What the tile's figure means at a glance, in a tone and in words. */\nexport interface SummaryTileStatus {\n readonly tone: StatusTagTone;\n /** The words for it; the tone never stands alone. */\n readonly label: string;\n}\n\n/** One record a list tile leads to — \"Pedido 1042\", and when it was placed. */\nexport interface SummaryTileItem {\n readonly href: string;\n /** What the record is called; the link's name. */\n readonly label: string;\n /** A muted detail after it — a date, an amount, a status in words. */\n readonly meta?: ReactNode;\n}\n\nexport interface SummaryTileProps {\n /** What is counted — \"Envíos por despachar\". The tile's heading. */\n label: string;\n /** Where the counted records are: the tile is one link there. */\n href: string;\n /** How many. Ignored when {@link money} is given. */\n count?: number;\n /** An amount instead of a count — \"Próximo pago\". */\n money?: SummaryTileMoney;\n /**\n * A short list instead of a figure — \"Últimos pedidos\". The heading links\n * to all of them and each item to its own record, so the tile is not one\n * link. Ignored when {@link money} is given; takes precedence over\n * {@link count}.\n */\n items?: readonly SummaryTileItem[];\n /** What an empty list says. A neutral \"nothing yet\" when omitted. */\n emptyLabel?: string;\n /** The figure's meaning as a tag beside it. */\n status?: SummaryTileStatus;\n /** Its own source's state: one tile failing leaves every other one standing. */\n state: 'loading' | 'ready' | 'failed';\n /** Reads the tile's source again. Without it, a failed tile offers no Retry. */\n onRetry?: () => void;\n /**\n * Routing escape hatch. It receives the tile's `href`, `className` and\n * content, and must spread `className` onto what it renders; a plain `<a>`\n * when omitted.\n */\n renderLink?: (link: {\n href: string;\n className: string;\n children: ReactNode;\n }) => ReactNode;\n className?: string;\n}\n\nconst SURFACE =\n 'flex min-h-(--target-min) flex-col gap-2xs rounded-xl border border-border bg-surface-elevated p-s text-content';\nconst LINK =\n 'rounded-xl text-content no-underline focus-ring hover:shadow-overlay';\nconst HEADING_LINK = 'focus-ring rounded-sm text-content hover:underline';\nconst ITEM_LINK = `inline-flex min-h-(--target-min) items-center ${HEADING_LINK}`;\n\n/**\n * One figure that leads somewhere: a heading, a count or an amount, and a\n * status in words. The whole tile is one link to the records it counts, named\n * by its heading and its figure. It loads, and fails, on its own — a failed\n * tile says so in place and offers Retry while its neighbours keep their\n * figures ([ADR 0028](../../../../../../../docs/adr/0028-states-an-organism-must-render.md)).\n * Nothing is announced live: the figure is read once, when the reader\n * reaches it.\n */\nexport function SummaryTile({\n label,\n href,\n count,\n money,\n items,\n emptyLabel,\n status,\n state,\n onRetry,\n renderLink,\n className,\n}: SummaryTileProps) {\n const t = useT();\n const formatters = useFormatters();\n const locale = useLocale();\n const linkTo = (to: string, content: ReactNode, linkClass: string) =>\n renderLink === undefined ? (\n <a href={to} className={linkClass}>\n {content}\n </a>\n ) : (\n renderLink({ href: to, className: linkClass, children: content })\n );\n const link = (content: ReactNode, linkClass: string) =>\n linkTo(href, content, linkClass);\n\n if (state === 'failed') {\n return (\n <article className={cn(SURFACE, className)}>\n <h3 className=\"text-step-sm font-semibold\">\n {link(label, HEADING_LINK)}\n </h3>\n <Alert\n tone=\"danger\"\n action={\n onRetry === undefined ? undefined : (\n <Button\n type=\"button\"\n variant=\"secondary\"\n size=\"sm\"\n onClick={onRetry}\n >\n {t('state.retry')}\n </Button>\n )\n }\n >\n {t('summary.failed', { label })}\n </Alert>\n </article>\n );\n }\n\n // A list tile holds a link per record, and links cannot nest: its heading\n // is the link to all of them rather than the whole tile.\n if (items !== undefined && money === undefined) {\n return (\n <article className={cn(SURFACE, className)}>\n <h3 className=\"text-step-sm font-semibold\">\n {link(label, HEADING_LINK)}\n </h3>\n {state === 'loading' ? (\n <>\n <Skeleton shape=\"line\" className=\"w-full\" />\n <Skeleton shape=\"line\" className=\"w-3/4\" />\n <span className=\"sr-only\">{t('summary.loading')}</span>\n </>\n ) : items.length === 0 ? (\n <p className=\"m-0 text-step-sm text-content-muted\">\n {emptyLabel ?? t('summary.empty')}\n </p>\n ) : (\n <ul role=\"list\" className=\"m-0 p-0 flex list-none flex-col gap-2xs\">\n {items.map(item => (\n <li\n key={item.href}\n className=\"flex flex-wrap items-baseline justify-between gap-x-s\"\n >\n {linkTo(item.href, item.label, ITEM_LINK)}\n {item.meta !== undefined && (\n <span className=\"text-step-sm text-content-muted tabular-nums\">\n {item.meta}\n </span>\n )}\n </li>\n ))}\n </ul>\n )}\n {state === 'ready' && status !== undefined && (\n <StatusTag tone={status.tone} className=\"self-start\">\n {status.label}\n </StatusTag>\n )}\n </article>\n );\n }\n\n const figure =\n state === 'loading' ? (\n <>\n <Skeleton shape=\"line\" className=\"w-12\" />\n <span className=\"sr-only\">{t('summary.loading')}</span>\n </>\n ) : money !== undefined ? (\n <Money\n amount={money.amount}\n currency={money.currency}\n unit={money.unit}\n locale={locale}\n />\n ) : (\n formatters.number(count ?? 0)\n );\n\n // The link sits inside the article, never around it: an article does not\n // take its name from its content, so a link wrapping one reads as nameless\n // to a spec-following tree and to every query by role. Inside, the link is\n // named by its heading, its figure and its status.\n return (\n <article className={cn('flex flex-col', className)}>\n {link(\n <>\n <h3 className=\"text-step-sm font-semibold\">{label}</h3>\n <span className=\"text-step-2 font-semibold tabular-nums\">\n {figure}\n </span>\n {state === 'ready' && status !== undefined && (\n <StatusTag tone={status.tone} className=\"self-start\">\n {status.label}\n </StatusTag>\n )}\n </>,\n cn(SURFACE, LINK, 'flex-1'),\n )}\n </article>\n );\n}\n\nexport type SummaryTileListProps = Omit<ClusterProps, 'as' | 'role' | 'align'>;\n\n/** Tiles side by side, wrapping as the width runs out; a list, so its size is read out. */\nexport function SummaryTileList({ children, ...props }: SummaryTileListProps) {\n return (\n <Cluster as=\"ul\" role=\"list\" gap=\"s\" align=\"stretch\" {...props}>\n {Children.map(children, child =>\n isValidElement(child) ? <li className=\"min-w-0\">{child}</li> : child,\n )}\n </Cluster>\n );\n}\n"],"names":["Children","isValidElement","useFormatters","useLocale","useT","Alert","Button","Money","Skeleton","StatusTag","Cluster","cn","SURFACE","LINK","HEADING_LINK","ITEM_LINK","SummaryTile","label","href","count","money","items","emptyLabel","status","state","onRetry","renderLink","className","t","formatters","locale","linkTo","to","content","linkClass","undefined","a","children","link","article","h3","tone","action","type","variant","size","onClick","shape","span","length","p","ul","role","map","item","li","meta","figure","amount","currency","unit","number","SummaryTileList","props","as","gap","align","child"],"mappings":"AAAA;;;;AAEA,SAASA,QAAQ,EAAEC,cAAc,QAAwB,QAAQ;AAEjE,SAASC,aAAa,EAAEC,SAAS,EAAEC,IAAI,QAAQ,yBAAyB;AACxE,SAASC,KAAK,QAAQ,6BAA6B;AACnD,SAASC,MAAM,QAAQ,8BAA8B;AACrD,SAASC,KAAK,QAAwB,6BAA6B;AACnE,SAASC,QAAQ,QAAQ,gCAAgC;AACzD,SAASC,SAAS,QAA4B,kCAAkC;AAChF,SAASC,OAAO,QAA2B,gCAAgC;AAC3E,SAASC,EAAE,QAAQ,oBAAoB;AA8DvC,MAAMC,UACJ;AACF,MAAMC,OACJ;AACF,MAAMC,eAAe;AACrB,MAAMC,YAAY,CAAC,8CAA8C,EAAED,cAAc;AAEjF;;;;;;;;CAQC,GACD,OAAO,SAASE,YAAY,EAC1BC,KAAK,EACLC,IAAI,EACJC,KAAK,EACLC,KAAK,EACLC,KAAK,EACLC,UAAU,EACVC,MAAM,EACNC,KAAK,EACLC,OAAO,EACPC,UAAU,EACVC,SAAS,EACQ;IACjB,MAAMC,IAAIxB;IACV,MAAMyB,aAAa3B;IACnB,MAAM4B,SAAS3B;IACf,MAAM4B,SAAS,CAACC,IAAYC,SAAoBC,YAC9CR,eAAeS,0BACb,KAACC;YAAElB,MAAMc;YAAIL,WAAWO;sBACrBD;aAGHP,WAAW;YAAER,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,KAAK;;;;IAKvB;IAEA,MAAMwC,SACJjC,UAAU,0BACR;;0BACE,KAAChB;gBAASuC,OAAM;gBAAOpB,WAAU;;0BACjC,KAACqB;gBAAKrB,WAAU;0BAAWC,EAAE;;;SAE7BR,UAAUe,0BACZ,KAAC5B;QACCmD,QAAQtC,MAAMsC,MAAM;QACpBC,UAAUvC,MAAMuC,QAAQ;QACxBC,MAAMxC,MAAMwC,IAAI;QAChB9B,QAAQA;SAGVD,WAAWgC,MAAM,CAAC1C,gBAAAA,QAAS;IAG/B,yEAAyE;IACzE,2EAA2E;IAC3E,2EAA2E;IAC3E,mDAAmD;IACnD,qBACE,KAACoB;QAAQZ,WAAWhB,GAAG,iBAAiBgB;kBACrCW,mBACC;;8BACE,KAACE;oBAAGb,WAAU;8BAA8BV;;8BAC5C,KAAC+B;oBAAKrB,WAAU;8BACb8B;;gBAEFjC,UAAU,WAAWD,WAAWY,2BAC/B,KAAC1B;oBAAUgC,MAAMlB,OAAOkB,IAAI;oBAAEd,WAAU;8BACrCJ,OAAON,KAAK;;;YAInBN,GAAGC,SAASC,MAAM;;AAI1B;AAIA,yFAAyF,GACzF,OAAO,SAASiD,gBAAgB,EAA4C;QAA5C,EAAEzB,QAAQ,EAAkC,OAA7B0B;;;IAC7C,qBACE,KAACrD;QAAQsD,IAAG;QAAKZ,MAAK;QAAOa,KAAI;QAAIC,OAAM;OAAcH;kBACtD/D,SAASqD,GAAG,CAAChB,UAAU8B,CAAAA,sBACtBlE,eAAekE,uBAAS,KAACZ;gBAAG5B,WAAU;0BAAWwC;iBAAcA;;AAIvE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Entity, MetaAccessorType } from '@entifix/core';
|
|
1
|
+
import type { Entity, MetaAccessorType, MoneyFormat } from '@entifix/core';
|
|
2
2
|
import { type ReactNode } from 'react';
|
|
3
3
|
import type { EntityTableColumn } from './entity-table.types.js';
|
|
4
4
|
/**
|
|
@@ -16,6 +16,11 @@ export interface EntityColumnProps<TEntity extends Entity = Entity> {
|
|
|
16
16
|
type?: MetaAccessorType;
|
|
17
17
|
/** The narrowest the column reads at, in `rem` — what the pivot counts it as. */
|
|
18
18
|
minWidth?: number;
|
|
19
|
+
/**
|
|
20
|
+
* The column holds an amount: printed as `Money` in its currency, never as
|
|
21
|
+
* the stored number. A computed column has no accessor to declare it on.
|
|
22
|
+
*/
|
|
23
|
+
money?: MoneyFormat;
|
|
19
24
|
order?: number;
|
|
20
25
|
sortable?: boolean;
|
|
21
26
|
filterable?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-table-slots.d.ts","sourceRoot":"","sources":["../../../../src/ui/organisms/entity-table/entity-table-slots.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"entity-table-slots.d.ts","sourceRoot":"","sources":["../../../../src/ui/organisms/entity-table/entity-table-slots.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,EAA4B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEjE;;;;;;GAMG;AAEH,MAAM,WAAW,iBAAiB,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM;IAChE,wEAAwE;IACxE,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,iFAAiF;IACjF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CA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C,OAAO,CAAC,CAAC;IACnC,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,0EAA0E;IAC1E,IAAI,EAAE,SAAS,EAAE,CAAC;CACnB;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,SAAS,MAAM,EACzD,QAAQ,EAAE,SAAS,GAClB,gBAAgB,CAAC,OAAO,CAAC,CA4B3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/ui/organisms/entity-table/entity-table-slots.tsx"],"sourcesContent":["import type { Entity, MetaAccessorType } from '@entifix/core';\nimport { Children, isValidElement, type ReactNode } from 'react';\n\nimport type { EntityTableColumn } from './entity-table.types.js';\n\n/**\n * The declarative customization API. Slots are configuration expressed as JSX:\n * they never render themselves — `EntityTable` reads their props and decides\n * where the configuration applies. That keeps simple tables to a single\n * self-closing tag while complex ones stay declarative instead of drowning in\n * option objects.\n */\n\nexport interface EntityColumnProps<TEntity extends Entity = Entity> {\n /** Accessor name. Unknown names create an extra, entity-less column. */\n field: string;\n label?: string;\n header?: ReactNode;\n type?: MetaAccessorType;\n /** The narrowest the column reads at, in `rem` — what the pivot counts it as. */\n minWidth?: number;\n order?: number;\n sortable?: boolean;\n filterable?: boolean;\n render?: (item: TEntity) => ReactNode;\n}\n\n/** Overrides one metadata-derived column, or adds a computed one. */\nexport function EntityColumn<TEntity extends Entity = Entity>(\n _props: EntityColumnProps<TEntity>,\n): ReactNode {\n return null;\n}\n\nexport interface EntityTableHeaderProps<TEntity extends Entity = Entity> {\n /** Replaces the whole header row. Receives the resolved visible columns. */\n render: (columns: Array<EntityTableColumn<TEntity>>) => ReactNode;\n}\n\nexport function EntityTableHeader<TEntity extends Entity = Entity>(\n _props: EntityTableHeaderProps<TEntity>,\n): ReactNode {\n return null;\n}\n\nexport interface EntityTableRowProps<TEntity extends Entity = Entity> {\n /** Replaces the whole body row for every item. */\n render: (\n item: TEntity,\n columns: Array<EntityTableColumn<TEntity>>,\n ) => ReactNode;\n}\n\nexport function EntityTableRow<TEntity extends Entity = Entity>(\n _props: EntityTableRowProps<TEntity>,\n): ReactNode {\n return null;\n}\n\nexport interface EntityTableToolbarProps {\n children?: ReactNode;\n}\n\n/** Extra actions placed alongside the built-in toolbar controls. */\nexport function EntityTableToolbar(_props: EntityTableToolbarProps): ReactNode {\n return null;\n}\n\nexport interface EntityTableSlots<TEntity extends Entity> {\n columns: Array<EntityColumnProps<TEntity>>;\n header?: EntityTableHeaderProps<TEntity>;\n row?: EntityTableRowProps<TEntity>;\n toolbar?: ReactNode;\n /** Children that matched no slot — rendered below the table untouched. */\n rest: ReactNode[];\n}\n\n/**\n * Sorts children into slots.\n *\n * Matching is by component identity rather than by `displayName`: identity\n * survives minification and cannot collide with an unrelated component that\n * happens to share a name.\n */\nexport function readEntityTableSlots<TEntity extends Entity>(\n children: ReactNode,\n): EntityTableSlots<TEntity> {\n const slots: EntityTableSlots<TEntity> = { columns: [], rest: [] };\n\n Children.toArray(children).forEach(child => {\n if (!isValidElement(child)) {\n slots.rest.push(child);\n return;\n }\n\n switch (child.type) {\n case EntityColumn:\n slots.columns.push(child.props as EntityColumnProps<TEntity>);\n break;\n case EntityTableHeader:\n slots.header = child.props as EntityTableHeaderProps<TEntity>;\n break;\n case EntityTableRow:\n slots.row = child.props as EntityTableRowProps<TEntity>;\n break;\n case EntityTableToolbar:\n slots.toolbar = (child.props as EntityTableToolbarProps).children;\n break;\n default:\n slots.rest.push(child);\n }\n });\n\n return slots;\n}\n"],"names":["Children","isValidElement","EntityColumn","_props","EntityTableHeader","EntityTableRow","EntityTableToolbar","readEntityTableSlots","children","slots","columns","rest","toArray","forEach","child","push","type","props","header","row","toolbar"],"mappings":"AACA,SAASA,QAAQ,EAAEC,cAAc,QAAwB,QAAQ;
|
|
1
|
+
{"version":3,"sources":["../../../../src/ui/organisms/entity-table/entity-table-slots.tsx"],"sourcesContent":["import type { Entity, MetaAccessorType, MoneyFormat } from '@entifix/core';\nimport { Children, isValidElement, type ReactNode } from 'react';\n\nimport type { EntityTableColumn } from './entity-table.types.js';\n\n/**\n * The declarative customization API. Slots are configuration expressed as JSX:\n * they never render themselves — `EntityTable` reads their props and decides\n * where the configuration applies. That keeps simple tables to a single\n * self-closing tag while complex ones stay declarative instead of drowning in\n * option objects.\n */\n\nexport interface EntityColumnProps<TEntity extends Entity = Entity> {\n /** Accessor name. Unknown names create an extra, entity-less column. */\n field: string;\n label?: string;\n header?: ReactNode;\n type?: MetaAccessorType;\n /** The narrowest the column reads at, in `rem` — what the pivot counts it as. */\n minWidth?: number;\n /**\n * The column holds an amount: printed as `Money` in its currency, never as\n * the stored number. A computed column has no accessor to declare it on.\n */\n money?: MoneyFormat;\n order?: number;\n sortable?: boolean;\n filterable?: boolean;\n render?: (item: TEntity) => ReactNode;\n}\n\n/** Overrides one metadata-derived column, or adds a computed one. */\nexport function EntityColumn<TEntity extends Entity = Entity>(\n _props: EntityColumnProps<TEntity>,\n): ReactNode {\n return null;\n}\n\nexport interface EntityTableHeaderProps<TEntity extends Entity = Entity> {\n /** Replaces the whole header row. Receives the resolved visible columns. */\n render: (columns: Array<EntityTableColumn<TEntity>>) => ReactNode;\n}\n\nexport function EntityTableHeader<TEntity extends Entity = Entity>(\n _props: EntityTableHeaderProps<TEntity>,\n): ReactNode {\n return null;\n}\n\nexport interface EntityTableRowProps<TEntity extends Entity = Entity> {\n /** Replaces the whole body row for every item. */\n render: (\n item: TEntity,\n columns: Array<EntityTableColumn<TEntity>>,\n ) => ReactNode;\n}\n\nexport function EntityTableRow<TEntity extends Entity = Entity>(\n _props: EntityTableRowProps<TEntity>,\n): ReactNode {\n return null;\n}\n\nexport interface EntityTableToolbarProps {\n children?: ReactNode;\n}\n\n/** Extra actions placed alongside the built-in toolbar controls. */\nexport function EntityTableToolbar(_props: EntityTableToolbarProps): ReactNode {\n return null;\n}\n\nexport interface EntityTableSlots<TEntity extends Entity> {\n columns: Array<EntityColumnProps<TEntity>>;\n header?: EntityTableHeaderProps<TEntity>;\n row?: EntityTableRowProps<TEntity>;\n toolbar?: ReactNode;\n /** Children that matched no slot — rendered below the table untouched. */\n rest: ReactNode[];\n}\n\n/**\n * Sorts children into slots.\n *\n * Matching is by component identity rather than by `displayName`: identity\n * survives minification and cannot collide with an unrelated component that\n * happens to share a name.\n */\nexport function readEntityTableSlots<TEntity extends Entity>(\n children: ReactNode,\n): EntityTableSlots<TEntity> {\n const slots: EntityTableSlots<TEntity> = { columns: [], rest: [] };\n\n Children.toArray(children).forEach(child => {\n if (!isValidElement(child)) {\n slots.rest.push(child);\n return;\n }\n\n switch (child.type) {\n case EntityColumn:\n slots.columns.push(child.props as EntityColumnProps<TEntity>);\n break;\n case EntityTableHeader:\n slots.header = child.props as EntityTableHeaderProps<TEntity>;\n break;\n case EntityTableRow:\n slots.row = child.props as EntityTableRowProps<TEntity>;\n break;\n case EntityTableToolbar:\n slots.toolbar = (child.props as EntityTableToolbarProps).children;\n break;\n default:\n slots.rest.push(child);\n }\n });\n\n return slots;\n}\n"],"names":["Children","isValidElement","EntityColumn","_props","EntityTableHeader","EntityTableRow","EntityTableToolbar","readEntityTableSlots","children","slots","columns","rest","toArray","forEach","child","push","type","props","header","row","toolbar"],"mappings":"AACA,SAASA,QAAQ,EAAEC,cAAc,QAAwB,QAAQ;AA+BjE,mEAAmE,GACnE,OAAO,SAASC,aACdC,MAAkC;IAElC,OAAO;AACT;AAOA,OAAO,SAASC,kBACdD,MAAuC;IAEvC,OAAO;AACT;AAUA,OAAO,SAASE,eACdF,MAAoC;IAEpC,OAAO;AACT;AAMA,kEAAkE,GAClE,OAAO,SAASG,mBAAmBH,MAA+B;IAChE,OAAO;AACT;AAWA;;;;;;CAMC,GACD,OAAO,SAASI,qBACdC,QAAmB;IAEnB,MAAMC,QAAmC;QAAEC,SAAS,EAAE;QAAEC,MAAM,EAAE;IAAC;IAEjEX,SAASY,OAAO,CAACJ,UAAUK,OAAO,CAACC,CAAAA;QACjC,IAAI,eAACb,eAAea,QAAQ;YAC1BL,MAAME,IAAI,CAACI,IAAI,CAACD;YAChB;QACF;QAEA,OAAQA,MAAME,IAAI;YAChB,KAAKd;gBACHO,MAAMC,OAAO,CAACK,IAAI,CAACD,MAAMG,KAAK;gBAC9B;YACF,KAAKb;gBACHK,MAAMS,MAAM,GAAGJ,MAAMG,KAAK;gBAC1B;YACF,KAAKZ;gBACHI,MAAMU,GAAG,GAAGL,MAAMG,KAAK;gBACvB;YACF,KAAKX;gBACHG,MAAMW,OAAO,GAAG,AAACN,MAAMG,KAAK,CAA6BT,QAAQ;gBACjE;YACF;gBACEC,MAAME,IAAI,CAACI,IAAI,CAACD;QACpB;IACF;IAEA,OAAOL;AACT"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type Entity } from '@entifix/core';
|
|
2
2
|
import type { EntityTableProps } from './entity-table.types.js';
|
|
3
|
-
export declare function EntityTable<TEntity extends Entity>({ entityConstructor, isLoading, skeleton, error, items, totalItems, currentPage, pageSize, onPageChange, onPageSizeChange, hrefFor, newHref, renderLink, onSelect, preferencesKey, hiddenColumns, showControls, pivotBreakpoint, filtering, sorting, onFilteringChange, onSortingChange, facets, selection, onSelectionChange, metadata, isMetadataLoading, onBulkUseCase, onUseCase, onRetry, bulkOutcomes, onBulkDismiss, onBulkRetry, isBulkRunning, children, }: EntityTableProps<TEntity>): import("react").JSX.Element;
|
|
3
|
+
export declare function EntityTable<TEntity extends Entity>({ entityConstructor, isLoading, skeleton, error, items, totalItems, currentPage, pageSize, onPageChange, onPageSizeChange, hrefFor, newHref, renderLink, onSelect, preferencesKey, hiddenColumns, showKey, showControls, pivotBreakpoint, filtering, sorting, onFilteringChange, onSortingChange, facets, selection, onSelectionChange, metadata, isMetadataLoading, onBulkUseCase, onUseCase, onRetry, bulkOutcomes, onBulkDismiss, onBulkRetry, isBulkRunning, children, }: EntityTableProps<TEntity>): import("react").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=entity-table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-table.d.ts","sourceRoot":"","sources":["../../../../src/ui/organisms/entity-table/entity-table.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"entity-table.d.ts","sourceRoot":"","sources":["../../../../src/ui/organisms/entity-table/entity-table.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,MAAM,EAcZ,MAAM,eAAe,CAAC;AAsDvB,OAAO,KAAK,EAEV,gBAAgB,EACjB,MAAM,yBAAyB,CAAC;AA4DjC,wBAAgB,WAAW,CAAC,OAAO,SAAS,MAAM,EAAE,EAClD,iBAAiB,EACjB,SAAS,EACT,QAAe,EACf,KAAK,EACL,KAAK,EACL,UAAU,EACV,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,OAAO,EACP,OAAO,EACP,UAAyB,EACzB,QAAQ,EACR,cAAc,EACd,aAAa,EACb,OAAe,EACf,YAAmB,EACnB,eAAe,EACf,SAAS,EACT,OAAO,EACP,iBAAiB,EACjB,eAAe,EACf,MAAM,EACN,SAAS,EACT,iBAAiB,EACjB,QAAQ,EACR,iBAAyB,EACzB,aAAa,EACb,SAAS,EACT,OAAO,EACP,YAAY,EACZ,aAAa,EACb,WAAW,EACX,aAAqB,EACrB,QAAQ,GACT,EAAE,gBAAgB,CAAC,OAAO,CAAC,+BAwhC3B"}
|