@praxisui/table 10.0.0-rc.45 → 10.0.0-rc.47
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/ai/component-registry.json +2 -2
- package/fesm2022/praxisui-table-authoring.mjs +24 -9
- package/fesm2022/{praxisui-table-filter-form-dialog-host.component-CnU4K4Q1.mjs → praxisui-table-filter-form-dialog-host.component-CChuuckh.mjs} +1 -1
- package/fesm2022/{praxisui-table-praxisui-table-ClwibKq-.mjs → praxisui-table-praxisui-table-B937aJK3.mjs} +459 -89
- package/fesm2022/{praxisui-table-table-agentic-authoring-turn-flow-CcTWUYj5.mjs → praxisui-table-table-agentic-authoring-turn-flow-D4lQiroz.mjs} +1 -1
- package/fesm2022/{praxisui-table-table-ai.adapter-BwDi2QEA.mjs → praxisui-table-table-ai.adapter-6qERqRrl.mjs} +1 -1
- package/fesm2022/praxisui-table.mjs +1 -1
- package/package.json +10 -10
- package/types/praxisui-table.d.ts +11 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-11-
|
|
3
|
+
"generatedAt": "2026-11-15T21:11:07.512Z",
|
|
4
4
|
"packageName": "@praxisui/table",
|
|
5
|
-
"packageVersion": "10.0.0-rc.
|
|
5
|
+
"packageVersion": "10.0.0-rc.47",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
8
|
"componentCount": 3,
|
|
@@ -3,7 +3,7 @@ import { resolveColumnTypeFromFieldDefinition, deepMerge, isPraxisPresentationVi
|
|
|
3
3
|
import { uiLayoutJsonIdentity, cloneBoundedUiLayoutJsonDocument, derivePageChildRuntimeId } from '@praxisui/core';
|
|
4
4
|
|
|
5
5
|
const ORIGIN = '__praxisAuthoredDisabled';
|
|
6
|
-
const hasOwn = (value, key) => Object.prototype.hasOwnProperty.call(value, key);
|
|
6
|
+
const hasOwn$1 = (value, key) => Object.prototype.hasOwnProperty.call(value, key);
|
|
7
7
|
const isAction = (value) => !!value && typeof value === 'object' && !Array.isArray(value);
|
|
8
8
|
const hasRuntimeState = (action) => Object.keys(action).some(key => key.startsWith('__praxis'));
|
|
9
9
|
function authoredDisabled(action) {
|
|
@@ -72,7 +72,7 @@ function projectTableActionAuthoring(config, authored, report) {
|
|
|
72
72
|
if (name.startsWith('__praxis'))
|
|
73
73
|
delete result[name];
|
|
74
74
|
}
|
|
75
|
-
if (hasOwn(item, 'children'))
|
|
75
|
+
if (hasOwn$1(item, 'children'))
|
|
76
76
|
result['children'] = actions(item['children'], source?.['children'], `${path}[${index}].children`);
|
|
77
77
|
projected.push(result);
|
|
78
78
|
});
|
|
@@ -82,7 +82,7 @@ function projectTableActionAuthoring(config, authored, report) {
|
|
|
82
82
|
if (config?.toolbar)
|
|
83
83
|
result.toolbar = {
|
|
84
84
|
...config.toolbar,
|
|
85
|
-
...(hasOwn(config.toolbar, 'actions') ? { actions: actions(config.toolbar.actions, authored?.toolbar?.actions, 'config.toolbar.actions') } : {}),
|
|
85
|
+
...(hasOwn$1(config.toolbar, 'actions') ? { actions: actions(config.toolbar.actions, authored?.toolbar?.actions, 'config.toolbar.actions') } : {}),
|
|
86
86
|
};
|
|
87
87
|
if (config?.actions) {
|
|
88
88
|
result.actions = { ...config.actions };
|
|
@@ -91,7 +91,7 @@ function projectTableActionAuthoring(config, authored, report) {
|
|
|
91
91
|
if (group)
|
|
92
92
|
result.actions[slot] = {
|
|
93
93
|
...group,
|
|
94
|
-
...(hasOwn(group, 'actions') ? { actions: actions(group.actions, authored?.actions?.[slot]?.actions, `config.actions.${slot}.actions`) } : {}),
|
|
94
|
+
...(hasOwn$1(group, 'actions') ? { actions: actions(group.actions, authored?.actions?.[slot]?.actions, `config.actions.${slot}.actions`) } : {}),
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
97
|
}
|
|
@@ -1452,6 +1452,20 @@ class TableSchemaColumnProjector {
|
|
|
1452
1452
|
}
|
|
1453
1453
|
return;
|
|
1454
1454
|
}
|
|
1455
|
+
if (numericFormat === 'percent' ||
|
|
1456
|
+
numericFormat === 'percentage' ||
|
|
1457
|
+
numericFormat === 'fraction' ||
|
|
1458
|
+
valuePresentationType === 'percent' ||
|
|
1459
|
+
valuePresentationType === 'percentage' ||
|
|
1460
|
+
col.type === 'percentage') {
|
|
1461
|
+
col.type = 'percentage';
|
|
1462
|
+
if (!col.format) {
|
|
1463
|
+
col.format =
|
|
1464
|
+
displayFormat ||
|
|
1465
|
+
(numericFormat === 'fraction' ? '1.0-2|x100' : '1.0-2|raw');
|
|
1466
|
+
}
|
|
1467
|
+
return;
|
|
1468
|
+
}
|
|
1455
1469
|
if (col.type === 'boolean' && !col.format) {
|
|
1456
1470
|
col.format = this.resolveSchemaBooleanFormat(field);
|
|
1457
1471
|
}
|
|
@@ -1838,6 +1852,7 @@ function orderTableColumns(columns) {
|
|
|
1838
1852
|
|| left.originalIndex - right.originalIndex).map(entry => entry.column);
|
|
1839
1853
|
}
|
|
1840
1854
|
|
|
1855
|
+
const hasOwn = (value, key) => Object.prototype.hasOwnProperty.call(value, key);
|
|
1841
1856
|
/** Preserve authored values; runtime/schema defaults remain transient unless explicitly edited. */
|
|
1842
1857
|
function applyTableAuthoringChanges(authored, baseline, edited) {
|
|
1843
1858
|
return projectChanges(authored, baseline, edited, true);
|
|
@@ -1854,11 +1869,11 @@ function projectChanges(authored, baseline, edited, tableConfigRoot) {
|
|
|
1854
1869
|
for (const key of new Set([...Object.keys(before), ...Object.keys(after)])) {
|
|
1855
1870
|
if (sameAuthoringValue(before[key], after[key]))
|
|
1856
1871
|
continue;
|
|
1857
|
-
if (!
|
|
1872
|
+
if (!hasOwn(after, key))
|
|
1858
1873
|
delete result[key];
|
|
1859
1874
|
else
|
|
1860
1875
|
Object.defineProperty(result, key, {
|
|
1861
|
-
value: projectChanges(
|
|
1876
|
+
value: projectChanges(hasOwn(original, key) ? original[key] : undefined, hasOwn(before, key) ? before[key] : undefined, after[key], false),
|
|
1862
1877
|
enumerable: true, configurable: true, writable: true,
|
|
1863
1878
|
});
|
|
1864
1879
|
}
|
|
@@ -1888,7 +1903,7 @@ function projectSchemaColumnChanges(authored, baseline, edited, baselineProjecti
|
|
|
1888
1903
|
continue;
|
|
1889
1904
|
}
|
|
1890
1905
|
const previousOverride = isRecord(overrides[field]) ? overrides[field] : {};
|
|
1891
|
-
if (
|
|
1906
|
+
if (hasOwn(previousOverride, 'field')) {
|
|
1892
1907
|
throw new Error('Table schema overrides cannot replace canonical field identity.');
|
|
1893
1908
|
}
|
|
1894
1909
|
const projected = projectChanges({ field, ...previousOverride }, before.get(field), column, false);
|
|
@@ -1904,7 +1919,7 @@ function projectSchemaColumnChanges(authored, baseline, edited, baselineProjecti
|
|
|
1904
1919
|
for (const key of new Set([...Object.keys(oldIntent), ...Object.keys(newIntent)])) {
|
|
1905
1920
|
if (!changedNativeValue(oldIntent, newIntent, key))
|
|
1906
1921
|
continue;
|
|
1907
|
-
if (
|
|
1922
|
+
if (hasOwn(previousOverride, key))
|
|
1908
1923
|
override[key] = structuredClone(previousOverride[key]);
|
|
1909
1924
|
else
|
|
1910
1925
|
delete override[key];
|
|
@@ -1944,7 +1959,7 @@ function changedNativeValue(before, after, key) {
|
|
|
1944
1959
|
if (!isRecord(after))
|
|
1945
1960
|
return false;
|
|
1946
1961
|
const previous = isRecord(before) ? before : {};
|
|
1947
|
-
return
|
|
1962
|
+
return hasOwn(previous, key) !== hasOwn(after, key)
|
|
1948
1963
|
|| !sameAuthoringValue(previous[key], after[key]);
|
|
1949
1964
|
}
|
|
1950
1965
|
function orderedFields(columns, additions) {
|
|
@@ -12,7 +12,7 @@ import * as i14 from '@angular/material/tooltip';
|
|
|
12
12
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
13
13
|
import { PraxisFilterForm } from '@praxisui/dynamic-form';
|
|
14
14
|
import { PraxisIconButtonComponent } from '@praxisui/core';
|
|
15
|
-
import { aq as projectFilterPayload } from './praxisui-table-praxisui-table-
|
|
15
|
+
import { aq as projectFilterPayload } from './praxisui-table-praxisui-table-B937aJK3.mjs';
|
|
16
16
|
|
|
17
17
|
class FilterFormDialogHostComponent {
|
|
18
18
|
data;
|