Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bindings explorer panel #15403

Merged
merged 27 commits into from
Jan 23, 2025
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
1048a50
Add functional bindings panel
aptkingston Jan 15, 2025
cf291b6
Add style improvements
aptkingston Jan 15, 2025
59d7111
Test
aptkingston Jan 15, 2025
28cdfe0
Merge branch 'master' of github.com:Budibase/budibase into bindings-p…
aptkingston Jan 16, 2025
fa01802
Update import
aptkingston Jan 16, 2025
5acd6ab
Add hover state and expansion to binding labels
aptkingston Jan 16, 2025
050f1e7
Convert multiple files to TS and update BBUI to support TS
aptkingston Jan 17, 2025
e3fd84d
Merge branch 'state-and-bindings-panels' of github.com:Budibase/budib…
aptkingston Jan 17, 2025
74701fe
Merge branch 'state-and-bindings-panels' of github.com:Budibase/budib…
aptkingston Jan 17, 2025
8bf6b6c
Move bindings panel into left panel
aptkingston Jan 20, 2025
c3b4a36
Add link to bindings docs
aptkingston Jan 20, 2025
0343691
Add copy icon on hover
aptkingston Jan 20, 2025
9744798
Update behaviour for copying bindings
aptkingston Jan 20, 2025
1edf380
Update component panel to remove header and add component button
aptkingston Jan 20, 2025
d872ee1
Move components around
aptkingston Jan 20, 2025
f0594c6
Remove example data types
aptkingston Jan 20, 2025
007157d
Fix lint
aptkingston Jan 20, 2025
c185e80
Type AbsTooltip
aptkingston Jan 21, 2025
3bd8bec
Make binding viewer a more generic JSON viewer
aptkingston Jan 21, 2025
b54a9fb
Fix TS exports of enums from BBUI, bump portal version
aptkingston Jan 21, 2025
aa5f5ba
Fix AI settings tests
aptkingston Jan 21, 2025
aac4d1e
Fix version of svelte-portal across the board
aptkingston Jan 21, 2025
27a7c29
Increase max length of JSON viewer labels for primitive values
aptkingston Jan 21, 2025
ce9e3ce
Merge branch 'state-and-bindings-panels' of github.com:Budibase/budib…
aptkingston Jan 21, 2025
bdd1f76
Merge branch 'state-and-bindings-panels' of github.com:Budibase/budib…
aptkingston Jan 23, 2025
f4a10d4
Move component keyboard handler to allow it to function when bindings…
aptkingston Jan 23, 2025
2c1c5d7
Remove placeholder state panel button
aptkingston Jan 23, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Type AbsTooltip
aptkingston committed Jan 21, 2025
commit c185e806b60b51dc7ea23947be333ad5df1ea0f4
Empty file removed asd
Empty file.
52 changes: 26 additions & 26 deletions packages/bbui/src/Tooltip/AbsTooltip.svelte
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
<script context="module">
export const TooltipPosition = {
Top: "top",
Right: "right",
Bottom: "bottom",
Left: "left",
}
export const TooltipType = {
Default: "default",
Info: "info",
Positive: "positive",
Negative: "negative",
<script context="module" lang="ts">
export enum TooltipPosition {
Top = "top",

Check failure on line 3 in packages/bbui/src/Tooltip/AbsTooltip.svelte

GitHub Actions / lint

'Top' is defined but never used. Allowed unused vars must match /^_/u
Right = "right",

Check failure on line 4 in packages/bbui/src/Tooltip/AbsTooltip.svelte

GitHub Actions / lint

'Right' is defined but never used. Allowed unused vars must match /^_/u
Bottom = "bottom",

Check failure on line 5 in packages/bbui/src/Tooltip/AbsTooltip.svelte

GitHub Actions / lint

'Bottom' is defined but never used. Allowed unused vars must match /^_/u
Left = "left",
}
export enum TooltipType {
Default = "default",
Info = "info",
Positive = "positive",
Negative = "negative",
}
</script>

<script>
<script lang="ts">
import Portal from "svelte-portal"
import { fade } from "svelte/transition"
import "@spectrum-css/tooltip/dist/index-vars.css"
import { onDestroy } from "svelte"

export let position = TooltipPosition.Top
export let type = TooltipType.Default
export let text = ""
export let fixed = false
export let color = null
export let noWrap = false
export let position: TooltipPosition = TooltipPosition.Top
export let type: TooltipType = TooltipType.Default
export let text: string = ""
export let fixed: boolean = false
export let color: string | undefined = undefined
export let noWrap: boolean = false

let wrapper
let wrapper: HTMLElement | undefined
let hovered = false
let left
let top
let left: number | undefined
let top: number | undefined
let visible = false
let timeout
let interval
let timeout: ReturnType<typeof setTimeout> | undefined
let interval: ReturnType<typeof setInterval> | undefined

$: {
if (hovered || fixed) {
@@ -49,8 +49,8 @@
const updateTooltipPosition = () => {
const node = wrapper?.children?.[0]
if (!node) {
left = null
top = null
left = undefined
top = undefined
return
}
const bounds = node.getBoundingClientRect()

Unchanged files with check annotations Beta

<script context="module" lang="ts">
export enum PopoverAlignment {
Left = "left",

Check failure on line 3 in packages/bbui/src/Popover/Popover.svelte

GitHub Actions / lint

'Left' is defined but never used. Allowed unused vars must match /^_/u
Right = "right",

Check failure on line 4 in packages/bbui/src/Popover/Popover.svelte

GitHub Actions / lint

'Right' is defined but never used. Allowed unused vars must match /^_/u
LeftOutside = "left-outside",

Check failure on line 5 in packages/bbui/src/Popover/Popover.svelte

GitHub Actions / lint

'LeftOutside' is defined but never used. Allowed unused vars must match /^_/u
RightOutside = "right-outside",

Check failure on line 6 in packages/bbui/src/Popover/Popover.svelte

GitHub Actions / lint

'RightOutside' is defined but never used. Allowed unused vars must match /^_/u
Center = "center",

Check failure on line 7 in packages/bbui/src/Popover/Popover.svelte

GitHub Actions / lint

'Center' is defined but never used. Allowed unused vars must match /^_/u
RightContextMenu = "right-context-menu",

Check failure on line 8 in packages/bbui/src/Popover/Popover.svelte

GitHub Actions / lint

'RightContextMenu' is defined but never used. Allowed unused vars must match /^_/u
LeftContextMenu = "left-context-menu",

Check failure on line 9 in packages/bbui/src/Popover/Popover.svelte

GitHub Actions / lint

'LeftContextMenu' is defined but never used. Allowed unused vars must match /^_/u
}
export interface PopoverAPI {