@dxos/react-ui-table 0.8.2 → 0.8.3-main.672df60
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/lib/browser/index.mjs +2 -2
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node/index.cjs +1 -1
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +2 -2
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/package.json +33 -33
- package/src/components/Table/Table.stories.tsx +1 -1
- package/src/components/Table/relations.stories.tsx +1 -1
- package/src/model/table-presentation.ts +2 -2
|
@@ -1305,7 +1305,7 @@ var ModalController = class {
|
|
|
1305
1305
|
// packages/ui/react-ui-table/src/model/table-presentation.ts
|
|
1306
1306
|
import { signal as signal5 } from "@preact/signals-core";
|
|
1307
1307
|
import { isNotNullable } from "effect/Predicate";
|
|
1308
|
-
import { FormatEnum as FormatEnum4,
|
|
1308
|
+
import { FormatEnum as FormatEnum4, getObjectDXN, getValue as getValue3, TypeEnum as TypeEnum3 } from "@dxos/echo-schema";
|
|
1309
1309
|
import { cellClassesForFieldType, formatForDisplay as formatForDisplay2 } from "@dxos/react-ui-form";
|
|
1310
1310
|
import { toPlaneCellIndex } from "@dxos/react-ui-grid";
|
|
1311
1311
|
import { mx } from "@dxos/react-ui-theme";
|
|
@@ -1437,7 +1437,7 @@ var TablePresentation = class {
|
|
|
1437
1437
|
if (props.format === FormatEnum4.Ref && props.referenceSchema) {
|
|
1438
1438
|
const targetObj = getValue3(obj, field.path)?.target;
|
|
1439
1439
|
if (targetObj) {
|
|
1440
|
-
const dxn =
|
|
1440
|
+
const dxn = getObjectDXN(targetObj)?.toString();
|
|
1441
1441
|
cell.accessoryHtml = `<dx-ref-tag refId=${dxn} class="dx-button block is-6 pli-[3px] plb-[3px] pbe-[2px] min-bs-0 absolute inline-end-1"><dx-icon icon="ph--link-simple--regular"/></dx-ref-tag>`;
|
|
1442
1442
|
}
|
|
1443
1443
|
}
|