1
0
Fork 0
mirror of synced 2024-09-17 17:57:47 +12:00

Merge branch 'develop' into BUDI-7367/ds_plus_row_unittest

This commit is contained in:
Adria Navarro 2023-09-12 09:20:00 +02:00
commit a3e9765555
8 changed files with 39 additions and 21 deletions

View file

@ -1,5 +1,5 @@
{ {
"version": "2.9.40-alpha.7", "version": "2.10.3-alpha.0",
"npmClient": "yarn", "npmClient": "yarn",
"packages": [ "packages": [
"packages/*" "packages/*"

View file

@ -1,4 +1,5 @@
#!/usr/bin/node #!/usr/bin/node
const coreBuild = require("../../../scripts/build") const coreBuild = require("../../../scripts/build")
coreBuild("./src/plugin/index.ts", "./dist/plugins.js")
coreBuild("./src/index.ts", "./dist/index.js") coreBuild("./src/index.ts", "./dist/index.js")

View file

@ -504,22 +504,33 @@ const getDeviceBindings = () => {
let bindings = [] let bindings = []
if (get(store).clientFeatures?.deviceAwareness) { if (get(store).clientFeatures?.deviceAwareness) {
const safeDevice = makePropSafe("device") const safeDevice = makePropSafe("device")
bindings.push({
bindings = [
{
type: "context", type: "context",
runtimeBinding: `${safeDevice}.${makePropSafe("mobile")}`, runtimeBinding: `${safeDevice}.${makePropSafe("mobile")}`,
readableBinding: `Device.Mobile`, readableBinding: `Device.Mobile`,
category: "Device", category: "Device",
icon: "DevicePhone", icon: "DevicePhone",
display: { type: "boolean", name: "mobile" }, display: { type: "boolean", name: "mobile" },
}) },
bindings.push({ {
type: "context", type: "context",
runtimeBinding: `${safeDevice}.${makePropSafe("tablet")}`, runtimeBinding: `${safeDevice}.${makePropSafe("tablet")}`,
readableBinding: `Device.Tablet`, readableBinding: `Device.Tablet`,
category: "Device", category: "Device",
icon: "DevicePhone", icon: "DevicePhone",
display: { type: "boolean", name: "tablet" }, display: { type: "boolean", name: "tablet" },
}) },
{
type: "context",
runtimeBinding: `${safeDevice}.${makePropSafe("theme")}`,
readableBinding: `App.Theme`,
category: "Device",
icon: "DevicePhone",
display: { type: "string", name: "App Theme" },
},
]
} }
return bindings return bindings
} }

View file

@ -55,7 +55,7 @@
let linkEditDisabled let linkEditDisabled
let primaryDisplay let primaryDisplay
let indexes = [...($tables.selected.indexes || [])] let indexes = [...($tables.selected.indexes || [])]
let isCreating let isCreating = undefined
let table = $tables.selected let table = $tables.selected
let confirmDeleteDialog let confirmDeleteDialog
@ -75,11 +75,11 @@
} }
const initialiseField = (field, savingColumn) => { const initialiseField = (field, savingColumn) => {
isCreating = !field
if (field && !savingColumn) { if (field && !savingColumn) {
editableColumn = cloneDeep(field) editableColumn = cloneDeep(field)
originalName = editableColumn.name ? editableColumn.name + "" : null originalName = editableColumn.name ? editableColumn.name + "" : null
linkEditDisabled = originalName != null linkEditDisabled = originalName != null
isCreating = originalName == null
primaryDisplay = primaryDisplay =
$tables.selected.primaryDisplay == null || $tables.selected.primaryDisplay == null ||
$tables.selected.primaryDisplay === editableColumn.name $tables.selected.primaryDisplay === editableColumn.name
@ -584,6 +584,7 @@
{ label: "Dynamic", value: "dynamic" }, { label: "Dynamic", value: "dynamic" },
{ label: "Static", value: "static" }, { label: "Static", value: "static" },
]} ]}
disabled={!isCreating}
getOptionLabel={option => option.label} getOptionLabel={option => option.label}
getOptionValue={option => option.value} getOptionValue={option => option.value}
tooltip="Dynamic formula are calculated when retrieved, but cannot be filtered or sorted by, tooltip="Dynamic formula are calculated when retrieved, but cannot be filtered or sorted by,

View file

@ -21,6 +21,7 @@
$selectedScreen, $selectedScreen,
$store.selectedComponentId $store.selectedComponentId
) )
$: componentBindings = getComponentBindableProperties( $: componentBindings = getComponentBindableProperties(
$selectedScreen, $selectedScreen,
$store.selectedComponentId $store.selectedComponentId

View file

@ -107,7 +107,7 @@ export const createLicensingStore = () => {
Constants.Features.USER_GROUPS Constants.Features.USER_GROUPS
) )
const backupsEnabled = license.features.includes( const backupsEnabled = license.features.includes(
Constants.Features.BACKUPS Constants.Features.APP_BACKUPS
) )
const scimEnabled = license.features.includes(Constants.Features.SCIM) const scimEnabled = license.features.includes(Constants.Features.SCIM)
const environmentVariablesEnabled = license.features.includes( const environmentVariablesEnabled = license.features.includes(

View file

@ -1,6 +1,7 @@
<script> <script>
import Provider from "./Provider.svelte" import Provider from "./Provider.svelte"
import { onMount, onDestroy } from "svelte" import { onMount, onDestroy } from "svelte"
import { themeStore } from "stores"
let width = window.innerWidth let width = window.innerWidth
let height = window.innerHeight let height = window.innerHeight
@ -13,11 +14,14 @@
} }
}) })
$: theme = $themeStore.theme
$: data = { $: data = {
mobile: width && width < tabletBreakpoint, mobile: width && width < tabletBreakpoint,
tablet: width && width >= tabletBreakpoint && width < desktopBreakpoint, tablet: width && width >= tabletBreakpoint && width < desktopBreakpoint,
width, width,
height, height,
theme,
} }
onMount(() => { onMount(() => {

View file

@ -92,7 +92,7 @@ export async function getResourcePerms(
// update the various roleIds in the resource permissions // update the various roleIds in the resource permissions
for (let role of rolesList) { for (let role of rolesList) {
const rolePerms = allowsExplicitPerm const rolePerms = allowsExplicitPerm
? roles.checkForRoleResourceArray(role.permissions, resourceId) ? roles.checkForRoleResourceArray(role.permissions || {}, resourceId)
: {} : {}
if (rolePerms[resourceId]?.indexOf(level) > -1) { if (rolePerms[resourceId]?.indexOf(level) > -1) {
permissions[level] = { permissions[level] = {