diff --git a/packages/bbui/src/Form/Core/TextField.svelte b/packages/bbui/src/Form/Core/TextField.svelte index cbc062d99a..f29cb379a2 100644 --- a/packages/bbui/src/Form/Core/TextField.svelte +++ b/packages/bbui/src/Form/Core/TextField.svelte @@ -66,12 +66,11 @@ if (type === "bigint") { return "numeric" } - return type === "number" ? -"decimal" : "text" + return type === "number" ? "decimal" : "text" } onMount(() => { - if (disabled) return; + if (disabled) return focus = autofocus if (focus) field.focus() }) diff --git a/packages/builder/src/builderStore/componentUtils.js b/packages/builder/src/builderStore/componentUtils.js index 85171ece66..a7ee3ff351 100644 --- a/packages/builder/src/builderStore/componentUtils.js +++ b/packages/builder/src/builderStore/componentUtils.js @@ -257,9 +257,10 @@ export const getComponentName = component => { return "" } - const components = get(store)?.components || {}; - const componentDefinition = components[component._component] || {}; - const name = componentDefinition.friendlyName || componentDefinition.name || ""; + const components = get(store)?.components || {} + const componentDefinition = components[component._component] || {} + const name = + componentDefinition.friendlyName || componentDefinition.name || "" - return name; + return name } diff --git a/packages/builder/src/builderStore/index.js b/packages/builder/src/builderStore/index.js index 583611a105..8b06e21d68 100644 --- a/packages/builder/src/builderStore/index.js +++ b/packages/builder/src/builderStore/index.js @@ -4,7 +4,7 @@ import { getTemporalStore } from "./store/temporal" import { getThemeStore } from "./store/theme" import { getUserStore } from "./store/users" import { getDeploymentStore } from "./store/deployments" -import { derived, writable } from "svelte/store" +import { derived } from "svelte/store" import { findComponent, findComponentPath } from "./componentUtils" import { RoleUtils } from "@budibase/frontend-core" import { createHistoryStore } from "builderStore/store/history" diff --git a/packages/builder/src/components/common/NavItem.svelte b/packages/builder/src/components/common/NavItem.svelte index 1a18d92eca..b6211b6c15 100644 --- a/packages/builder/src/components/common/NavItem.svelte +++ b/packages/builder/src/components/common/NavItem.svelte @@ -100,7 +100,7 @@ {:else if icon}
- +
{/if} diff --git a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Component/ComponentSettingsPanel.svelte b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Component/ComponentSettingsPanel.svelte index a08a71d10f..6281fc972f 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Component/ComponentSettingsPanel.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Component/ComponentSettingsPanel.svelte @@ -45,12 +45,18 @@ $: id = $selectedComponent?._id $: id, (section = tabs[0]) - $: componentName = getComponentName(componentInstance); + $: componentName = getComponentName(componentInstance) {#if $selectedComponent} {#key $selectedComponent._id} - + import ScreenList from "./ScreenList/index.svelte" import ComponentList from "./ComponentList/index.svelte" - import { getHorizontalResizeActions } from './ScreenList/resizable'; + import { getHorizontalResizeActions } from "./ScreenList/resizable" - const [resizable, resizableHandle] = getHorizontalResizeActions(); + const [resizable, resizableHandle] = getHorizontalResizeActions()
@@ -11,13 +11,8 @@
-
-