@nixxie-cms/core 2.1.0 → 2.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/admin-ui/components/dist/nixxie-cms-core-admin-ui-components.cjs.js +7 -7
- package/admin-ui/components/dist/nixxie-cms-core-admin-ui-components.esm.js +7 -7
- package/admin-ui/context/dist/nixxie-cms-core-admin-ui-context.cjs.js +2 -2
- package/admin-ui/context/dist/nixxie-cms-core-admin-ui-context.esm.js +2 -2
- package/admin-ui/utils/dist/nixxie-cms-core-admin-ui-utils.cjs.js +5 -5
- package/admin-ui/utils/dist/nixxie-cms-core-admin-ui-utils.esm.js +3 -3
- package/dist/{CreateItemDialog-7008b050.esm.js → CreateItemDialog-66621fe8.esm.js} +3 -3
- package/dist/{CreateItemDialog-a0cab315.cjs.js → CreateItemDialog-96b044ce.cjs.js} +4 -4
- package/dist/{Field-47f85161.esm.js → Field-1820c4e6.esm.js} +1 -0
- package/dist/{Field-ed8d7627.cjs.js → Field-38d3cdf9.cjs.js} +1 -0
- package/dist/GraphQLErrorNotice-7594a9f8.esm.js +64 -0
- package/dist/GraphQLErrorNotice-c8890f80.cjs.js +66 -0
- package/dist/{PageContainer-5ae731cc.esm.js → PageContainer-355cfbfa.esm.js} +362 -156
- package/dist/{PageContainer-abd7159f.cjs.js → PageContainer-4095555a.cjs.js} +361 -155
- package/dist/{context-af9957ed.esm.js → context-2924eaaa.esm.js} +53 -58
- package/dist/{context-b5204629.cjs.js → context-2ce61d0b.cjs.js} +53 -58
- package/dist/declarations/src/admin-ui/components/GraphQLErrorNotice.d.ts.map +1 -1
- package/dist/declarations/src/admin-ui/components/Navigation.d.ts.map +1 -1
- package/dist/declarations/src/admin-ui/components/PageContainer.d.ts.map +1 -1
- package/dist/declarations/src/admin-ui/context.d.ts.map +1 -1
- package/dist/declarations/src/admin-ui/utils/useCreateItem.d.ts.map +1 -1
- package/dist/declarations/src/fields/types/bigInt/views/index.d.ts +2 -1
- package/dist/declarations/src/fields/types/bigInt/views/index.d.ts.map +1 -1
- package/dist/declarations/src/fields/types/bytes/views/index.d.ts +2 -1
- package/dist/declarations/src/fields/types/bytes/views/index.d.ts.map +1 -1
- package/dist/declarations/src/fields/types/calendarDay/views/index.d.ts.map +1 -1
- package/dist/declarations/src/fields/types/decimal/views/index.d.ts +2 -1
- package/dist/declarations/src/fields/types/decimal/views/index.d.ts.map +1 -1
- package/dist/declarations/src/fields/types/float/views/index.d.ts +2 -1
- package/dist/declarations/src/fields/types/float/views/index.d.ts.map +1 -1
- package/dist/declarations/src/fields/types/integer/views/index.d.ts +2 -1
- package/dist/declarations/src/fields/types/integer/views/index.d.ts.map +1 -1
- package/dist/declarations/src/fields/types/json/views/index.d.ts.map +1 -1
- package/dist/declarations/src/fields/types/multiselect/views/index.d.ts.map +1 -1
- package/dist/declarations/src/fields/types/relationship/views/index.d.ts.map +1 -1
- package/dist/declarations/src/fields/types/select/views/index.d.ts.map +1 -1
- package/dist/declarations/src/fields/types/text/views/index.d.ts +2 -1
- package/dist/declarations/src/fields/types/text/views/index.d.ts.map +1 -1
- package/dist/declarations/src/fields/types/timestamp/views/index.d.ts.map +1 -1
- package/dist/declarations/src/fields/types/virtual/views/index.d.ts.map +1 -1
- package/dist/declarations/src/internal-unstable/admin-ui/pages/HomePage/index.d.ts.map +1 -1
- package/dist/declarations/src/internal-unstable/admin-ui/pages/ItemPage/index.d.ts.map +1 -1
- package/dist/pick-4c785a54.esm.js +34 -0
- package/dist/pick-906341bb.cjs.js +37 -0
- package/dist/{useCreateItem-1f94d252.esm.js → useCreateItem-36a75f1c.esm.js} +26 -26
- package/dist/{useCreateItem-1be4987e.cjs.js → useCreateItem-acf06f77.cjs.js} +37 -37
- package/dist/{useFilter-acc9d413.cjs.js → useFilter-c29f17a8.cjs.js} +1 -1
- package/dist/{useFilter-9b6db1f9.esm.js → useFilter-f79b2abb.esm.js} +1 -1
- package/dist/{Fields-956d9a14.esm.js → usePreventNavigation-093389dd.esm.js} +28 -2
- package/dist/{Fields-e2c28056.cjs.js → usePreventNavigation-d4f9f4fa.cjs.js} +27 -0
- package/fields/types/bigInt/views/dist/nixxie-cms-core-fields-types-bigInt-views.cjs.js +8 -0
- package/fields/types/bigInt/views/dist/nixxie-cms-core-fields-types-bigInt-views.esm.js +8 -1
- package/fields/types/bytes/views/dist/nixxie-cms-core-fields-types-bytes-views.cjs.js +14 -3
- package/fields/types/bytes/views/dist/nixxie-cms-core-fields-types-bytes-views.esm.js +15 -5
- package/fields/types/calendarDay/views/dist/nixxie-cms-core-fields-types-calendarDay-views.cjs.js +2 -1
- package/fields/types/calendarDay/views/dist/nixxie-cms-core-fields-types-calendarDay-views.esm.js +2 -1
- package/fields/types/decimal/views/dist/nixxie-cms-core-fields-types-decimal-views.cjs.js +10 -1
- package/fields/types/decimal/views/dist/nixxie-cms-core-fields-types-decimal-views.esm.js +10 -2
- package/fields/types/file/views/dist/nixxie-cms-core-fields-types-file-views.cjs.js +1 -1
- package/fields/types/file/views/dist/nixxie-cms-core-fields-types-file-views.esm.js +2 -2
- package/fields/types/float/views/dist/nixxie-cms-core-fields-types-float-views.cjs.js +10 -1
- package/fields/types/float/views/dist/nixxie-cms-core-fields-types-float-views.esm.js +10 -2
- package/fields/types/image/views/dist/nixxie-cms-core-fields-types-image-views.cjs.js +2 -1
- package/fields/types/image/views/dist/nixxie-cms-core-fields-types-image-views.esm.js +2 -1
- package/fields/types/integer/views/dist/nixxie-cms-core-fields-types-integer-views.cjs.js +8 -0
- package/fields/types/integer/views/dist/nixxie-cms-core-fields-types-integer-views.esm.js +8 -1
- package/fields/types/json/views/dist/nixxie-cms-core-fields-types-json-views.cjs.js +19 -4
- package/fields/types/json/views/dist/nixxie-cms-core-fields-types-json-views.esm.js +19 -4
- package/fields/types/multiselect/views/dist/nixxie-cms-core-fields-types-multiselect-views.cjs.js +18 -3
- package/fields/types/multiselect/views/dist/nixxie-cms-core-fields-types-multiselect-views.esm.js +18 -3
- package/fields/types/password/views/dist/nixxie-cms-core-fields-types-password-views.cjs.js +1 -1
- package/fields/types/password/views/dist/nixxie-cms-core-fields-types-password-views.esm.js +1 -1
- package/fields/types/relationship/views/dist/nixxie-cms-core-fields-types-relationship-views.cjs.js +9 -7
- package/fields/types/relationship/views/dist/nixxie-cms-core-fields-types-relationship-views.esm.js +9 -7
- package/fields/types/select/views/dist/nixxie-cms-core-fields-types-select-views.cjs.js +3 -2
- package/fields/types/select/views/dist/nixxie-cms-core-fields-types-select-views.esm.js +3 -2
- package/fields/types/text/views/dist/nixxie-cms-core-fields-types-text-views.cjs.js +14 -3
- package/fields/types/text/views/dist/nixxie-cms-core-fields-types-text-views.esm.js +15 -5
- package/fields/types/timestamp/views/dist/nixxie-cms-core-fields-types-timestamp-views.cjs.js +2 -1
- package/fields/types/timestamp/views/dist/nixxie-cms-core-fields-types-timestamp-views.esm.js +2 -1
- package/fields/types/virtual/views/dist/nixxie-cms-core-fields-types-virtual-views.cjs.js +13 -1
- package/fields/types/virtual/views/dist/nixxie-cms-core-fields-types-virtual-views.esm.js +14 -2
- package/internal-unstable/admin-ui/pages/App/dist/nixxie-cms-core-internal-unstable-admin-ui-pages-App.cjs.js +3 -3
- package/internal-unstable/admin-ui/pages/App/dist/nixxie-cms-core-internal-unstable-admin-ui-pages-App.esm.js +3 -3
- package/internal-unstable/admin-ui/pages/CreateItemPage/dist/nixxie-cms-core-internal-unstable-admin-ui-pages-CreateItemPage.cjs.js +7 -7
- package/internal-unstable/admin-ui/pages/CreateItemPage/dist/nixxie-cms-core-internal-unstable-admin-ui-pages-CreateItemPage.esm.js +6 -6
- package/internal-unstable/admin-ui/pages/HomePage/dist/nixxie-cms-core-internal-unstable-admin-ui-pages-HomePage.cjs.js +34 -33
- package/internal-unstable/admin-ui/pages/HomePage/dist/nixxie-cms-core-internal-unstable-admin-ui-pages-HomePage.esm.js +35 -34
- package/internal-unstable/admin-ui/pages/ItemPage/dist/nixxie-cms-core-internal-unstable-admin-ui-pages-ItemPage.cjs.js +53 -13
- package/internal-unstable/admin-ui/pages/ItemPage/dist/nixxie-cms-core-internal-unstable-admin-ui-pages-ItemPage.esm.js +52 -12
- package/internal-unstable/admin-ui/pages/ListPage/dist/nixxie-cms-core-internal-unstable-admin-ui-pages-ListPage.cjs.js +36 -25
- package/internal-unstable/admin-ui/pages/ListPage/dist/nixxie-cms-core-internal-unstable-admin-ui-pages-ListPage.esm.js +36 -25
- package/package.json +2 -2
- package/src/admin-ui/components/CommandPalette.tsx +134 -27
- package/src/admin-ui/components/CreateButtonLink.tsx +20 -46
- package/src/admin-ui/components/GraphQLErrorNotice.tsx +39 -33
- package/src/admin-ui/components/Logo.tsx +5 -5
- package/src/admin-ui/components/Navigation.tsx +41 -27
- package/src/admin-ui/components/PageContainer.tsx +171 -15
- package/src/admin-ui/components/WelcomeDialog.tsx +14 -14
- package/src/admin-ui/context.tsx +5 -2
- package/src/admin-ui/utils/useCreateItem.ts +21 -1
- package/src/fields/types/bigInt/views/index.tsx +10 -1
- package/src/fields/types/bytes/views/index.tsx +14 -1
- package/src/fields/types/calendarDay/views/index.tsx +2 -1
- package/src/fields/types/decimal/views/index.tsx +7 -1
- package/src/fields/types/file/views/Field.tsx +1 -1
- package/src/fields/types/float/views/index.tsx +7 -1
- package/src/fields/types/image/views/index.tsx +1 -1
- package/src/fields/types/integer/views/index.tsx +5 -0
- package/src/fields/types/json/views/index.tsx +20 -2
- package/src/fields/types/multiselect/views/index.tsx +7 -3
- package/src/fields/types/password/views/index.tsx +1 -1
- package/src/fields/types/relationship/views/index.tsx +1 -0
- package/src/fields/types/select/views/index.tsx +2 -1
- package/src/fields/types/text/views/index.tsx +14 -1
- package/src/fields/types/timestamp/views/index.tsx +2 -1
- package/src/fields/types/virtual/views/index.tsx +17 -2
- package/src/internal-unstable/admin-ui/pages/HomePage/index.tsx +40 -31
- package/src/internal-unstable/admin-ui/pages/ItemPage/index.tsx +36 -3
- package/src/internal-unstable/admin-ui/pages/ListPage/PaginationControls.tsx +20 -33
- package/src/internal-unstable/admin-ui/pages/ListPage/index.tsx +24 -16
- package/dist/GraphQLErrorNotice-cd74180d.cjs.js +0 -57
- package/dist/GraphQLErrorNotice-d9f0931b.esm.js +0 -55
- package/dist/pick-5fe45878.cjs.js +0 -71
- package/dist/pick-b7ef3115.esm.js +0 -68
|
@@ -11,8 +11,8 @@ import { chevronLeftIcon } from '@keystar/ui/icon/icons/chevronLeftIcon';
|
|
|
11
11
|
import { chevronRightIcon } from '@keystar/ui/icon/icons/chevronRightIcon';
|
|
12
12
|
import { undo2Icon } from '@keystar/ui/icon/icons/undo2Icon';
|
|
13
13
|
import { HStack } from '@keystar/ui/layout';
|
|
14
|
-
import {
|
|
15
|
-
import { Item } from '@keystar/ui/
|
|
14
|
+
import { NumberField } from '@keystar/ui/number-field';
|
|
15
|
+
import { Picker, Item } from '@keystar/ui/picker';
|
|
16
16
|
import { TooltipTrigger, Tooltip } from '@keystar/ui/tooltip';
|
|
17
17
|
import { Text } from '@keystar/ui/typography';
|
|
18
18
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -34,16 +34,11 @@ function PaginationControls(props) {
|
|
|
34
34
|
const nextPage = currentPage + 1;
|
|
35
35
|
const prevPage = currentPage - 1;
|
|
36
36
|
const lastPage = Math.max(Math.ceil(total / pageSize), 1);
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
label: String(page)
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
return result;
|
|
46
|
-
}, [lastPage]);
|
|
37
|
+
const goToPage = value => {
|
|
38
|
+
if (!Number.isFinite(value)) return;
|
|
39
|
+
const page = Math.min(Math.max(Math.round(value), 1), lastPage);
|
|
40
|
+
if (page !== currentPage) props.onChangePage(page);
|
|
41
|
+
};
|
|
47
42
|
return /*#__PURE__*/jsxs(HStack, {
|
|
48
43
|
as: "nav",
|
|
49
44
|
role: "navigation",
|
|
@@ -97,26 +92,19 @@ function PaginationControls(props) {
|
|
|
97
92
|
gap: "large",
|
|
98
93
|
alignItems: "center",
|
|
99
94
|
children: [/*#__PURE__*/jsxs(HStack, {
|
|
100
|
-
isHidden: {
|
|
101
|
-
below: 'desktop'
|
|
102
|
-
},
|
|
103
95
|
gap: "regular",
|
|
104
96
|
alignItems: "center",
|
|
105
|
-
children: [/*#__PURE__*/jsx(
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
width: "scale.1000",
|
|
115
|
-
children: item => /*#__PURE__*/jsx(Item, {
|
|
116
|
-
children: item.label
|
|
117
|
-
})
|
|
97
|
+
children: [/*#__PURE__*/jsx(NumberField, {
|
|
98
|
+
"aria-label": "Go to page",
|
|
99
|
+
hideStepper: true,
|
|
100
|
+
minValue: 1,
|
|
101
|
+
maxValue: lastPage,
|
|
102
|
+
step: 1,
|
|
103
|
+
value: currentPage,
|
|
104
|
+
onChange: goToPage,
|
|
105
|
+
width: "scale.1000"
|
|
118
106
|
}), /*#__PURE__*/jsxs(Text, {
|
|
119
|
-
children: ["of ", lastPage
|
|
107
|
+
children: ["of ", lastPage]
|
|
120
108
|
})]
|
|
121
109
|
}), /*#__PURE__*/jsxs(HStack, {
|
|
122
110
|
gap: "regular",
|
|
@@ -271,7 +259,7 @@ function InternalNixxieProvider({
|
|
|
271
259
|
useEffect(() => {
|
|
272
260
|
injectGlobal({
|
|
273
261
|
body: {
|
|
274
|
-
fontFamily:
|
|
262
|
+
fontFamily: tokenSchema.typography.fontFamily.base,
|
|
275
263
|
WebkitFontSmoothing: 'antialiased',
|
|
276
264
|
MozOsxFontSmoothing: 'grayscale'
|
|
277
265
|
},
|
|
@@ -292,34 +280,41 @@ function InternalNixxieProvider({
|
|
|
292
280
|
// TODO
|
|
293
281
|
if (loading) return null;
|
|
294
282
|
// if (!meta) return null
|
|
295
|
-
return
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
283
|
+
return (
|
|
284
|
+
/*#__PURE__*/
|
|
285
|
+
// The app is intentionally pinned to the light color scheme for now. Now
|
|
286
|
+
// that the rest of the chrome is token-based, enabling system/dark is a
|
|
287
|
+
// one-line change (drop `colorScheme="light"` here and the
|
|
288
|
+
// `[data-nixxie-content]` override below) pending a visual-QA pass.
|
|
289
|
+
jsxs(KeystarProvider, {
|
|
290
|
+
router: keystarRouter,
|
|
291
|
+
colorScheme: "light",
|
|
292
|
+
children: [/*#__PURE__*/jsx(ClientSideOnlyDocumentElement, {
|
|
293
|
+
bodyBackground: "canvas"
|
|
294
|
+
}), /*#__PURE__*/jsxs(NextHead, {
|
|
295
|
+
children: [/*#__PURE__*/jsx("meta", {
|
|
296
|
+
name: "viewport",
|
|
297
|
+
content: "width=device-width, initial-scale=1.0"
|
|
298
|
+
}, "viewport"), /*#__PURE__*/jsx("link", {
|
|
299
|
+
rel: "icon",
|
|
300
|
+
type: "image/svg+xml",
|
|
301
|
+
href: "/favicon.svg"
|
|
302
|
+
}), /*#__PURE__*/jsx("link", {
|
|
303
|
+
href: "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap",
|
|
304
|
+
rel: "stylesheet"
|
|
305
|
+
})]
|
|
306
|
+
}), /*#__PURE__*/jsx(NixxieContext.Provider, {
|
|
307
|
+
value: {
|
|
308
|
+
adminConfig,
|
|
309
|
+
apiPath,
|
|
310
|
+
fieldViews,
|
|
311
|
+
lists: lists !== null && lists !== void 0 ? lists : {},
|
|
312
|
+
error: error !== null && error !== void 0 ? error : null
|
|
313
|
+
},
|
|
314
|
+
children: children
|
|
315
|
+
}), /*#__PURE__*/jsx(Toaster, {})]
|
|
316
|
+
})
|
|
317
|
+
);
|
|
323
318
|
}
|
|
324
319
|
function NixxieProvider(props) {
|
|
325
320
|
const apolloClient = useMemo(() => new ApolloClient({
|
|
@@ -13,8 +13,8 @@ var chevronLeftIcon = require('@keystar/ui/icon/icons/chevronLeftIcon');
|
|
|
13
13
|
var chevronRightIcon = require('@keystar/ui/icon/icons/chevronRightIcon');
|
|
14
14
|
var undo2Icon = require('@keystar/ui/icon/icons/undo2Icon');
|
|
15
15
|
var layout = require('@keystar/ui/layout');
|
|
16
|
+
var numberField = require('@keystar/ui/number-field');
|
|
16
17
|
var picker = require('@keystar/ui/picker');
|
|
17
|
-
var tag = require('@keystar/ui/tag');
|
|
18
18
|
var tooltip = require('@keystar/ui/tooltip');
|
|
19
19
|
var typography = require('@keystar/ui/typography');
|
|
20
20
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -41,16 +41,11 @@ function PaginationControls(props) {
|
|
|
41
41
|
const nextPage = currentPage + 1;
|
|
42
42
|
const prevPage = currentPage - 1;
|
|
43
43
|
const lastPage = Math.max(Math.ceil(total / pageSize), 1);
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
label: String(page)
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
return result;
|
|
53
|
-
}, [lastPage]);
|
|
44
|
+
const goToPage = value => {
|
|
45
|
+
if (!Number.isFinite(value)) return;
|
|
46
|
+
const page = Math.min(Math.max(Math.round(value), 1), lastPage);
|
|
47
|
+
if (page !== currentPage) props.onChangePage(page);
|
|
48
|
+
};
|
|
54
49
|
return /*#__PURE__*/jsxRuntime.jsxs(layout.HStack, {
|
|
55
50
|
as: "nav",
|
|
56
51
|
role: "navigation",
|
|
@@ -81,7 +76,7 @@ function PaginationControls(props) {
|
|
|
81
76
|
},
|
|
82
77
|
selectedKey: pageSize,
|
|
83
78
|
width: "scale.1000",
|
|
84
|
-
children: item => /*#__PURE__*/jsxRuntime.jsx(
|
|
79
|
+
children: item => /*#__PURE__*/jsxRuntime.jsx(picker.Item, {
|
|
85
80
|
children: item.label
|
|
86
81
|
})
|
|
87
82
|
}), defaultPageSize !== undefined && pageSize !== defaultPageSize ? /*#__PURE__*/jsxRuntime.jsxs(tooltip.TooltipTrigger, {
|
|
@@ -104,26 +99,19 @@ function PaginationControls(props) {
|
|
|
104
99
|
gap: "large",
|
|
105
100
|
alignItems: "center",
|
|
106
101
|
children: [/*#__PURE__*/jsxRuntime.jsxs(layout.HStack, {
|
|
107
|
-
isHidden: {
|
|
108
|
-
below: 'desktop'
|
|
109
|
-
},
|
|
110
102
|
gap: "regular",
|
|
111
103
|
alignItems: "center",
|
|
112
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
width: "scale.1000",
|
|
122
|
-
children: item => /*#__PURE__*/jsxRuntime.jsx(tag.Item, {
|
|
123
|
-
children: item.label
|
|
124
|
-
})
|
|
104
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(numberField.NumberField, {
|
|
105
|
+
"aria-label": "Go to page",
|
|
106
|
+
hideStepper: true,
|
|
107
|
+
minValue: 1,
|
|
108
|
+
maxValue: lastPage,
|
|
109
|
+
step: 1,
|
|
110
|
+
value: currentPage,
|
|
111
|
+
onChange: goToPage,
|
|
112
|
+
width: "scale.1000"
|
|
125
113
|
}), /*#__PURE__*/jsxRuntime.jsxs(typography.Text, {
|
|
126
|
-
children: ["of ", lastPage
|
|
114
|
+
children: ["of ", lastPage]
|
|
127
115
|
})]
|
|
128
116
|
}), /*#__PURE__*/jsxRuntime.jsxs(layout.HStack, {
|
|
129
117
|
gap: "regular",
|
|
@@ -278,7 +266,7 @@ function InternalNixxieProvider({
|
|
|
278
266
|
react.useEffect(() => {
|
|
279
267
|
style.injectGlobal({
|
|
280
268
|
body: {
|
|
281
|
-
fontFamily:
|
|
269
|
+
fontFamily: style.tokenSchema.typography.fontFamily.base,
|
|
282
270
|
WebkitFontSmoothing: 'antialiased',
|
|
283
271
|
MozOsxFontSmoothing: 'grayscale'
|
|
284
272
|
},
|
|
@@ -299,34 +287,41 @@ function InternalNixxieProvider({
|
|
|
299
287
|
// TODO
|
|
300
288
|
if (loading) return null;
|
|
301
289
|
// if (!meta) return null
|
|
302
|
-
return
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
290
|
+
return (
|
|
291
|
+
/*#__PURE__*/
|
|
292
|
+
// The app is intentionally pinned to the light color scheme for now. Now
|
|
293
|
+
// that the rest of the chrome is token-based, enabling system/dark is a
|
|
294
|
+
// one-line change (drop `colorScheme="light"` here and the
|
|
295
|
+
// `[data-nixxie-content]` override below) pending a visual-QA pass.
|
|
296
|
+
jsxRuntime.jsxs(core.KeystarProvider, {
|
|
297
|
+
router: keystarRouter,
|
|
298
|
+
colorScheme: "light",
|
|
299
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(core.ClientSideOnlyDocumentElement, {
|
|
300
|
+
bodyBackground: "canvas"
|
|
301
|
+
}), /*#__PURE__*/jsxRuntime.jsxs(NextHead__default["default"], {
|
|
302
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("meta", {
|
|
303
|
+
name: "viewport",
|
|
304
|
+
content: "width=device-width, initial-scale=1.0"
|
|
305
|
+
}, "viewport"), /*#__PURE__*/jsxRuntime.jsx("link", {
|
|
306
|
+
rel: "icon",
|
|
307
|
+
type: "image/svg+xml",
|
|
308
|
+
href: "/favicon.svg"
|
|
309
|
+
}), /*#__PURE__*/jsxRuntime.jsx("link", {
|
|
310
|
+
href: "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap",
|
|
311
|
+
rel: "stylesheet"
|
|
312
|
+
})]
|
|
313
|
+
}), /*#__PURE__*/jsxRuntime.jsx(NixxieContext.Provider, {
|
|
314
|
+
value: {
|
|
315
|
+
adminConfig,
|
|
316
|
+
apiPath,
|
|
317
|
+
fieldViews,
|
|
318
|
+
lists: lists !== null && lists !== void 0 ? lists : {},
|
|
319
|
+
error: error !== null && error !== void 0 ? error : null
|
|
320
|
+
},
|
|
321
|
+
children: children
|
|
322
|
+
}), /*#__PURE__*/jsxRuntime.jsx(toast.Toaster, {})]
|
|
323
|
+
})
|
|
324
|
+
);
|
|
330
325
|
}
|
|
331
326
|
function NixxieProvider(props) {
|
|
332
327
|
const apolloClient = react.useMemo(() => new client.ApolloClient({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphQLErrorNotice.d.ts","sourceRoot":"../../../../../src/admin-ui/components","sources":["GraphQLErrorNotice.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACtB,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAOlE,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EAAE,OAAY,GACrB,EAAE;IACD,MAAM,CAAC,EAAE,CACL,IAAI,GACJ,SAAS,GACT,WAAW,GACX,gBAAgB,GAChB,YAAY,GACZ,qBAAqB,GACrB,KAAK,GACL,SAAS,CACZ,EAAE,CAAA;CACJ,
|
|
1
|
+
{"version":3,"file":"GraphQLErrorNotice.d.ts","sourceRoot":"../../../../../src/admin-ui/components","sources":["GraphQLErrorNotice.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACtB,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAOlE,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EAAE,OAAY,GACrB,EAAE;IACD,MAAM,CAAC,EAAE,CACL,IAAI,GACJ,SAAS,GACT,WAAW,GACX,gBAAgB,GAChB,YAAY,GACZ,qBAAqB,GACrB,KAAK,GACL,SAAS,CACZ,EAAE,CAAA;CACJ,kDAyDA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Navigation.d.ts","sourceRoot":"../../../../../src/admin-ui/components","sources":["Navigation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,iBAAiB,EAA8B,MAAM,OAAO,CAAA;AAK1F,OAAO,KAAK,EAAE,cAAc,EAAE,6BAAmB;AAOjD,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,aAAa,CAAC,UAEjF;AAMD,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,SAAS,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,wBAAgB,OAAO,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"Navigation.d.ts","sourceRoot":"../../../../../src/admin-ui/components","sources":["Navigation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,iBAAiB,EAA8B,MAAM,OAAO,CAAA;AAK1F,OAAO,KAAK,EAAE,cAAc,EAAE,6BAAmB;AAOjD,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,aAAa,CAAC,UAEjF;AAMD,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,SAAS,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,wBAAgB,OAAO,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,YAAY,2CAmExE;AA6MD,KAAK,uBAAuB,GAAG;IAC7B,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;IAC3B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;CACpB,CAAA;AAED,wBAAgB,UAAU,CAAC,EAAE,cAAc,EAAE,MAAM,EAAE,EAAE,uBAAuB,2CAuD7E;AAMD,wBAAgB,OAAO,CAAC,EAAE,QAAQ,EAAE,EAAE,iBAAiB,2CAEtD;AAED,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE,iBAAiB,2CAa3D;AAED,wBAAgB,SAAS,CAAC,EAAE,QAAQ,EAAE,EAAE,iBAAiB,2CAaxD;AAED,kBAAkB;AAClB,wBAAgB,sBAAsB,SAErC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageContainer.d.ts","sourceRoot":"../../../../../src/admin-ui/components","sources":["PageContainer.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"PageContainer.d.ts","sourceRoot":"../../../../../src/admin-ui/components","sources":["PageContainer.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,SAAS,EAIf,MAAM,OAAO,CAAA;AAWd,wBAAgB,WAAW,CAAC,KAAK,EAAE,cAAc,CAAC,WAAW,CAAC,2CAa7D;AA2XD,KAAK,kBAAkB,GAAG;IACxB,QAAQ,EAAE,SAAS,CAAA;IACnB,MAAM,EAAE,SAAS,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,kBAAkB,2CAkD5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"../../../../src/admin-ui","sources":["context.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAiD,MAAM,OAAO,CAAA;AAQrF,OAAO,KAAK,EACV,WAAW,EACX,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACrB,UAAU,EACV,cAAc,EACf,0BAAgB;AAEjB,OAAO,EAGL,KAAK,SAAS,EAGd,QAAQ,EACT,oBAAgB;AAGjB,KAAK,iBAAiB,GAAG;IACvB,WAAW,EAAE,WAAW,GAAG,IAAI,CAAA;IAC/B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IACxB,UAAU,EAAE,UAAU,CAAA;IACtB,KAAK,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAAA;KAAE,CAAA;CAC1C,CAAA;AASD,KAAK,mBAAmB,GAAG;IACzB,WAAW,EAAE,WAAW,CAAA;IACxB,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,UAAU,CAAA;IACtB,QAAQ,EAAE,SAAS,CAAA;CACpB,CAAA;
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"../../../../src/admin-ui","sources":["context.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAiD,MAAM,OAAO,CAAA;AAQrF,OAAO,KAAK,EACV,WAAW,EACX,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACrB,UAAU,EACV,cAAc,EACf,0BAAgB;AAEjB,OAAO,EAGL,KAAK,SAAS,EAGd,QAAQ,EACT,oBAAgB;AAGjB,KAAK,iBAAiB,GAAG;IACvB,WAAW,EAAE,WAAW,GAAG,IAAI,CAAA;IAC/B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IACxB,UAAU,EAAE,UAAU,CAAA;IACtB,KAAK,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAAA;KAAE,CAAA;CAC1C,CAAA;AASD,KAAK,mBAAmB,GAAG;IACzB,WAAW,EAAE,WAAW,CAAA;IACxB,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,UAAU,CAAA;IACtB,QAAQ,EAAE,SAAS,CAAA;CACpB,CAAA;AAoJD,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,2CAkBxD;AAED,wBAAgB,SAAS,sBAExB;AAED,wBAAgB,OAAO,CAAC,OAAO,EAAE,MAAM,kBAKtC;AAED,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,yCAKzD;AAGD,wBAAgB,WAAW,CACzB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,GAAG,IAAI,GACpB,QAAQ,CAAC,MAAM,CAChB;IACE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACpC,MAAM,EAAE;QACN,SAAS,EAAE;YACT,IAAI,EAAE;gBACJ,MAAM,EAAE;oBACN,GAAG,EAAE,MAAM,CAAA;oBACX,QAAQ,EAAE;wBACR,SAAS,EAAE,iBAAiB,CAC1B,MAAM,GAAG,MAAM,GAAG,QAAQ,EAC1B,MAAM,GAAG,QAAQ,EACjB,sBAAsB,CACvB,CAAA;wBACD,aAAa,EAAE,MAAM,GAAG,SAAS,CAAA;wBACjC,UAAU,EAAE,qBAAqB,CAAC,sBAAsB,CAAC,CAAA;qBAC1D,GAAG,IAAI,CAAA;iBACT,EAAE,CAAA;gBACH,OAAO,EAAE;oBACP,GAAG,EAAE,MAAM,CAAA;oBACX,QAAQ,EAAE;wBACR,UAAU,EAAE,iBAAiB,CAC3B,SAAS,GAAG,UAAU,GAAG,QAAQ,EACjC,UAAU,GAAG,QAAQ,EACrB,sBAAsB,CACvB,CAAA;qBACF,GAAG,IAAI,CAAA;iBACT,EAAE,CAAA;aACJ,GAAG,IAAI,CAAA;SACT,CAAA;KACF,CAAA;CACF,EACD;IAAE,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CACvC,CAoEA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateItem.d.ts","sourceRoot":"../../../../../src/admin-ui/utils","sources":["useCreateItem.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAwC,MAAM,OAAO,CAAA;AAIjF,OAAO,KAAK,EAAE,MAAM,EAAE,mBAAS;AAO/B,OAAO,KAAK,EAAE,cAAc,EAAE,6BAAmB;AACjD,OAAO,EAAE,KAAK,SAAS,EAA4C,qBAAiB;
|
|
1
|
+
{"version":3,"file":"useCreateItem.d.ts","sourceRoot":"../../../../../src/admin-ui/utils","sources":["useCreateItem.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAwC,MAAM,OAAO,CAAA;AAIjF,OAAO,KAAK,EAAE,MAAM,EAAE,mBAAS;AAO/B,OAAO,KAAK,EAAE,cAAc,EAAE,6BAAmB;AACjD,OAAO,EAAE,KAAK,SAAS,EAA4C,qBAAiB;AAmBpF,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAAA;IACxC,uBAAuB,EAAE,OAAO,CAAA;IAChC,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,KAAK,EAAE,cAAc,CAAC,OAAO,MAAM,CAAC,CAAA;IACpC,MAAM,EAAE,MAAM,OAAO,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,GAAG,SAAS,CAAC,CAAA;CACxE,CAAA;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,cAAc,GAAG,oBAAoB,CAwGxE;AAED,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE,SAAS,CAAA;IAChB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,KAAK,EAAE,cAAc,CAAC,OAAO,MAAM,CAAC,CAAA;IACpC,KAAK,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,CAAA;CAC1D,CAAA;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,cAAc,EAAE,SAAS,GAAE,MAAM,EAAO,GAAG,mBAAmB,CAqChG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SimpleFieldTypeInfo } from "../../../../types/index.js";
|
|
2
|
-
import type { FieldController, FieldControllerConfig, FieldProps } from "../../../../types/index.js";
|
|
2
|
+
import type { CellComponent, FieldController, FieldControllerConfig, FieldProps } from "../../../../types/index.js";
|
|
3
3
|
type Value = {
|
|
4
4
|
kind: 'create';
|
|
5
5
|
value: string | null;
|
|
@@ -20,5 +20,6 @@ export declare function controller(config: FieldControllerConfig<{
|
|
|
20
20
|
hasAutoIncrementDefault: boolean;
|
|
21
21
|
};
|
|
22
22
|
export declare function Field({ field, value, onChange, autoFocus, forceValidation, isRequired, }: FieldProps<typeof controller>): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare const Cell: CellComponent<typeof controller>;
|
|
23
24
|
export {};
|
|
24
25
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../../../src/fields/types/bigInt/views","sources":["index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,mBAAmB,EAAE,mCAAyB;AAC5D,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../../../src/fields/types/bigInt/views","sources":["index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,mBAAmB,EAAE,mCAAyB;AAC5D,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,UAAU,EACX,mCAAyB;AAY1B,KAAK,KAAK,GACN;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GACxC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAA;AAEpE,KAAK,UAAU,GAAG;IAChB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAyBD,wBAAgB,UAAU,CACxB,MAAM,EAAE,qBAAqB,CAAC;IAC5B,UAAU,EAAE,UAAU,CAAA;IACtB,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,eAAe,CAAA;CAC9C,CAAC,GACD,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG;IAC3F,UAAU,EAAE,UAAU,CAAA;IACtB,uBAAuB,EAAE,OAAO,CAAA;CACjC,CAqIA;AAED,wBAAgB,KAAK,CAAC,EACpB,KAAK,EACL,KAAK,EACL,QAAQ,EACR,SAAS,EACT,eAAe,EACf,UAAU,GACX,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,2CAmD/B;AAED,eAAO,MAAM,IAAI,EAAE,aAAa,CAAC,OAAO,UAAU,CAEjD,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { TextFieldMeta } from "../index.js";
|
|
2
|
-
import type { FieldController, FieldControllerConfig, FieldProps, SimpleFieldTypeInfo } from "../../../../types/index.js";
|
|
2
|
+
import type { CellComponent, FieldController, FieldControllerConfig, FieldProps, SimpleFieldTypeInfo } from "../../../../types/index.js";
|
|
3
3
|
export declare function Field(props: FieldProps<typeof controller>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const Cell: CellComponent<typeof controller>;
|
|
4
5
|
type Config = FieldControllerConfig<TextFieldMeta>;
|
|
5
6
|
type InnerTextValue = {
|
|
6
7
|
kind: 'null';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../../../src/fields/types/bytes/views","sources":["index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../../../src/fields/types/bytes/views","sources":["index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAU;AAGvC,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,UAAU,EACV,mBAAmB,EACpB,mCAAyB;AAE1B,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,2CAiEzD;AAED,eAAO,MAAM,IAAI,EAAE,aAAa,CAAC,OAAO,UAAU,CAEjD,CAAA;AAED,KAAK,MAAM,GAAG,qBAAqB,CAAC,aAAa,CAAC,CAAA;AAwBlD,KAAK,cAAc,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AACvF,KAAK,SAAS,GACV;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,cAAc,CAAA;CAAE,GACzC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,cAAc,CAAC;IAAC,OAAO,EAAE,cAAc,CAAA;CAAE,CAAA;AAOtE,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe,CACzD,SAAS,EACT,MAAM,EACN,mBAAmB,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CACjD,GAAG;IACF,UAAU,EAAE,OAAO,CAAA;CACpB,CA4EA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../../../src/fields/types/calendarDay/views","sources":["index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,UAAU,EACX,mCAAyB;AAE1B,MAAM,MAAM,KAAK,GACb;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GACxC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAA;AAEpE,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../../../src/fields/types/calendarDay/views","sources":["index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,UAAU,EACX,mCAAyB;AAE1B,MAAM,MAAM,KAAK,GACb;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GACxC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAA;AAEpE,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,2CA2EzD;AAiBD,eAAO,MAAM,IAAI,EAAE,aAAa,CAAC,OAAO,UAAU,CAGjD,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;CAC5B,CAAA;AAED,wBAAgB,UAAU,CACxB,MAAM,EAAE,qBAAqB,CAAC,oBAAoB,CAAC,GAClD,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG;IAAE,SAAS,EAAE,oBAAoB,CAAA;CAAE,CAiBtE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type FieldController, type FieldControllerConfig, type FieldProps, type SimpleFieldTypeInfo } from "../../../../types/index.js";
|
|
1
|
+
import { type CellComponent, type FieldController, type FieldControllerConfig, type FieldProps, type SimpleFieldTypeInfo } from "../../../../types/index.js";
|
|
2
2
|
type Value = {
|
|
3
3
|
kind: 'create';
|
|
4
4
|
value: string | null;
|
|
@@ -18,5 +18,6 @@ export declare function controller(config: FieldControllerConfig<{
|
|
|
18
18
|
validation: Validation;
|
|
19
19
|
};
|
|
20
20
|
export declare function Field({ field, value, onChange, autoFocus, forceValidation, isRequired, }: FieldProps<typeof controller>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare const Cell: CellComponent<typeof controller>;
|
|
21
22
|
export {};
|
|
22
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../../../src/fields/types/decimal/views","sources":["index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../../../src/fields/types/decimal/views","sources":["index.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,UAAU,EACf,KAAK,mBAAmB,EAEzB,mCAAyB;AAY1B,KAAK,KAAK,GACN;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GACxC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAA;AAEpE,KAAK,UAAU,GAAG;IAChB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;CACnB,CAAA;AAwBD,wBAAgB,UAAU,CACxB,MAAM,EAAE,qBAAqB,CAAC;IAC5B,UAAU,EAAE,UAAU,CAAA;IACtB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;CAC5B,CAAC,GACD,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG;IAC5F,UAAU,EAAE,UAAU,CAAA;CACvB,CA0HA;AAED,wBAAgB,KAAK,CAAC,EACpB,KAAK,EACL,KAAK,EACL,QAAQ,EACR,SAAS,EACT,eAAe,EACf,UAAU,GACX,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,2CAuB/B;AAED,eAAO,MAAM,IAAI,EAAE,aAAa,CAAC,OAAO,UAAU,CAEjD,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FieldController, FieldControllerConfig, FieldProps, SimpleFieldTypeInfo } from "../../../../types/index.js";
|
|
1
|
+
import type { CellComponent, FieldController, FieldControllerConfig, FieldProps, SimpleFieldTypeInfo } from "../../../../types/index.js";
|
|
2
2
|
type Value = {
|
|
3
3
|
kind: 'create';
|
|
4
4
|
value: string | null;
|
|
@@ -18,5 +18,6 @@ export declare function controller(config: FieldControllerConfig<{
|
|
|
18
18
|
validation: Validation;
|
|
19
19
|
};
|
|
20
20
|
export declare function Field({ field, value, onChange, autoFocus, forceValidation, isRequired, }: FieldProps<typeof controller>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare const Cell: CellComponent<typeof controller>;
|
|
21
22
|
export {};
|
|
22
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../../../src/fields/types/float/views","sources":["index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../../../src/fields/types/float/views","sources":["index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,UAAU,EACV,mBAAmB,EACpB,mCAAyB;AAY1B,KAAK,KAAK,GACN;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GACxC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAA;AAEpE,KAAK,UAAU,GAAG;IAChB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;CACnB,CAAA;AAoBD,wBAAgB,UAAU,CACxB,MAAM,EAAE,qBAAqB,CAAC;IAC5B,UAAU,EAAE,UAAU,CAAA;IACtB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;CAC5B,CAAC,GACD,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,mBAAmB,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG;IAC1F,UAAU,EAAE,UAAU,CAAA;CACvB,CA+HA;AAED,wBAAgB,KAAK,CAAC,EACpB,KAAK,EACL,KAAK,EACL,QAAQ,EACR,SAAS,EACT,eAAe,EACf,UAAU,GACX,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,2CAuB/B;AAED,eAAO,MAAM,IAAI,EAAE,aAAa,CAAC,OAAO,UAAU,CAEjD,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FieldController, FieldControllerConfig, FieldProps, SimpleFieldTypeInfo } from "../../../../types/index.js";
|
|
1
|
+
import type { CellComponent, FieldController, FieldControllerConfig, FieldProps, SimpleFieldTypeInfo } from "../../../../types/index.js";
|
|
2
2
|
type Value = {
|
|
3
3
|
kind: 'create';
|
|
4
4
|
value: number | null;
|
|
@@ -19,5 +19,6 @@ export declare function controller(config: FieldControllerConfig<{
|
|
|
19
19
|
hasAutoIncrementDefault: boolean;
|
|
20
20
|
};
|
|
21
21
|
export declare function Field({ field, value, onChange, autoFocus, forceValidation, isRequired, }: FieldProps<typeof controller>): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare const Cell: CellComponent<typeof controller>;
|
|
22
23
|
export {};
|
|
23
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../../../src/fields/types/integer/views","sources":["index.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACrB,UAAU,EACV,mBAAmB,EACpB,mCAAyB;AAa1B,KAAK,KAAK,GACN;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GACxC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAA;AAEpE,KAAK,UAAU,GAAG;IAChB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAsBD,wBAAgB,UAAU,CACxB,MAAM,EAAE,qBAAqB,CAAC;IAC5B,UAAU,EAAE,UAAU,CAAA;IACtB,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,eAAe,CAAA;CAC9C,CAAC,GACD,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG;IACxF,UAAU,EAAE,UAAU,CAAA;IACtB,uBAAuB,EAAE,OAAO,CAAA;CACjC,CAqIA;AAED,wBAAgB,KAAK,CAAC,EACpB,KAAK,EACL,KAAK,EACL,QAAQ,EACR,SAAS,EACT,eAAe,EACf,UAAU,GACX,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,2CAiD/B"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../../../src/fields/types/integer/views","sources":["index.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,UAAU,EACV,mBAAmB,EACpB,mCAAyB;AAa1B,KAAK,KAAK,GACN;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GACxC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAA;AAEpE,KAAK,UAAU,GAAG;IAChB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAsBD,wBAAgB,UAAU,CACxB,MAAM,EAAE,qBAAqB,CAAC;IAC5B,UAAU,EAAE,UAAU,CAAA;IACtB,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,eAAe,CAAA;CAC9C,CAAC,GACD,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG;IACxF,UAAU,EAAE,UAAU,CAAA;IACtB,uBAAuB,EAAE,OAAO,CAAA;CACjC,CAqIA;AAED,wBAAgB,KAAK,CAAC,EACpB,KAAK,EACL,KAAK,EACL,QAAQ,EACR,SAAS,EACT,eAAe,EACf,UAAU,GACX,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,2CAiD/B;AAED,eAAO,MAAM,IAAI,EAAE,aAAa,CAAC,OAAO,UAAU,CAEjD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../../../src/fields/types/json/views","sources":["index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../../../src/fields/types/json/views","sources":["index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,UAAU,EACV,SAAS,EACV,mCAAyB;AAE1B,eAAO,MAAM,KAAK,GAAI,OAAO,UAAU,CAAC,OAAO,UAAU,CAAC,4CAwBzD,CAAA;AAYD,eAAO,MAAM,IAAI,EAAE,aAAa,CAAC,OAAO,UAAU,CAKjD,CAAA;AAED,KAAK,MAAM,GAAG,qBAAqB,CAAC;IAAE,YAAY,EAAE,SAAS,CAAA;CAAE,CAAC,CAAA;AAEhE,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe,CAAC,MAAM,EAAE,MAAM,CAAC,CAkC1E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../../../src/fields/types/multiselect/views","sources":["index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,UAAU,EACX,mCAAyB;AAE1B,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,2CAGzD;AAsED,eAAO,MAAM,IAAI,EAAE,aAAa,CAAC,OAAO,UAAU,CAUjD,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,OAAO,EAAE,SAAS;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,EAAE,CAAA;IAC7D,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAA;IACnC,WAAW,EAAE,YAAY,GAAG,QAAQ,CAAA;IACpC,YAAY,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAA;CAClC,CAAA;AAED,KAAK,MAAM,GAAG,qBAAqB,CAAC,yBAAyB,CAAC,CAAA;AAC9D,KAAK,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAC9C,KAAK,KAAK,GAAG,SAAS,MAAM,EAAE,CAAA;AAE9B,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,GAAG;IAC7E,WAAW,EAAE,YAAY,GAAG,QAAQ,CAAA;IACpC,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAA;IACnC,+BAA+B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACxD,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../../../src/fields/types/multiselect/views","sources":["index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,UAAU,EACX,mCAAyB;AAE1B,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,2CAGzD;AAsED,eAAO,MAAM,IAAI,EAAE,aAAa,CAAC,OAAO,UAAU,CAUjD,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,OAAO,EAAE,SAAS;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,EAAE,CAAA;IAC7D,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAA;IACnC,WAAW,EAAE,YAAY,GAAG,QAAQ,CAAA;IACpC,YAAY,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAA;CAClC,CAAA;AAED,KAAK,MAAM,GAAG,qBAAqB,CAAC,yBAAyB,CAAC,CAAA;AAC9D,KAAK,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAC9C,KAAK,KAAK,GAAG,SAAS,MAAM,EAAE,CAAA;AAE9B,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,GAAG;IAC7E,WAAW,EAAE,YAAY,GAAG,QAAQ,CAAA;IACpC,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAA;IACnC,+BAA+B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACxD,CAmCA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../../../src/fields/types/relationship/views","sources":["index.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACV,aAAa,EACb,qBAAqB,EACrB,UAAU,EACV,wBAAwB,EACzB,mCAAyB;AAK1B,OAAO,EAAE,YAAY,EAAE,0BAAsB;AAC7C,OAAO,EAAE,cAAc,EAAE,4BAAwB;AAMjD,OAAO,KAAK,EAAE,sBAAsB,EAAqB,mBAAe;AAExE,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,CAAA;AAEvC,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../../../src/fields/types/relationship/views","sources":["index.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACV,aAAa,EACb,qBAAqB,EACrB,UAAU,EACV,wBAAwB,EACzB,mCAAyB;AAK1B,OAAO,EAAE,YAAY,EAAE,0BAAsB;AAC7C,OAAO,EAAE,cAAc,EAAE,4BAAwB;AAMjD,OAAO,KAAK,EAAE,sBAAsB,EAAqB,mBAAe;AAExE,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,CAAA;AAEvC,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,2CAgKzD;AASD,eAAO,MAAM,IAAI,EAAE,aAAa,CAAC,OAAO,UAAU,CAwBjD,CAAA;AAED,wBAAgB,UAAU,CACxB,MAAM,EAAE,qBAAqB,CAC3B;IACE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,OAAO,CAAA;IACb,UAAU,EAAE,OAAO,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,eAAe,EAAE,MAAM,EAAE,CAAA;CAC1B,GAAG,CACA;IACE,WAAW,EAAE,QAAQ,CAAA;IACrB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAA;IAClC,IAAI,EAAE,wBAAwB,CAAC,MAAM,CAAC,GAAG,IAAI,CAAA;CAC9C,GACD;IAAE,WAAW,EAAE,OAAO,CAAA;CAAE,GACxB;IACE,WAAW,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,wBAAwB,CAAC,MAAM,CAAC,GAAG,IAAI,CAAA;IACpD,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;CACzB,CACJ,CACF,GACA,sBAAsB,CAgPxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../../../src/fields/types/select/views","sources":["index.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,UAAU,EACV,mBAAmB,EACpB,mCAAyB;AAE1B,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,2CA4HzD;AAED,eAAO,MAAM,IAAI,EAAE,aAAa,CAAC,OAAO,UAAU,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../../../src/fields/types/select/views","sources":["index.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,UAAU,EACV,mBAAmB,EACpB,mCAAyB;AAE1B,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,2CA4HzD;AAED,eAAO,MAAM,IAAI,EAAE,aAAa,CAAC,OAAO,UAAU,CAIjD,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,EAAE,SAAS;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,EAAE,CAAA;IAC7D,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAA;IACnC,WAAW,EAAE,QAAQ,GAAG,mBAAmB,GAAG,OAAO,CAAA;IACrD,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;CACrC,CAAA;AAED,KAAK,MAAM,GAAG,qBAAqB,CAAC,oBAAoB,CAAC,CAAA;AACzD,KAAK,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAC9C,KAAK,KAAK,GACN;IAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,GACxC;IAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAA;AAuBpE,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe,CACzD,KAAK,EACL,MAAM,EAAE,EACR,mBAAmB,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CACjD,GAAG;IACF,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAA;IACnC,WAAW,EAAE,QAAQ,GAAG,mBAAmB,GAAG,OAAO,CAAA;CACtD,CAyHA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { TextFieldMeta } from "../index.js";
|
|
2
|
-
import type { FieldController, FieldControllerConfig, FieldProps, SimpleFieldTypeInfo } from "../../../../types/index.js";
|
|
2
|
+
import type { CellComponent, FieldController, FieldControllerConfig, FieldProps, SimpleFieldTypeInfo } from "../../../../types/index.js";
|
|
3
3
|
export declare function Field(props: FieldProps<typeof controller>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const Cell: CellComponent<typeof controller>;
|
|
4
5
|
type Config = FieldControllerConfig<TextFieldMeta>;
|
|
5
6
|
type Validation = {
|
|
6
7
|
match: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../../../src/fields/types/text/views","sources":["index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../../../src/fields/types/text/views","sources":["index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAU;AAGvC,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,UAAU,EACV,mBAAmB,EACpB,mCAAyB;AAE1B,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,2CAmEzD;AAED,eAAO,MAAM,IAAI,EAAE,aAAa,CAAC,OAAO,UAAU,CAEjD,CAAA;AAED,KAAK,MAAM,GAAG,qBAAqB,CAAC,aAAa,CAAC,CAAA;AAElD,KAAK,UAAU,GAAG;IAChB,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,GAAG,IAAI,CAAA;IAC3D,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAA;CACnD,CAAA;AAgDD,KAAK,cAAc,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AACvF,KAAK,SAAS,GACV;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,cAAc,CAAA;CAAE,GACzC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,cAAc,CAAC;IAAC,OAAO,EAAE,cAAc,CAAA;CAAE,CAAA;AAOtE,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe,CACzD,SAAS,EACT,MAAM,EACN,mBAAmB,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CACjD,GAAG;IACF,WAAW,EAAE,OAAO,GAAG,UAAU,CAAA;IACjC,UAAU,EAAE,UAAU,CAAA;IACtB,UAAU,EAAE,OAAO,CAAA;CACpB,CA8HA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../../../src/fields/types/timestamp/views","sources":["index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,UAAU,EACV,mBAAmB,EACpB,mCAAyB;AAE1B,OAAO,KAAK,EAAE,KAAK,EAAE,mBAAe;AAEpC,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../../../src/fields/types/timestamp/views","sources":["index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,UAAU,EACV,mBAAmB,EACpB,mCAAyB;AAE1B,OAAO,KAAK,EAAE,KAAK,EAAE,mBAAe;AAEpC,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,2CAyEzD;AA+BD,eAAO,MAAM,IAAI,EAAE,aAAa,CAAC,OAAO,UAAU,CAGjD,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,YAAY,EAAE,MAAM,GAAG;QAAE,IAAI,EAAE,KAAK,CAAA;KAAE,GAAG,IAAI,CAAA;IAC7C,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,qBAAqB,CAAC,kBAAkB,CAAC,GAAG,eAAe,CAC5F,KAAK,EACL,MAAM,GAAG,IAAI,EACb,mBAAmB,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CACnD,GAAG;IACF,SAAS,EAAE,kBAAkB,CAAA;CAC9B,CAuHA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../../../src/fields/types/virtual/views","sources":["index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,UAAU,EACX,mCAAyB;AAY1B,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../../../src/fields/types/virtual/views","sources":["index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,UAAU,EACX,mCAAyB;AAY1B,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,kDA4BzD;AAED,eAAO,MAAM,IAAI,EAAE,aAAa,CAAC,OAAO,UAAU,CAEjD,CAAA;AAID,wBAAgB,UAAU,CACxB,MAAM,EAAE,qBAAqB,CAAC;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,GAC/C,eAAe,CAAC,OAAO,CAAC,CAU1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../../../src/internal-unstable/admin-ui/pages/HomePage","sources":["index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../../../src/internal-unstable/admin-ui/pages/HomePage","sources":["index.tsx"],"names":[],"mappings":"AA8NA,wBAAgB,QAAQ,4CAuHvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../../../src/internal-unstable/admin-ui/pages/ItemPage","sources":["index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../../../src/internal-unstable/admin-ui/pages/ItemPage","sources":["index.tsx"],"names":[],"mappings":"AAkDA,KAAK,aAAa,GAAG;IACnB,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAmSD,eAAO,MAAM,WAAW,GAAI,OAAO,aAAa,kDAAkC,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Button } from '@keystar/ui/button';
|
|
2
|
+
import { Icon } from '@keystar/ui/icon';
|
|
3
|
+
import { plusIcon } from '@keystar/ui/icon/icons/plusIcon';
|
|
4
|
+
import { Text } from '@keystar/ui/typography';
|
|
5
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
function CreateButtonLink(props) {
|
|
8
|
+
const {
|
|
9
|
+
list,
|
|
10
|
+
children = `New ${list.singular}`
|
|
11
|
+
} = props;
|
|
12
|
+
return /*#__PURE__*/jsxs(Button, {
|
|
13
|
+
href: `/${list.path}/create`,
|
|
14
|
+
"aria-label": `New ${list.singular}`,
|
|
15
|
+
prominence: "high",
|
|
16
|
+
children: [/*#__PURE__*/jsx(Icon, {
|
|
17
|
+
src: plusIcon
|
|
18
|
+
}), /*#__PURE__*/jsx(Text, {
|
|
19
|
+
children: children
|
|
20
|
+
})]
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function pick(value, keys) {
|
|
25
|
+
const result = {};
|
|
26
|
+
for (const key of keys) {
|
|
27
|
+
if (Object.prototype.hasOwnProperty.call(value, key)) {
|
|
28
|
+
result[key] = value[key];
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return result;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { CreateButtonLink as C, pick as p };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var button = require('@keystar/ui/button');
|
|
4
|
+
var icon = require('@keystar/ui/icon');
|
|
5
|
+
var plusIcon = require('@keystar/ui/icon/icons/plusIcon');
|
|
6
|
+
var typography = require('@keystar/ui/typography');
|
|
7
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
+
|
|
9
|
+
function CreateButtonLink(props) {
|
|
10
|
+
const {
|
|
11
|
+
list,
|
|
12
|
+
children = `New ${list.singular}`
|
|
13
|
+
} = props;
|
|
14
|
+
return /*#__PURE__*/jsxRuntime.jsxs(button.Button, {
|
|
15
|
+
href: `/${list.path}/create`,
|
|
16
|
+
"aria-label": `New ${list.singular}`,
|
|
17
|
+
prominence: "high",
|
|
18
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(icon.Icon, {
|
|
19
|
+
src: plusIcon.plusIcon
|
|
20
|
+
}), /*#__PURE__*/jsxRuntime.jsx(typography.Text, {
|
|
21
|
+
children: children
|
|
22
|
+
})]
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function pick(value, keys) {
|
|
27
|
+
const result = {};
|
|
28
|
+
for (const key of keys) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(value, key)) {
|
|
30
|
+
result[key] = value[key];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return result;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
exports.CreateButtonLink = CreateButtonLink;
|
|
37
|
+
exports.pick = pick;
|