refactoring - lodash/fp
This commit is contained in:
parent
cb6fe94584
commit
3cfe71cbbb
|
@ -31,13 +31,14 @@ const apiProxy = proxy(['/_builder/api/**', '/_builder/**/componentlibrary'] ,
|
|||
const production = !process.env.ROLLUP_WATCH;
|
||||
|
||||
const lodash_fp_exports = ["union", "reduce", "isUndefined", "cloneDeep", "split", "some", "map", "filter", "isEmpty", "countBy", "includes", "last", "find", "constant",
|
||||
"take", "first", "intersection", "mapValues", "isNull", "has", "isNumber", "isString", "isBoolean", "isDate", "isArray", "isObject", "clone", "values", "keyBy",
|
||||
"take", "first", "intersection", "mapValues", "isNull", "has", "isInteger", "isNumber", "isString", "isBoolean", "isDate", "isArray", "isObject", "clone", "values", "keyBy", "isNaN",
|
||||
"keys", "orderBy", "concat", "reverse", "difference", "merge", "flatten", "each", "pull", "join", "defaultCase", "uniqBy", "every", "uniqWith", "isFunction", "groupBy",
|
||||
"differenceBy", "intersectionBy", "isEqual", "max", "sortBy", "assign", "uniq", "trimChars", "trimCharsStart", "isObjectLike", "flattenDeep", "indexOf", "isPlainObject"];
|
||||
"differenceBy", "intersectionBy", "isEqual", "max", "sortBy", "assign", "uniq", "trimChars", "trimCharsStart", "isObjectLike", "flattenDeep", "indexOf", "isPlainObject",
|
||||
"toNumber"];
|
||||
|
||||
const lodash_exports = ["toNumber", "flow", "isArray", "join", "replace", "trim", "dropRight", "takeRight", "head", "isUndefined", "isNull", "isNaN", "reduce", "isEmpty",
|
||||
"constant", "tail", "includes", "startsWith", "findIndex", "isInteger", "isDate", "isString", "split", "clone", "keys", "isFunction", "merge", "has", "isBoolean", "isNumber",
|
||||
"isObjectLike", "assign", "some", "each", "find", "orderBy", "union", "cloneDeep"];
|
||||
const lodash_exports = ["flow", "join", "replace", "trim", "dropRight", "takeRight", "head", "reduce",
|
||||
"tail", "startsWith", "findIndex", "merge",
|
||||
"assign", "each", "find", "orderBy", "union"];
|
||||
|
||||
const outputpath = "../server/builder";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<script>
|
||||
|
||||
import {store} from "../builderStore";
|
||||
import {cloneDeep} from "lodash";
|
||||
import {cloneDeep} from "lodash/fp";
|
||||
export let level = 0;
|
||||
export let node;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<script>
|
||||
|
||||
import {store} from "../builderStore";
|
||||
import {cloneDeep} from "lodash";
|
||||
import {cloneDeep} from "lodash/fp";
|
||||
import getIcon from "../common/icon";
|
||||
export let level = 0;
|
||||
export let node;
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@nx-js/compiler-util": "^2.0.0",
|
||||
"date-fns": "^1.29.0",
|
||||
"lodash": "^4.17.15",
|
||||
"lunr": "^2.3.5",
|
||||
"shortid": "^2.2.8",
|
||||
|
|
|
@ -7,19 +7,24 @@ import { terser } from 'rollup-plugin-terser';
|
|||
const lodash_fp_exports = [
|
||||
"find", "isUndefined", "split",
|
||||
"last", "union", "reduce", "isObject",
|
||||
"cloneDeep", "some", "isArray"];
|
||||
"cloneDeep", "some", "isArray", "map",
|
||||
"filter", "keys", "isFunction", "isEmpty",
|
||||
"countBy", "join", "includes", "flatten",
|
||||
"constant", "first", "intersection", "take",
|
||||
"has", "mapValues", "isString", "isBoolean",
|
||||
"isNull", "isNumber", "isObjectLike", "isDate",
|
||||
"clone", "values", "keyBy", "isNaN",
|
||||
"isInteger", "toNumber"];
|
||||
|
||||
const lodash_exports = [
|
||||
"flow","reduce", "constant", "head", "isEmpty",
|
||||
"flow", "head",
|
||||
"tail", "findIndex", "startsWith",
|
||||
"join", "dropRight", "takeRight",
|
||||
"trim", "split", "includes", "replace",
|
||||
"isArray", "isString", "isInteger",
|
||||
"isDate", "toNumber", "isUndefined",
|
||||
"isNull", "isNaN"];
|
||||
"dropRight", "takeRight",
|
||||
"trim", "split", "replace",
|
||||
"merge", "assign"];
|
||||
|
||||
const coreExternal = [
|
||||
"lodash", "lodash/fp", "date-fns",
|
||||
"lodash", "lodash/fp",
|
||||
"lunr", "safe-buffer", "shortid",
|
||||
"@nx-js/compiler-util"
|
||||
];
|
||||
|
@ -36,7 +41,7 @@ export default {
|
|||
{
|
||||
file: 'dist/budibase-client.esm.mjs',
|
||||
format: 'esm',
|
||||
sourcemap: 'inline'
|
||||
sourcemap: true
|
||||
}
|
||||
],
|
||||
plugins: [
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,7 +1,7 @@
|
|||
import { has } from 'lodash';
|
||||
import { has } from 'lodash/fp';
|
||||
|
||||
const publish = handlers => async (eventName, context = {}) => {
|
||||
if (!has(handlers, eventName)) return;
|
||||
if (!has(eventName)(handlers)) return;
|
||||
|
||||
for (const handler of handlers[eventName]) {
|
||||
await handler(eventName, context);
|
||||
|
@ -9,7 +9,7 @@ const publish = handlers => async (eventName, context = {}) => {
|
|||
};
|
||||
|
||||
const subscribe = handlers => (eventName, handler) => {
|
||||
if (!has(handlers, eventName)) {
|
||||
if (!has(eventName)(handlers)) {
|
||||
handlers[eventName] = [];
|
||||
}
|
||||
handlers[eventName].push(handler);
|
||||
|
|
|
@ -1,12 +1,17 @@
|
|||
import {
|
||||
isUndefined, isNaN, isNull,
|
||||
reduce, constant, head, isEmpty,
|
||||
tail, findIndex, startsWith, join,
|
||||
|
||||
head,
|
||||
tail, findIndex, startsWith,
|
||||
dropRight, flow, takeRight, trim,
|
||||
split, includes, replace, isArray,
|
||||
isString, isInteger, isDate, toNumber,
|
||||
replace
|
||||
|
||||
} from 'lodash';
|
||||
import { some } from 'lodash/fp';
|
||||
import {
|
||||
some, reduce, isEmpty, isArray, join,
|
||||
isString, isInteger, isDate, toNumber,
|
||||
isUndefined, isNaN, isNull, constant,
|
||||
split, includes
|
||||
} from 'lodash/fp';
|
||||
import { events, eventsList } from './events';
|
||||
import { apiWrapper } from './apiWrapper';
|
||||
import {
|
||||
|
@ -22,12 +27,12 @@ export const $ = (arg, funcs) => $$(...funcs)(arg);
|
|||
|
||||
export const keySep = '/';
|
||||
const trimKeySep = str => trim(str, keySep);
|
||||
const splitByKeySep = str => split(str, keySep);
|
||||
const splitByKeySep = str => split(keySep)(str);
|
||||
export const safeKey = key => replace(`${keySep}${trimKeySep(key)}`, `${keySep}${keySep}`, keySep);
|
||||
export const joinKey = (...strs) => {
|
||||
const paramsOrArray = strs.length === 1 & isArray(strs[0])
|
||||
? strs[0] : strs;
|
||||
return safeKey(join(paramsOrArray, keySep));
|
||||
return safeKey(join(keySep)(paramsOrArray));
|
||||
};
|
||||
export const splitKey = $$(trimKeySep, splitByKeySep);
|
||||
export const getDirFomKey = $$(splitKey, dropRight, p => joinKey(...p));
|
||||
|
@ -51,13 +56,13 @@ export const isDefined = not(isUndefined);
|
|||
export const isNonNull = not(isNull);
|
||||
export const isNotNaN = not(isNaN);
|
||||
|
||||
export const allTrue = (...funcArgs) => val => reduce(funcArgs,
|
||||
export const allTrue = (...funcArgs) => val => reduce(
|
||||
(result, conditionFunc) => (isNull(result) || result == true) && conditionFunc(val),
|
||||
null);
|
||||
null)(funcArgs);
|
||||
|
||||
export const anyTrue = (...funcArgs) => val => reduce(funcArgs,
|
||||
export const anyTrue = (...funcArgs) => val => reduce(
|
||||
(result, conditionFunc) => result == true || conditionFunc(val),
|
||||
null);
|
||||
null)(funcArgs);
|
||||
|
||||
export const insensitiveEquals = (str1, str2) => str1.trim().toLowerCase() === str2.trim().toLowerCase();
|
||||
|
||||
|
@ -131,7 +136,7 @@ export const switchCase = (...cases) => (value) => {
|
|||
};
|
||||
|
||||
export const isValue = val1 => val2 => (val1 === val2);
|
||||
export const isOneOf = (...vals) => val => includes(vals, val);
|
||||
export const isOneOf = (...vals) => val => includes(val)(vals);
|
||||
export const defaultCase = constant(true);
|
||||
export const memberMatches = (member, match) => obj => match(obj[member]);
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ import { compileExpression, compileCode } from '@nx-js/compiler-util';
|
|||
import {
|
||||
isUndefined, keys,
|
||||
cloneDeep, isFunction,
|
||||
} from 'lodash';
|
||||
} from 'lodash/fp';
|
||||
import { defineError } from '../common';
|
||||
|
||||
export const filterEval = 'FILTER_EVALUATE';
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import { has, some } from 'lodash';
|
||||
import { map, isString } from 'lodash/fp';
|
||||
import { map, isString, has, some } from 'lodash/fp';
|
||||
import {
|
||||
getExactNodeForPath,
|
||||
findField, getNode, isGlobalIndex,
|
||||
|
@ -25,7 +24,7 @@ export const _getContext = (app, recordKey) => {
|
|||
const cachedReferenceIndexes = {};
|
||||
|
||||
const lazyLoadReferenceIndex = async (typeOptions) => {
|
||||
if (!has(cachedReferenceIndexes, typeOptions.indexNodeKey)) {
|
||||
if (!has(typeOptions.indexNodeKey)(cachedReferenceIndexes)) {
|
||||
cachedReferenceIndexes[typeOptions.indexNodeKey] = {
|
||||
typeOptions,
|
||||
data: await readReferenceIndex(
|
||||
|
@ -46,7 +45,7 @@ export const _getContext = (app, recordKey) => {
|
|||
referenceExists: async (typeOptions_or_fieldName, key) => {
|
||||
const typeOptions = getTypeOptions(typeOptions_or_fieldName);
|
||||
const { data } = await lazyLoadReferenceIndex(typeOptions);
|
||||
return some(data, i => i.key === key);
|
||||
return some(i => i.key === key)(data);
|
||||
},
|
||||
referenceOptions: async (typeOptions_or_fieldName) => {
|
||||
const typeOptions = getTypeOptions(typeOptions_or_fieldName);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { each, constant, find } from 'lodash';
|
||||
import { map, max } from 'lodash/fp';
|
||||
import { each, find } from 'lodash';
|
||||
import { map, max, constant } from 'lodash/fp';
|
||||
import {
|
||||
switchCase, defaultCase, joinKey,
|
||||
$, isNothing, isSomething,
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import {
|
||||
map, isEmpty, countBy, flatten, includes,
|
||||
map, isEmpty, countBy,
|
||||
flatten, includes, join, keys
|
||||
} from 'lodash/fp';
|
||||
import { join, keys } from 'lodash';
|
||||
import { } from 'lodash';
|
||||
import { applyRuleSet, makerule } from '../common/validationCommon';
|
||||
import { compileFilter, compileMap } from '../indexing/evaluate';
|
||||
import { isNonEmptyString, executesWithoutException, $ } from '../common';
|
||||
|
@ -26,7 +27,7 @@ export const indexRuleSet = [
|
|||
makerule('indexType', 'reference index may only exist on a record node',
|
||||
index => isRecord(index.parent())
|
||||
|| index.indexType !== indexTypes.reference),
|
||||
makerule('indexType', `index type must be one of: ${join(', ', keys(indexTypes))}`,
|
||||
makerule('indexType', `index type must be one of: ${join(', ')(keys(indexTypes))}`,
|
||||
index => includes(index.indexType)(keys(indexTypes))),
|
||||
];
|
||||
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
import {
|
||||
filter, union, constant,
|
||||
map, flatten, every, uniqBy,
|
||||
some, includes, isEmpty,
|
||||
some, includes, isEmpty, has
|
||||
} from 'lodash/fp';
|
||||
import { has } from 'lodash';
|
||||
import { compileExpression, compileCode } from '@nx-js/compiler-util';
|
||||
import {
|
||||
$, isSomething, switchCase,
|
||||
|
@ -36,9 +35,9 @@ const recordRules = [
|
|||
makerule('fields', 'no fields have been added to the record',
|
||||
node => isNonEmptyArray(node.fields)),
|
||||
makerule('validationRules', "validation rule is missing a 'messageWhenValid' member",
|
||||
node => every(r => has(r, 'messageWhenInvalid'))(node.validationRules)),
|
||||
node => every(r => has('messageWhenInvalid')(r))(node.validationRules)),
|
||||
makerule('validationRules', "validation rule is missing a 'expressionWhenValid' member",
|
||||
node => every(r => has(r, 'expressionWhenValid'))(node.validationRules)),
|
||||
node => every(r => has('expressionWhenValid')(r))(node.validationRules)),
|
||||
];
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import { flatten, map } from 'lodash/fp';
|
||||
import { isEmpty } from 'lodash';
|
||||
import { flatten, map, isEmpty } from 'lodash/fp';
|
||||
import { compileCode } from '@nx-js/compiler-util';
|
||||
import {
|
||||
isNonEmptyString,
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import { constant, isArray } from 'lodash';
|
||||
import { map } from 'lodash/fp';
|
||||
import {
|
||||
map, constant, isArray
|
||||
} from 'lodash/fp';
|
||||
import {
|
||||
typeFunctions, makerule,
|
||||
parsedFailed, getDefaultExport, parsedSuccess,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { constant, isBoolean, isNull } from 'lodash';
|
||||
import { constant, isBoolean, isNull } from 'lodash/fp';
|
||||
import {
|
||||
typeFunctions,
|
||||
makerule, parsedFailed, parsedSuccess,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import {
|
||||
constant, isDate, isString, isNull,
|
||||
} from 'lodash';
|
||||
constant, isDate, isString, isNull
|
||||
} from 'lodash/fp';
|
||||
import {
|
||||
makerule, typeFunctions,
|
||||
parsedFailed, parsedSuccess, getDefaultExport,
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import {
|
||||
assign, keys, merge, has,
|
||||
assign, merge,
|
||||
} from 'lodash';
|
||||
import {
|
||||
map, isString, isNumber,
|
||||
isBoolean, isDate,
|
||||
isObject, isArray,
|
||||
isBoolean, isDate, keys,
|
||||
isObject, isArray, has
|
||||
} from 'lodash/fp';
|
||||
import { $ } from '../common';
|
||||
import { parsedSuccess } from './typeHelpers';
|
||||
|
@ -40,7 +40,7 @@ const allTypes = () => {
|
|||
export const all = allTypes();
|
||||
|
||||
export const getType = (typeName) => {
|
||||
if (!has(all, typeName)) throw new BadRequestError(`Do not recognise type ${typeName}`);
|
||||
if (!has(typeName)(all)) throw new BadRequestError(`Do not recognise type ${typeName}`);
|
||||
return all[typeName];
|
||||
};
|
||||
|
||||
|
@ -50,7 +50,7 @@ export const getNewFieldValue = field => getType(field.type).getNew(field);
|
|||
|
||||
export const safeParseField = (field, record) => getType(field.type).safeParseField(field, record);
|
||||
|
||||
export const validateFieldParse = (field, record) => (has(record, field.name)
|
||||
export const validateFieldParse = (field, record) => (has(field.name)(record)
|
||||
? getType(field.type).tryParse(record[field.name])
|
||||
: parsedSuccess(undefined)); // fields may be undefined by default
|
||||
|
||||
|
@ -65,11 +65,11 @@ export const detectType = (value) => {
|
|||
if (isDate(value)) return datetime;
|
||||
if (isArray(value)) return array(detectType(value[0]));
|
||||
if (isObject(value)
|
||||
&& has(value, 'key')
|
||||
&& has(value, 'value')) return reference;
|
||||
&& has('key')(value)
|
||||
&& has('value')(value)) return reference;
|
||||
if (isObject(value)
|
||||
&& has(value, 'relativePath')
|
||||
&& has(value, 'size')) return file;
|
||||
&& has('relativePath')(value)
|
||||
&& has('size')(value)) return file;
|
||||
|
||||
throw new BadRequestError(`cannot determine type: ${JSON.stringify(value)}`);
|
||||
};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import {
|
||||
constant, isNumber, isString, isNull,
|
||||
} from 'lodash';
|
||||
} from 'lodash/fp';
|
||||
import {
|
||||
makerule, typeFunctions,
|
||||
parsedFailed, parsedSuccess, getDefaultExport,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import {
|
||||
isString, isObjectLike,
|
||||
isNull, has, isEmpty,
|
||||
} from 'lodash';
|
||||
} from 'lodash/fp';
|
||||
import {
|
||||
typeFunctions, makerule,
|
||||
parsedSuccess, getDefaultExport,
|
||||
|
@ -18,7 +18,7 @@ const referenceFunctions = typeFunctions({
|
|||
default: referenceNothing,
|
||||
});
|
||||
|
||||
const hasStringValue = (ob, path) => has(ob, path)
|
||||
const hasStringValue = (ob, path) => has(path)(ob)
|
||||
&& isString(ob[path]);
|
||||
|
||||
const isObjectWithKey = v => isObjectLike(v)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import {
|
||||
constant, isString,
|
||||
isNull, includes, isBoolean,
|
||||
} from 'lodash';
|
||||
} from 'lodash/fp';
|
||||
import {
|
||||
typeFunctions,
|
||||
makerule, parsedSuccess, getDefaultExport,
|
||||
|
@ -47,7 +47,7 @@ const typeConstraints = [
|
|||
(val, opts) => `value exceeds maximum length of ${opts.maxLength}`),
|
||||
makerule(async (val, opts) => val === null
|
||||
|| opts.allowDeclaredValuesOnly === false
|
||||
|| includes(opts.values, val),
|
||||
|| includes(val)(opts.values),
|
||||
(val) => `"${val}" does not exist in the list of allowed values`),
|
||||
];
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
import { merge, has } from 'lodash';
|
||||
import { merge } from 'lodash';
|
||||
import {
|
||||
constant, isUndefined,
|
||||
constant, isUndefined, has,
|
||||
mapValues, cloneDeep,
|
||||
} from 'lodash/fp';
|
||||
import { isNotEmpty } from '../common';
|
||||
|
||||
export const getSafeFieldParser = (tryParse, defaultValueFunctions) => (field, record) => {
|
||||
if (has(record, field.name)) {
|
||||
if (has(field.name)(record)) {
|
||||
return getSafeValueParser(tryParse, defaultValueFunctions)(record[field.name]);
|
||||
}
|
||||
return defaultValueFunctions[field.getUndefinedValue]();
|
||||
|
@ -25,7 +25,7 @@ export const getNewValue = (tryParse, defaultValueFunctions) => (field) => {
|
|||
? 'default'
|
||||
: field.getInitialValue;
|
||||
|
||||
return has(defaultValueFunctions, getInitialValue)
|
||||
return has(getInitialValue)(defaultValueFunctions)
|
||||
? defaultValueFunctions[getInitialValue]()
|
||||
: getSafeValueParser(tryParse, defaultValueFunctions)(getInitialValue);
|
||||
};
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
|||
main.svelte-15fmzor{height:100%;width:100%;font-family:"Roboto", Helvetica, Arial, sans-serif}.settings.svelte-15fmzor{position:absolute;bottom:25px;right:25px}
|
||||
.root.svelte-y7jhgd{height:100%;width:100%;display:flex;flex-direction:column}.top-nav.svelte-y7jhgd{flex:0 0 auto;height:25px;background:white;padding:5px;width:100%}.content.svelte-y7jhgd{flex:1 1 auto;width:100%;height:100px}.content.svelte-y7jhgd>div.svelte-y7jhgd{height:100%;width:100%}.topnavitem.svelte-y7jhgd{cursor:pointer;color:var(--secondary50);padding:0px 15px;font-weight:600;font-size:.9rem}.topnavitem.svelte-y7jhgd:hover{color:var(--secondary75);font-weight:600}.active.svelte-y7jhgd{color:var(--primary100);font-weight:900}
|
||||
.root.svelte-e4n7zy{position:fixed;margin:0 auto;text-align:center;top:20%;width:100%}.inner.svelte-e4n7zy{display:inline-block;margin:auto}.logo.svelte-e4n7zy{width:300px;margin-bottom:40px}.root.svelte-e4n7zy .option{width:250px}.app-link.svelte-e4n7zy{margin-top:10px;display:block}
|
||||
.root.svelte-y7jhgd{height:100%;width:100%;display:flex;flex-direction:column}.top-nav.svelte-y7jhgd{flex:0 0 auto;height:25px;background:white;padding:5px;width:100%}.content.svelte-y7jhgd{flex:1 1 auto;width:100%;height:100px}.content.svelte-y7jhgd>div.svelte-y7jhgd{height:100%;width:100%}.topnavitem.svelte-y7jhgd{cursor:pointer;color:var(--secondary50);padding:0px 15px;font-weight:600;font-size:.9rem}.topnavitem.svelte-y7jhgd:hover{color:var(--secondary75);font-weight:600}.active.svelte-y7jhgd{color:var(--primary100);font-weight:900}
|
||||
button.svelte-bxuckr{border-style:none;background-color:rgba(0,0,0,0);cursor:pointer;outline:none}button.svelte-bxuckr:hover{color:var(--hovercolor)}button.svelte-bxuckr:active{outline:none}
|
||||
.root.svelte-q8uz1n{height:100%;display:flex}.content.svelte-q8uz1n{flex:1 1 auto;height:100%;background-color:var(--white);margin:0}.nav.svelte-q8uz1n{flex:0 1 auto;width:300px;height:100%}
|
||||
.border-normal.svelte-vnon4v{border-radius:var(--borderradiusall)}.border-left.svelte-vnon4v{border-radius:var(--borderradius) 0 0 var(--borderradius)}.border-right.svelte-vnon4v{border-radius:0 var(--borderradius) var(--borderradius) 0}.border-middle.svelte-vnon4v{border-radius:0}button.svelte-vnon4v{border-style:solid;padding:7.5px 15px;cursor:pointer;margin:5px;border-radius:5px}.primary.svelte-vnon4v{background-color:var(--primary100);border-color:var(--primary100);color:var(--white)}.primary.svelte-vnon4v:hover{background-color:var(--primary75);border-color:var(--primary75)}.primary.svelte-vnon4v:active{background-color:var(--primarydark);border-color:var(--primarydark)}.primary-outline.svelte-vnon4v{background-color:var(--white);border-color:var(--primary100);color:var(--primary100)}.primary-outline.svelte-vnon4v:hover{background-color:var(--primary10)}.primary-outline.svelte-vnon4v:pressed{background-color:var(--primary25)}.secondary.svelte-vnon4v{background-color:var(--secondary100);border-color:var(--secondary100);color:var(--white)}.secondary.svelte-vnon4v:hover{background-color:var(--secondary75);border-color:var(--secondary75)}.secondary.svelte-vnon4v:pressed{background-color:var(--secondarydark);border-color:var(--secondarydark)}.secondary-outline.svelte-vnon4v{background-color:var(--white);border-color:var(--secondary100);color:var(--secondary100)}.secondary-outline.svelte-vnon4v:hover{background-color:var(--secondary10)}.secondary-outline.svelte-vnon4v:pressed{background-color:var(--secondary25)}.success.svelte-vnon4v{background-color:var(--success100);border-color:var(--success100);color:var(--white)}.success.svelte-vnon4v:hover{background-color:var(--success75);border-color:var(--success75)}.success.svelte-vnon4v:pressed{background-color:var(--successdark);border-color:var(--successdark)}.success-outline.svelte-vnon4v{background-color:var(--white);border-color:var(--success100);color:var(--success100)}.success-outline.svelte-vnon4v:hover{background-color:var(--success10)}.success-outline.svelte-vnon4v:pressed{background-color:var(--success25)}.deletion.svelte-vnon4v{background-color:var(--deletion100);border-color:var(--deletion100);color:var(--white)}.deletion.svelte-vnon4v:hover{background-color:var(--deletion75);border-color:var(--deletion75)}.deletion.svelte-vnon4v:pressed{background-color:var(--deletiondark);border-color:var(--deletiondark)}.deletion-outline.svelte-vnon4v{background-color:var(--white);border-color:var(--deletion100);color:var(--deletion100)}.deletion-outline.svelte-vnon4v:hover{background-color:var(--deletion10)}.deletion-outline.svelte-vnon4v:pressed{background-color:var(--deletion25)}
|
||||
|
@ -9,39 +9,39 @@ h4.svelte-sqtlby{margin-top:20px}
|
|||
.root.svelte-1q89a1w{height:100%;background-color:var(--secondary5)}.items-root.svelte-1q89a1w{display:flex;flex-direction:column;max-height:100%;height:1rem}.nav-group-header.svelte-1q89a1w{display:grid;grid-template-columns:[icon] auto [title] 1fr [button] auto;padding:2rem 1rem 0rem 1rem;font-size:.9rem;font-weight:bold}.nav-group-header.svelte-1q89a1w>div.svelte-1q89a1w:nth-child(1){padding:0rem .7rem 0rem 0rem;vertical-align:bottom;grid-column-start:icon;margin-right:5px}.nav-group-header.svelte-1q89a1w>div.svelte-1q89a1w:nth-child(3){vertical-align:bottom;grid-column-start:button;cursor:pointer;color:var(--primary75)}.nav-group-header.svelte-1q89a1w>div.svelte-1q89a1w:nth-child(3):hover{color:var(--primary75)}.hierarchy-title.svelte-1q89a1w{flex:auto 1 1}.space-filler.svelte-1q89a1w{flex:1 1 auto}
|
||||
.root.svelte-wfv60d{height:100%;position:relative;padding:1.5rem}.actions-header.svelte-wfv60d{flex:0 1 auto}.node-view.svelte-wfv60d{overflow-y:auto;flex:1 1 auto}
|
||||
.root.svelte-apja7r{height:100%;position:relative}.actions-header.svelte-apja7r{flex:0 1 auto}.node-view.svelte-apja7r{overflow-y:auto;flex:1 1 auto}
|
||||
.root.svelte-117bbrk{padding-bottom:10px;padding-left:10px;font-size:.9rem;color:var(--secondary50);font-weight:bold}.hierarchy-item.svelte-117bbrk{cursor:pointer;padding:5px 0px}.hierarchy-item.svelte-117bbrk:hover{color:var(--secondary100)}.component.svelte-117bbrk{margin-left:5px}.selected.svelte-117bbrk{color:var(--primary100);font-weight:bold}.title.svelte-117bbrk{margin-left:10px}
|
||||
.root.svelte-nd1yft{height:100%;position:relative;padding:1.5rem}
|
||||
.uk-modal-dialog.svelte-vwwrf9{border-radius:.3rem}
|
||||
.root.svelte-1r2dipt{color:var(--secondary50);font-size:.9rem;font-weight:bold}.hierarchy-item.svelte-1r2dipt{cursor:pointer;padding:5px 0px}.hierarchy-item.svelte-1r2dipt:hover{color:var(--secondary)}.component.svelte-1r2dipt{margin-left:5px}.currentfolder.svelte-1r2dipt{color:var(--secondary100)}.selected.svelte-1r2dipt{color:var(--primary100);font-weight:bold}.title.svelte-1r2dipt{margin-left:10px}
|
||||
h1.svelte-16jkjx9{font-size:1.2em}
|
||||
.root.svelte-1abif7s{height:100%;display:flex;flex-direction:column}.padding.svelte-1abif7s{padding:1rem 1rem 0rem 1rem}.info-text.svelte-1abif7s{color:var(--secondary100);font-size:.8rem !important;font-weight:bold}.title.svelte-1abif7s{padding:2rem 1rem 1rem 1rem;display:grid;grid-template-columns:[name] 1fr [actions] auto;color:var(--secondary100);font-size:.9rem;font-weight:bold}.title.svelte-1abif7s>div.svelte-1abif7s:nth-child(1){grid-column-start:name;color:var(--secondary100)}.title.svelte-1abif7s>div.svelte-1abif7s:nth-child(2){grid-column-start:actions}.section-header.svelte-1abif7s{display:grid;grid-template-columns:[name] 1fr [actions] auto;color:var(--secondary50);font-size:.9rem;font-weight:bold;vertical-align:middle}.component-props-container.svelte-1abif7s{flex:1 1 auto;overflow-y:auto}
|
||||
.uk-modal-dialog.svelte-vwwrf9{border-radius:.3rem}
|
||||
h1.svelte-16jkjx9{font-size:1.2em}
|
||||
.root.svelte-117bbrk{padding-bottom:10px;padding-left:10px;font-size:.9rem;color:var(--secondary50);font-weight:bold}.hierarchy-item.svelte-117bbrk{cursor:pointer;padding:5px 0px}.hierarchy-item.svelte-117bbrk:hover{color:var(--secondary100)}.component.svelte-117bbrk{margin-left:5px}.selected.svelte-117bbrk{color:var(--primary100);font-weight:bold}.title.svelte-117bbrk{margin-left:10px}
|
||||
.component-preview.svelte-1jir83x{display:grid;grid-template-rows:[top] 1fr [middle] auto [bottom] 1fr;grid-template-columns:[left] 1fr [middle] auto [right] 1fr;grid-column-start:preview;height:100%}.component-container.svelte-1jir83x{grid-row-start:middle;grid-column-start:middle}
|
||||
.section-container.svelte-yk1mmr{padding:15px;border-style:dotted;border-width:1px;border-color:var(--lightslate);border-radius:2px}.section-container.svelte-yk1mmr:nth-child(1){margin-bottom:15px}.row-text.svelte-yk1mmr{margin-right:15px;color:var(--primary100)}input.svelte-yk1mmr{margin-right:15px}p.svelte-yk1mmr>span.svelte-yk1mmr{margin-left:30px}.header.svelte-yk1mmr{display:grid;grid-template-columns:[title] 1fr [icon] auto}.header.svelte-yk1mmr>div.svelte-yk1mmr:nth-child(1){grid-column-start:title}.header.svelte-yk1mmr>div.svelte-yk1mmr:nth-child(2){grid-column-start:icon}
|
||||
.root.svelte-1ersoxu{padding:15px}.help-text.svelte-1ersoxu{color:var(--slate);font-size:10pt}
|
||||
.component-preview.svelte-1jir83x{display:grid;grid-template-rows:[top] 1fr [middle] auto [bottom] 1fr;grid-template-columns:[left] 1fr [middle] auto [right] 1fr;grid-column-start:preview;height:100%}.component-container.svelte-1jir83x{grid-row-start:middle;grid-column-start:middle}
|
||||
.root.svelte-17ju2r{display:block;font-size:.9rem;width:100%;cursor:pointer;color:var(--secondary50);font-weight:500}.title.svelte-17ju2r{padding-top:.5rem;padding-right:.5rem}.title.svelte-17ju2r:hover{background-color:var(--secondary10)}.active.svelte-17ju2r{background-color:var(--primary10)}
|
||||
.root.svelte-1r2dipt{color:var(--secondary50);font-size:.9rem;font-weight:bold}.hierarchy-item.svelte-1r2dipt{cursor:pointer;padding:5px 0px}.hierarchy-item.svelte-1r2dipt:hover{color:var(--secondary)}.component.svelte-1r2dipt{margin-left:5px}.currentfolder.svelte-1r2dipt{color:var(--secondary100)}.selected.svelte-1r2dipt{color:var(--primary100);font-weight:bold}.title.svelte-1r2dipt{margin-left:10px}
|
||||
.nav-item.svelte-1i5jqm7{padding:1.5rem 1rem 0rem 1rem;font-size:.9rem;font-weight:bold;cursor:pointer;flex:0 0 auto}.nav-item.svelte-1i5jqm7:hover{background-color:var(--primary10)}.active.svelte-1i5jqm7{background-color:var(--primary10)}
|
||||
.dropdown-background.svelte-11ifkop{position:fixed;top:0;left:0;width:100vw;height:100vh}.root.svelte-11ifkop{cursor:pointer;z-index:1}.dropdown-content.svelte-11ifkop{position:absolute;background-color:var(--white);min-width:160px;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);z-index:1;font-weight:normal;border-style:solid;border-width:1px;border-color:var(--secondary10)}.dropdown-content.svelte-11ifkop:not(:focus){display:none}.action-row.svelte-11ifkop{padding:7px 10px;cursor:pointer}.action-row.svelte-11ifkop:hover{background-color:var(--primary100);color:var(--white)}
|
||||
.root.svelte-x3bf9z{display:flex}.root.svelte-x3bf9z:last-child{border-radius:0 var(--borderradius) var(--borderradius) 0}.root.svelte-x3bf9z:first-child{border-radius:var(--borderradius) 0 0 var(--borderradius)}.root.svelte-x3bf9z:not(:first-child):not(:last-child){border-radius:0}
|
||||
.root.svelte-18xd5y3{height:100%;padding:2rem}.settings-title.svelte-18xd5y3{font-weight:700}.title.svelte-18xd5y3{margin:3rem 0rem 0rem 0rem;font-weight:700}.recordkey.svelte-18xd5y3{font-size:14px;font-weight:600;color:var(--primary100)}.fields-table.svelte-18xd5y3{margin:1rem 1rem 0rem 0rem;border-collapse:collapse}.add-field-button.svelte-18xd5y3{cursor:pointer}.edit-button.svelte-18xd5y3{cursor:pointer;color:var(--secondary25)}.edit-button.svelte-18xd5y3:hover{cursor:pointer;color:var(--secondary75)}th.svelte-18xd5y3{text-align:left}td.svelte-18xd5y3{padding:1rem 5rem 1rem 0rem;margin:0;font-size:14px;font-weight:500}.field-label.svelte-18xd5y3{font-size:14px;font-weight:500}thead.svelte-18xd5y3>tr.svelte-18xd5y3{border-width:0px 0px 1px 0px;border-style:solid;border-color:var(--secondary75);margin-bottom:20px}tbody.svelte-18xd5y3>tr.svelte-18xd5y3{border-width:0px 0px 1px 0px;border-style:solid;border-color:var(--primary10)}tbody.svelte-18xd5y3>tr.svelte-18xd5y3:hover{background-color:var(--primary10)}tbody.svelte-18xd5y3>tr:hover .edit-button.svelte-18xd5y3{color:var(--secondary75)}.index-container.svelte-18xd5y3{border-style:solid;border-width:0 0 1px 0;border-color:var(--secondary25);padding:10px;margin-bottom:5px}.index-label.svelte-18xd5y3{color:var(--slate)}.index-name.svelte-18xd5y3{font-weight:bold;color:var(--primary100)}.index-container.svelte-18xd5y3 code.svelte-18xd5y3{margin:0;display:inline;background-color:var(--primary10);color:var(--secondary100);padding:3px}.index-field-row.svelte-18xd5y3{margin:1rem 0rem 0rem 0rem}.no-indexes.svelte-18xd5y3{margin:1rem 0rem 0rem 0rem;font-family:var(--fontnormal);font-size:14px}
|
||||
.edit-button.svelte-zm41av{cursor:pointer;color:var(--secondary25)}.title.svelte-zm41av{margin:3rem 0rem 0rem 0rem;font-weight:700}.table-content.svelte-zm41av{font-weight:500;font-size:.9rem}tr.svelte-zm41av:hover .edit-button.svelte-zm41av{color:var(--secondary75)}
|
||||
.root.svelte-ehsf0i{display:block;font-size:.9rem;width:100%;cursor:pointer;font-weight:bold}.title.svelte-ehsf0i{font:var(--fontblack);padding-top:10px;padding-right:5px;padding-bottom:10px;color:var(--secondary100)}.title.svelte-ehsf0i:hover{background-color:var(--secondary10)}
|
||||
.root.svelte-17ju2r{display:block;font-size:.9rem;width:100%;cursor:pointer;color:var(--secondary50);font-weight:500}.title.svelte-17ju2r{padding-top:.5rem;padding-right:.5rem}.title.svelte-17ju2r:hover{background-color:var(--secondary10)}.active.svelte-17ju2r{background-color:var(--primary10)}
|
||||
.edit-button.svelte-lhfdtn{cursor:pointer;color:var(--secondary25)}tr.svelte-lhfdtn:hover .edit-button.svelte-lhfdtn{color:var(--secondary75)}.title.svelte-lhfdtn{margin:3rem 0rem 0rem 0rem;font-weight:700}.table-content.svelte-lhfdtn{font-weight:500;font-size:.9rem}
|
||||
.root.svelte-x3bf9z{display:flex}.root.svelte-x3bf9z:last-child{border-radius:0 var(--borderradius) var(--borderradius) 0}.root.svelte-x3bf9z:first-child{border-radius:var(--borderradius) 0 0 var(--borderradius)}.root.svelte-x3bf9z:not(:first-child):not(:last-child){border-radius:0}
|
||||
.edit-button.svelte-zm41av{cursor:pointer;color:var(--secondary25)}.title.svelte-zm41av{margin:3rem 0rem 0rem 0rem;font-weight:700}.table-content.svelte-zm41av{font-weight:500;font-size:.9rem}tr.svelte-zm41av:hover .edit-button.svelte-zm41av{color:var(--secondary75)}
|
||||
.root.svelte-pq2tmv{height:100%;padding:15px}.allowed-records.svelte-pq2tmv{margin:20px 0px}.allowed-records.svelte-pq2tmv>span.svelte-pq2tmv{margin-right:30px}
|
||||
.root.svelte-ehsf0i{display:block;font-size:.9rem;width:100%;cursor:pointer;font-weight:bold}.title.svelte-ehsf0i{font:var(--fontblack);padding-top:10px;padding-right:5px;padding-bottom:10px;color:var(--secondary100)}.title.svelte-ehsf0i:hover{background-color:var(--secondary10)}
|
||||
.root.svelte-18xd5y3{height:100%;padding:2rem}.settings-title.svelte-18xd5y3{font-weight:700}.title.svelte-18xd5y3{margin:3rem 0rem 0rem 0rem;font-weight:700}.recordkey.svelte-18xd5y3{font-size:14px;font-weight:600;color:var(--primary100)}.fields-table.svelte-18xd5y3{margin:1rem 1rem 0rem 0rem;border-collapse:collapse}.add-field-button.svelte-18xd5y3{cursor:pointer}.edit-button.svelte-18xd5y3{cursor:pointer;color:var(--secondary25)}.edit-button.svelte-18xd5y3:hover{cursor:pointer;color:var(--secondary75)}th.svelte-18xd5y3{text-align:left}td.svelte-18xd5y3{padding:1rem 5rem 1rem 0rem;margin:0;font-size:14px;font-weight:500}.field-label.svelte-18xd5y3{font-size:14px;font-weight:500}thead.svelte-18xd5y3>tr.svelte-18xd5y3{border-width:0px 0px 1px 0px;border-style:solid;border-color:var(--secondary75);margin-bottom:20px}tbody.svelte-18xd5y3>tr.svelte-18xd5y3{border-width:0px 0px 1px 0px;border-style:solid;border-color:var(--primary10)}tbody.svelte-18xd5y3>tr.svelte-18xd5y3:hover{background-color:var(--primary10)}tbody.svelte-18xd5y3>tr:hover .edit-button.svelte-18xd5y3{color:var(--secondary75)}.index-container.svelte-18xd5y3{border-style:solid;border-width:0 0 1px 0;border-color:var(--secondary25);padding:10px;margin-bottom:5px}.index-label.svelte-18xd5y3{color:var(--slate)}.index-name.svelte-18xd5y3{font-weight:bold;color:var(--primary100)}.index-container.svelte-18xd5y3 code.svelte-18xd5y3{margin:0;display:inline;background-color:var(--primary10);color:var(--secondary100);padding:3px}.index-field-row.svelte-18xd5y3{margin:1rem 0rem 0rem 0rem}.no-indexes.svelte-18xd5y3{margin:1rem 0rem 0rem 0rem;font-family:var(--fontnormal);font-size:14px}
|
||||
.root.svelte-wgyofl{padding:1.5rem;width:100%;align-items:right}
|
||||
.component.svelte-qxar5p{padding:5px;border-style:solid;border-width:0 0 1px 0;border-color:var(--lightslate);cursor:pointer}.component.svelte-qxar5p:hover{background-color:var(--primary10)}.component.svelte-qxar5p>.title.svelte-qxar5p{font-size:13pt;color:var(--secondary100)}.component.svelte-qxar5p>.description.svelte-qxar5p{font-size:10pt;color:var(--primary75);font-style:italic}
|
||||
.root.svelte-47ohpz{font-size:10pt}.padding.svelte-47ohpz{padding:0 10px}.inherited-title.svelte-47ohpz{padding:1rem 1rem 1rem 1rem;display:grid;grid-template-columns:[name] 1fr [actions] auto;color:var(--secondary100);font-size:.9rem;font-weight:bold}.inherited-title.svelte-47ohpz>div.svelte-47ohpz:nth-child(1){grid-column-start:name;color:var(--secondary50)}.inherited-title.svelte-47ohpz>div.svelte-47ohpz:nth-child(2){grid-column-start:actions;color:var(--secondary100)}
|
||||
.info-text.svelte-1gx0gkl{font-size:0.7rem;color:var(--secondary50)}
|
||||
.title.svelte-dhe1ge{padding:3px;background-color:white;color:var(--secondary100);border-style:solid;border-width:1px 0 0 0;border-color:var(--lightslate)}.title.svelte-dhe1ge>span.svelte-dhe1ge{margin-left:10px}
|
||||
textarea.svelte-di7k4b{padding:3px;margin-top:5px;margin-bottom:10px;background:var(--lightslate);color:var(--white);font-family:'Courier New', Courier, monospace;width:95%;height:100px;border-radius:5px}
|
||||
.root.svelte-47ohpz{font-size:10pt}.padding.svelte-47ohpz{padding:0 10px}.inherited-title.svelte-47ohpz{padding:1rem 1rem 1rem 1rem;display:grid;grid-template-columns:[name] 1fr [actions] auto;color:var(--secondary100);font-size:.9rem;font-weight:bold}.inherited-title.svelte-47ohpz>div.svelte-47ohpz:nth-child(1){grid-column-start:name;color:var(--secondary50)}.inherited-title.svelte-47ohpz>div.svelte-47ohpz:nth-child(2){grid-column-start:actions;color:var(--secondary100)}
|
||||
.component.svelte-qxar5p{padding:5px;border-style:solid;border-width:0 0 1px 0;border-color:var(--lightslate);cursor:pointer}.component.svelte-qxar5p:hover{background-color:var(--primary10)}.component.svelte-qxar5p>.title.svelte-qxar5p{font-size:13pt;color:var(--secondary100)}.component.svelte-qxar5p>.description.svelte-qxar5p{font-size:10pt;color:var(--primary75);font-style:italic}
|
||||
.root.svelte-16sjty9{padding:2rem;border-radius:2rem}.uk-grid-small.svelte-16sjty9{padding:1rem}.option-container.svelte-16sjty9{border-style:dotted;border-width:1px;border-color:var(--primary75);padding:3px;margin-right:5px}
|
||||
textarea.svelte-di7k4b{padding:3px;margin-top:5px;margin-bottom:10px;background:var(--lightslate);color:var(--white);font-family:'Courier New', Courier, monospace;width:95%;height:100px;border-radius:5px}
|
||||
.error-container.svelte-ole1mk{padding:10px;border-style:solid;border-color:var(--deletion100);border-radius:var(--borderradiusall);background:var(--deletion75)}.error-row.svelte-ole1mk{padding:5px 0px}
|
||||
input.svelte-9fre0g{margin-right:7px}
|
||||
.root.svelte-ogh8o0{display:grid;grid-template-columns:[name] 1fr [actions] auto}.root.svelte-ogh8o0>div.svelte-ogh8o0:nth-child(1){grid-column-start:name;color:var(--secondary50)}.root.svelte-ogh8o0>div.svelte-ogh8o0:nth-child(2){grid-column-start:actions}.selectedname.svelte-ogh8o0{font-weight:bold;color:var(--secondary)}
|
||||
.root.svelte-1v0yya9{padding:1rem 1rem 0rem 1rem}.prop-label.svelte-1v0yya9{font-size:0.8rem;color:var(--secondary100);font-weight:bold}
|
||||
textarea.svelte-1kv2xk7{width:300px;height:200px}
|
||||
.addelement-container.svelte-r1ft9p{cursor:pointer;padding:3px 0px;text-align:center}.addelement-container.svelte-r1ft9p:hover{background-color:var(--primary25);margin-top:5px}.control-container.svelte-r1ft9p{padding-left:3px;background:var(--secondary10)}.separator.svelte-r1ft9p{width:60%;margin:10px auto;border-style:solid;border-width:1px 0 0 0;border-color:var(--primary25)}
|
||||
.addelement-container.svelte-199q8jr{cursor:pointer;padding:3px 0px;text-align:center}.addelement-container.svelte-199q8jr:hover{background-color:var(--primary25)}.item-container.svelte-199q8jr{padding-left:3px;background:var(--secondary10)}
|
||||
.unbound-container.svelte-jubmd5{display:flex;margin:.5rem 0rem .5rem 0rem}.unbound-container.svelte-jubmd5>.svelte-jubmd5:nth-child(1){width:auto;flex:1 0 auto;font-size:0.8rem;color:var(--secondary100);border-radius:.2rem}.bound-header.svelte-jubmd5{display:flex}.bound-header.svelte-jubmd5>div.svelte-jubmd5:nth-child(1){flex:1 0 auto;width:30px;color:var(--secondary50);padding-left:5px}.binding-prop-label.svelte-jubmd5{color:var(--secondary50)}
|
||||
.addelement-container.svelte-r1ft9p{cursor:pointer;padding:3px 0px;text-align:center}.addelement-container.svelte-r1ft9p:hover{background-color:var(--primary25);margin-top:5px}.control-container.svelte-r1ft9p{padding-left:3px;background:var(--secondary10)}.separator.svelte-r1ft9p{width:60%;margin:10px auto;border-style:solid;border-width:1px 0 0 0;border-color:var(--primary25)}
|
||||
.type-selector-container.svelte-1b6pj9u{display:flex}.type-selector.svelte-1b6pj9u{border-color:var(--primary50);border-radius:2px;width:50px;flex:1 0 auto}
|
||||
|
||||
/*# sourceMappingURL=bundle.css.map */
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue