fastapi-rtk 2.7.0 → 2.8.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/dist/.bundled/jsonforms/cjs/_virtual/index10.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index3.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index4.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index5.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index6.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index7.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index8.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/_virtual/index9.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineFileInput.cjs +13 -4
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/MantineInputs/MantineObjectInput.cjs +23 -12
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineArrayControl/DeleteDialog.cjs +38 -7
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineArrayControl/MantineArrayControl.cjs +16 -11
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineTableControl/MantineTableControl.cjs +117 -23
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/complex/MantineTableControl/TableToolbar.cjs +30 -4
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useContextProps.cjs +5 -7
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useNavigationComponent.cjs +48 -13
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/hooks/useToolbarComponent.cjs +31 -11
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/labels/MantineLabelRenderer.cjs +9 -1
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/ArrayToolbar.cjs +15 -4
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/ExpandPanelRenderer.cjs +83 -18
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/Array/MantineArrayLayout.cjs +76 -43
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/MantineHotizontalLayoutRenderer.cjs +2 -2
- package/dist/.bundled/jsonforms/cjs/packages/jsonforms/src/layouts/MantineVerticalLayoutRenderer.cjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index10.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index3.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index4.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index5.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index6.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index7.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index8.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/_virtual/index9.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineFileInput.mjs +16 -7
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/MantineInputs/MantineObjectInput.mjs +23 -12
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineArrayControl/DeleteDialog.mjs +40 -9
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineArrayControl/MantineArrayControl.mjs +17 -12
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineTableControl/MantineTableControl.mjs +118 -24
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/complex/MantineTableControl/TableToolbar.mjs +31 -5
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useContextProps.mjs +5 -7
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useNavigationComponent.mjs +49 -14
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/hooks/useToolbarComponent.mjs +32 -12
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/labels/MantineLabelRenderer.mjs +9 -1
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Array/ArrayToolbar.mjs +16 -5
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Array/ExpandPanelRenderer.mjs +85 -20
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/Array/MantineArrayLayout.mjs +79 -46
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/MantineHotizontalLayoutRenderer.mjs +2 -2
- package/dist/.bundled/jsonforms/esm/packages/jsonforms/src/layouts/MantineVerticalLayoutRenderer.mjs +2 -2
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/compile/codegen/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/compile/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/compile/validate/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/applicator/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/core/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/discriminator/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/format/index.cjs +1 -1
- package/dist/.external/cjs/ajv@8.17.1/ajv/dist/vocabularies/validation/index.cjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/compile/codegen/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/compile/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/compile/validate/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/applicator/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/core/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/discriminator/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/format/index.mjs +1 -1
- package/dist/.external/esm/ajv@8.17.1/ajv/dist/vocabularies/validation/index.mjs +1 -1
- package/dist/jsonforms/cjs/MantineInputs/MantineFileInput.cjs +13 -4
- package/dist/jsonforms/cjs/MantineInputs/MantineObjectInput.cjs +23 -12
- package/dist/jsonforms/cjs/complex/MantineArrayControl/DeleteDialog.cjs +38 -7
- package/dist/jsonforms/cjs/complex/MantineArrayControl/MantineArrayControl.cjs +16 -11
- package/dist/jsonforms/cjs/complex/MantineTableControl/MantineTableControl.cjs +117 -23
- package/dist/jsonforms/cjs/complex/MantineTableControl/TableToolbar.cjs +30 -4
- package/dist/jsonforms/cjs/hooks/useContextProps.cjs +5 -7
- package/dist/jsonforms/cjs/hooks/useNavigationComponent.cjs +48 -13
- package/dist/jsonforms/cjs/hooks/useToolbarComponent.cjs +31 -11
- package/dist/jsonforms/cjs/labels/MantineLabelRenderer.cjs +9 -1
- package/dist/jsonforms/cjs/layouts/Array/ArrayToolbar.cjs +15 -4
- package/dist/jsonforms/cjs/layouts/Array/ExpandPanelRenderer.cjs +83 -18
- package/dist/jsonforms/cjs/layouts/Array/MantineArrayLayout.cjs +76 -43
- package/dist/jsonforms/cjs/layouts/MantineHotizontalLayoutRenderer.cjs +2 -2
- package/dist/jsonforms/cjs/layouts/MantineVerticalLayoutRenderer.cjs +2 -2
- package/dist/jsonforms/esm/MantineInputs/MantineFileInput.mjs +16 -7
- package/dist/jsonforms/esm/MantineInputs/MantineObjectInput.mjs +23 -12
- package/dist/jsonforms/esm/complex/MantineArrayControl/DeleteDialog.mjs +40 -9
- package/dist/jsonforms/esm/complex/MantineArrayControl/MantineArrayControl.mjs +17 -12
- package/dist/jsonforms/esm/complex/MantineTableControl/MantineTableControl.mjs +118 -24
- package/dist/jsonforms/esm/complex/MantineTableControl/TableToolbar.mjs +31 -5
- package/dist/jsonforms/esm/hooks/useContextProps.mjs +5 -7
- package/dist/jsonforms/esm/hooks/useNavigationComponent.mjs +49 -14
- package/dist/jsonforms/esm/hooks/useToolbarComponent.mjs +32 -12
- package/dist/jsonforms/esm/labels/MantineLabelRenderer.mjs +9 -1
- package/dist/jsonforms/esm/layouts/Array/ArrayToolbar.mjs +16 -5
- package/dist/jsonforms/esm/layouts/Array/ExpandPanelRenderer.mjs +85 -20
- package/dist/jsonforms/esm/layouts/Array/MantineArrayLayout.mjs +79 -46
- package/dist/jsonforms/esm/layouts/MantineHotizontalLayoutRenderer.mjs +2 -2
- package/dist/jsonforms/esm/layouts/MantineVerticalLayoutRenderer.mjs +2 -2
- package/dist/jsonforms/lib/MantineInputs/MantineObjectInput.d.ts +1 -1
- package/dist/jsonforms/lib/complex/MantineTableControl/MantineTableControl.customizer.test.d.ts +1 -0
- package/dist/jsonforms/lib/complex/MantineTableControl/types.d.ts +1 -0
- package/dist/jsonforms/lib/hooks/useContextProps.d.ts +3 -1
- package/dist/jsonforms/lib/hooks/useNavigationComponent.d.ts +1 -1
- package/dist/jsonforms/lib/layouts/Array/ExpandPanelRenderer.d.ts +1 -1
- package/dist/jsonforms/lib/layouts/Array/MantineArrayLayout.d.ts +1 -1
- package/dist/utils/cjs/deepMerge/deepMerge.cjs +1 -1
- package/dist/utils/esm/deepMerge/deepMerge.mjs +1 -1
- package/dist/utils/lib/deepMerge/deepMerge.d.ts +2 -0
- package/package.json +1 -1
|
@@ -68,8 +68,18 @@ const getValidColumnProps = (scopedSchema) => {
|
|
|
68
68
|
return [""];
|
|
69
69
|
};
|
|
70
70
|
const EmptyTable = (props) => {
|
|
71
|
-
const { numColumns, translations } = props;
|
|
72
|
-
|
|
71
|
+
const { numColumns, translations, path } = props;
|
|
72
|
+
const [EmptyComponent, _emptyProps] = useContextProps.useContextProps(
|
|
73
|
+
"Table.Empty",
|
|
74
|
+
`${path}.Empty`,
|
|
75
|
+
{
|
|
76
|
+
colSpan: numColumns,
|
|
77
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(NoBorderTableCell.NoBorderTableCell, { colSpan: numColumns, children: /* @__PURE__ */ jsxRuntime.jsx(core.Text, { ta: "center", children: translations.noDataMessage }) })
|
|
78
|
+
},
|
|
79
|
+
props,
|
|
80
|
+
{ withAllProps: false }
|
|
81
|
+
);
|
|
82
|
+
return EmptyComponent === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Table.Tr, { ..._emptyProps }) : EmptyComponent;
|
|
73
83
|
};
|
|
74
84
|
const TableHeaderCell = React.memo(function TableHeaderCell2(props) {
|
|
75
85
|
const { title, rowPath, propName, index } = props;
|
|
@@ -121,24 +131,57 @@ const NonEmptyCellComponent = React.memo(function NonEmptyCellComponent2(props)
|
|
|
121
131
|
[path, propName]
|
|
122
132
|
);
|
|
123
133
|
const index = React.useMemo(() => path.split(".").slice(-1)[0], [path]);
|
|
134
|
+
const rowIndex = React.useMemo(() => path.split(".")[originalPath.split(".").length], [path, originalPath]);
|
|
124
135
|
const generalRowProps = core.useProps("Table.Row", {}, {});
|
|
125
136
|
const arrayRowProps = core.useProps(originalPath, {}, {});
|
|
126
137
|
const indexedRowProps = core.useProps(`Table.Row.${index}`, {}, {});
|
|
138
|
+
const propRowProps = core.useProps(propName ? `${originalPath}.${propName}` : path, {}, {});
|
|
139
|
+
const numberedRowProps = core.useProps(propName ? `Table.Row.${rowIndex}.${propName}` : `Table.Row.${rowIndex}`, {}, {});
|
|
127
140
|
const specificRowProps = core.useProps(path, {}, {});
|
|
128
141
|
const { component, props: _props } = React.useMemo(
|
|
129
142
|
// #MUSTASSERT user-configured MantineThemeProvider row overrides flow through deepMerge as `{}`; narrow to the RowOverride shape consumed below
|
|
130
|
-
() => utils.deepMerge(
|
|
131
|
-
|
|
143
|
+
() => utils.deepMerge(
|
|
144
|
+
generalRowProps,
|
|
145
|
+
arrayRowProps,
|
|
146
|
+
indexedRowProps,
|
|
147
|
+
propRowProps,
|
|
148
|
+
numberedRowProps,
|
|
149
|
+
specificRowProps
|
|
150
|
+
),
|
|
151
|
+
[generalRowProps, arrayRowProps, indexedRowProps, propRowProps, numberedRowProps, specificRowProps]
|
|
132
152
|
);
|
|
133
153
|
const theme = useThemeCustomizer.useThemeCustomizer({ [path]: { component, props: _props } });
|
|
134
154
|
const [, _tdProps] = useContextProps.useContextProps("Table.Row.Td", `${originalPath}.Td`, { maw: 0 }, props, {
|
|
135
155
|
withAllProps: false
|
|
136
156
|
});
|
|
137
|
-
const [, __tdProps] = useContextProps.useContextProps(
|
|
157
|
+
const [, __tdProps] = useContextProps.useContextProps(
|
|
158
|
+
`Table.Row.${index}.Td`,
|
|
159
|
+
propName ? `${originalPath}.${propName}.Td` : `${path}.Td`,
|
|
160
|
+
{},
|
|
161
|
+
props,
|
|
162
|
+
{
|
|
163
|
+
withAllProps: false,
|
|
164
|
+
withComponentProps: false
|
|
165
|
+
}
|
|
166
|
+
);
|
|
167
|
+
const [, ___tdProps] = useContextProps.useContextProps(`${path}.Td`, `${path}.Td`, {}, props, {
|
|
138
168
|
withAllProps: false,
|
|
139
169
|
withComponentProps: false
|
|
140
170
|
});
|
|
141
|
-
const
|
|
171
|
+
const [, _numberedTdProps] = useContextProps.useContextProps(
|
|
172
|
+
propName ? `Table.Row.${rowIndex}.${propName}.Td` : `Table.Row.${rowIndex}.Td`,
|
|
173
|
+
propName ? `Table.Row.${rowIndex}.${propName}.Td` : `Table.Row.${rowIndex}.Td`,
|
|
174
|
+
{},
|
|
175
|
+
props,
|
|
176
|
+
{
|
|
177
|
+
withAllProps: false,
|
|
178
|
+
withComponentProps: false
|
|
179
|
+
}
|
|
180
|
+
);
|
|
181
|
+
const tdProps = React.useMemo(
|
|
182
|
+
() => utils.deepMerge(_tdProps, __tdProps, _numberedTdProps, ___tdProps),
|
|
183
|
+
[_tdProps, __tdProps, _numberedTdProps, ___tdProps]
|
|
184
|
+
);
|
|
142
185
|
return /* @__PURE__ */ jsxRuntime.jsx(core.MantineThemeProvider, { theme, children: /* @__PURE__ */ jsxRuntime.jsx(NoBorderTableCell.NoBorderTableCell, { ...tdProps, children: schema.properties ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
143
186
|
react.DispatchCell,
|
|
144
187
|
{
|
|
@@ -182,9 +225,19 @@ const NonEmptyRowComponent = (props) => {
|
|
|
182
225
|
withAllProps: false
|
|
183
226
|
});
|
|
184
227
|
const trProps = React.useMemo(() => utils.deepMerge(_trProps, __trProps), [_trProps, __trProps]);
|
|
228
|
+
const [ActionsComponent, _actionsProps] = useContextProps.useContextProps(
|
|
229
|
+
"Table.Row.Actions",
|
|
230
|
+
`${childPath}.Row.Actions`,
|
|
231
|
+
{
|
|
232
|
+
style: showSortButtons ? styles.fixedCell : styles.fixedCellSmall,
|
|
233
|
+
children: NavigationComponent
|
|
234
|
+
},
|
|
235
|
+
props,
|
|
236
|
+
{ withAllProps: false }
|
|
237
|
+
);
|
|
185
238
|
return /* @__PURE__ */ jsxRuntime.jsxs(core.Table.Tr, { ...trProps, children: [
|
|
186
239
|
generateCells(NonEmptyCell, schema, childPath, enabled, cells),
|
|
187
|
-
NavigationComponent ? /* @__PURE__ */ jsxRuntime.jsx(NoBorderTableCell.NoBorderTableCell, {
|
|
240
|
+
NavigationComponent ? ActionsComponent === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(NoBorderTableCell.NoBorderTableCell, { ..._actionsProps }) : ActionsComponent : null
|
|
188
241
|
] }, childPath);
|
|
189
242
|
};
|
|
190
243
|
const NonEmptyRow = React.memo(NonEmptyRowComponent);
|
|
@@ -205,7 +258,7 @@ const TableRows = (props) => {
|
|
|
205
258
|
} = props;
|
|
206
259
|
const isEmptyTable = data === 0;
|
|
207
260
|
if (isEmptyTable) {
|
|
208
|
-
return /* @__PURE__ */ jsxRuntime.jsx(EmptyTable, { numColumns: getValidColumnProps(schema).length + 1, translations });
|
|
261
|
+
return /* @__PURE__ */ jsxRuntime.jsx(EmptyTable, { numColumns: getValidColumnProps(schema).length + 1, translations, path });
|
|
209
262
|
}
|
|
210
263
|
const appliedUiSchemaOptions = merge({}, config, uischema.options);
|
|
211
264
|
return range(data).map((index) => {
|
|
@@ -256,13 +309,32 @@ const MantineTableControl = React.memo(function MantineTableControl2(props) {
|
|
|
256
309
|
const headerCells = isObjectSchema ? generateCells(TableHeaderCell, schema, path, enabled, cells) : void 0;
|
|
257
310
|
const isEnabled = enabled && !doDisableAdd;
|
|
258
311
|
const headerErrors = useArrayHeaderErrors.useArrayHeaderErrors(path, schema);
|
|
259
|
-
const [
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
312
|
+
const [HeaderActionsComponent, _headerActionsProps] = useContextProps.useContextProps(
|
|
313
|
+
"Table.Header.Actions",
|
|
314
|
+
`${path}.Header.Actions`,
|
|
315
|
+
{},
|
|
316
|
+
props,
|
|
317
|
+
{ withAllProps: false }
|
|
318
|
+
);
|
|
319
|
+
const headerActionsEl = HeaderActionsComponent === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Table.Th, { ..._headerActionsProps }) : HeaderActionsComponent;
|
|
320
|
+
const [HeaderTrComponent, _headerTrProps] = useContextProps.useContextProps(
|
|
321
|
+
"Table.Header.Tr",
|
|
322
|
+
`${path}.Header.Tr`,
|
|
323
|
+
{
|
|
324
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
325
|
+
headerCells,
|
|
326
|
+
isEnabled ? headerActionsEl : null
|
|
327
|
+
] })
|
|
328
|
+
},
|
|
329
|
+
props,
|
|
330
|
+
{ withAllProps: false }
|
|
331
|
+
);
|
|
332
|
+
const headerTrEl = HeaderTrComponent === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Table.Tr, { ..._headerTrProps }) : HeaderTrComponent;
|
|
333
|
+
const [TheadComponent, _theadProps] = useContextProps.useContextProps(
|
|
334
|
+
"Table.Thead",
|
|
335
|
+
`${path}.Thead`,
|
|
336
|
+
{
|
|
337
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
266
338
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
267
339
|
TableToolbar.TableToolbar,
|
|
268
340
|
{
|
|
@@ -279,15 +351,37 @@ const MantineTableControl = React.memo(function MantineTableControl2(props) {
|
|
|
279
351
|
translations
|
|
280
352
|
}
|
|
281
353
|
),
|
|
282
|
-
isObjectSchema &&
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
354
|
+
isObjectSchema && headerTrEl
|
|
355
|
+
] })
|
|
356
|
+
},
|
|
357
|
+
props,
|
|
358
|
+
{ withAllProps: false }
|
|
359
|
+
);
|
|
360
|
+
const theadEl = TheadComponent === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Table.Thead, { ..._theadProps }) : TheadComponent;
|
|
361
|
+
const [TbodyComponent, _tbodyProps] = useContextProps.useContextProps(
|
|
362
|
+
"Table.Tbody",
|
|
363
|
+
`${path}.Tbody`,
|
|
364
|
+
{ children: /* @__PURE__ */ jsxRuntime.jsx(TableRows, { ...props, disableRemove: doDisableRemove }) },
|
|
365
|
+
props,
|
|
366
|
+
{ withAllProps: false }
|
|
367
|
+
);
|
|
368
|
+
const tbodyEl = TbodyComponent === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Table.Tbody, { ..._tbodyProps }) : TbodyComponent;
|
|
369
|
+
const [Component, _props] = useContextProps.useContextProps(
|
|
370
|
+
"Table",
|
|
371
|
+
`${path}.Table`,
|
|
372
|
+
{
|
|
373
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
374
|
+
theadEl,
|
|
375
|
+
tbodyEl
|
|
376
|
+
] })
|
|
377
|
+
},
|
|
378
|
+
props,
|
|
379
|
+
{ withAllProps: false }
|
|
380
|
+
);
|
|
381
|
+
if (!visible) {
|
|
382
|
+
return null;
|
|
289
383
|
}
|
|
290
|
-
return Component;
|
|
384
|
+
return Component === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Table, { ..._props }) : Component;
|
|
291
385
|
});
|
|
292
386
|
exports.MantineTableControl = MantineTableControl;
|
|
293
387
|
exports.NonEmptyRow = NonEmptyRow;
|
|
@@ -4,6 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const core = require("@jsonforms/core");
|
|
5
5
|
const core$1 = require("@mantine/core");
|
|
6
6
|
const React = require("react");
|
|
7
|
+
const useContextProps = require("../../hooks/useContextProps.cjs");
|
|
7
8
|
const useToolbarComponent = require("../../hooks/useToolbarComponent.cjs");
|
|
8
9
|
const NoBorderTableCell = require("./NoBorderTableCell.cjs");
|
|
9
10
|
const fixedCellSmall = {
|
|
@@ -18,9 +19,34 @@ const TableToolbar = React.memo(function TableToolbar2(props) {
|
|
|
18
19
|
onAdd: addItem(path, core.createDefaultValue(schema, rootSchema)),
|
|
19
20
|
...props
|
|
20
21
|
});
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
const [ToolbarCell, _toolbarCellProps] = useContextProps.useContextProps(
|
|
23
|
+
"Table.Header.Toolbar.Cell",
|
|
24
|
+
`${path}.Header.Toolbar.Cell`,
|
|
25
|
+
{ p: 0, colSpan: numColumns, children: ToolbarComponent },
|
|
26
|
+
props,
|
|
27
|
+
{ withAllProps: false }
|
|
28
|
+
);
|
|
29
|
+
const [ToolbarAddCell, _toolbarAddCellProps] = useContextProps.useContextProps(
|
|
30
|
+
"Table.Header.Toolbar.Add",
|
|
31
|
+
`${path}.Header.Toolbar.Add`,
|
|
32
|
+
{ p: 0, align: "right", style: fixedCellSmall, children: ToolbarAdd },
|
|
33
|
+
props,
|
|
34
|
+
{ withAllProps: false }
|
|
35
|
+
);
|
|
36
|
+
const toolbarCellEl = ToolbarCell === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(NoBorderTableCell.NoBorderTableCell, { ..._toolbarCellProps }) : ToolbarCell;
|
|
37
|
+
const toolbarAddCellEl = ToolbarAddCell === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(NoBorderTableCell.NoBorderTableCell, { ..._toolbarAddCellProps }) : ToolbarAddCell;
|
|
38
|
+
const [ToolbarTr, _toolbarTrProps] = useContextProps.useContextProps(
|
|
39
|
+
"Table.Header.Toolbar",
|
|
40
|
+
`${path}.Header.Toolbar`,
|
|
41
|
+
{
|
|
42
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
43
|
+
toolbarCellEl,
|
|
44
|
+
enabled && ToolbarAdd && toolbarAddCellEl
|
|
45
|
+
] })
|
|
46
|
+
},
|
|
47
|
+
props,
|
|
48
|
+
{ withAllProps: false }
|
|
49
|
+
);
|
|
50
|
+
return ToolbarTr === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core$1.Table.Tr, { ..._toolbarTrProps }) : ToolbarTr;
|
|
25
51
|
});
|
|
26
52
|
exports.TableToolbar = TableToolbar;
|
|
@@ -13,12 +13,10 @@ function useContextProps(name, path, componentProps, jsonFormsProps, { withAllPr
|
|
|
13
13
|
() => utils.deepMerge(withAllProps ? allProps : void 0, _componentProps, contextProps),
|
|
14
14
|
[_componentProps, allProps, contextProps, withAllProps]
|
|
15
15
|
);
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
{
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
];
|
|
16
|
+
const mergedProps = {
|
|
17
|
+
...withComponentProps ? componentProps : {},
|
|
18
|
+
...utils.parseFromValuesOrFunc(props, { componentProps, jsonFormsProps })
|
|
19
|
+
};
|
|
20
|
+
return [utils.parseFromValuesOrFunc(component, { componentProps: mergedProps, jsonFormsProps }), mergedProps];
|
|
23
21
|
}
|
|
24
22
|
exports.useContextProps = useContextProps;
|
|
@@ -20,7 +20,8 @@ const useNavigationComponent = (props) => {
|
|
|
20
20
|
["aria-label"]: translations == null ? void 0 : translations.upAriaLabel,
|
|
21
21
|
onClick: onUp,
|
|
22
22
|
disabled: !enableUp,
|
|
23
|
-
...iconProps
|
|
23
|
+
...iconProps,
|
|
24
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(arrowUp, {})
|
|
24
25
|
},
|
|
25
26
|
rest,
|
|
26
27
|
{ withAllProps: false }
|
|
@@ -33,7 +34,8 @@ const useNavigationComponent = (props) => {
|
|
|
33
34
|
["aria-label"]: translations == null ? void 0 : translations.downAriaLabel,
|
|
34
35
|
onClick: onDown,
|
|
35
36
|
disabled: !enableDown,
|
|
36
|
-
...iconProps
|
|
37
|
+
...iconProps,
|
|
38
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(arrowDown, {})
|
|
37
39
|
},
|
|
38
40
|
rest,
|
|
39
41
|
{ withAllProps: false }
|
|
@@ -46,22 +48,44 @@ const useNavigationComponent = (props) => {
|
|
|
46
48
|
title: translations == null ? void 0 : translations.removeTooltip,
|
|
47
49
|
["aria-label"]: translations == null ? void 0 : translations.removeAriaLabel,
|
|
48
50
|
onClick: onDelete,
|
|
49
|
-
...iconProps
|
|
51
|
+
...iconProps,
|
|
52
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(trash, {})
|
|
50
53
|
},
|
|
51
54
|
rest,
|
|
52
55
|
{ withAllProps: false }
|
|
53
56
|
);
|
|
57
|
+
const [ComponentUpCol, _up_col_props] = useContextProps.useContextProps(
|
|
58
|
+
`${componentName}.${componentIdentifier}.Up.Col`,
|
|
59
|
+
`${childPath}.${componentIdentifier}.Up.Col`,
|
|
60
|
+
{ span: "content", children: /* @__PURE__ */ jsxRuntime.jsx(core.ActionIcon, { ..._up_props }) },
|
|
61
|
+
rest,
|
|
62
|
+
{ withAllProps: false }
|
|
63
|
+
);
|
|
64
|
+
const [ComponentDownCol, _down_col_props] = useContextProps.useContextProps(
|
|
65
|
+
`${componentName}.${componentIdentifier}.Down.Col`,
|
|
66
|
+
`${childPath}.${componentIdentifier}.Down.Col`,
|
|
67
|
+
{ span: "content", children: /* @__PURE__ */ jsxRuntime.jsx(core.ActionIcon, { ..._down_props }) },
|
|
68
|
+
rest,
|
|
69
|
+
{ withAllProps: false }
|
|
70
|
+
);
|
|
71
|
+
const [ComponentRemoveCol, _remove_col_props] = useContextProps.useContextProps(
|
|
72
|
+
`${componentName}.${componentIdentifier}.Remove.Col`,
|
|
73
|
+
`${childPath}.${componentIdentifier}.Remove.Col`,
|
|
74
|
+
{ span: "content", children: /* @__PURE__ */ jsxRuntime.jsx(core.ActionIcon, { ..._remove_props }) },
|
|
75
|
+
rest,
|
|
76
|
+
{ withAllProps: false }
|
|
77
|
+
);
|
|
54
78
|
const ActionIconUp = React.useMemo(
|
|
55
|
-
() => ComponentUp === void 0 ?
|
|
56
|
-
[ComponentUp,
|
|
79
|
+
() => ComponentUp === void 0 ? ComponentUpCol === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Grid.Col, { ..._up_col_props }) : ComponentUpCol : ComponentUp,
|
|
80
|
+
[ComponentUp, ComponentUpCol, _up_col_props]
|
|
57
81
|
);
|
|
58
82
|
const ActionIconDown = React.useMemo(
|
|
59
|
-
() => ComponentDown === void 0 ?
|
|
60
|
-
[ComponentDown,
|
|
83
|
+
() => ComponentDown === void 0 ? ComponentDownCol === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Grid.Col, { ..._down_col_props }) : ComponentDownCol : ComponentDown,
|
|
84
|
+
[ComponentDown, ComponentDownCol, _down_col_props]
|
|
61
85
|
);
|
|
62
86
|
const ActionIconRemove = React.useMemo(
|
|
63
|
-
() => ComponentRemove === void 0 ?
|
|
64
|
-
[ComponentRemove,
|
|
87
|
+
() => ComponentRemove === void 0 ? ComponentRemoveCol === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Grid.Col, { ..._remove_col_props }) : ComponentRemoveCol : ComponentRemove,
|
|
88
|
+
[ComponentRemove, ComponentRemoveCol, _remove_col_props]
|
|
65
89
|
);
|
|
66
90
|
const SortButtons = React.useMemo(
|
|
67
91
|
() => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -76,9 +100,20 @@ const useNavigationComponent = (props) => {
|
|
|
76
100
|
);
|
|
77
101
|
const enableRemove = React.useMemo(() => !disableRemove && !!ActionIconRemove, [disableRemove, ActionIconRemove]);
|
|
78
102
|
const showComponent = React.useMemo(() => enableSort || enableRemove, [enableSort, enableRemove]);
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
103
|
+
const [ComponentGrid, _grid_props] = useContextProps.useContextProps(
|
|
104
|
+
`${componentName}.${componentIdentifier}.Grid`,
|
|
105
|
+
`${childPath}.${componentIdentifier}.Grid`,
|
|
106
|
+
{
|
|
107
|
+
justify: "flex-end",
|
|
108
|
+
align: "center",
|
|
109
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
110
|
+
enableSort && SortButtons,
|
|
111
|
+
enableRemove && ActionIconRemove
|
|
112
|
+
] })
|
|
113
|
+
},
|
|
114
|
+
rest,
|
|
115
|
+
{ withAllProps: false }
|
|
116
|
+
);
|
|
117
|
+
return showComponent ? ComponentGrid === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Grid, { ..._grid_props }) : ComponentGrid : void 0;
|
|
83
118
|
};
|
|
84
119
|
exports.useNavigationComponent = useNavigationComponent;
|
|
@@ -66,7 +66,8 @@ const useToolbarComponent = (props) => {
|
|
|
66
66
|
id: "tooltip-add",
|
|
67
67
|
title: translations == null ? void 0 : translations.addTooltip,
|
|
68
68
|
onClick: onAdd,
|
|
69
|
-
...iconProps
|
|
69
|
+
...iconProps,
|
|
70
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(plus, {})
|
|
70
71
|
},
|
|
71
72
|
rest,
|
|
72
73
|
{}
|
|
@@ -74,17 +75,36 @@ const useToolbarComponent = (props) => {
|
|
|
74
75
|
const TextLabel = ComponentLabel === void 0 ? (_label_props == null ? void 0 : _label_props.value) ? /* @__PURE__ */ jsxRuntime.jsx(core.Input.Label, { children: _label_props == null ? void 0 : _label_props.value }) : null : ComponentLabel;
|
|
75
76
|
const TextDescription = ComponentDescription === void 0 ? (_description_props == null ? void 0 : _description_props.value) ? /* @__PURE__ */ jsxRuntime.jsx(core.Input.Description, { children: _description_props == null ? void 0 : _description_props.value }) : null : ComponentDescription;
|
|
76
77
|
const IconValidation = ComponentValidation === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(ValidationIcon, { ..._validation_props }) : ComponentValidation;
|
|
77
|
-
const ActionIconAdd = ComponentAdd === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.ActionIcon, { ..._add_props
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
const ActionIconAdd = ComponentAdd === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.ActionIcon, { ..._add_props }) : ComponentAdd;
|
|
79
|
+
const [ComponentFlex, _flex_props] = useContextProps.useContextProps(
|
|
80
|
+
`${componentName}.${componentIdentifier}.Flex`,
|
|
81
|
+
`${path}.${componentIdentifier}.Flex`,
|
|
82
|
+
{
|
|
83
|
+
justify: "flex-start",
|
|
84
|
+
align: "center",
|
|
85
|
+
gap: "sm",
|
|
86
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
82
87
|
TextLabel,
|
|
83
88
|
IconValidation
|
|
84
|
-
] })
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
+
] })
|
|
90
|
+
},
|
|
91
|
+
rest,
|
|
92
|
+
{ withAllProps: false }
|
|
93
|
+
);
|
|
94
|
+
const flexEl = ComponentFlex === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Flex, { ..._flex_props }) : ComponentFlex;
|
|
95
|
+
const [ComponentWrapper, _wrapper_props] = useContextProps.useContextProps(
|
|
96
|
+
`${componentName}.${componentIdentifier}.Wrapper`,
|
|
97
|
+
`${path}.${componentIdentifier}.Wrapper`,
|
|
98
|
+
{
|
|
99
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
100
|
+
flexEl,
|
|
101
|
+
TextDescription
|
|
102
|
+
] })
|
|
103
|
+
},
|
|
104
|
+
rest,
|
|
105
|
+
{ withAllProps: false }
|
|
106
|
+
);
|
|
107
|
+
const wrapperEl = ComponentWrapper === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Input.Wrapper, { ..._wrapper_props }) : ComponentWrapper;
|
|
108
|
+
return [wrapperEl, ActionIconAdd];
|
|
89
109
|
};
|
|
90
110
|
exports.useToolbarComponent = useToolbarComponent;
|
|
@@ -4,12 +4,20 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const core = require("@jsonforms/core");
|
|
5
5
|
const react = require("@jsonforms/react");
|
|
6
6
|
const core$1 = require("@mantine/core");
|
|
7
|
+
const useContextProps = require("../hooks/useContextProps.cjs");
|
|
7
8
|
const Component = (props) => {
|
|
8
9
|
const { text, visible } = props;
|
|
10
|
+
const [CustomComponent, _props] = useContextProps.useContextProps(
|
|
11
|
+
"Label",
|
|
12
|
+
`Label.${text}`,
|
|
13
|
+
{ fw: "bold", size: "xl", children: text },
|
|
14
|
+
props,
|
|
15
|
+
{ withAllProps: false }
|
|
16
|
+
);
|
|
9
17
|
if (!visible) {
|
|
10
18
|
return null;
|
|
11
19
|
}
|
|
12
|
-
return /* @__PURE__ */ jsxRuntime.jsx(core$1.Title, {
|
|
20
|
+
return CustomComponent === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core$1.Title, { ..._props }) : CustomComponent;
|
|
13
21
|
};
|
|
14
22
|
const mantineLabelTester = core.rankWith(1, core.isLabelable);
|
|
15
23
|
const MantineLabelRenderer = react.withJsonFormsLabelProps(Component);
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const core = require("@mantine/core");
|
|
5
5
|
const React = require("react");
|
|
6
|
+
const useContextProps = require("../../hooks/useContextProps.cjs");
|
|
6
7
|
const useToolbarComponent = require("../../hooks/useToolbarComponent.cjs");
|
|
7
8
|
const ArrayLayoutToolbar = React.memo(function ArrayLayoutToolbar2(props) {
|
|
8
9
|
const { addItem, path, enabled, createDefault } = props;
|
|
@@ -12,9 +13,19 @@ const ArrayLayoutToolbar = React.memo(function ArrayLayoutToolbar2(props) {
|
|
|
12
13
|
onAdd: addItem(path, createDefault()),
|
|
13
14
|
...props
|
|
14
15
|
});
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
const [ToolbarGroup, _toolbarGroupProps] = useContextProps.useContextProps(
|
|
17
|
+
"Array.Header.Group",
|
|
18
|
+
`${path}.Header.Group`,
|
|
19
|
+
{
|
|
20
|
+
justify: "space-between",
|
|
21
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
22
|
+
ToolbarComponent,
|
|
23
|
+
enabled && ToolbarAdd
|
|
24
|
+
] })
|
|
25
|
+
},
|
|
26
|
+
props,
|
|
27
|
+
{ withAllProps: false }
|
|
28
|
+
);
|
|
29
|
+
return ToolbarGroup === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core.Group, { ..._toolbarGroupProps }) : ToolbarGroup;
|
|
19
30
|
});
|
|
20
31
|
exports.ArrayLayoutToolbar = ArrayLayoutToolbar;
|
|
@@ -6,6 +6,7 @@ const react = require("@jsonforms/react");
|
|
|
6
6
|
const core$1 = require("@mantine/core");
|
|
7
7
|
const merge = require("../../_virtual/merge.cjs");
|
|
8
8
|
const React = require("react");
|
|
9
|
+
const useContextProps = require("../../hooks/useContextProps.cjs");
|
|
9
10
|
const useNavigationComponent = require("../../hooks/useNavigationComponent.cjs");
|
|
10
11
|
const Component = (props) => {
|
|
11
12
|
const [labelHtmlId] = React.useState(core.createId("expand-panel"));
|
|
@@ -47,24 +48,88 @@ const Component = (props) => {
|
|
|
47
48
|
showSortButtons,
|
|
48
49
|
...props
|
|
49
50
|
});
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
51
|
+
const [AvatarComp, _avatarProps] = useContextProps.useContextProps(
|
|
52
|
+
"Array.Item.Avatar",
|
|
53
|
+
`${childPath}.Item.Avatar`,
|
|
54
|
+
{ children: index + 1 },
|
|
55
|
+
props,
|
|
56
|
+
{ withAllProps: false }
|
|
57
|
+
);
|
|
58
|
+
const avatarEl = AvatarComp === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core$1.Avatar, { ..._avatarProps }) : AvatarComp;
|
|
59
|
+
const [StackComp, _stackProps] = useContextProps.useContextProps(
|
|
60
|
+
"Array.Item.Stack",
|
|
61
|
+
`${childPath}.Item.Stack`,
|
|
62
|
+
{ children: childLabel },
|
|
63
|
+
props,
|
|
64
|
+
{ withAllProps: false }
|
|
65
|
+
);
|
|
66
|
+
const stackEl = StackComp === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core$1.Stack, { ..._stackProps }) : StackComp;
|
|
67
|
+
const [GroupComp, _groupProps] = useContextProps.useContextProps(
|
|
68
|
+
"Array.Item.Group",
|
|
69
|
+
`${childPath}.Item.Group`,
|
|
70
|
+
{
|
|
71
|
+
justify: "space-between",
|
|
72
|
+
pr: "md",
|
|
73
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
74
|
+
stackEl,
|
|
75
|
+
NavigationComponent
|
|
76
|
+
] })
|
|
77
|
+
},
|
|
78
|
+
props,
|
|
79
|
+
{ withAllProps: false }
|
|
80
|
+
);
|
|
81
|
+
const groupEl = GroupComp === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core$1.Group, { ..._groupProps }) : GroupComp;
|
|
82
|
+
const [ControlComp, _controlProps] = useContextProps.useContextProps(
|
|
83
|
+
"Array.Item.Control",
|
|
84
|
+
`${childPath}.Item.Control`,
|
|
85
|
+
{ component: "div", icon: avatarEl, children: groupEl },
|
|
86
|
+
props,
|
|
87
|
+
{ withAllProps: false }
|
|
88
|
+
);
|
|
89
|
+
const controlEl = ControlComp === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core$1.Accordion.Control, { ..._controlProps }) : ControlComp;
|
|
90
|
+
const [CenterComp, _centerProps] = useContextProps.useContextProps(
|
|
91
|
+
"Array.Item.Center",
|
|
92
|
+
`${childPath}.Item.Center`,
|
|
93
|
+
{ children: controlEl },
|
|
94
|
+
props,
|
|
95
|
+
{ withAllProps: false }
|
|
96
|
+
);
|
|
97
|
+
const centerEl = CenterComp === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core$1.Center, { ..._centerProps }) : CenterComp;
|
|
98
|
+
const [PanelComp, _panelProps] = useContextProps.useContextProps(
|
|
99
|
+
"Array.Item.Panel",
|
|
100
|
+
`${childPath}.Item.Panel`,
|
|
101
|
+
{
|
|
102
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
103
|
+
react.JsonFormsDispatch,
|
|
104
|
+
{
|
|
105
|
+
enabled,
|
|
106
|
+
schema,
|
|
107
|
+
uischema: foundUISchema,
|
|
108
|
+
path: childPath,
|
|
109
|
+
renderers,
|
|
110
|
+
cells
|
|
111
|
+
},
|
|
112
|
+
childPath
|
|
113
|
+
)
|
|
114
|
+
},
|
|
115
|
+
props,
|
|
116
|
+
{ withAllProps: false }
|
|
117
|
+
);
|
|
118
|
+
const panelEl = PanelComp === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core$1.Accordion.Panel, { ..._panelProps }) : PanelComp;
|
|
119
|
+
const [ItemComp, _itemProps] = useContextProps.useContextProps(
|
|
120
|
+
"Array.Item.Accordion",
|
|
121
|
+
`${childPath}.Item.Accordion`,
|
|
122
|
+
{
|
|
123
|
+
value: childPath,
|
|
124
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
125
|
+
centerEl,
|
|
126
|
+
panelEl
|
|
127
|
+
] })
|
|
128
|
+
},
|
|
129
|
+
props,
|
|
130
|
+
{ withAllProps: false }
|
|
131
|
+
);
|
|
132
|
+
return ItemComp === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(core$1.Accordion.Item, { value: childPath, ..._itemProps }) : ItemComp;
|
|
68
133
|
};
|
|
69
134
|
const MemoComponent = React.memo(Component);
|
|
70
135
|
const useCtxDispatchToExpandPanelProps = (dispatch) => ({
|