@asteby/metacore-runtime-react 18.1.0 → 18.2.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 +32 -0
- package/dist/dialogs/dynamic-record.d.ts +86 -2
- package/dist/dialogs/dynamic-record.d.ts.map +1 -1
- package/dist/dialogs/dynamic-record.js +306 -88
- package/dist/dynamic-select-field.d.ts +21 -0
- package/dist/dynamic-select-field.d.ts.map +1 -1
- package/dist/dynamic-select-field.js +2 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/dialogs/dynamic-record.tsx +476 -114
- package/src/dynamic-select-field.tsx +2 -2
- package/src/index.ts +2 -1
|
@@ -48,7 +48,7 @@ import type { ActionFieldDef } from './types'
|
|
|
48
48
|
* not a gallery). Inline style for the box dimensions: arbitrary Tailwind
|
|
49
49
|
* classes from a federated addon don't always survive the host's class scan.
|
|
50
50
|
*/
|
|
51
|
-
function OptionThumb({ image, size = 20 }: { image?: string | null; size?: number }) {
|
|
51
|
+
export function OptionThumb({ image, size = 20 }: { image?: string | null; size?: number }) {
|
|
52
52
|
const box = { width: size, height: size }
|
|
53
53
|
if (!image) {
|
|
54
54
|
return (
|
|
@@ -83,7 +83,7 @@ function OptionThumb({ image, size = 20 }: { image?: string | null; size?: numbe
|
|
|
83
83
|
* else a declared icon, else a color dot (enum/status options with a color).
|
|
84
84
|
* Returns null when the option carries none, so plain text options stay plain.
|
|
85
85
|
*/
|
|
86
|
-
function OptionLead({
|
|
86
|
+
export function OptionLead({
|
|
87
87
|
option,
|
|
88
88
|
size = 20,
|
|
89
89
|
}: {
|
package/src/index.ts
CHANGED
|
@@ -68,7 +68,8 @@ export {
|
|
|
68
68
|
} from './dynamic-columns'
|
|
69
69
|
export { humanizeToken } from './dynamic-columns-helpers'
|
|
70
70
|
export { NIL_UUID, isNilUuid, normalizeNilUuid } from './nil-uuid'
|
|
71
|
-
export { DynamicRecordDialog } from './dialogs/dynamic-record'
|
|
71
|
+
export { DynamicRecordDialog, ViewValue } from './dialogs/dynamic-record'
|
|
72
|
+
export type { DynamicRecordDialogProps, FieldDef, FieldOption, GetImageUrl } from './dialogs/dynamic-record'
|
|
72
73
|
export { CreateRecordDialog } from './dialogs/create-record-dialog'
|
|
73
74
|
export { ViewRecordDialog } from './dialogs/view-record-dialog'
|
|
74
75
|
export type {
|