@chobantonov/jsonforms-react-antd-renderers 0.0.0-stage → 0.1.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/LICENSE +22 -0
- package/README.md +103 -2
- package/lib/additional/LabelRenderer.d.ts +13 -0
- package/lib/additional/ListWithDetailMasterItem.d.ts +9 -0
- package/lib/additional/ListWithDetailRenderer.d.ts +8 -0
- package/lib/additional/index.d.ts +4 -0
- package/lib/additional/unwrapped.d.ts +6 -0
- package/lib/antd-controls/AntdCheckbox.d.ts +10 -0
- package/lib/antd-controls/AntdClearValueButton.d.ts +44 -0
- package/lib/antd-controls/AntdClearableInput.d.ts +19 -0
- package/lib/antd-controls/AntdDatePicker.d.ts +7 -0
- package/lib/antd-controls/AntdDateTimePicker.d.ts +7 -0
- package/lib/antd-controls/AntdFile.d.ts +7 -0
- package/lib/antd-controls/AntdInputInteger.d.ts +3 -0
- package/lib/antd-controls/AntdInputNumber.d.ts +3 -0
- package/lib/antd-controls/AntdInputNumberFormat.d.ts +6 -0
- package/lib/antd-controls/AntdInputText.d.ts +6 -0
- package/lib/antd-controls/AntdNumericInput.d.ts +9 -0
- package/lib/antd-controls/AntdOtp.d.ts +33 -0
- package/lib/antd-controls/AntdPassword.d.ts +6 -0
- package/lib/antd-controls/AntdRadioGroup.d.ts +6 -0
- package/lib/antd-controls/AntdRevealButton.d.ts +32 -0
- package/lib/antd-controls/AntdSelect.d.ts +7 -0
- package/lib/antd-controls/AntdSlider.d.ts +21 -0
- package/lib/antd-controls/AntdTimePicker.d.ts +6 -0
- package/lib/antd-controls/AntdToggle.d.ts +6 -0
- package/lib/antd-controls/FileFeedback.d.ts +6 -0
- package/lib/antd-controls/index.d.ts +18 -0
- package/lib/antd-controls/useTemporalPicker.d.ts +49 -0
- package/lib/cells/AntdCompositeCell.d.ts +8 -0
- package/lib/cells/BooleanCell.d.ts +6 -0
- package/lib/cells/BooleanToggleCell.d.ts +5 -0
- package/lib/cells/CompositeDetailDialog.d.ts +15 -0
- package/lib/cells/CustomizableCells.d.ts +9 -0
- package/lib/cells/DateCell.d.ts +6 -0
- package/lib/cells/EnumCell.d.ts +11 -0
- package/lib/cells/IntegerCell.d.ts +6 -0
- package/lib/cells/NumberCell.d.ts +10 -0
- package/lib/cells/NumberFormatCell.d.ts +10 -0
- package/lib/cells/OneOfEnumCell.d.ts +11 -0
- package/lib/cells/PasswordCell.d.ts +5 -0
- package/lib/cells/TextCell.d.ts +10 -0
- package/lib/cells/TimeCell.d.ts +6 -0
- package/lib/cells/index.d.ts +14 -0
- package/lib/complex/AdditionalProperties.d.ts +4 -0
- package/lib/complex/AnyOfRenderer.d.ts +31 -0
- package/lib/complex/ArrayControlRenderer.d.ts +8 -0
- package/lib/complex/ChipsControl.d.ts +22 -0
- package/lib/complex/CollectionPager.d.ts +5 -0
- package/lib/complex/DataCell.d.ts +16 -0
- package/lib/complex/DeleteDialog.d.ts +14 -0
- package/lib/complex/DetailModal.d.ts +6 -0
- package/lib/complex/EnumArrayRenderer.d.ts +6 -0
- package/lib/complex/ErrorFeedback.d.ts +6 -0
- package/lib/complex/MixedRenderer.d.ts +6 -0
- package/lib/complex/MultiSelectControl.d.ts +17 -0
- package/lib/complex/ObjectRenderer.d.ts +5 -0
- package/lib/complex/OneOfRenderer.d.ts +6 -0
- package/lib/complex/OneOfTabRenderer.d.ts +5 -0
- package/lib/complex/RecursiveTreeRenderer.d.ts +4 -0
- package/lib/complex/RowDetailFrame.d.ts +10 -0
- package/lib/complex/ScalarCompositionRenderer.d.ts +4 -0
- package/lib/complex/TabSwitchConfirmDialog.d.ts +9 -0
- package/lib/complex/TableControl.d.ts +9 -0
- package/lib/complex/TableToolbar.d.ts +21 -0
- package/lib/complex/TupleAdditionalItems.d.ts +13 -0
- package/lib/complex/TupleControlRenderer.d.ts +6 -0
- package/lib/complex/TupleField.d.ts +4 -0
- package/lib/complex/ValidationIcon.d.ts +8 -0
- package/lib/complex/additionalProperties/AntdAdditionalPropertyActions.d.ts +9 -0
- package/lib/complex/additionalProperties/AntdAdditionalPropertyRenameDialog.d.ts +11 -0
- package/lib/complex/index.d.ts +20 -0
- package/lib/complex/mixed/AntdJsonTypeIcon.d.ts +4 -0
- package/lib/complex/mixed/AntdMixedNavigationContext.d.ts +5 -0
- package/lib/complex/mixed/AntdMixedSplitPane.d.ts +5 -0
- package/lib/complex/mixed/AntdMixedTree.d.ts +15 -0
- package/lib/complex/mixed/AntdMixedTypeSelector.d.ts +12 -0
- package/lib/complex/mixed/AntdNestedMixedNavigation.d.ts +7 -0
- package/lib/complex/mixed/mixedTree.d.ts +2 -0
- package/lib/complex/unwrapped.d.ts +10 -0
- package/lib/controls/AnyOfStringOrEnumControl.d.ts +9 -0
- package/lib/controls/BooleanControl.d.ts +6 -0
- package/lib/controls/BooleanToggleControl.d.ts +6 -0
- package/lib/controls/ChoiceCards.d.ts +1 -0
- package/lib/controls/DateControl.d.ts +6 -0
- package/lib/controls/DateTimeControl.d.ts +6 -0
- package/lib/controls/EnumControl.d.ts +7 -0
- package/lib/controls/FileControl.d.ts +7 -0
- package/lib/controls/InputControl.d.ts +6 -0
- package/lib/controls/IntegerControl.d.ts +6 -0
- package/lib/controls/NativeControl.d.ts +6 -0
- package/lib/controls/NumberControl.d.ts +6 -0
- package/lib/controls/OneOfEnumControl.d.ts +7 -0
- package/lib/controls/OneOfRadioGroupControl.d.ts +6 -0
- package/lib/controls/PasswordControl.d.ts +18 -0
- package/lib/controls/PasswordOtpControl.d.ts +38 -0
- package/lib/controls/RadioGroup.d.ts +3 -0
- package/lib/controls/RadioGroupControl.d.ts +6 -0
- package/lib/controls/SliderControl.d.ts +6 -0
- package/lib/controls/TextControl.d.ts +6 -0
- package/lib/controls/TimeControl.d.ts +6 -0
- package/lib/controls/index.d.ts +20 -0
- package/lib/controls/unwrapped.d.ts +19 -0
- package/lib/index.d.ts +50 -0
- package/lib/jsonforms-react-antd.cjs.js +39 -0
- package/lib/jsonforms-react-antd.cjs.js.map +1 -0
- package/lib/jsonforms-react-antd.esm.js +4235 -0
- package/lib/jsonforms-react-antd.esm.js.map +1 -0
- package/lib/layouts/ArrayLayout.d.ts +5 -0
- package/lib/layouts/ArrayLayoutRenderer.d.ts +8 -0
- package/lib/layouts/ArrayPanel.d.ts +7 -0
- package/lib/layouts/ArrayToolbar.d.ts +17 -0
- package/lib/layouts/CategorizationAccordionLayout.d.ts +21 -0
- package/lib/layouts/CategorizationLayout.d.ts +14 -0
- package/lib/layouts/CategorizationStepperLayout.d.ts +10 -0
- package/lib/layouts/CategoryHeader.d.ts +39 -0
- package/lib/layouts/ContainerIndicator.d.ts +37 -0
- package/lib/layouts/GroupLayout.d.ts +6 -0
- package/lib/layouts/HorizontalLayout.d.ts +10 -0
- package/lib/layouts/ValidationIndicator.d.ts +13 -0
- package/lib/layouts/VerticalLayout.d.ts +10 -0
- package/lib/layouts/arrayTitle.d.ts +2 -0
- package/lib/layouts/index.d.ts +11 -0
- package/lib/layouts/unwrapped.d.ts +11 -0
- package/lib/locale/index.d.ts +1 -0
- package/lib/util/additionalPropertyName.d.ts +2 -0
- package/lib/util/arrayChoices.d.ts +2 -0
- package/lib/util/categoryState.d.ts +3 -0
- package/lib/util/cellFrame.d.ts +27 -0
- package/lib/util/cellMode.d.ts +29 -0
- package/lib/util/clearAffordance.d.ts +1 -0
- package/lib/util/combinators.d.ts +1 -0
- package/lib/util/compositeActions.d.ts +1 -0
- package/lib/util/compositeSummary.d.ts +1 -0
- package/lib/util/configNamespaces.d.ts +1 -0
- package/lib/util/confirmation.d.ts +2 -0
- package/lib/util/datejs.d.ts +4 -0
- package/lib/util/debounce.d.ts +1 -0
- package/lib/util/dynamicProperties.d.ts +1 -0
- package/lib/util/focus.d.ts +1 -0
- package/lib/util/groupState.d.ts +1 -0
- package/lib/util/index.d.ts +25 -0
- package/lib/util/layout.d.ts +18 -0
- package/lib/util/layoutSizing.d.ts +6 -0
- package/lib/util/literalPropertySchema.d.ts +1 -0
- package/lib/util/locale.d.ts +68 -0
- package/lib/util/numeric.d.ts +1 -0
- package/lib/util/pendingChanges.d.ts +2 -0
- package/lib/util/preTouchErrors.d.ts +2 -0
- package/lib/util/rendererLocale.d.ts +2 -0
- package/lib/util/temporalBounds.d.ts +35 -0
- package/lib/util/temporalFormats.d.ts +26 -0
- package/lib/util/theme.d.ts +9 -0
- package/lib/util/translate.d.ts +1 -0
- package/lib/util/tuple.d.ts +2 -0
- package/lib/util/useConfirmation.d.ts +7 -0
- package/lib/util/validationIndicator.d.ts +2 -0
- package/lib/util/visuallyHidden.d.ts +1 -0
- package/package.json +89 -3
- package/src/additional/LabelRenderer.tsx +21 -0
- package/src/additional/ListWithDetailMasterItem.tsx +124 -0
- package/src/additional/ListWithDetailRenderer.tsx +243 -0
- package/src/additional/index.ts +14 -0
- package/src/additional/unwrapped.ts +8 -0
- package/src/antd-controls/AntdCheckbox.tsx +56 -0
- package/src/antd-controls/AntdClearValueButton.tsx +96 -0
- package/src/antd-controls/AntdClearableInput.tsx +63 -0
- package/src/antd-controls/AntdDatePicker.tsx +26 -0
- package/src/antd-controls/AntdDateTimePicker.tsx +31 -0
- package/src/antd-controls/AntdFile.tsx +395 -0
- package/src/antd-controls/AntdInputInteger.tsx +10 -0
- package/src/antd-controls/AntdInputNumber.tsx +10 -0
- package/src/antd-controls/AntdInputNumberFormat.tsx +63 -0
- package/src/antd-controls/AntdInputText.tsx +124 -0
- package/src/antd-controls/AntdNumericInput.tsx +83 -0
- package/src/antd-controls/AntdOtp.tsx +132 -0
- package/src/antd-controls/AntdPassword.tsx +106 -0
- package/src/antd-controls/AntdRadioGroup.tsx +60 -0
- package/src/antd-controls/AntdRevealButton.tsx +74 -0
- package/src/antd-controls/AntdSelect.tsx +113 -0
- package/src/antd-controls/AntdSlider.tsx +114 -0
- package/src/antd-controls/AntdTimePicker.tsx +25 -0
- package/src/antd-controls/AntdToggle.tsx +70 -0
- package/src/antd-controls/FileFeedback.tsx +37 -0
- package/src/antd-controls/index.ts +18 -0
- package/src/antd-controls/useTemporalPicker.ts +130 -0
- package/src/cells/AntdCompositeCell.tsx +228 -0
- package/src/cells/BooleanCell.tsx +33 -0
- package/src/cells/BooleanToggleCell.tsx +38 -0
- package/src/cells/CompositeDetailDialog.tsx +100 -0
- package/src/cells/CustomizableCells.ts +9 -0
- package/src/cells/DateCell.tsx +17 -0
- package/src/cells/EnumCell.tsx +30 -0
- package/src/cells/IntegerCell.tsx +17 -0
- package/src/cells/NumberCell.tsx +20 -0
- package/src/cells/NumberFormatCell.tsx +37 -0
- package/src/cells/OneOfEnumCell.tsx +32 -0
- package/src/cells/PasswordCell.tsx +22 -0
- package/src/cells/TextCell.tsx +22 -0
- package/src/cells/TimeCell.tsx +17 -0
- package/src/cells/index.ts +40 -0
- package/src/complex/AdditionalProperties.tsx +422 -0
- package/src/complex/AnyOfRenderer.tsx +158 -0
- package/src/complex/ArrayControlRenderer.tsx +121 -0
- package/src/complex/ChipsControl.tsx +205 -0
- package/src/complex/CollectionPager.tsx +26 -0
- package/src/complex/DataCell.tsx +82 -0
- package/src/complex/DeleteDialog.tsx +44 -0
- package/src/complex/DetailModal.tsx +110 -0
- package/src/complex/EnumArrayRenderer.tsx +148 -0
- package/src/complex/ErrorFeedback.tsx +51 -0
- package/src/complex/MixedRenderer.tsx +325 -0
- package/src/complex/MultiSelectControl.tsx +205 -0
- package/src/complex/ObjectRenderer.tsx +55 -0
- package/src/complex/OneOfRenderer.tsx +299 -0
- package/src/complex/OneOfTabRenderer.tsx +123 -0
- package/src/complex/RecursiveTreeRenderer.tsx +20 -0
- package/src/complex/RowDetailFrame.tsx +99 -0
- package/src/complex/ScalarCompositionRenderer.tsx +14 -0
- package/src/complex/TabSwitchConfirmDialog.tsx +36 -0
- package/src/complex/TableControl.tsx +646 -0
- package/src/complex/TableToolbar.tsx +80 -0
- package/src/complex/TupleAdditionalItems.tsx +100 -0
- package/src/complex/TupleControlRenderer.tsx +78 -0
- package/src/complex/TupleField.tsx +44 -0
- package/src/complex/ValidationIcon.tsx +30 -0
- package/src/complex/additionalProperties/AntdAdditionalPropertyActions.tsx +56 -0
- package/src/complex/additionalProperties/AntdAdditionalPropertyRenameDialog.tsx +56 -0
- package/src/complex/index.ts +48 -0
- package/src/complex/mixed/AntdJsonTypeIcon.tsx +40 -0
- package/src/complex/mixed/AntdMixedNavigationContext.ts +8 -0
- package/src/complex/mixed/AntdMixedSplitPane.tsx +51 -0
- package/src/complex/mixed/AntdMixedTree.tsx +287 -0
- package/src/complex/mixed/AntdMixedTypeSelector.tsx +60 -0
- package/src/complex/mixed/AntdNestedMixedNavigation.tsx +39 -0
- package/src/complex/mixed/mixedTree.ts +9 -0
- package/src/complex/unwrapped.ts +15 -0
- package/src/controls/AnyOfStringOrEnumControl.tsx +123 -0
- package/src/controls/BooleanControl.tsx +17 -0
- package/src/controls/BooleanToggleControl.tsx +24 -0
- package/src/controls/ChoiceCards.tsx +13 -0
- package/src/controls/DateControl.tsx +19 -0
- package/src/controls/DateTimeControl.tsx +22 -0
- package/src/controls/EnumControl.tsx +29 -0
- package/src/controls/FileControl.tsx +44 -0
- package/src/controls/InputControl.tsx +94 -0
- package/src/controls/IntegerControl.tsx +16 -0
- package/src/controls/NativeControl.tsx +79 -0
- package/src/controls/NumberControl.tsx +18 -0
- package/src/controls/OneOfEnumControl.tsx +32 -0
- package/src/controls/OneOfRadioGroupControl.tsx +25 -0
- package/src/controls/PasswordControl.tsx +43 -0
- package/src/controls/PasswordOtpControl.tsx +61 -0
- package/src/controls/RadioGroup.tsx +8 -0
- package/src/controls/RadioGroupControl.tsx +21 -0
- package/src/controls/SliderControl.tsx +19 -0
- package/src/controls/TextControl.tsx +17 -0
- package/src/controls/TimeControl.tsx +20 -0
- package/src/controls/index.ts +69 -0
- package/src/controls/unwrapped.ts +35 -0
- package/src/index.ts +267 -0
- package/src/layouts/ArrayLayout.tsx +435 -0
- package/src/layouts/ArrayLayoutRenderer.tsx +54 -0
- package/src/layouts/ArrayPanel.tsx +51 -0
- package/src/layouts/ArrayToolbar.tsx +67 -0
- package/src/layouts/CategorizationAccordionLayout.tsx +217 -0
- package/src/layouts/CategorizationLayout.tsx +149 -0
- package/src/layouts/CategorizationStepperLayout.tsx +164 -0
- package/src/layouts/CategoryHeader.tsx +107 -0
- package/src/layouts/ContainerIndicator.tsx +83 -0
- package/src/layouts/GroupLayout.tsx +307 -0
- package/src/layouts/HorizontalLayout.tsx +50 -0
- package/src/layouts/ValidationIndicator.tsx +43 -0
- package/src/layouts/VerticalLayout.tsx +50 -0
- package/src/layouts/arrayTitle.tsx +30 -0
- package/src/layouts/index.ts +35 -0
- package/src/layouts/unwrapped.ts +17 -0
- package/src/locale/index.ts +1 -0
- package/src/util/additionalPropertyName.ts +11 -0
- package/src/util/arrayChoices.ts +21 -0
- package/src/util/categoryState.ts +17 -0
- package/src/util/cellFrame.tsx +52 -0
- package/src/util/cellMode.tsx +145 -0
- package/src/util/clearAffordance.ts +2 -0
- package/src/util/combinators.ts +6 -0
- package/src/util/compositeActions.ts +2 -0
- package/src/util/compositeSummary.ts +2 -0
- package/src/util/configNamespaces.ts +4 -0
- package/src/util/confirmation.ts +15 -0
- package/src/util/datejs.tsx +42 -0
- package/src/util/debounce.ts +2 -0
- package/src/util/dynamicProperties.ts +6 -0
- package/src/util/focus.ts +2 -0
- package/src/util/groupState.ts +8 -0
- package/src/util/index.ts +25 -0
- package/src/util/layout.tsx +121 -0
- package/src/util/layoutSizing.ts +33 -0
- package/src/util/literalPropertySchema.ts +2 -0
- package/src/util/locale.ts +222 -0
- package/src/util/numeric.ts +2 -0
- package/src/util/pendingChanges.tsx +6 -0
- package/src/util/preTouchErrors.ts +10 -0
- package/src/util/rendererLocale.ts +10 -0
- package/src/util/temporalBounds.ts +106 -0
- package/src/util/temporalFormats.ts +95 -0
- package/src/util/theme.ts +9 -0
- package/src/util/translate.ts +6 -0
- package/src/util/tuple.ts +16 -0
- package/src/util/uiSchemaCycle.tsx +2 -0
- package/src/util/useConfirmation.tsx +25 -0
- package/src/util/validationIndicator.ts +10 -0
- package/src/util/visuallyHidden.ts +2 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import GroupLayout, { antdGroupTester } from './GroupLayout';
|
|
2
|
+
import HorizontalLayout, { horizontalLayoutTester } from './HorizontalLayout';
|
|
3
|
+
import VerticalLayout, { verticalLayoutTester } from './VerticalLayout';
|
|
4
|
+
import CategorizationLayout, {
|
|
5
|
+
categorizationTester,
|
|
6
|
+
} from './CategorizationLayout';
|
|
7
|
+
import ArrayLayout, { arrayLayoutTester } from './ArrayLayoutRenderer';
|
|
8
|
+
import CategorizationStepperLayout, {
|
|
9
|
+
categorizationStepperTester,
|
|
10
|
+
} from './CategorizationStepperLayout';
|
|
11
|
+
import CategorizationAccordionLayout, {
|
|
12
|
+
categorizationAccordionTester,
|
|
13
|
+
} from './CategorizationAccordionLayout';
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
ArrayLayout,
|
|
17
|
+
arrayLayoutTester,
|
|
18
|
+
CategorizationLayout,
|
|
19
|
+
categorizationTester,
|
|
20
|
+
CategorizationStepperLayout,
|
|
21
|
+
categorizationStepperTester,
|
|
22
|
+
CategorizationAccordionLayout,
|
|
23
|
+
categorizationAccordionTester,
|
|
24
|
+
GroupLayout,
|
|
25
|
+
antdGroupTester,
|
|
26
|
+
HorizontalLayout,
|
|
27
|
+
horizontalLayoutTester,
|
|
28
|
+
VerticalLayout,
|
|
29
|
+
verticalLayoutTester,
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export * from './CategoryHeader';
|
|
33
|
+
export * from './ArrayToolbar';
|
|
34
|
+
|
|
35
|
+
export * from './ArrayPanel';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GroupLayoutRenderer } from './GroupLayout';
|
|
2
|
+
import { HorizontalLayoutRenderer } from './HorizontalLayout';
|
|
3
|
+
import { VerticalLayoutRenderer } from './VerticalLayout';
|
|
4
|
+
import { CategorizationLayoutRenderer } from './CategorizationLayout';
|
|
5
|
+
import { CategorizationAccordionLayoutRenderer } from './CategorizationAccordionLayout';
|
|
6
|
+
import { ArrayLayoutRenderer } from './ArrayLayoutRenderer';
|
|
7
|
+
|
|
8
|
+
export const UnwrappedLayouts = {
|
|
9
|
+
ArrayLayout: ArrayLayoutRenderer,
|
|
10
|
+
CategorizationLayout: CategorizationLayoutRenderer,
|
|
11
|
+
CategorizationAccordionLayout: CategorizationAccordionLayoutRenderer,
|
|
12
|
+
GroupLayout: GroupLayoutRenderer,
|
|
13
|
+
HorizontalLayout: HorizontalLayoutRenderer,
|
|
14
|
+
VerticalLayout: VerticalLayoutRenderer,
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export * from './ArrayToolbar';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { bgRendererLocale } from '@chobantonov/jsonforms-react-renderer-common/locale/index';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Compatibility export; implementation is shared by all renderer families.
|
|
2
|
+
export {
|
|
3
|
+
needsIsolatedEditor,
|
|
4
|
+
assignOwnProperty,
|
|
5
|
+
createAdditionalPropertyNameSchema,
|
|
6
|
+
validateAdditionalPropertyName,
|
|
7
|
+
} from '@chobantonov/jsonforms-react-renderer-common/objects/additionalPropertyName';
|
|
8
|
+
export type {
|
|
9
|
+
AdditionalPropertyNameError,
|
|
10
|
+
AdditionalPropertyNameResult,
|
|
11
|
+
} from '@chobantonov/jsonforms-react-renderer-common/objects/additionalPropertyName';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Compatibility export; implementation is shared by all renderer families.
|
|
2
|
+
export {
|
|
3
|
+
resolveItemSchema,
|
|
4
|
+
arrayChoicesOf,
|
|
5
|
+
arrayChoiceItemErrors,
|
|
6
|
+
hasStringItems,
|
|
7
|
+
isMultiSelectControl,
|
|
8
|
+
isChipsControl,
|
|
9
|
+
asArrayValue,
|
|
10
|
+
sameChoice,
|
|
11
|
+
isSelected,
|
|
12
|
+
addChoice,
|
|
13
|
+
removeChoiceAt,
|
|
14
|
+
removeChoice,
|
|
15
|
+
canAddChoice,
|
|
16
|
+
canRemoveChoice,
|
|
17
|
+
} from '@chobantonov/jsonforms-react-renderer-common/collections/arrayChoices';
|
|
18
|
+
export type {
|
|
19
|
+
ArrayChoice,
|
|
20
|
+
ArrayChoiceLimits,
|
|
21
|
+
} from '@chobantonov/jsonforms-react-renderer-common/collections/arrayChoices';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useMemo } from 'react';
|
|
2
|
+
import {
|
|
3
|
+
deriveLabelForUISchemaElement,
|
|
4
|
+
type Category,
|
|
5
|
+
type Translator,
|
|
6
|
+
} from '@jsonforms/core';
|
|
7
|
+
export const useCategoryLabels = (categories: Category[], t: Translator) =>
|
|
8
|
+
useMemo(
|
|
9
|
+
() =>
|
|
10
|
+
categories.map((category) => deriveLabelForUISchemaElement(category, t)),
|
|
11
|
+
[categories, t],
|
|
12
|
+
);
|
|
13
|
+
// Compatibility export; implementation is shared by all renderer families.
|
|
14
|
+
export {
|
|
15
|
+
categoryKey,
|
|
16
|
+
useCategorySelection,
|
|
17
|
+
} from '@chobantonov/jsonforms-react-renderer-common/layout/categoryState';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { JsonSchema, UISchemaElement } from '@jsonforms/core';
|
|
3
|
+
import { ctxToCellProps, useJsonForms } from '@jsonforms/react';
|
|
4
|
+
import { CellModeProvider, ControlFormItem } from './cellMode';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The chrome around one table or grid cell.
|
|
8
|
+
*
|
|
9
|
+
* The scalar cells in the cells registry are bare inputs - they draw no
|
|
10
|
+
* Form.Item of their own - so without this a cell shows no validation state at
|
|
11
|
+
* all. It supplies the compact form: the error border plus an icon whose
|
|
12
|
+
* tooltip carries the message, and no label or inline message, neither of
|
|
13
|
+
* which a row has room for. `CellModeProvider` keeps anything dispatched
|
|
14
|
+
* inside it on the same footing.
|
|
15
|
+
*/
|
|
16
|
+
export const CellFrame = ({
|
|
17
|
+
errors,
|
|
18
|
+
path,
|
|
19
|
+
children,
|
|
20
|
+
}: React.PropsWithChildren<{ errors?: string; path?: string }>) => (
|
|
21
|
+
<CellModeProvider>
|
|
22
|
+
<ControlFormItem path={path} errors={errors || undefined}>
|
|
23
|
+
{children}
|
|
24
|
+
</ControlFormItem>
|
|
25
|
+
</CellModeProvider>
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
export type ConnectedCellFrameProps = React.PropsWithChildren<{
|
|
29
|
+
schema?: JsonSchema;
|
|
30
|
+
uischema?: UISchemaElement;
|
|
31
|
+
path: string;
|
|
32
|
+
}>;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* CellFrame for callers that do not already hold the cell's errors - the AG
|
|
36
|
+
* Grid renderer, whose cells are dispatched from a cellRenderer rather than
|
|
37
|
+
* from a connected component.
|
|
38
|
+
*/
|
|
39
|
+
export const ConnectedCellFrame = ({
|
|
40
|
+
schema,
|
|
41
|
+
uischema,
|
|
42
|
+
path,
|
|
43
|
+
children,
|
|
44
|
+
}: ConnectedCellFrameProps) => {
|
|
45
|
+
const ctx = useJsonForms();
|
|
46
|
+
const { errors } = ctxToCellProps(ctx, { schema, uischema, path } as any);
|
|
47
|
+
return (
|
|
48
|
+
<CellFrame errors={errors} path={path}>
|
|
49
|
+
{children}
|
|
50
|
+
</CellFrame>
|
|
51
|
+
);
|
|
52
|
+
};
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InputAdornments } from '@chobantonov/jsonforms-react-renderer-common/controls/inputAdornments';
|
|
3
|
+
import { Form } from 'antd';
|
|
4
|
+
import { useJsonForms } from '@jsonforms/react';
|
|
5
|
+
import { ErrorFeedback } from '../complex/ErrorFeedback';
|
|
6
|
+
import ExclamationCircleFilled from '@ant-design/icons/ExclamationCircleFilled';
|
|
7
|
+
|
|
8
|
+
import { useCellMode } from '@chobantonov/jsonforms-react-renderer-common/cells/cellMode';
|
|
9
|
+
export {
|
|
10
|
+
CellModeProvider,
|
|
11
|
+
useCellMode,
|
|
12
|
+
} from '@chobantonov/jsonforms-react-renderer-common/cells/cellMode';
|
|
13
|
+
|
|
14
|
+
export interface ControlFormItemProps {
|
|
15
|
+
path?: string;
|
|
16
|
+
id?: string;
|
|
17
|
+
htmlFor?: string;
|
|
18
|
+
label?: React.ReactNode;
|
|
19
|
+
required?: boolean;
|
|
20
|
+
hideRequiredAsterisk?: boolean;
|
|
21
|
+
/** Validation messages; drives the error state and, in cells, the tooltip. */
|
|
22
|
+
errors?: string;
|
|
23
|
+
/** Message shown under the control outside cells (errors or description). */
|
|
24
|
+
help?: React.ReactNode;
|
|
25
|
+
style?: React.CSSProperties;
|
|
26
|
+
children?: React.ReactNode;
|
|
27
|
+
adornmentSchema?: { type?: unknown };
|
|
28
|
+
adornmentOptions?: Record<string, unknown>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* The single Form.Item every antd control renders through.
|
|
33
|
+
*
|
|
34
|
+
* Outside a table it behaves as before: label above, message below. Inside a
|
|
35
|
+
* cell the column header already supplies the label and a message underneath
|
|
36
|
+
* would break the row height, so both are dropped and the validation message
|
|
37
|
+
* moves into a tooltip on the control's error state instead.
|
|
38
|
+
*/
|
|
39
|
+
export const ControlFormItem = ({
|
|
40
|
+
path,
|
|
41
|
+
id,
|
|
42
|
+
htmlFor,
|
|
43
|
+
label,
|
|
44
|
+
required,
|
|
45
|
+
hideRequiredAsterisk,
|
|
46
|
+
errors,
|
|
47
|
+
help,
|
|
48
|
+
style,
|
|
49
|
+
children,
|
|
50
|
+
adornmentSchema,
|
|
51
|
+
adornmentOptions,
|
|
52
|
+
}: ControlFormItemProps) => {
|
|
53
|
+
const cell = useCellMode();
|
|
54
|
+
const context = useJsonForms();
|
|
55
|
+
const showRequired =
|
|
56
|
+
required && !(hideRequiredAsterisk ?? context.config?.hideRequiredAsterisk);
|
|
57
|
+
const isValid = !errors || errors.length === 0;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* antd's hasFeedback accepts custom icons, so the validation message can hang
|
|
61
|
+
* off the error icon itself rather than the whole field. One message per line
|
|
62
|
+
* keeps multi-error tooltips readable.
|
|
63
|
+
*
|
|
64
|
+
* **`hasFeedback` stays on whether or not the field is valid, and the icon is
|
|
65
|
+
* suppressed instead.** It is not a style choice; switching it changes the
|
|
66
|
+
* DOM. antd composes the feedback icon into the input's `suffix`, and an antd
|
|
67
|
+
* `Input` with no prefix, suffix or `allowClear` renders a bare `<input>`
|
|
68
|
+
* while one with any of them nests it inside
|
|
69
|
+
* `<span class="ant-input-affix-wrapper">`. Turning feedback on at the moment
|
|
70
|
+
* a field becomes invalid therefore moves the input to a new position in the
|
|
71
|
+
* element tree, so React unmounts it and mounts a fresh one - and whoever was
|
|
72
|
+
* typing loses the caret mid-word. antd warns about exactly this in
|
|
73
|
+
* development: "dynamic add or remove prefix / suffix will make it lose focus
|
|
74
|
+
* caused by dom structure change".
|
|
75
|
+
*
|
|
76
|
+
* Returning `false` for a status is antd's own way to say it draws no icon,
|
|
77
|
+
* while the slot - and so the element tree - stays put. The only trace on a
|
|
78
|
+
* valid field is an empty suffix span holding four pixels open, which is a
|
|
79
|
+
* gutter the error icon then no longer has to push the text aside to claim.
|
|
80
|
+
*
|
|
81
|
+
* Any control that always has a prefix or suffix of its own - the color
|
|
82
|
+
* picker's swatch, the password field's reveal button - was already immune,
|
|
83
|
+
* which is why this only ever showed up on the plain text and masked fields.
|
|
84
|
+
*/
|
|
85
|
+
const feedbackIcons = () => ({
|
|
86
|
+
success: false,
|
|
87
|
+
warning: false,
|
|
88
|
+
validating: false,
|
|
89
|
+
error: (
|
|
90
|
+
<ErrorFeedback errors={errors ?? ''} path={path} local>
|
|
91
|
+
<ExclamationCircleFilled
|
|
92
|
+
// In a cell the message exists only inside the tooltip, which opens
|
|
93
|
+
// on hover and so is not reachable by a screen reader. Naming the
|
|
94
|
+
// icon with the message keeps it announced.
|
|
95
|
+
tabIndex={0}
|
|
96
|
+
role='img'
|
|
97
|
+
aria-label={errors}
|
|
98
|
+
// antd sets pointer-events: none on .ant-form-item-feedback-icon so
|
|
99
|
+
// the icon never blocks the input. That also means it never receives
|
|
100
|
+
// hover, so the tooltip would never open - a descendant may opt back
|
|
101
|
+
// in without making the whole slot clickable.
|
|
102
|
+
style={{ pointerEvents: 'auto', cursor: 'help' }}
|
|
103
|
+
/>
|
|
104
|
+
</ErrorFeedback>
|
|
105
|
+
),
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
const content = adornmentOptions ? (
|
|
109
|
+
<InputAdornments schema={adornmentSchema} options={adornmentOptions}>
|
|
110
|
+
{children}
|
|
111
|
+
</InputAdornments>
|
|
112
|
+
) : (
|
|
113
|
+
children
|
|
114
|
+
);
|
|
115
|
+
|
|
116
|
+
if (cell) {
|
|
117
|
+
return (
|
|
118
|
+
<Form.Item
|
|
119
|
+
required={showRequired}
|
|
120
|
+
hasFeedback={{ icons: feedbackIcons }}
|
|
121
|
+
validateStatus={isValid ? 'success' : 'error'}
|
|
122
|
+
style={{ marginBottom: 0, ...style }}
|
|
123
|
+
htmlFor={htmlFor}
|
|
124
|
+
id={id}
|
|
125
|
+
>
|
|
126
|
+
{content}
|
|
127
|
+
</Form.Item>
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
return (
|
|
132
|
+
<Form.Item
|
|
133
|
+
required={showRequired}
|
|
134
|
+
hasFeedback={{ icons: feedbackIcons }}
|
|
135
|
+
validateStatus={isValid ? 'success' : 'error'}
|
|
136
|
+
label={label}
|
|
137
|
+
help={help ?? null}
|
|
138
|
+
style={style}
|
|
139
|
+
htmlFor={htmlFor}
|
|
140
|
+
id={id}
|
|
141
|
+
>
|
|
142
|
+
{content}
|
|
143
|
+
</Form.Item>
|
|
144
|
+
);
|
|
145
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export {
|
|
2
|
+
fallbackConfirmationPolicy,
|
|
3
|
+
resolveConfirmationPolicy,
|
|
4
|
+
isDiscardableValue,
|
|
5
|
+
isComplexValue,
|
|
6
|
+
confirmationRequired,
|
|
7
|
+
shouldConfirm,
|
|
8
|
+
} from '@chobantonov/jsonforms-react-renderer-common/interaction/confirmation';
|
|
9
|
+
export type {
|
|
10
|
+
ConfirmationPolicy,
|
|
11
|
+
ConfirmationOperation,
|
|
12
|
+
BaseConfirmationCatalogId,
|
|
13
|
+
ConfirmationCatalogId,
|
|
14
|
+
ResolveConfirmationOptions,
|
|
15
|
+
} from '@chobantonov/jsonforms-react-renderer-common/interaction/confirmation';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
import { formatDate } from '@chobantonov/jsonforms-react-renderer-common/formats/dateValues';
|
|
3
|
+
export {
|
|
4
|
+
formatDate,
|
|
5
|
+
parseDateValue as getData,
|
|
6
|
+
} from '@chobantonov/jsonforms-react-renderer-common/formats/dateValues';
|
|
7
|
+
|
|
8
|
+
export const createOnChangeHandler =
|
|
9
|
+
(
|
|
10
|
+
path: string,
|
|
11
|
+
handleChange: (path: string, value: any) => void,
|
|
12
|
+
saveFormat: string,
|
|
13
|
+
) =>
|
|
14
|
+
(value: dayjs.Dayjs | null) => {
|
|
15
|
+
if (!value) {
|
|
16
|
+
handleChange(path, undefined);
|
|
17
|
+
} else if (value.isValid()) {
|
|
18
|
+
const formattedDate = formatDate(value, saveFormat);
|
|
19
|
+
handleChange(path, formattedDate);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export const createOnBlurHandler =
|
|
24
|
+
(
|
|
25
|
+
path: string,
|
|
26
|
+
handleChange: (path: string, value: any) => void,
|
|
27
|
+
format: string,
|
|
28
|
+
saveFormat: string,
|
|
29
|
+
rerenderChild: () => void,
|
|
30
|
+
onBlur: () => void,
|
|
31
|
+
) =>
|
|
32
|
+
(e: React.FocusEvent<HTMLTextAreaElement | HTMLInputElement, Element>) => {
|
|
33
|
+
const date = dayjs(e.target.value, format);
|
|
34
|
+
const formattedDate = formatDate(date, saveFormat);
|
|
35
|
+
if (formattedDate.toString() === 'Invalid Date') {
|
|
36
|
+
handleChange(path, undefined);
|
|
37
|
+
rerenderChild();
|
|
38
|
+
} else {
|
|
39
|
+
handleChange(path, formattedDate);
|
|
40
|
+
}
|
|
41
|
+
onBlur();
|
|
42
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export * from './datejs';
|
|
2
|
+
export * from './layout';
|
|
3
|
+
export * from './theme';
|
|
4
|
+
export * from './debounce';
|
|
5
|
+
export * from './focus';
|
|
6
|
+
export * from './preTouchErrors';
|
|
7
|
+
export { i18nDefaults } from '@chobantonov/jsonforms-react-renderer-common/locale/index';
|
|
8
|
+
export type { I18nKey } from '@chobantonov/jsonforms-react-renderer-common/locale/index';
|
|
9
|
+
export * from './cellMode';
|
|
10
|
+
export * from './cellFrame';
|
|
11
|
+
export * from './clearAffordance';
|
|
12
|
+
export * from './compositeActions';
|
|
13
|
+
export * from './pendingChanges';
|
|
14
|
+
export * from './configNamespaces';
|
|
15
|
+
export * from './validationIndicator';
|
|
16
|
+
export * from './numeric';
|
|
17
|
+
export * from './translate';
|
|
18
|
+
export * from './visuallyHidden';
|
|
19
|
+
export * from './tuple';
|
|
20
|
+
export * from './compositeSummary';
|
|
21
|
+
export * from './arrayChoices';
|
|
22
|
+
export * from './confirmation';
|
|
23
|
+
export * from './useConfirmation';
|
|
24
|
+
export * from './locale';
|
|
25
|
+
export * from './rendererLocale';
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { useEffectiveElements } from '@chobantonov/jsonforms-react-renderer-common/layout/layoutContext';
|
|
2
|
+
export {
|
|
3
|
+
useEffectiveElements,
|
|
4
|
+
withAjvProps,
|
|
5
|
+
} from '@chobantonov/jsonforms-react-renderer-common/layout/layoutContext';
|
|
6
|
+
export type { AjvProps } from '@chobantonov/jsonforms-react-renderer-common/layout/layoutContext';
|
|
7
|
+
import isEmpty from 'lodash/isEmpty';
|
|
8
|
+
import { ConfigProvider } from 'antd';
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import type { UISchemaElement } from '@jsonforms/core';
|
|
11
|
+
import {
|
|
12
|
+
JsonFormsCellRendererRegistryEntry,
|
|
13
|
+
JsonFormsRendererRegistryEntry,
|
|
14
|
+
JsonSchema,
|
|
15
|
+
OwnPropsOfRenderer,
|
|
16
|
+
} from '@jsonforms/core';
|
|
17
|
+
import { JsonFormsDispatch } from '@jsonforms/react';
|
|
18
|
+
import {
|
|
19
|
+
containerStyle,
|
|
20
|
+
itemSizing,
|
|
21
|
+
resolveGap,
|
|
22
|
+
resolveGridColumns,
|
|
23
|
+
type LayoutContainerOptions,
|
|
24
|
+
} from './layoutSizing';
|
|
25
|
+
|
|
26
|
+
export interface AntdLayoutRendererProps extends OwnPropsOfRenderer {
|
|
27
|
+
elements: UISchemaElement[];
|
|
28
|
+
direction: 'row' | 'column';
|
|
29
|
+
/** The layout element's own flat options - the container half of the model. */
|
|
30
|
+
layoutOptions?: LayoutContainerOptions;
|
|
31
|
+
config?: unknown;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export const renderLayoutElements = (
|
|
35
|
+
elements: UISchemaElement[],
|
|
36
|
+
schema: JsonSchema,
|
|
37
|
+
path: string,
|
|
38
|
+
enabled: boolean,
|
|
39
|
+
direction: 'row' | 'column',
|
|
40
|
+
layoutOptions: LayoutContainerOptions | undefined,
|
|
41
|
+
config: unknown,
|
|
42
|
+
renderers?: JsonFormsRendererRegistryEntry[],
|
|
43
|
+
cells?: JsonFormsCellRendererRegistryEntry[],
|
|
44
|
+
) => {
|
|
45
|
+
const grid = resolveGridColumns(layoutOptions, config);
|
|
46
|
+
const gap = resolveGap(layoutOptions, config, direction);
|
|
47
|
+
return (
|
|
48
|
+
<ConfigProvider theme={{ components: { Form: { itemMarginBottom: 0 } } }}>
|
|
49
|
+
<div
|
|
50
|
+
data-layout={direction}
|
|
51
|
+
style={{
|
|
52
|
+
...containerStyle(layoutOptions, config, direction),
|
|
53
|
+
width: '100%',
|
|
54
|
+
}}
|
|
55
|
+
>
|
|
56
|
+
{elements.map((child, index) => {
|
|
57
|
+
const { style, diagnostics } = itemSizing(
|
|
58
|
+
child,
|
|
59
|
+
direction,
|
|
60
|
+
grid,
|
|
61
|
+
gap,
|
|
62
|
+
layoutOptions?.minItemWidth,
|
|
63
|
+
);
|
|
64
|
+
const all = diagnostics;
|
|
65
|
+
return (
|
|
66
|
+
<div
|
|
67
|
+
key={`${path}-${index}`}
|
|
68
|
+
style={style}
|
|
69
|
+
{...(all.length
|
|
70
|
+
? { 'data-layout-diagnostic': all.join(' ') }
|
|
71
|
+
: {})}
|
|
72
|
+
>
|
|
73
|
+
<JsonFormsDispatch
|
|
74
|
+
uischema={child}
|
|
75
|
+
schema={schema}
|
|
76
|
+
path={path}
|
|
77
|
+
enabled={enabled}
|
|
78
|
+
renderers={renderers}
|
|
79
|
+
cells={cells}
|
|
80
|
+
/>
|
|
81
|
+
</div>
|
|
82
|
+
);
|
|
83
|
+
})}
|
|
84
|
+
</div>
|
|
85
|
+
</ConfigProvider>
|
|
86
|
+
);
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
const AntdLayoutRendererComponent = ({
|
|
90
|
+
visible,
|
|
91
|
+
elements,
|
|
92
|
+
schema,
|
|
93
|
+
path = '',
|
|
94
|
+
enabled = true,
|
|
95
|
+
direction,
|
|
96
|
+
layoutOptions,
|
|
97
|
+
config,
|
|
98
|
+
renderers,
|
|
99
|
+
cells,
|
|
100
|
+
}: AntdLayoutRendererProps) => {
|
|
101
|
+
const effective = useEffectiveElements(elements, path, config);
|
|
102
|
+
if (!schema || isEmpty(effective) || !visible) {
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
return renderLayoutElements(
|
|
106
|
+
effective,
|
|
107
|
+
schema,
|
|
108
|
+
path,
|
|
109
|
+
enabled,
|
|
110
|
+
direction,
|
|
111
|
+
layoutOptions,
|
|
112
|
+
config,
|
|
113
|
+
renderers,
|
|
114
|
+
cells,
|
|
115
|
+
);
|
|
116
|
+
};
|
|
117
|
+
export const AntdLayoutRenderer = React.memo(AntdLayoutRendererComponent);
|
|
118
|
+
|
|
119
|
+
export interface AntdLabelableLayoutRendererProps extends AntdLayoutRendererProps {
|
|
120
|
+
label?: string;
|
|
121
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
containerStyle as sharedContainerStyle,
|
|
3
|
+
resolveGap as sharedResolveGap,
|
|
4
|
+
} from '@chobantonov/jsonforms-react-renderer-common/layout/layoutSizing';
|
|
5
|
+
import type {
|
|
6
|
+
LayoutContainerOptions,
|
|
7
|
+
LayoutDirection,
|
|
8
|
+
} from '@chobantonov/jsonforms-react-renderer-common/layout/layoutSizing';
|
|
9
|
+
export {
|
|
10
|
+
resolveGridColumns,
|
|
11
|
+
resolveWrap,
|
|
12
|
+
spanBasis,
|
|
13
|
+
itemSizing,
|
|
14
|
+
} from '@chobantonov/jsonforms-react-renderer-common/layout/layoutSizing';
|
|
15
|
+
export type {
|
|
16
|
+
LayoutContainerOptions,
|
|
17
|
+
LayoutDirection,
|
|
18
|
+
} from '@chobantonov/jsonforms-react-renderer-common/layout/layoutSizing';
|
|
19
|
+
|
|
20
|
+
// Portable spacing; layout-owned Form.Item margins are suppressed by the layout.
|
|
21
|
+
export const DEFAULT_ROW_GAP = 16;
|
|
22
|
+
const DEFAULT_COLUMN_GAP = 16;
|
|
23
|
+
const gaps = { row: DEFAULT_ROW_GAP, column: DEFAULT_COLUMN_GAP };
|
|
24
|
+
export const resolveGap = (
|
|
25
|
+
options: LayoutContainerOptions | undefined,
|
|
26
|
+
config: unknown,
|
|
27
|
+
direction: LayoutDirection,
|
|
28
|
+
) => sharedResolveGap(options, config, direction, gaps);
|
|
29
|
+
export const containerStyle = (
|
|
30
|
+
options: LayoutContainerOptions | undefined,
|
|
31
|
+
config: unknown,
|
|
32
|
+
direction: LayoutDirection,
|
|
33
|
+
) => sharedContainerStyle(options, config, direction, gaps);
|