@budibase/shared-core 2.29.1 → 2.29.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants/index.d.ts +1 -1
- package/dist/index.js +8 -41
- package/dist/index.js.map +4 -4
- package/dist/index.js.meta.json +1 -1
- package/dist/table.d.ts +1 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/constants/rows.d.ts +0 -3
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export * from "./api";
|
|
2
2
|
export * from "./fields";
|
|
3
|
-
export * from "./rows";
|
|
4
3
|
export declare const OperatorOptions: {
|
|
5
4
|
Equals: {
|
|
6
5
|
value: string;
|
|
@@ -112,3 +111,4 @@ export declare enum BpmStatusValue {
|
|
|
112
111
|
VERIFYING_EMAIL = "verifying_email",
|
|
113
112
|
COMPLETED = "completed"
|
|
114
113
|
}
|
|
114
|
+
export declare const DEFAULT_BB_DATASOURCE_ID = "datasource_internal_bb_default";
|
package/dist/index.js
CHANGED
|
@@ -1044,10 +1044,10 @@ var require_lodash = __commonJS({
|
|
|
1044
1044
|
}();
|
|
1045
1045
|
var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
|
|
1046
1046
|
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : undefined2, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date2.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse;
|
|
1047
|
-
var DataView = getNative(context, "DataView"), Map = getNative(context, "Map"), Promise2 = getNative(context, "Promise"),
|
|
1047
|
+
var DataView = getNative(context, "DataView"), Map = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set = getNative(context, "Set"), WeakMap = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create");
|
|
1048
1048
|
var metaMap = WeakMap && new WeakMap();
|
|
1049
1049
|
var realNames = {};
|
|
1050
|
-
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise2), setCtorString = toSource(
|
|
1050
|
+
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
|
|
1051
1051
|
var symbolProto = Symbol2 ? Symbol2.prototype : undefined2, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined2, symbolToString = symbolProto ? symbolProto.toString : undefined2;
|
|
1052
1052
|
function lodash(value) {
|
|
1053
1053
|
if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
|
|
@@ -2801,8 +2801,8 @@ var require_lodash = __commonJS({
|
|
|
2801
2801
|
return func(number);
|
|
2802
2802
|
};
|
|
2803
2803
|
}
|
|
2804
|
-
var createSet = !(
|
|
2805
|
-
return new
|
|
2804
|
+
var createSet = !(Set && 1 / setToArray(new Set([, -0]))[1] == INFINITY) ? noop : function(values3) {
|
|
2805
|
+
return new Set(values3);
|
|
2806
2806
|
};
|
|
2807
2807
|
function createToPairs(keysFunc) {
|
|
2808
2808
|
return function(object) {
|
|
@@ -3101,7 +3101,7 @@ var require_lodash = __commonJS({
|
|
|
3101
3101
|
return result2;
|
|
3102
3102
|
};
|
|
3103
3103
|
var getTag = baseGetTag;
|
|
3104
|
-
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag ||
|
|
3104
|
+
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
|
|
3105
3105
|
getTag = function(value) {
|
|
3106
3106
|
var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined2, ctorString = Ctor ? toSource(Ctor) : "";
|
|
3107
3107
|
if (ctorString) {
|
|
@@ -10013,8 +10013,7 @@ __export(src_exports, {
|
|
|
10013
10013
|
BpmStatusKey: () => BpmStatusKey,
|
|
10014
10014
|
BpmStatusValue: () => BpmStatusValue,
|
|
10015
10015
|
BuilderSocketEvent: () => BuilderSocketEvent,
|
|
10016
|
-
|
|
10017
|
-
CONSTANT_INTERNAL_ROW_COLS: () => CONSTANT_INTERNAL_ROW_COLS,
|
|
10016
|
+
DEFAULT_BB_DATASOURCE_ID: () => DEFAULT_BB_DATASOURCE_ID,
|
|
10018
10017
|
GridSocketEvent: () => GridSocketEvent,
|
|
10019
10018
|
Header: () => Header,
|
|
10020
10019
|
InvalidFileExtensions: () => InvalidFileExtensions,
|
|
@@ -10030,9 +10029,7 @@ __export(src_exports, {
|
|
|
10030
10029
|
canBeDisplayColumn: () => canBeDisplayColumn,
|
|
10031
10030
|
canBeSortColumn: () => canBeSortColumn,
|
|
10032
10031
|
dataFilters: () => filters_exports,
|
|
10033
|
-
findDuplicateInternalColumns: () => findDuplicateInternalColumns,
|
|
10034
10032
|
helpers: () => helpers_exports,
|
|
10035
|
-
isInternalColumnName: () => isInternalColumnName,
|
|
10036
10033
|
sdk: () => sdk_exports,
|
|
10037
10034
|
utils: () => utils_exports
|
|
10038
10035
|
});
|
|
@@ -10179,20 +10176,6 @@ var SWITCHABLE_TYPES = {
|
|
|
10179
10176
|
["number" /* NUMBER */]: ["number" /* NUMBER */, "boolean" /* BOOLEAN */]
|
|
10180
10177
|
};
|
|
10181
10178
|
|
|
10182
|
-
// src/constants/rows.ts
|
|
10183
|
-
var CONSTANT_INTERNAL_ROW_COLS = [
|
|
10184
|
-
"_id",
|
|
10185
|
-
"_rev",
|
|
10186
|
-
"type",
|
|
10187
|
-
"createdAt",
|
|
10188
|
-
"updatedAt",
|
|
10189
|
-
"tableId"
|
|
10190
|
-
];
|
|
10191
|
-
var CONSTANT_EXTERNAL_ROW_COLS = ["_id", "_rev", "tableId"];
|
|
10192
|
-
function isInternalColumnName(name) {
|
|
10193
|
-
return CONSTANT_INTERNAL_ROW_COLS.includes(name);
|
|
10194
|
-
}
|
|
10195
|
-
|
|
10196
10179
|
// src/constants/index.ts
|
|
10197
10180
|
var OperatorOptions = {
|
|
10198
10181
|
Equals: {
|
|
@@ -10368,6 +10351,7 @@ var BpmStatusValue = /* @__PURE__ */ ((BpmStatusValue2) => {
|
|
|
10368
10351
|
BpmStatusValue2["COMPLETED"] = "completed";
|
|
10369
10352
|
return BpmStatusValue2;
|
|
10370
10353
|
})(BpmStatusValue || {});
|
|
10354
|
+
var DEFAULT_BB_DATASOURCE_ID = "datasource_internal_bb_default";
|
|
10371
10355
|
|
|
10372
10356
|
// src/filters.ts
|
|
10373
10357
|
var filters_exports = {};
|
|
@@ -11231,20 +11215,6 @@ function canBeDisplayColumn(type) {
|
|
|
11231
11215
|
function canBeSortColumn(type) {
|
|
11232
11216
|
return !!allowSortColumnByType[type];
|
|
11233
11217
|
}
|
|
11234
|
-
function findDuplicateInternalColumns(table) {
|
|
11235
|
-
const columnNames = Object.keys(table.schema).concat(CONSTANT_INTERNAL_ROW_COLS).map((colName) => colName.toLowerCase());
|
|
11236
|
-
const set = new Set(columnNames);
|
|
11237
|
-
let duplicates = [];
|
|
11238
|
-
if (set.size !== columnNames.length) {
|
|
11239
|
-
for (let key of set.keys()) {
|
|
11240
|
-
const count = columnNames.filter((name) => name === key).length;
|
|
11241
|
-
if (count > 1) {
|
|
11242
|
-
duplicates.push(key);
|
|
11243
|
-
}
|
|
11244
|
-
}
|
|
11245
|
-
}
|
|
11246
|
-
return duplicates;
|
|
11247
|
-
}
|
|
11248
11218
|
// Annotate the CommonJS export names for ESM import in node:
|
|
11249
11219
|
0 && (module.exports = {
|
|
11250
11220
|
BpmCorrelationKey,
|
|
@@ -11252,8 +11222,7 @@ function findDuplicateInternalColumns(table) {
|
|
|
11252
11222
|
BpmStatusKey,
|
|
11253
11223
|
BpmStatusValue,
|
|
11254
11224
|
BuilderSocketEvent,
|
|
11255
|
-
|
|
11256
|
-
CONSTANT_INTERNAL_ROW_COLS,
|
|
11225
|
+
DEFAULT_BB_DATASOURCE_ID,
|
|
11257
11226
|
GridSocketEvent,
|
|
11258
11227
|
Header,
|
|
11259
11228
|
InvalidFileExtensions,
|
|
@@ -11269,9 +11238,7 @@ function findDuplicateInternalColumns(table) {
|
|
|
11269
11238
|
canBeDisplayColumn,
|
|
11270
11239
|
canBeSortColumn,
|
|
11271
11240
|
dataFilters,
|
|
11272
|
-
findDuplicateInternalColumns,
|
|
11273
11241
|
helpers,
|
|
11274
|
-
isInternalColumnName,
|
|
11275
11242
|
sdk,
|
|
11276
11243
|
utils
|
|
11277
11244
|
});
|