Merge remote-tracking branch 'origin/master' into feature/app-list-actions

This commit is contained in:
Dean 2024-02-22 15:00:34 +00:00
commit 6877d0a016
167 changed files with 973 additions and 304 deletions

View File

@ -1,5 +1,5 @@
{ {
"version": "2.20.3", "version": "2.20.8",
"npmClient": "yarn", "npmClient": "yarn",
"packages": [ "packages": [
"packages/*", "packages/*",

View File

@ -22,7 +22,7 @@
"nx-cloud": "16.0.5", "nx-cloud": "16.0.5",
"prettier": "2.8.8", "prettier": "2.8.8",
"prettier-plugin-svelte": "^2.3.0", "prettier-plugin-svelte": "^2.3.0",
"svelte": "3.49.0", "svelte": "^4.2.10",
"svelte-eslint-parser": "^0.33.1", "svelte-eslint-parser": "^0.33.1",
"typescript": "5.2.2", "typescript": "5.2.2",
"yargs": "^17.7.2" "yargs": "^17.7.2"

@ -1 +1 @@
Subproject commit 8c446c4ba385592127fa31755d3b64467b291882 Subproject commit a851eeacabfaad8bff6e781f5e5a62063cbc31f3

View File

@ -1,12 +1,12 @@
import Joi, { ObjectSchema } from "joi" import Joi from "joi"
import { BBContext } from "@budibase/types" import { Ctx } from "@budibase/types"
function validate( function validate(
schema: Joi.ObjectSchema | Joi.ArraySchema, schema: Joi.ObjectSchema | Joi.ArraySchema,
property: string property: string
) { ) {
// Return a Koa middleware function // Return a Koa middleware function
return (ctx: BBContext, next: any) => { return (ctx: Ctx, next: any) => {
if (!schema) { if (!schema) {
return next() return next()
} }
@ -30,7 +30,6 @@ function validate(
const { error } = schema.validate(params) const { error } = schema.validate(params)
if (error) { if (error) {
ctx.throw(400, `Invalid ${property} - ${error.message}`) ctx.throw(400, `Invalid ${property} - ${error.message}`)
return
} }
return next() return next()
} }

View File

@ -58,7 +58,7 @@ export const useCloudFree = () => {
// FEATURES // FEATURES
const useFeature = (feature: Feature) => { const useFeature = (feature: Feature) => {
const license = cloneDeep(UNLIMITED_LICENSE) const license = cloneDeep(getCachedLicense() || UNLIMITED_LICENSE)
const opts: UseLicenseOpts = { const opts: UseLicenseOpts = {
features: [feature], features: [feature],
} }

View File

@ -24,8 +24,7 @@
"rollup": "^2.45.2", "rollup": "^2.45.2",
"rollup-plugin-postcss": "^4.0.0", "rollup-plugin-postcss": "^4.0.0",
"rollup-plugin-svelte": "^7.1.0", "rollup-plugin-svelte": "^7.1.0",
"rollup-plugin-terser": "^7.0.2", "rollup-plugin-terser": "^7.0.2"
"svelte": "3.49.0"
}, },
"keywords": [ "keywords": [
"svelte" "svelte"

View File

@ -41,6 +41,7 @@
} }
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<span <span
class="btn-wrap" class="btn-wrap"
on:mouseover={() => (showTooltip = true)} on:mouseover={() => (showTooltip = true)}

View File

@ -33,6 +33,8 @@
setContext("actionMenu", { show, hide }) setContext("actionMenu", { show, hide })
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div use:getAnchor on:click={openMenu}> <div use:getAnchor on:click={openMenu}>
<slot name="control" /> <slot name="control" />
</div> </div>

View File

@ -13,6 +13,8 @@
export let hoverable = false export let hoverable = false
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<span <span
on:click on:click
class="spectrum-Label" class="spectrum-Label"

View File

@ -123,6 +123,8 @@
} }
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div <div
bind:this={preview} bind:this={preview}
class="preview size--{size || 'M'}" class="preview size--{size || 'M'}"
@ -137,6 +139,8 @@
/> />
</div> </div>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<Popover bind:this={dropdown} anchor={preview} maxHeight={320} {offset} {align}> <Popover bind:this={dropdown} anchor={preview} maxHeight={320} {offset} {align}>
<Layout paddingX="XL" paddingY="L"> <Layout paddingX="XL" paddingY="L">
<div class="container"> <div class="container">

View File

@ -15,6 +15,8 @@
} }
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="property-group-container"> <div class="property-group-container">
{#if name} {#if name}
<div class="property-group-name" on:click={onHeaderClick}> <div class="property-group-name" on:click={onHeaderClick}>

View File

@ -36,6 +36,8 @@
}) })
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div <div
bind:this={ref} bind:this={ref}
class="fancy-field" class="fancy-field"

View File

@ -35,6 +35,7 @@
} }
</script> </script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div <div
class="spectrum-InputGroup" class="spectrum-InputGroup"
class:is-focused={open || focus} class:is-focused={open || focus}

View File

@ -193,6 +193,8 @@
aria-required="false" aria-required="false"
aria-haspopup="true" aria-haspopup="true"
> >
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div <div
on:click={flatpickr?.open} on:click={flatpickr?.open}
class="spectrum-Textfield spectrum-InputGroup-textfield" class="spectrum-Textfield spectrum-InputGroup-textfield"
@ -230,6 +232,7 @@
</Flatpickr> </Flatpickr>
{/key} {/key}
{#if open} {#if open}
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="overlay" on:mousedown|self={flatpickr?.close} /> <div class="overlay" on:mousedown|self={flatpickr?.close} />
{/if} {/if}

View File

@ -137,6 +137,9 @@
} }
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-noninteractive-tabindex -->
<div class="container" class:compact> <div class="container" class:compact>
{#if selectedImage} {#if selectedImage}
{#if gallery} {#if gallery}

View File

@ -96,6 +96,8 @@
} }
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="spectrum-InputGroup"> <div class="spectrum-InputGroup">
<div <div
class:is-disabled={disabled || hbsValue.length} class:is-disabled={disabled || hbsValue.length}

View File

@ -50,6 +50,8 @@
on:change={handleFile} on:change={handleFile}
/> />
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="field"> <div class="field">
{#if value} {#if value}
<div class="file-view"> <div class="file-view">

View File

@ -110,6 +110,7 @@
} }
</script> </script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="spectrum-InputGroup" class:is-disabled={disabled}> <div class="spectrum-InputGroup" class:is-disabled={disabled}>
<div <div
class="spectrum-Textfield spectrum-InputGroup-textfield" class="spectrum-Textfield spectrum-InputGroup-textfield"

View File

@ -146,6 +146,7 @@
<use xlink:href="#spectrum-css-icon-Chevron100" /> <use xlink:href="#spectrum-css-icon-Chevron100" />
</svg> </svg>
</button> </button>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<Popover <Popover
anchor={customAnchor ? customAnchor : button} anchor={customAnchor ? customAnchor : button}
align={align || "left"} align={align || "left"}

View File

@ -104,6 +104,7 @@
} }
</script> </script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="spectrum-InputGroup" class:is-disabled={disabled}> <div class="spectrum-InputGroup" class:is-disabled={disabled}>
<div <div
class="spectrum-Textfield spectrum-InputGroup-textfield" class="spectrum-Textfield spectrum-InputGroup-textfield"

View File

@ -24,6 +24,8 @@
} }
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div <div
class="icon" class="icon"
on:mouseover={() => (showTooltip = true)} on:mouseover={() => (showTooltip = true)}

View File

@ -58,6 +58,8 @@
} }
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="container"> <div class="container">
<div class="preview size--{size || 'M'}" on:click={() => (open = true)}> <div class="preview size--{size || 'M'}" on:click={() => (open = true)}>
<div <div

View File

@ -10,6 +10,8 @@
let showTooltip = false let showTooltip = false
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div <div
class="icon-side-nav-item" class="icon-side-nav-item"
class:active class:active

View File

@ -17,6 +17,8 @@
} }
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div> <div>
<Input readonly {value} {label} /> <Input readonly {value} {label} />
<div class="icon" on:click={() => copyToClipboard(value)}> <div class="icon" on:click={() => copyToClipboard(value)}>

View File

@ -43,6 +43,7 @@
flex-direction: row; flex-direction: row;
justify-content: flex-start; justify-content: flex-start;
align-items: stretch; align-items: stretch;
overflow-y: scroll !important;
flex: 1 1 auto; flex: 1 1 auto;
overflow-x: hidden; overflow-x: hidden;
} }

View File

@ -15,6 +15,8 @@
$: initials = avatar ? title?.[0] : null $: initials = avatar ? title?.[0] : null
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="list-item" class:hoverable on:click> <div class="list-item" class:hoverable on:click>
<div class="left"> <div class="left">
{#if icon} {#if icon}

View File

@ -33,6 +33,7 @@
} }
</script> </script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<li <li
on:click|preventDefault={disabled ? null : onClick} on:click|preventDefault={disabled ? null : onClick}
class="spectrum-Menu-item" class="spectrum-Menu-item"

View File

@ -14,6 +14,8 @@
} }
</script> </script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div on:click={increment}> <div on:click={increment}>
Click me Click me
{remaining} {remaining}

View File

@ -100,6 +100,7 @@
--> -->
<Portal target=".modal-container"> <Portal target=".modal-container">
{#if visible} {#if visible}
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="spectrum-Underlay is-open" on:mousedown|self={cancel}> <div class="spectrum-Underlay is-open" on:mousedown|self={cancel}>
<div <div
class="background" class="background"

View File

@ -81,6 +81,8 @@
}) })
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div> <div>
<div <div
class="actions" class="actions"

View File

@ -10,6 +10,8 @@
export let hasNextPage = true export let hasNextPage = true
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<nav class="spectrum-Pagination spectrum-Pagination--explicit"> <nav class="spectrum-Pagination spectrum-Pagination--explicit">
<div <div
href="#" href="#"

View File

@ -78,6 +78,7 @@
</script> </script>
{#if open} {#if open}
<!-- svelte-ignore a11y-no-noninteractive-tabindex -->
<Portal {target}> <Portal {target}>
<div <div
tabindex="0" tabindex="0"

View File

@ -40,6 +40,8 @@
export let overBackground export let overBackground
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div <div
on:click on:click
class:spectrum-ProgressCircle--indeterminate={value == null} class:spectrum-ProgressCircle--indeterminate={value == null}

View File

@ -13,6 +13,8 @@
export let badge = "" export let badge = ""
</script> </script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
<li <li
class="spectrum-SideNav-item" class="spectrum-SideNav-item"
class:is-selected={selected} class:is-selected={selected}

View File

@ -22,6 +22,8 @@
export let hoverable = false export let hoverable = false
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div <div
on:click on:click
class="spectrum-StatusLight spectrum-StatusLight--size{size}" class="spectrum-StatusLight spectrum-StatusLight--size{size}"

View File

@ -19,6 +19,8 @@
} }
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div on:click|stopPropagation={onClick}> <div on:click|stopPropagation={onClick}>
<Icon size="S" name="Copy" /> <Icon size="S" name="Copy" />
</div> </div>

View File

@ -303,6 +303,8 @@
</script> </script>
{#key fields?.length} {#key fields?.length}
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div <div
class="wrapper" class="wrapper"
class:wrapper--quiet={quiet} class:wrapper--quiet={quiet}

View File

@ -48,6 +48,9 @@
} }
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-noninteractive-tabindex -->
<div <div
{id} {id}
bind:this={tab_internal} bind:this={tab_internal}

View File

@ -90,6 +90,7 @@
onDestroy(hide) onDestroy(hide)
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div <div
bind:this={wrapper} bind:this={wrapper}
class="abs-tooltip" class="abs-tooltip"

View File

@ -9,6 +9,7 @@
let showTooltip = false let showTooltip = false
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class:container={!!tooltip}> <div class:container={!!tooltip}>
<slot /> <slot />
{#if tooltip} {#if tooltip}

View File

@ -20,3 +20,9 @@
> >
<slot /> <slot />
</p> </p>
<style>
p {
text-wrap: pretty;
}
</style>

View File

@ -21,4 +21,8 @@
h1 { h1 {
font-family: var(--font-accent); font-family: var(--font-accent);
} }
h1 {
text-wrap: balance;
}
</style> </style>

View File

@ -86,14 +86,13 @@
"@rollup/plugin-replace": "^5.0.3", "@rollup/plugin-replace": "^5.0.3",
"@roxi/routify": "2.18.12", "@roxi/routify": "2.18.12",
"@sveltejs/vite-plugin-svelte": "1.4.0", "@sveltejs/vite-plugin-svelte": "1.4.0",
"@testing-library/jest-dom": "5.17.0", "@testing-library/jest-dom": "6.4.2",
"@testing-library/svelte": "^3.2.2", "@testing-library/svelte": "^4.1.0",
"babel-jest": "^29.6.2", "babel-jest": "^29.6.2",
"identity-obj-proxy": "^3.0.0", "identity-obj-proxy": "^3.0.0",
"jest": "29.7.0", "jest": "29.7.0",
"jsdom": "^21.1.1", "jsdom": "^21.1.1",
"ncp": "^2.0.0", "ncp": "^2.0.0",
"svelte": "^3.49.0",
"svelte-jester": "^1.3.2", "svelte-jester": "^1.3.2",
"vite": "^4.5.0", "vite": "^4.5.0",
"vite-plugin-static-copy": "^0.17.0", "vite-plugin-static-copy": "^0.17.0",

View File

@ -110,6 +110,8 @@
} }
</script> </script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<ModalContent <ModalContent
title="Add automation step" title="Add automation step"
confirmText="Save" confirmText="Save"

View File

@ -46,6 +46,8 @@
} }
</script> </script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="header" class:scrolling> <div class="header" class:scrolling>
<div class="header-left"> <div class="header-left">
<UndoRedoControl store={automationHistoryStore} /> <UndoRedoControl store={automationHistoryStore} />
@ -130,6 +132,7 @@
flex-grow: 1; flex-grow: 1;
padding: 23px 23px 80px; padding: 23px 23px 80px;
box-sizing: border-box; box-sizing: border-box;
overflow-x: hidden;
} }
.header.scrolling { .header.scrolling {

View File

@ -103,6 +103,8 @@
} }
</script> </script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class={`block ${block.type} hoverable`} class:selected on:click={() => {}}> <div class={`block ${block.type} hoverable`} class:selected on:click={() => {}}>
{#if loopBlock} {#if loopBlock}
<div class="blockSection"> <div class="blockSection">

View File

@ -93,6 +93,8 @@
} }
</script> </script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div <div
class:typing={typing && !automationNameError} class:typing={typing && !automationNameError}
class:typing-error={automationNameError} class:typing-error={automationNameError}

View File

@ -46,6 +46,8 @@
} }
</script> </script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<ModalContent <ModalContent
title="Create Automation" title="Create Automation"
confirmText="Save" confirmText="Save"

View File

@ -65,6 +65,8 @@
} }
</script> </script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="root"> <div class="root">
<div class="spacer" /> <div class="spacer" />
{#each fieldsArray as field} {#each fieldsArray as field}

View File

@ -757,6 +757,8 @@
/> />
</Modal> </Modal>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<ConfirmDialog <ConfirmDialog
bind:this={confirmDeleteDialog} bind:this={confirmDeleteDialog}
okText="Delete Column" okText="Delete Column"

View File

@ -32,6 +32,7 @@ vi.mock("svelte", async () => {
}, },
createEventDispatcher: vi.fn(), createEventDispatcher: vi.fn(),
onDestroy: vi.fn(), onDestroy: vi.fn(),
tick: vi.fn(),
} }
}) })

View File

@ -6,6 +6,8 @@
export let indented export let indented
</script> </script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class:indented class:selected on:click class={className}> <div class:indented class:selected on:click class={className}>
<i class={icon} /> <i class={icon} />
<span>{title}</span> <span>{title}</span>

View File

@ -237,6 +237,8 @@
</script> </script>
<svelte:window on:keydown={onKeyDown} /> <svelte:window on:keydown={onKeyDown} />
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<ModalContent <ModalContent
size="L" size="L"
showCancelButton={false} showCancelButton={false}

View File

@ -8,6 +8,8 @@
$: actionDefined = typeof action === "function" $: actionDefined = typeof action === "function"
</script> </script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="dash-card"> <div class="dash-card">
<div class="dash-card-header" class:active={actionDefined} on:click={action}> <div class="dash-card-header" class:active={actionDefined} on:click={action}>
<span class="dash-card-title"> <span class="dash-card-title">

View File

@ -1,3 +1,5 @@
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="dropdown-container" on:click> <div class="dropdown-container" on:click>
<slot /> <slot />
</div> </div>

View File

@ -5,6 +5,7 @@
export let disabled = false export let disabled = false
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="dropdown-item" class:disabled on:click {...$$restProps}> <div class="dropdown-item" class:disabled on:click {...$$restProps}>
{#if icon}<i class={icon} />{/if} {#if icon}<i class={icon} />{/if}
<div class="content"> <div class="content">

View File

@ -11,6 +11,8 @@
let modal let modal
</script> </script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="editable-icon"> <div class="editable-icon">
<div class="hover" on:click={modal.show}> <div class="hover" on:click={modal.show}>
<Icon name="Edit" {size} color="var(--spectrum-global-color-gray-600)" /> <Icon name="Edit" {size} color="var(--spectrum-global-color-gray-600)" />

View File

@ -1,3 +1,5 @@
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<svg <svg
on:click on:click
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"

Before

Width:  |  Height:  |  Size: 450 B

After

Width:  |  Height:  |  Size: 566 B

View File

@ -39,6 +39,7 @@
<svelte:window on:keydown={onKeyDown} /> <svelte:window on:keydown={onKeyDown} />
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="header" class:search> <div class="header" class:search>
<input <input
readonly={!search} readonly={!search}

View File

@ -60,6 +60,8 @@
} }
</script> </script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div <div
class="nav-item" class="nav-item"
class:hovering class:hovering

View File

@ -103,6 +103,9 @@
</Popover> </Popover>
</span> </span>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-no-noninteractive-element-interactions-->
<Layout noPadding gap="S"> <Layout noPadding gap="S">
{#if selectedCategory} {#if selectedCategory}
<div class="sub-section-back"> <div class="sub-section-back">

View File

@ -57,6 +57,8 @@
} }
</script> </script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="control" class:disabled> <div class="control" class:disabled>
<Combobox <Combobox
{label} {label}

View File

@ -60,6 +60,8 @@
} }
</script> </script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="control" class:disabled> <div class="control" class:disabled>
<Input <Input
{label} {label}

View File

@ -125,6 +125,8 @@
} }
</script> </script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="control" class:disabled> <div class="control" class:disabled>
{#if !isValid(value)} {#if !isValid(value)}
<Input <Input

View File

@ -35,6 +35,8 @@
} }
</script> </script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="control"> <div class="control">
<Input <Input
{label} {label}

View File

@ -149,6 +149,8 @@
} }
</script> </script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="action-top-nav"> <div class="action-top-nav">
<div class="action-buttons"> <div class="action-buttons">
{#if updateAvailable && $isOnlyUser} {#if updateAvailable && $isOnlyUser}

View File

@ -22,6 +22,8 @@
$: customTitleContent = $$slots["panel-title-content"] $: customTitleContent = $$slots["panel-title-content"]
</script> </script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div <div
class="panel" class="panel"
class:wide class:wide

View File

@ -249,6 +249,9 @@
} }
</script> </script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-no-noninteractive-element-interactions-->
<DrawerContent> <DrawerContent>
<Layout noPadding gap="S" slot="sidebar"> <Layout noPadding gap="S" slot="sidebar">
{#if showAvailableActions || !actions?.length} {#if showAvailableActions || !actions?.length}

View File

@ -94,6 +94,8 @@
} }
</script> </script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="button-configuration"> <div class="button-configuration">
{#if buttonCount} {#if buttonCount}
<DraggableList <DraggableList

View File

@ -85,6 +85,7 @@
} }
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<DrawerContent> <DrawerContent>
<div class="container"> <div class="container">
<Layout noPadding gap="S"> <Layout noPadding gap="S">

View File

@ -16,6 +16,7 @@
<Heading size="XS">{heading}</Heading> <Heading size="XS">{heading}</Heading>
</div> </div>
{/if} {/if}
<!-- svelte-ignore a11y-click-events-have-key-events -->
<ul class="spectrum-Menu" role="listbox"> <ul class="spectrum-Menu" role="listbox">
{#each dataSet as data} {#each dataSet as data}
<li <li

View File

@ -80,6 +80,9 @@
} }
</script> </script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-no-noninteractive-element-interactions-->
<ul <ul
class="list-wrap" class="list-wrap"
use:dndzone={{ use:dndzone={{

View File

@ -8,6 +8,8 @@
$: useIcon = !!icon $: useIcon = !!icon
</script> </script>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div class="flatbutton" class:selected on:click={() => onClick(value || text)}> <div class="flatbutton" class:selected on:click={() => onClick(value || text)}>
{#if useIcon} {#if useIcon}
<i class={icon} /> <i class={icon} />

View File

@ -116,11 +116,14 @@
$: pagerText = `Page ${currentPage} of ${totalPages}` $: pagerText = `Page ${currentPage} of ${totalPages}`
</script> </script>
a11y-click-events-have-key-events
<div bind:this={buttonAnchor}> <div bind:this={buttonAnchor}>
<ActionButton on:click={dropdown.show}> <ActionButton on:click={dropdown.show}>
{displayValue} {displayValue}
</ActionButton> </ActionButton>
</div> </div>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<Popover bind:this={dropdown} on:open={setSelectedUI} anchor={buttonAnchor}> <Popover bind:this={dropdown} on:open={setSelectedUI} anchor={buttonAnchor}>
<div class="container"> <div class="container">
<div class="search-area"> <div class="search-area">

View File

@ -5,6 +5,8 @@
export let disabled = false export let disabled = false
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="side-nav-item"> <div class="side-nav-item">
{#if url} {#if url}
<a class="text" on:click href={url} class:active class:disabled> <a class="text" on:click href={url} class:active class:disabled>

View File

@ -39,6 +39,8 @@
} }
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="container"> <div class="container">
<Layout gap="S"> <Layout gap="S">
<div class="header"> <div class="header">

View File

@ -39,6 +39,8 @@
} }
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div <div
class="app-row" class="app-row"
on:click={lockedAction || handleDefaultClick} on:click={lockedAction || handleDefaultClick}

View File

@ -58,6 +58,8 @@
} }
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<ModalContent title="Edit Icon" confirmText="Save" onConfirm={save}> <ModalContent title="Edit Icon" confirmText="Save" onConfirm={save}>
<div class="scrollable-icons"> <div class="scrollable-icons">
<div class="title-spacing"> <div class="title-spacing">

View File

@ -539,6 +539,8 @@
<svelte:window on:keydown={handleKeyDown} /> <svelte:window on:keydown={handleKeyDown} />
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div <div
transition:fly={{ x: 400, duration: 260 }} transition:fly={{ x: 400, duration: 260 }}
id="builder-side-panel-container" id="builder-side-panel-container"

View File

@ -24,6 +24,8 @@
}) })
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div <div
class="preview-overlay" class="preview-overlay"
transition:fade={{ duration: 260 }} transition:fade={{ duration: 260 }}

View File

@ -6,6 +6,8 @@
export let disabled export let disabled
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div on:click class:disabled class="option"> <div on:click class:disabled class="option">
<div class="header"> <div class="header">
<div class="icon"> <div class="icon">

View File

@ -54,6 +54,8 @@
} }
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="button" on:click> <div class="button" on:click>
<div class="left"> <div class="left">
{#if datasource.source !== IntegrationTypes.REST} {#if datasource.source !== IntegrationTypes.REST}

View File

@ -27,6 +27,8 @@
<CreateTableModal /> <CreateTableModal />
</Modal> </Modal>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<section> <section>
<Layout> <Layout>
<Layout gap="XS" noPadding> <Layout gap="XS" noPadding>

View File

@ -25,6 +25,8 @@
<CreateTableModal /> <CreateTableModal />
</Modal> </Modal>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<section> <section>
<Layout> <Layout>
<Layout gap="XS" noPadding> <Layout gap="XS" noPadding>

View File

@ -77,7 +77,7 @@
</DatasourceOption> </DatasourceOption>
<DatasourceOption <DatasourceOption
on:click={() => internalTableModal.show({ promptUpload: true })} on:click={() => internalTableModal.show({ promptUpload: true })}
title="Upload data" title="Upload CSV / JSON"
description="Non-relational" description="Non-relational"
{disabled} {disabled}
> >

View File

@ -149,6 +149,7 @@
} }
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<DrawerContent> <DrawerContent>
<div class="container"> <div class="container">
<Layout noPadding> <Layout noPadding>

View File

@ -45,6 +45,7 @@
} }
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<DrawerContent> <DrawerContent>
<div class="container"> <div class="container">
<Layout noPadding gap="S"> <Layout noPadding gap="S">

View File

@ -12,6 +12,8 @@
} }
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="container"> <div class="container">
{#each Constants.Themes as theme} {#each Constants.Themes as theme}
<div <div

View File

@ -219,6 +219,8 @@
} }
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="container" transition:fly|local={{ x: 260, duration: 300 }}> <div class="container" transition:fly|local={{ x: 260, duration: 300 }}>
<Panel <Panel
title="Add component" title="Add component"

View File

@ -236,6 +236,8 @@
}) })
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="component-container"> <div class="component-container">
{#if loading} {#if loading}
<div class="center"> <div class="center">

View File

@ -63,6 +63,7 @@
} }
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div <div
on:scroll on:scroll
bind:this={scrollRef} bind:this={scrollRef}

View File

@ -86,6 +86,8 @@
const hover = hoverStore.hover const hover = hoverStore.hover
</script> </script>
<!-- svelte-ignore a11y-no-noninteractive-element-interactions-->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<ul> <ul>
{#each filteredComponents || [] as component, index (component._id)} {#each filteredComponents || [] as component, index (component._id)}
{@const opened = isOpen(component, $selectedComponentPath, openNodes)} {@const opened = isOpen(component, $selectedComponentPath, openNodes)}

View File

@ -45,6 +45,8 @@
const hover = hoverStore.hover const hover = hoverStore.hover
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="components"> <div class="components">
<div class="header" class:scrolling> <div class="header" class:scrolling>
<Body size="S">Components</Body> <Body size="S">Components</Body>

View File

@ -16,6 +16,7 @@
: `Requires ${role?.name} access` : `Requires ${role?.name} access`
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div <div
class="container" class="container"
on:mouseover={() => (showTooltip = true)} on:mouseover={() => (showTooltip = true)}

View File

@ -7,6 +7,8 @@
$: icon = datasource.type === "viewV2" ? "Remove" : "Table" $: icon = datasource.type === "viewV2" ? "Remove" : "Table"
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="data-source-entry" class:selected on:click> <div class="data-source-entry" class:selected on:click>
<Icon name={icon} color="var(--spectrum-global-color-gray-600)" /> <Icon name={icon} color="var(--spectrum-global-color-gray-600)" />
{datasource.label} {datasource.label}

View File

@ -14,6 +14,8 @@
$: hasScreens = $screenStore.screens?.length $: hasScreens = $screenStore.screens?.length
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="page"> <div class="page">
<CreationPage <CreationPage
showClose={!!onClose} showClose={!!onClose}

View File

@ -44,6 +44,8 @@
}) })
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<TestimonialPage enabled={$organisation.testimonialsEnabled}> <TestimonialPage enabled={$organisation.testimonialsEnabled}>
<Layout gap="S" noPadding> <Layout gap="S" noPadding>
<img alt="logo" src={$organisation.logoUrl || Logo} /> <img alt="logo" src={$organisation.logoUrl || Logo} />

View File

@ -4,6 +4,8 @@
import { organisation } from "stores/portal" import { organisation } from "stores/portal"
</script> </script>
<!-- svelte-ignore a11y-no-noninteractive-element-interactions-->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<img <img
src={$organisation.logoUrl || Logo} src={$organisation.logoUrl || Logo}
alt="Budibase Logo" alt="Budibase Logo"

View File

@ -15,6 +15,8 @@
const close = () => dispatch("close") const close = () => dispatch("close")
</script> </script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
{#if visible} {#if visible}
<div <div
class="mobile-nav-underlay" class="mobile-nav-underlay"
@ -22,6 +24,8 @@
on:click={close} on:click={close}
/> />
{/if} {/if}
<!-- svelte-ignore a11y-no-static-element-interactions -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div class="mobile-nav" class:visible> <div class="mobile-nav" class:visible>
<Layout noPadding gap="M"> <Layout noPadding gap="M">
<div on:click={close}> <div on:click={close}>

View File

@ -10,7 +10,7 @@
{#if $admin.cloud && $auth?.user?.accountPortalAccess} {#if $admin.cloud && $auth?.user?.accountPortalAccess}
<Button <Button
cta cta
size="S" size="M"
on:click on:click
on:click={() => { on:click={() => {
window.open($admin.accountPortalUrl + "/portal/upgrade", "_blank") window.open($admin.accountPortalUrl + "/portal/upgrade", "_blank")
@ -21,7 +21,7 @@
{:else if !$admin.cloud && sdk.users.isAdmin($auth.user)} {:else if !$admin.cloud && sdk.users.isAdmin($auth.user)}
<Button <Button
cta cta
size="S" size="M"
on:click={() => $goto("/builder/portal/account/upgrade")} on:click={() => $goto("/builder/portal/account/upgrade")}
on:click on:click
> >

Some files were not shown because too many files have changed in this diff Show More