muffin-admin 2.1.0 → 2.2.1
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/buildRA.d.ts +2 -0
- package/dist/buildRA.js +1 -1
- package/dist/inputs/FKInput.js +6 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/buildRA.tsx +1 -1
- package/src/inputs/FKInput.tsx +7 -0
package/dist/buildRA.d.ts
CHANGED
package/dist/buildRA.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { ArrayField, ArrayInput, AutocompleteArrayInput, AutocompleteInput, BooleanField, BooleanInput, CheckboxGroupInput, ChipField, DateField, DateInput, DateTimeInput, EmailField, FileField, FileInput, ImageField, ImageInput, NullableBooleanInput, NumberField, NumberInput, PasswordInput, RadioButtonGroupInput, ReferenceArrayField, ReferenceArrayInput, ReferenceField, ReferenceInput, ReferenceManyField, RichTextField, SelectField, SelectInput, TextField, TextInput, UrlField, required, } from "react-admin";
|
|
3
3
|
import { AvatarField, EditableBooleanField, FKField, JsonField } from "./fields";
|
|
4
4
|
import { FKInput, JsonInput } from "./inputs";
|
|
5
|
-
const UI = {
|
|
5
|
+
export const UI = {
|
|
6
6
|
// Fields
|
|
7
7
|
BooleanField,
|
|
8
8
|
ChipField,
|
package/dist/inputs/FKInput.js
CHANGED
|
@@ -12,6 +12,12 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { AutocompleteInput, ReferenceInput } from "react-admin";
|
|
14
14
|
export function FKInput(_a) {
|
|
15
|
+
// Bind to AutoCompleteInput if we want to customize the search
|
|
16
|
+
// const filterToQuery = (search) => {
|
|
17
|
+
// const filters = {}
|
|
18
|
+
// filters[refKey] = search
|
|
19
|
+
// return filters
|
|
20
|
+
// }
|
|
15
21
|
var { refKey, refSource, fullWidth, reference, source } = _a, props = __rest(_a, ["refKey", "refSource", "fullWidth", "reference", "source"]);
|
|
16
22
|
refKey = refKey || "id";
|
|
17
23
|
const renderText = (record) => {
|