@overmap-ai/core 1.0.38-component-fields.38 → 1.0.38-component-fields.40
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.
|
@@ -19,6 +19,7 @@ interface FormBuilderProps {
|
|
|
19
19
|
* @default true
|
|
20
20
|
*/
|
|
21
21
|
showTabs?: boolean;
|
|
22
|
+
tabsListClassName?: string;
|
|
22
23
|
}
|
|
23
24
|
export declare const FormBuilder: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<FormBuilderProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
24
25
|
export {};
|
package/dist/overmap-core.js
CHANGED
|
@@ -5541,7 +5541,7 @@ class UserFormService extends BaseApiService {
|
|
|
5541
5541
|
...componentTypeId && { component_type: componentTypeId },
|
|
5542
5542
|
initial_revision: payloadWithoutImage
|
|
5543
5543
|
},
|
|
5544
|
-
blockers: [componentTypeId]
|
|
5544
|
+
blockers: componentTypeId ? [componentTypeId] : [],
|
|
5545
5545
|
blocks: [offlineFormPayload.offline_id, payloadWithoutImage.offline_id]
|
|
5546
5546
|
});
|
|
5547
5547
|
const attachImagesPromises = this.getAttachImagePromises(images, offlineRevisionPayload.offline_id);
|
|
@@ -9699,12 +9699,12 @@ class FieldInputClonerField extends CustomField {
|
|
|
9699
9699
|
super(options, FieldInputCloner);
|
|
9700
9700
|
}
|
|
9701
9701
|
}
|
|
9702
|
-
const displayFileContainer = "
|
|
9703
|
-
const infoContainer = "
|
|
9704
|
-
const previewImage$1 = "
|
|
9705
|
-
const fileSizeText = "
|
|
9706
|
-
const nameContainer = "
|
|
9707
|
-
const useEllipsis = "
|
|
9702
|
+
const displayFileContainer = "_displayFileContainer_1i498_1";
|
|
9703
|
+
const infoContainer = "_infoContainer_1i498_6";
|
|
9704
|
+
const previewImage$1 = "_previewImage_1i498_10";
|
|
9705
|
+
const fileSizeText = "_fileSizeText_1i498_19";
|
|
9706
|
+
const nameContainer = "_nameContainer_1i498_24";
|
|
9707
|
+
const useEllipsis = "_useEllipsis_1i498_28";
|
|
9708
9708
|
const styles$4 = {
|
|
9709
9709
|
displayFileContainer,
|
|
9710
9710
|
infoContainer,
|
|
@@ -11691,7 +11691,8 @@ const FormBuilder = memo(
|
|
|
11691
11691
|
showExplainerText = true,
|
|
11692
11692
|
showFormTitle = true,
|
|
11693
11693
|
fieldsOnly = false,
|
|
11694
|
-
showTabs = true
|
|
11694
|
+
showTabs = true,
|
|
11695
|
+
tabsListClassName
|
|
11695
11696
|
} = props;
|
|
11696
11697
|
const { showError } = useToast();
|
|
11697
11698
|
const validate = useCallback(
|
|
@@ -11756,7 +11757,7 @@ const FormBuilder = memo(
|
|
|
11756
11757
|
});
|
|
11757
11758
|
const previewSchema = useMemo(() => formRevisionToSchema(formik.values), [formik.values]);
|
|
11758
11759
|
return /* @__PURE__ */ jsx(Tabs.Root, { ref, defaultValue: "edit", children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "2", children: [
|
|
11759
|
-
showTabs && /* @__PURE__ */ jsxs(Tabs.List, { className: styles$7.tabsList, children: [
|
|
11760
|
+
showTabs && /* @__PURE__ */ jsxs(Tabs.List, { className: classNames$1(styles$7.tabsList, tabsListClassName), children: [
|
|
11760
11761
|
/* @__PURE__ */ jsx(Tabs.Trigger, { className: styles$7.tabTrigger, value: "edit", children: /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "2", children: [
|
|
11761
11762
|
/* @__PURE__ */ jsx(Pencil1Icon, {}),
|
|
11762
11763
|
"Edit"
|