Merge branch 'develop' into BUDI-7367/ds_plus_row_unittest
This commit is contained in:
commit
a3e9765555
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"version": "2.9.40-alpha.7",
|
"version": "2.10.3-alpha.0",
|
||||||
"npmClient": "yarn",
|
"npmClient": "yarn",
|
||||||
"packages": [
|
"packages": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
|
|
|
@ -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")
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
$selectedScreen,
|
$selectedScreen,
|
||||||
$store.selectedComponentId
|
$store.selectedComponentId
|
||||||
)
|
)
|
||||||
|
|
||||||
$: componentBindings = getComponentBindableProperties(
|
$: componentBindings = getComponentBindableProperties(
|
||||||
$selectedScreen,
|
$selectedScreen,
|
||||||
$store.selectedComponentId
|
$store.selectedComponentId
|
||||||
|
|
|
@ -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(
|
||||||
|
|
|
@ -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(() => {
|
||||||
|
|
|
@ -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] = {
|
||||||
|
|
Loading…
Reference in New Issue