@asteby/metacore-runtime-react 53.13.1 → 53.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/action-modal-dispatcher.d.ts +1 -1
- package/dist/action-modal-dispatcher.d.ts.map +1 -1
- package/dist/action-modal-dispatcher.js +31 -6
- package/dist/dialogs/dynamic-record.d.ts +8 -1
- package/dist/dialogs/dynamic-record.d.ts.map +1 -1
- package/dist/dialogs/dynamic-record.js +34 -4
- package/dist/dynamic-columns.d.ts.map +1 -1
- package/dist/dynamic-columns.js +4 -0
- package/dist/dynamic-form-schema.d.ts.map +1 -1
- package/dist/dynamic-form-schema.js +5 -1
- package/dist/dynamic-form.d.ts.map +1 -1
- package/dist/dynamic-form.js +28 -3
- package/dist/dynamic-kanban.d.ts.map +1 -1
- package/dist/dynamic-kanban.js +33 -1
- package/dist/dynamic-line-items.d.ts.map +1 -1
- package/dist/dynamic-line-items.js +9 -1
- package/dist/dynamic-table.d.ts.map +1 -1
- package/dist/dynamic-table.js +7 -0
- package/dist/field-grid.d.ts +3 -1
- package/dist/field-grid.d.ts.map +1 -1
- package/dist/field-grid.js +2 -2
- package/dist/nullable-boolean.d.ts +48 -0
- package/dist/nullable-boolean.d.ts.map +1 -0
- package/dist/nullable-boolean.js +80 -0
- package/dist/tri-state-boolean-impl.d.ts +24 -0
- package/dist/tri-state-boolean-impl.d.ts.map +1 -0
- package/dist/tri-state-boolean-impl.js +35 -0
- package/dist/tri-state-boolean.d.ts +15 -0
- package/dist/tri-state-boolean.d.ts.map +1 -0
- package/dist/tri-state-boolean.js +24 -0
- package/dist/use-dynamic-filters.d.ts.map +1 -1
- package/dist/use-dynamic-filters.js +10 -0
- package/package.json +3 -3
- package/src/__tests__/nullable-boolean.test.tsx +458 -0
- package/src/action-modal-dispatcher.tsx +32 -6
- package/src/dialogs/dynamic-record.tsx +53 -5
- package/src/dynamic-columns.tsx +3 -0
- package/src/dynamic-form-schema.ts +4 -1
- package/src/dynamic-form.tsx +31 -2
- package/src/dynamic-kanban.tsx +6 -1
- package/src/dynamic-line-items.tsx +9 -1
- package/src/dynamic-table.tsx +5 -0
- package/src/field-grid.tsx +4 -0
- package/src/nullable-boolean.ts +96 -0
- package/src/tri-state-boolean-impl.tsx +71 -0
- package/src/tri-state-boolean.tsx +39 -0
- package/src/use-dynamic-filters.ts +8 -0
|
@@ -9,8 +9,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
9
9
|
// row controls mutate the array; each cell is a widget resolved via
|
|
10
10
|
// `resolveWidget`, matching the flat-field renderer in dynamic-form.tsx.
|
|
11
11
|
import { Input, Textarea, Switch, Button, Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from '@asteby/metacore-ui/primitives';
|
|
12
|
-
import { useEffect, useRef } from 'react';
|
|
12
|
+
import { useEffect, useRef, useState } from 'react';
|
|
13
13
|
import { Plus, Trash2, Check } from 'lucide-react';
|
|
14
|
+
import { usesTriState } from './nullable-boolean';
|
|
15
|
+
import { TriStateBooleanField } from './tri-state-boolean';
|
|
14
16
|
import { resolveWidget, getItemFields, computeLineItemTotals, applyLineItemRowFormulas, autofillLineFromOption, evaluateBalance, toNumber, getDependsOn, resolveDependsValue, getOptionsConfig, resolveOptionsSource, applyOptionWhen, } from './dynamic-form-schema';
|
|
15
17
|
import { DynamicSelectField, DEFAULT_DEPENDS_HINT } from './dynamic-select-field';
|
|
16
18
|
import { getOptionFilter } from './option-filter';
|
|
@@ -115,6 +117,9 @@ function BalanceBadge({ state, }) {
|
|
|
115
117
|
// a scalar widget).
|
|
116
118
|
function CellRenderer({ field, value, onChange, onPick, disabled, formValues, rowValues, invalid }) {
|
|
117
119
|
const widget = resolveWidget(field);
|
|
120
|
+
// Un booleano opcional que llegó en NULL conserva el control de tres
|
|
121
|
+
// estados aunque el usuario elija Sí/No (puede volver a «Sin definir»).
|
|
122
|
+
const [seededNull] = useState(() => value === null);
|
|
118
123
|
const invalidCls = invalid
|
|
119
124
|
? 'border-destructive ring-1 ring-destructive/30 focus-visible:ring-destructive'
|
|
120
125
|
: '';
|
|
@@ -168,6 +173,9 @@ function CellRenderer({ field, value, onChange, onPick, disabled, formValues, ro
|
|
|
168
173
|
return (_jsxs(Select, { value: value || '', onValueChange: onChange, disabled: off, children: [_jsx(SelectTrigger, { className: 'w-full' + (invalidCls ? ` ${invalidCls}` : ''), "aria-invalid": invalid || undefined, children: _jsx(SelectValue, { placeholder: field.placeholder || 'Seleccionar...' }) }), _jsx(SelectContent, { children: opts?.map((opt) => (_jsx(SelectItem, { value: opt.value, children: opt.label }, opt.value))) })] }));
|
|
169
174
|
}
|
|
170
175
|
case 'switch':
|
|
176
|
+
if (usesTriState(field, seededNull ? null : value)) {
|
|
177
|
+
return _jsx(TriStateBooleanField, { value: value, onChange: onChange, disabled: off, label: field.label, invalid: invalid });
|
|
178
|
+
}
|
|
171
179
|
return _jsx(Switch, { checked: !!value, onCheckedChange: onChange, disabled: off });
|
|
172
180
|
case 'number':
|
|
173
181
|
return (_jsx(Input, { type: "number", value: value ?? '', onChange: (e) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic-table.d.ts","sourceRoot":"","sources":["../src/dynamic-table.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAsE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAM1G,OAAO,EAKH,KAAK,SAAS,EAajB,MAAM,uBAAuB,CAAA;AAoC9B,OAAO,KAAK,EAAsB,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"dynamic-table.d.ts","sourceRoot":"","sources":["../src/dynamic-table.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAsE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAM1G,OAAO,EAKH,KAAK,SAAS,EAajB,MAAM,uBAAuB,CAAA;AAoC9B,OAAO,KAAK,EAAsB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EACV,UAAU,EACV,aAAkB,EAClB,iBAAiB,EACjB,QAAQ,EACR,UAAU,EACV,kBAAkB,EAAE,kBAAkB,EACtC,cAAc,EACd,cAAc,EACd,YAAiB,EACjB,iBAA4C,EAC5C,QAAQ,EAAE,YAAY,EACtB,QAAQ,EAAE,YAAY,EACtB,UAAU,EAAE,cAAc,EAC1B,cAAc,EAAE,kBAA0B,EAC1C,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,UAAU,GACb,EAAE,iBAAiB,+BA2qDnB"}
|
package/dist/dynamic-table.js
CHANGED
|
@@ -32,6 +32,7 @@ import { useReasonPrompt } from './reason-prompt';
|
|
|
32
32
|
import { defaultGetDynamicColumns, DATE_CELL_TYPES, aggregateOf, formatAggregateTotal } from './dynamic-columns';
|
|
33
33
|
import { useFacetLoaders, isLongTextColumn } from './use-facet-loaders';
|
|
34
34
|
import { translateOptionLabels } from './filter-chips';
|
|
35
|
+
import { withBooleanUnsetOption } from './nullable-boolean';
|
|
35
36
|
import { applyColumnFilterFields } from './column-filter-field';
|
|
36
37
|
import { dedupeById, useInfiniteScrollSentinel } from './use-infinite-scroll';
|
|
37
38
|
import { DYNAMIC_TABLE_CARD_ESTIMATE_PX, DYNAMIC_TABLE_ROW_ESTIMATE_PX, resolveVirtualizeThreshold, } from './table-virtualization';
|
|
@@ -1161,6 +1162,8 @@ export function DynamicTable({ model, endpoint, mutationEndpoint, enableUrlSync
|
|
|
1161
1162
|
// package has no i18n) so header filters, chips and value summaries show
|
|
1162
1163
|
// localized text. A raw value with no key falls through via defaultValue.
|
|
1163
1164
|
const tr = (label) => t(label, { defaultValue: label });
|
|
1165
|
+
// «Sin definir» del filtro booleano (NULL), ver withBooleanUnsetOption.
|
|
1166
|
+
const unsetLabel = t('common.unset', { defaultValue: 'Sin definir' });
|
|
1164
1167
|
const stageOptions = (metadata.stages ?? []).map((s) => ({
|
|
1165
1168
|
label: s.label,
|
|
1166
1169
|
value: s.key,
|
|
@@ -1206,6 +1209,8 @@ export function DynamicTable({ model, endpoint, mutationEndpoint, enableUrlSync
|
|
|
1206
1209
|
}
|
|
1207
1210
|
if (fType === 'select' && options.length === 0 && !f.searchEndpoint)
|
|
1208
1211
|
continue;
|
|
1212
|
+
if (fType === 'boolean')
|
|
1213
|
+
options = withBooleanUnsetOption(options, unsetLabel);
|
|
1209
1214
|
map.set(f.key, {
|
|
1210
1215
|
filterType: fType,
|
|
1211
1216
|
filterKey: f.column || f.key,
|
|
@@ -1269,6 +1274,8 @@ export function DynamicTable({ model, endpoint, mutationEndpoint, enableUrlSync
|
|
|
1269
1274
|
: [];
|
|
1270
1275
|
if (isStageColumn)
|
|
1271
1276
|
options = stageOptions;
|
|
1277
|
+
if (filterType === 'boolean')
|
|
1278
|
+
options = withBooleanUnsetOption(options, unsetLabel);
|
|
1272
1279
|
// (B) Upgrade a plain text filter to a facet value-picker unless it's
|
|
1273
1280
|
// a long-text/body column (too many unique values to enumerate).
|
|
1274
1281
|
let loadOptions;
|
package/dist/field-grid.d.ts
CHANGED
|
@@ -9,7 +9,9 @@ export declare function FieldCell({ children, fullWidth, className, }: {
|
|
|
9
9
|
fullWidth?: boolean;
|
|
10
10
|
className?: string;
|
|
11
11
|
}): import("react").JSX.Element;
|
|
12
|
-
export declare function FieldLabel({ htmlFor, required, tone, children, }: {
|
|
12
|
+
export declare function FieldLabel({ id, htmlFor, required, tone, children, }: {
|
|
13
|
+
/** Lets a non-labelable control (a radiogroup) point `aria-labelledby` here. */
|
|
14
|
+
id?: string;
|
|
13
15
|
htmlFor?: string;
|
|
14
16
|
required?: boolean;
|
|
15
17
|
/**
|
package/dist/field-grid.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-grid.d.ts","sourceRoot":"","sources":["../src/field-grid.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,wBAAgB,SAAS,CAAC,EAAE,QAAQ,E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A;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,CAAA;IAC1B,QAAQ,EAAE,SAAS,CAAA;CACtB,+BAeA"}
|
package/dist/field-grid.js
CHANGED
|
@@ -7,8 +7,8 @@ export function FieldGrid({ children, className }) {
|
|
|
7
7
|
export function FieldCell({ children, fullWidth, className, }) {
|
|
8
8
|
return (_jsx("div", { className: cn('flex min-w-0 flex-col gap-1.5', fullWidth && 'sm:col-span-2', className), children: children }));
|
|
9
9
|
}
|
|
10
|
-
export function FieldLabel({ htmlFor, required, tone = 'sentence', children, }) {
|
|
11
|
-
return (_jsxs(Label, { htmlFor: htmlFor, className: tone === 'sentence'
|
|
10
|
+
export function FieldLabel({ id, htmlFor, required, tone = 'sentence', children, }) {
|
|
11
|
+
return (_jsxs(Label, { id: id, htmlFor: htmlFor, className: tone === 'sentence'
|
|
12
12
|
? 'text-sm font-medium text-foreground/80'
|
|
13
13
|
: 'text-xs font-medium uppercase tracking-wide text-muted-foreground', children: [children, required && _jsx("span", { className: "ml-0.5 text-destructive", children: "*" })] }));
|
|
14
14
|
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
type BoolFieldLike = {
|
|
2
|
+
type?: string;
|
|
3
|
+
required?: boolean;
|
|
4
|
+
nullable?: boolean;
|
|
5
|
+
};
|
|
6
|
+
/** El campo es booleano (tipo `boolean` o `checkbox`). */
|
|
7
|
+
export declare function isBooleanField(field: BoolFieldLike | undefined | null): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* El campo es un booleano que admite NULL: no es requerido y no trae
|
|
10
|
+
* `nullable: false`. Un booleano requerido devuelve false (dos estados).
|
|
11
|
+
*/
|
|
12
|
+
export declare function isNullableBooleanField(field: BoolFieldLike | undefined | null): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* ¿Se edita con el control de tres estados? Sólo un booleano que admite NULL y,
|
|
15
|
+
* además, (a) el servidor lo declara `nullable: true` (el kernel lo sirve en los
|
|
16
|
+
* campos del CRUD) o (b) el registro lo trae en NULL. Así un flag opcional de una
|
|
17
|
+
* acción («notificar al cliente») sigue siendo un switch, y un NULL real nunca se
|
|
18
|
+
* pinta como «No».
|
|
19
|
+
*/
|
|
20
|
+
export declare function usesTriState(field: BoolFieldLike | undefined | null, original: unknown): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Valor de filtro «Sin definir» de un booleano: el dialecto de filtros de ops
|
|
23
|
+
* del kernel (`query.ParseOpsFilterValue`) lee `f_<col>=NULL` como `IS NULL`
|
|
24
|
+
* (OpNull). No hay OR entre operadores, así que el filtro booleano es de una
|
|
25
|
+
* sola opción: Sí (`= true`), No (`= false`, excluye NULL) o Sin definir
|
|
26
|
+
* (`IS NULL`).
|
|
27
|
+
*/
|
|
28
|
+
export declare const BOOLEAN_UNSET_FILTER_VALUE = "NULL";
|
|
29
|
+
/**
|
|
30
|
+
* Agrega la opción «Sin definir» a las opciones de un filtro booleano (Sí/No
|
|
31
|
+
* que sirve el host). Sin opciones o si ya está, las devuelve igual.
|
|
32
|
+
*/
|
|
33
|
+
export declare function withBooleanUnsetOption<T extends {
|
|
34
|
+
label: string;
|
|
35
|
+
value: string;
|
|
36
|
+
}>(options: T[], label: string): T[];
|
|
37
|
+
/**
|
|
38
|
+
* Contrato de payload (ops #2252 / kernel v0.248.4): un booleano que no se tocó
|
|
39
|
+
* NO viaja. Quita del payload las llaves booleanas que siguen en NULL igual que
|
|
40
|
+
* en el registro original (el usuario no eligió nada). Un `null` elegido a
|
|
41
|
+
* propósito («Sin definir» sobre un Sí/No guardado) sí viaja como `null` JSON.
|
|
42
|
+
* Nunca convierte a `false`, a `""` ni al texto `"null"`.
|
|
43
|
+
*/
|
|
44
|
+
export declare function omitUntouchedNullBooleans<T extends Record<string, unknown>>(payload: T, fields: ReadonlyArray<BoolFieldLike & {
|
|
45
|
+
key: string;
|
|
46
|
+
}> | undefined, original: (key: string) => unknown): T;
|
|
47
|
+
export {};
|
|
48
|
+
//# sourceMappingURL=nullable-boolean.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nullable-boolean.d.ts","sourceRoot":"","sources":["../src/nullable-boolean.ts"],"names":[],"mappings":"AAaA,KAAK,aAAa,GAAG;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAID,0DAA0D;AAC1D,wBAAgB,cAAc,CAAC,KAAK,EAAE,aAAa,GAAG,SAAS,GAAG,IAAI,GAAG,OAAO,CAE/E;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,aAAa,GAAG,SAAS,GAAG,IAAI,GAAG,OAAO,CAKvF;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CACxB,KAAK,EAAE,aAAa,GAAG,SAAS,GAAG,IAAI,EACvC,QAAQ,EAAE,OAAO,GAClB,OAAO,CAGT;AAED;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,SAAS,CAAA;AAEhD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,SAAS;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAC7E,OAAO,EAAE,CAAC,EAAE,EACZ,KAAK,EAAE,MAAM,GACd,CAAC,EAAE,CAIL;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACvE,OAAO,EAAE,CAAC,EACV,MAAM,EAAE,aAAa,CAAC,aAAa,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC,GAAG,SAAS,EAClE,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,GACnC,CAAC,CAUH"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// Booleanos opcionales con tres estados: Sí / No / Sin definir.
|
|
2
|
+
//
|
|
3
|
+
// El kernel (>= v0.248.4) conserva NULL en los booleanos opcionales del CRUD
|
|
4
|
+
// dinámico y Get/List devuelven `null` cuando la columna es NULL. Ese NULL
|
|
5
|
+
// significa algo («modo desconocido» en `mp_payments.sandbox`), así que el SDK
|
|
6
|
+
// no puede pintarlo como «No» ni convertirlo en `false` al guardar: un pago de
|
|
7
|
+
// prueba pasaría a parecer real.
|
|
8
|
+
//
|
|
9
|
+
// Regla: un booleano NO requerido (sin `required` y sin
|
|
10
|
+
// `nullable: false` explícito) acepta NULL — es el contrato del kernel, que
|
|
11
|
+
// sirve `nullable = !required`. Esos campos se editan con este control de tres
|
|
12
|
+
// estados; los requeridos siguen con su switch/checkbox de dos estados.
|
|
13
|
+
const BOOL_TYPES = new Set(['boolean', 'checkbox']);
|
|
14
|
+
/** El campo es booleano (tipo `boolean` o `checkbox`). */
|
|
15
|
+
export function isBooleanField(field) {
|
|
16
|
+
return !!field && BOOL_TYPES.has(String(field.type ?? '').toLowerCase());
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* El campo es un booleano que admite NULL: no es requerido y no trae
|
|
20
|
+
* `nullable: false`. Un booleano requerido devuelve false (dos estados).
|
|
21
|
+
*/
|
|
22
|
+
export function isNullableBooleanField(field) {
|
|
23
|
+
if (!isBooleanField(field))
|
|
24
|
+
return false;
|
|
25
|
+
if (field.required)
|
|
26
|
+
return false;
|
|
27
|
+
if (field.nullable === false)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* ¿Se edita con el control de tres estados? Sólo un booleano que admite NULL y,
|
|
33
|
+
* además, (a) el servidor lo declara `nullable: true` (el kernel lo sirve en los
|
|
34
|
+
* campos del CRUD) o (b) el registro lo trae en NULL. Así un flag opcional de una
|
|
35
|
+
* acción («notificar al cliente») sigue siendo un switch, y un NULL real nunca se
|
|
36
|
+
* pinta como «No».
|
|
37
|
+
*/
|
|
38
|
+
export function usesTriState(field, original) {
|
|
39
|
+
if (!isNullableBooleanField(field))
|
|
40
|
+
return false;
|
|
41
|
+
return field.nullable === true || original === null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Valor de filtro «Sin definir» de un booleano: el dialecto de filtros de ops
|
|
45
|
+
* del kernel (`query.ParseOpsFilterValue`) lee `f_<col>=NULL` como `IS NULL`
|
|
46
|
+
* (OpNull). No hay OR entre operadores, así que el filtro booleano es de una
|
|
47
|
+
* sola opción: Sí (`= true`), No (`= false`, excluye NULL) o Sin definir
|
|
48
|
+
* (`IS NULL`).
|
|
49
|
+
*/
|
|
50
|
+
export const BOOLEAN_UNSET_FILTER_VALUE = 'NULL';
|
|
51
|
+
/**
|
|
52
|
+
* Agrega la opción «Sin definir» a las opciones de un filtro booleano (Sí/No
|
|
53
|
+
* que sirve el host). Sin opciones o si ya está, las devuelve igual.
|
|
54
|
+
*/
|
|
55
|
+
export function withBooleanUnsetOption(options, label) {
|
|
56
|
+
if (options.length === 0)
|
|
57
|
+
return options;
|
|
58
|
+
if (options.some((o) => String(o.value).toUpperCase() === BOOLEAN_UNSET_FILTER_VALUE))
|
|
59
|
+
return options;
|
|
60
|
+
return [...options, { label, value: BOOLEAN_UNSET_FILTER_VALUE }];
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Contrato de payload (ops #2252 / kernel v0.248.4): un booleano que no se tocó
|
|
64
|
+
* NO viaja. Quita del payload las llaves booleanas que siguen en NULL igual que
|
|
65
|
+
* en el registro original (el usuario no eligió nada). Un `null` elegido a
|
|
66
|
+
* propósito («Sin definir» sobre un Sí/No guardado) sí viaja como `null` JSON.
|
|
67
|
+
* Nunca convierte a `false`, a `""` ni al texto `"null"`.
|
|
68
|
+
*/
|
|
69
|
+
export function omitUntouchedNullBooleans(payload, fields, original) {
|
|
70
|
+
let out;
|
|
71
|
+
for (const f of fields ?? []) {
|
|
72
|
+
if (!isBooleanField(f) || !(f.key in payload))
|
|
73
|
+
continue;
|
|
74
|
+
if (payload[f.key] === null && original(f.key) === null) {
|
|
75
|
+
out ??= { ...payload };
|
|
76
|
+
delete out[f.key];
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return out ?? payload;
|
|
80
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type TriState = 'true' | 'false' | 'null';
|
|
2
|
+
/** Valor de formulario → estado del control. `''`/null/undefined son «Sin definir». */
|
|
3
|
+
export declare function toTriState(value: unknown): TriState;
|
|
4
|
+
/** Estado del control → valor que viaja al servidor. */
|
|
5
|
+
export declare function fromTriState(state: TriState): boolean | null;
|
|
6
|
+
export interface TriStateBooleanFieldProps {
|
|
7
|
+
id?: string;
|
|
8
|
+
value: unknown;
|
|
9
|
+
onChange: (value: boolean | null) => void;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** Nombre accesible del grupo (la etiqueta del campo; se traduce como las demás). */
|
|
12
|
+
label?: string;
|
|
13
|
+
/** id del <label> visible: el radiogroup no es «labelable», se asocia por aria-labelledby. */
|
|
14
|
+
labelledBy?: string;
|
|
15
|
+
size?: 'sm' | 'default';
|
|
16
|
+
invalid?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Control de tres estados para un booleano opcional. Es un `radiogroup`
|
|
20
|
+
* (SegmentedControl de metacore-ui): flechas para moverse, el estado elegido
|
|
21
|
+
* se marca con relleno y `aria-checked`. «Sin definir» envía `null`.
|
|
22
|
+
*/
|
|
23
|
+
export declare function TriStateBooleanField({ id, value, onChange, disabled, label, labelledBy, size, invalid, }: TriStateBooleanFieldProps): import("react").JSX.Element;
|
|
24
|
+
//# sourceMappingURL=tri-state-boolean-impl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tri-state-boolean-impl.d.ts","sourceRoot":"","sources":["../src/tri-state-boolean-impl.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAA;AAEhD,uFAAuF;AACvF,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAInD;AAED,wDAAwD;AACxD,wBAAgB,YAAY,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO,GAAG,IAAI,CAI5D;AAED,MAAM,WAAW,yBAAyB;IACtC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,OAAO,CAAA;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,qFAAqF;IACrF,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,8FAA8F;IAC9F,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAA;IACvB,OAAO,CAAC,EAAE,OAAO,CAAA;CACpB;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EACjC,EAAE,EACF,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,UAAU,EACV,IAAW,EACX,OAAO,GACV,EAAE,yBAAyB,+BAsB3B"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// Control de tres estados para booleanos opcionales (ver nullable-boolean.ts).
|
|
3
|
+
// Se carga diferido desde tri-state-boolean.tsx para no pesar en el shell.
|
|
4
|
+
import { useTranslation } from 'react-i18next';
|
|
5
|
+
import { SegmentedControl } from '@asteby/metacore-ui/primitives';
|
|
6
|
+
/** Valor de formulario → estado del control. `''`/null/undefined son «Sin definir». */
|
|
7
|
+
export function toTriState(value) {
|
|
8
|
+
if (value === true || value === 'true')
|
|
9
|
+
return 'true';
|
|
10
|
+
if (value === false || value === 'false')
|
|
11
|
+
return 'false';
|
|
12
|
+
return 'null';
|
|
13
|
+
}
|
|
14
|
+
/** Estado del control → valor que viaja al servidor. */
|
|
15
|
+
export function fromTriState(state) {
|
|
16
|
+
if (state === 'true')
|
|
17
|
+
return true;
|
|
18
|
+
if (state === 'false')
|
|
19
|
+
return false;
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Control de tres estados para un booleano opcional. Es un `radiogroup`
|
|
24
|
+
* (SegmentedControl de metacore-ui): flechas para moverse, el estado elegido
|
|
25
|
+
* se marca con relleno y `aria-checked`. «Sin definir» envía `null`.
|
|
26
|
+
*/
|
|
27
|
+
export function TriStateBooleanField({ id, value, onChange, disabled, label, labelledBy, size = 'sm', invalid, }) {
|
|
28
|
+
const { t } = useTranslation();
|
|
29
|
+
const items = [
|
|
30
|
+
{ value: 'true', label: t('common.yes', { defaultValue: 'Sí' }), disabled },
|
|
31
|
+
{ value: 'false', label: t('common.no', { defaultValue: 'No' }), disabled },
|
|
32
|
+
{ value: 'null', label: t('common.unset', { defaultValue: 'Sin definir' }), disabled },
|
|
33
|
+
];
|
|
34
|
+
return (_jsx(SegmentedControl, { id: id, items: items, value: toTriState(value), onValueChange: (s) => onChange(fromTriState(s)), "aria-label": label ? t(label, { defaultValue: label }) : t('common.unset', { defaultValue: 'Sin definir' }), "aria-labelledby": labelledBy, "aria-invalid": invalid || undefined, "aria-disabled": disabled || undefined, "data-tri-state": "", size: size, className: "w-fit" }));
|
|
35
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { TriStateBooleanFieldProps } from './tri-state-boolean-impl';
|
|
2
|
+
export type { TriStateBooleanFieldProps } from './tri-state-boolean-impl';
|
|
3
|
+
/**
|
|
4
|
+
* Control Sí / No / Sin definir para un booleano opcional. «Sin definir»
|
|
5
|
+
* envía `null`. Accesible (radiogroup con flechas) y con i18n es/en.
|
|
6
|
+
*/
|
|
7
|
+
export declare function TriStateBooleanField(props: TriStateBooleanFieldProps): import("react").JSX.Element;
|
|
8
|
+
/**
|
|
9
|
+
* Celda/vista de solo lectura para un booleano NULL: «—» (misma convención que
|
|
10
|
+
* `formatDisplayValue`), con «Sin definir» como nombre accesible y tooltip.
|
|
11
|
+
*/
|
|
12
|
+
export declare function NullBooleanMark({ className }: {
|
|
13
|
+
className?: string;
|
|
14
|
+
}): import("react").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=tri-state-boolean.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tri-state-boolean.d.ts","sourceRoot":"","sources":["../src/tri-state-boolean.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAA;AAEzE,YAAY,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAA;AAMzE;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,+BAMpE;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,+BAQpE"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// Booleanos opcionales: control de tres estados (diferido) y marca de NULL.
|
|
3
|
+
// El control vive en tri-state-boolean-impl.tsx y se carga con React.lazy: sólo
|
|
4
|
+
// lo baja quien abre un formulario con un booleano opcional, así no suma al
|
|
5
|
+
// shell inicial de la app.
|
|
6
|
+
import { Suspense, lazy } from 'react';
|
|
7
|
+
import { useTranslation } from 'react-i18next';
|
|
8
|
+
const Impl = lazy(() => import('./tri-state-boolean-impl').then((m) => ({ default: m.TriStateBooleanField })));
|
|
9
|
+
/**
|
|
10
|
+
* Control Sí / No / Sin definir para un booleano opcional. «Sin definir»
|
|
11
|
+
* envía `null`. Accesible (radiogroup con flechas) y con i18n es/en.
|
|
12
|
+
*/
|
|
13
|
+
export function TriStateBooleanField(props) {
|
|
14
|
+
return (_jsx(Suspense, { fallback: _jsx("span", { className: "inline-block h-8", "aria-busy": "true" }), children: _jsx(Impl, { ...props }) }));
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Celda/vista de solo lectura para un booleano NULL: «—» (misma convención que
|
|
18
|
+
* `formatDisplayValue`), con «Sin definir» como nombre accesible y tooltip.
|
|
19
|
+
*/
|
|
20
|
+
export function NullBooleanMark({ className }) {
|
|
21
|
+
const { t } = useTranslation();
|
|
22
|
+
const label = t('common.unset', { defaultValue: 'Sin definir' });
|
|
23
|
+
return (_jsx("span", { className: className ?? 'text-muted-foreground', title: label, "aria-label": label, "data-bool-null": "", children: "\u2014" }));
|
|
24
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-dynamic-filters.d.ts","sourceRoot":"","sources":["../src/use-dynamic-filters.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-dynamic-filters.d.ts","sourceRoot":"","sources":["../src/use-dynamic-filters.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,kBAAkB,EAAgB,MAAM,wBAAwB,CAAA;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACpC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,MAAM,WAAW,uBAAuB;IACtC,4EAA4E;IAC5E,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAA;IACxC,sDAAsD;IACtD,YAAY,EAAE,MAAM,CAAA;IACpB,eAAe,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,iFAAiF;IACjF,mBAAmB,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAA;IACpD;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACjC,uDAAuD;IACvD,yBAAyB,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IACxE,kEAAkE;IAClE,iBAAiB,EAAE,MAAM,CAAA;IACzB,oDAAoD;IACpD,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,aAAa,GAAG,IAAI,EAC9B,IAAI,GAAE,wBAA6B,GAClC,uBAAuB,CAgUzB"}
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
// filtering (RFC: a board is just another view of the model), so the logic is
|
|
12
12
|
// factored here to guarantee both surfaces filter identically.
|
|
13
13
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
14
|
+
import { useTranslation } from 'react-i18next';
|
|
14
15
|
import { useApi } from './api-context';
|
|
16
|
+
import { withBooleanUnsetOption } from './nullable-boolean';
|
|
15
17
|
import { DATE_CELL_TYPES } from './dynamic-columns';
|
|
16
18
|
import { getSearchableColumnKeys } from './column-visibility';
|
|
17
19
|
import { useDebouncedValue } from './use-debounced-value';
|
|
@@ -25,6 +27,9 @@ import { useFacetLoaders, isLongTextColumn } from './use-facet-loaders';
|
|
|
25
27
|
export function useDynamicFilters(metadata, opts = {}) {
|
|
26
28
|
const { defaultFilters, model, endpoint, facetsEndpoint } = opts;
|
|
27
29
|
const api = useApi();
|
|
30
|
+
const { t } = useTranslation();
|
|
31
|
+
// «Sin definir» del filtro booleano (NULL), ver withBooleanUnsetOption.
|
|
32
|
+
const unsetLabel = t('common.unset', { defaultValue: 'Sin definir' });
|
|
28
33
|
const [dynamicFilters, setDynamicFilters] = useState({});
|
|
29
34
|
const [globalFilter, setGlobalFilter] = useState('');
|
|
30
35
|
const debouncedGlobalFilter = useDebouncedValue(globalFilter);
|
|
@@ -161,6 +166,8 @@ export function useDynamicFilters(metadata, opts = {}) {
|
|
|
161
166
|
}
|
|
162
167
|
if (fType === 'select' && options.length === 0 && !f.searchEndpoint)
|
|
163
168
|
continue;
|
|
169
|
+
if (fType === 'boolean')
|
|
170
|
+
options = withBooleanUnsetOption(options, unsetLabel);
|
|
164
171
|
map.set(f.key, {
|
|
165
172
|
filterType: fType,
|
|
166
173
|
filterKey: f.column || f.key,
|
|
@@ -214,6 +221,8 @@ export function useDynamicFilters(metadata, opts = {}) {
|
|
|
214
221
|
: [];
|
|
215
222
|
if (isStageColumn)
|
|
216
223
|
options = stageOptions;
|
|
224
|
+
if (filterType === 'boolean')
|
|
225
|
+
options = withBooleanUnsetOption(options, unsetLabel);
|
|
217
226
|
// (B) Upgrade a plain text filter to a facet value-picker (unless it's a
|
|
218
227
|
// long-text/body column — too many unique values to enumerate).
|
|
219
228
|
let loadOptions;
|
|
@@ -246,6 +255,7 @@ export function useDynamicFilters(metadata, opts = {}) {
|
|
|
246
255
|
facetsBase,
|
|
247
256
|
getFacetLoader,
|
|
248
257
|
facetOptions,
|
|
258
|
+
unsetLabel,
|
|
249
259
|
]);
|
|
250
260
|
// Prewarm every facet field in one burst once the configs settle, so the
|
|
251
261
|
// Sheet popover and the lane value-picker open instantly (values + counts)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asteby/metacore-runtime-react",
|
|
3
|
-
"version": "53.
|
|
3
|
+
"version": "53.14.0",
|
|
4
4
|
"description": "React runtime for metacore hosts — renders addon contributions dynamically",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@asteby/metacore-sdk": "^3.18.1",
|
|
46
|
-
"@asteby/metacore-ui": "^2.32.
|
|
46
|
+
"@asteby/metacore-ui": "^2.32.1",
|
|
47
47
|
"@tanstack/react-query": ">=5",
|
|
48
48
|
"@tanstack/react-router": ">=1.100",
|
|
49
49
|
"@tanstack/react-table": ">=8",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@asteby/metacore-sdk": "3.18.1",
|
|
78
|
-
"@asteby/metacore-ui": "2.32.
|
|
78
|
+
"@asteby/metacore-ui": "2.32.1",
|
|
79
79
|
"@tanstack/react-query": "^5.95.0",
|
|
80
80
|
"@tanstack/react-router": "^1.168.0",
|
|
81
81
|
"@tanstack/react-table": "^8.20.0",
|