@superblocksteam/library 2.0.0-next.15 → 2.0.0-next.17
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/{allPaths-DhZ2EIr_.js → allPaths-CFFcqIGC.js} +2 -2
- package/dist/{allPaths-DhZ2EIr_.js.map → allPaths-CFFcqIGC.js.map} +1 -1
- package/dist/{allPaths-Dw4gnl1h.js → allPaths-q56_1GjK.js} +2 -2
- package/dist/{allPaths-Dw4gnl1h.js.map → allPaths-q56_1GjK.js.map} +1 -1
- package/dist/{allPathsLoader-B4Z0U3uu.js → allPathsLoader-Bpve98oI.js} +3 -3
- package/dist/{allPathsLoader-rdTxApDE.js.map → allPathsLoader-Bpve98oI.js.map} +1 -1
- package/dist/{allPathsLoader-rdTxApDE.js → allPathsLoader-XCaj74v7.js} +3 -3
- package/dist/{allPathsLoader-B4Z0U3uu.js.map → allPathsLoader-XCaj74v7.js.map} +1 -1
- package/dist/{index-ZdgsD-En.js → index-RSnP9D-h.js} +115 -10
- package/dist/{index-ZdgsD-En.js.map → index-RSnP9D-h.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-B9EaLUqI.js → splitPathsBySizeLoader-B1SflHBQ.js} +2 -2
- package/dist/{splitPathsBySizeLoader-B9EaLUqI.js.map → splitPathsBySizeLoader-B1SflHBQ.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-boJ6lyNc.js → splitPathsBySizeLoader-D5uYxJgE.js} +2 -2
- package/dist/{splitPathsBySizeLoader-boJ6lyNc.js.map → splitPathsBySizeLoader-D5uYxJgE.js.map} +1 -1
- package/dist-types/lib/internal-details/lib/evaluator/entity-manager.d.ts +7 -0
- package/dist-types/lib/user-facing/components/column/index.d.ts +1 -3
- package/dist-types/lib/user-facing/components/column/props.d.ts +1 -3
- package/dist-types/lib/user-facing/components/table/column-properties-panel.d.ts +13 -0
- package/dist-types/lib/user-facing/components/table/index.d.ts +13 -0
- package/dist-types/lib/user-facing/components/table/props.d.ts +13 -0
- package/dist-types/lib/user-facing/components/table/table-utilities.d.ts +0 -1
- package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { I as IconSvgPaths16 } from "./index-DIJYif9G.js";
|
|
2
2
|
import { I as IconSvgPaths20 } from "./index-LHtbj0-V.js";
|
|
3
|
-
import { p as pascalCase, I as IconSize } from "./index-
|
|
3
|
+
import { p as pascalCase, I as IconSize } from "./index-RSnP9D-h.js";
|
|
4
4
|
function getIconPaths(name, size) {
|
|
5
5
|
var key = pascalCase(name);
|
|
6
6
|
return size === IconSize.STANDARD ? IconSvgPaths16[key] : IconSvgPaths20[key];
|
|
@@ -14,4 +14,4 @@ export {
|
|
|
14
14
|
getIconPaths,
|
|
15
15
|
iconNameToPathsRecordKey
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=allPaths-
|
|
17
|
+
//# sourceMappingURL=allPaths-CFFcqIGC.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPaths-
|
|
1
|
+
{"version":3,"file":"allPaths-CFFcqIGC.js","sources":["../../../node_modules/.pnpm/@blueprintjs+icons@5.18.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@blueprintjs/icons/lib/esm/allPaths.js"],"sourcesContent":["/*\n * Copyright 2021 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { pascalCase } from \"change-case\";\nimport * as IconSvgPaths16 from \"./generated/16px/paths\";\nimport * as IconSvgPaths20 from \"./generated/20px/paths\";\nimport { IconSize } from \"./iconTypes\";\nexport { IconSvgPaths16, IconSvgPaths20 };\n/**\n * Get the list of vector paths that define a given icon. These path strings are used to render `<path>`\n * elements inside an `<svg>` icon element. For full implementation details and nuances, see the icon component\n * handlebars template and `generate-icon-components` script in the __@blueprintjs/icons__ package.\n *\n * Note: this function loads all icon definitions __statically__, which means every icon is included in your\n * JS bundle. Only use this API if your app is likely to use all Blueprint icons at runtime. If you are looking for a\n * dynamic icon loader which loads icon definitions on-demand, use `{ Icons } from \"@blueprintjs/icons\"` instead.\n */\nexport function getIconPaths(name, size) {\n var key = pascalCase(name);\n return size === IconSize.STANDARD ? IconSvgPaths16[key] : IconSvgPaths20[key];\n}\n/**\n * Type safe string literal conversion of snake-case icon names to PascalCase icon names.\n * This is useful for indexing into the SVG paths record to extract a single icon's SVG path definition.\n *\n * @deprecated use `getIconPaths` instead\n */\nexport function iconNameToPathsRecordKey(name) {\n return pascalCase(name);\n}\n//# sourceMappingURL=allPaths.js.map"],"names":[],"mappings":";;;AA6BO,SAAS,aAAa,MAAM,MAAM;AACrC,MAAI,MAAM,WAAW,IAAI;AACzB,SAAO,SAAS,SAAS,WAAW,eAAe,GAAG,IAAI,eAAe,GAAG;AAChF;AAOO,SAAS,yBAAyB,MAAM;AAC3C,SAAO,WAAW,IAAI;AAC1B;","x_google_ignoreList":[0]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { I as IconSvgPaths16 } from "./index-BxzKdlqH.js";
|
|
2
2
|
import { I as IconSvgPaths20 } from "./index-DIn-fanT.js";
|
|
3
|
-
import { p as pascalCase, b as IconSize } from "./index-
|
|
3
|
+
import { p as pascalCase, b as IconSize } from "./index-RSnP9D-h.js";
|
|
4
4
|
function getIconPaths(name, size) {
|
|
5
5
|
var key = pascalCase(name);
|
|
6
6
|
return size === IconSize.STANDARD ? IconSvgPaths16[key] : IconSvgPaths20[key];
|
|
@@ -14,4 +14,4 @@ export {
|
|
|
14
14
|
getIconPaths,
|
|
15
15
|
iconNameToPathsRecordKey
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=allPaths-
|
|
17
|
+
//# sourceMappingURL=allPaths-q56_1GjK.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPaths-
|
|
1
|
+
{"version":3,"file":"allPaths-q56_1GjK.js","sources":["../../../node_modules/.pnpm/@blueprintjs+icons@5.20.0_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@blueprintjs/icons/lib/esm/allPaths.js"],"sourcesContent":["/*\n * Copyright 2021 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { pascalCase } from \"change-case\";\nimport * as IconSvgPaths16 from \"./generated/16px/paths\";\nimport * as IconSvgPaths20 from \"./generated/20px/paths\";\nimport { IconSize } from \"./iconTypes\";\nexport { IconSvgPaths16, IconSvgPaths20 };\n/**\n * Get the list of vector paths that define a given icon. These path strings are used to render `<path>`\n * elements inside an `<svg>` icon element. For full implementation details and nuances, see the icon component\n * handlebars template and `generate-icon-components` script in the __@blueprintjs/icons__ package.\n *\n * Note: this function loads all icon definitions __statically__, which means every icon is included in your\n * JS bundle. Only use this API if your app is likely to use all Blueprint icons at runtime. If you are looking for a\n * dynamic icon loader which loads icon definitions on-demand, use `{ Icons } from \"@blueprintjs/icons\"` instead.\n */\nexport function getIconPaths(name, size) {\n var key = pascalCase(name);\n return size === IconSize.STANDARD ? IconSvgPaths16[key] : IconSvgPaths20[key];\n}\n/**\n * Type safe string literal conversion of snake-case icon names to PascalCase icon names.\n * This is useful for indexing into the SVG paths record to extract a single icon's SVG path definition.\n *\n * @deprecated use `getIconPaths` instead\n */\nexport function iconNameToPathsRecordKey(name) {\n return pascalCase(name);\n}\n//# sourceMappingURL=allPaths.js.map"],"names":[],"mappings":";;;AA6BO,SAAS,aAAa,MAAM,MAAM;AACrC,MAAI,MAAM,WAAW,IAAI;AACzB,SAAO,SAAS,SAAS,WAAW,eAAe,GAAG,IAAI,eAAe,GAAG;AAChF;AAOO,SAAS,yBAAyB,MAAM;AAC3C,SAAO,WAAW,IAAI;AAC1B;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __awaiter, a as __generator } from "./index-
|
|
1
|
+
import { _ as __awaiter, a as __generator } from "./index-RSnP9D-h.js";
|
|
2
2
|
var allPathsLoader = function(name, size) {
|
|
3
3
|
return __awaiter(void 0, void 0, void 0, function() {
|
|
4
4
|
var getIconPaths;
|
|
@@ -7,7 +7,7 @@ var allPathsLoader = function(name, size) {
|
|
|
7
7
|
case 0:
|
|
8
8
|
return [4, import(
|
|
9
9
|
/* webpackChunkName: "blueprint-icons-all-paths" */
|
|
10
|
-
"./allPaths-
|
|
10
|
+
"./allPaths-CFFcqIGC.js"
|
|
11
11
|
)];
|
|
12
12
|
case 1:
|
|
13
13
|
getIconPaths = _a.sent().getIconPaths;
|
|
@@ -19,4 +19,4 @@ var allPathsLoader = function(name, size) {
|
|
|
19
19
|
export {
|
|
20
20
|
allPathsLoader
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=allPathsLoader-
|
|
22
|
+
//# sourceMappingURL=allPathsLoader-Bpve98oI.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPathsLoader-
|
|
1
|
+
{"version":3,"file":"allPathsLoader-Bpve98oI.js","sources":["../../../node_modules/.pnpm/@blueprintjs+icons@5.18.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@blueprintjs/icons/lib/esm/paths-loaders/allPathsLoader.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { __awaiter, __generator } from \"tslib\";\n/**\n * A simple module loader which concatenates all icon paths into a single chunk.\n */\nexport var allPathsLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var getIconPaths;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-all-paths\" */\n \"../allPaths\")];\n case 1:\n getIconPaths = (_a.sent()).getIconPaths;\n return [2 /*return*/, getIconPaths(name, size)];\n }\n });\n}); };\n//# sourceMappingURL=allPathsLoader.js.map"],"names":[],"mappings":";AAmBU,IAAC,iBAAiB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AACrG,QAAI;AACJ,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAa,CAAC;AAAA,QAClB,KAAK;AACD,yBAAgB,GAAG,KAAI,EAAI;AAC3B,iBAAO,CAAC,GAAc,aAAa,MAAM,IAAI,CAAC;AAAA,MAC9D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __awaiter, a as __generator } from "./index-
|
|
1
|
+
import { _ as __awaiter, a as __generator } from "./index-RSnP9D-h.js";
|
|
2
2
|
var allPathsLoader = function(name, size) {
|
|
3
3
|
return __awaiter(void 0, void 0, void 0, function() {
|
|
4
4
|
var getIconPaths;
|
|
@@ -7,7 +7,7 @@ var allPathsLoader = function(name, size) {
|
|
|
7
7
|
case 0:
|
|
8
8
|
return [4, import(
|
|
9
9
|
/* webpackChunkName: "blueprint-icons-all-paths" */
|
|
10
|
-
"./allPaths-
|
|
10
|
+
"./allPaths-q56_1GjK.js"
|
|
11
11
|
)];
|
|
12
12
|
case 1:
|
|
13
13
|
getIconPaths = _a.sent().getIconPaths;
|
|
@@ -19,4 +19,4 @@ var allPathsLoader = function(name, size) {
|
|
|
19
19
|
export {
|
|
20
20
|
allPathsLoader
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=allPathsLoader-
|
|
22
|
+
//# sourceMappingURL=allPathsLoader-XCaj74v7.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allPathsLoader-
|
|
1
|
+
{"version":3,"file":"allPathsLoader-XCaj74v7.js","sources":["../../../node_modules/.pnpm/@blueprintjs+icons@5.20.0_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@blueprintjs/icons/lib/esm/paths-loaders/allPathsLoader.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { __awaiter, __generator } from \"tslib\";\n/**\n * A simple module loader which concatenates all icon paths into a single chunk.\n */\nexport var allPathsLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var getIconPaths;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-all-paths\" */\n \"../allPaths\")];\n case 1:\n getIconPaths = (_a.sent()).getIconPaths;\n return [2 /*return*/, getIconPaths(name, size)];\n }\n });\n}); };\n//# sourceMappingURL=allPathsLoader.js.map"],"names":[],"mappings":";AAmBU,IAAC,iBAAiB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AACrG,QAAI;AACJ,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAa,CAAC;AAAA,QAClB,KAAK;AACD,yBAAgB,GAAG,KAAI,EAAI;AAC3B,iBAAO,CAAC,GAAc,aAAa,MAAM,IAAI,CAAC;AAAA,MAC9D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
|
|
@@ -2690,14 +2690,14 @@ function getLoaderFn$1(options) {
|
|
|
2690
2690
|
if (!(loader === "all")) return [3, 3];
|
|
2691
2691
|
return [4, import(
|
|
2692
2692
|
/* webpackChunkName: "blueprint-icons-all-paths-loader" */
|
|
2693
|
-
"./allPathsLoader-
|
|
2693
|
+
"./allPathsLoader-Bpve98oI.js"
|
|
2694
2694
|
)];
|
|
2695
2695
|
case 2:
|
|
2696
2696
|
return [2, _b2.sent().allPathsLoader];
|
|
2697
2697
|
case 3:
|
|
2698
2698
|
return [4, import(
|
|
2699
2699
|
/* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
|
|
2700
|
-
"./splitPathsBySizeLoader-
|
|
2700
|
+
"./splitPathsBySizeLoader-B1SflHBQ.js"
|
|
2701
2701
|
)];
|
|
2702
2702
|
case 4:
|
|
2703
2703
|
return [2, _b2.sent().splitPathsBySizeLoader];
|
|
@@ -94355,6 +94355,9 @@ class Prop {
|
|
|
94355
94355
|
validate: defaultValidator
|
|
94356
94356
|
};
|
|
94357
94357
|
}
|
|
94358
|
+
static unset() {
|
|
94359
|
+
return new Prop("any");
|
|
94360
|
+
}
|
|
94358
94361
|
static string() {
|
|
94359
94362
|
return new Prop("string", VALIDATORS.TEXT);
|
|
94360
94363
|
}
|
|
@@ -95016,6 +95019,7 @@ function createGlobalObject({
|
|
|
95016
95019
|
);
|
|
95017
95020
|
}
|
|
95018
95021
|
const prettyPrintFunction = (func, args) => {
|
|
95022
|
+
if (!func) return "";
|
|
95019
95023
|
const funcStr = func.toString().replace(/\s+/g, " ").trim();
|
|
95020
95024
|
const argsStr = args.map((arg) => {
|
|
95021
95025
|
try {
|
|
@@ -95061,6 +95065,7 @@ class EvalComputeEngine {
|
|
|
95061
95065
|
}
|
|
95062
95066
|
class DirectComputeEngine {
|
|
95063
95067
|
compute({ snapshot, entityName, func, args, path: path2 }) {
|
|
95068
|
+
if (!func) return void 0;
|
|
95064
95069
|
try {
|
|
95065
95070
|
return func.call(
|
|
95066
95071
|
snapshot[entityName.value],
|
|
@@ -95862,6 +95867,93 @@ class EntityManager {
|
|
|
95862
95867
|
delete scope.entityMeta[params.name.value];
|
|
95863
95868
|
(_b2 = (_a2 = this.atoms) == null ? void 0 : _a2[params.scopeId]) == null ? true : delete _b2[params.name.value];
|
|
95864
95869
|
}
|
|
95870
|
+
deleteProperty(params) {
|
|
95871
|
+
var _a2, _b2;
|
|
95872
|
+
const { scopeId, name, prop } = params;
|
|
95873
|
+
if (prop.split(".").includes(RECORD_PATH_IDENTIFIER)) {
|
|
95874
|
+
return;
|
|
95875
|
+
}
|
|
95876
|
+
const scope = this.getScope(scopeId);
|
|
95877
|
+
const entity = scope.getEntity(name);
|
|
95878
|
+
const entityMeta = scope.getEntityMeta(name);
|
|
95879
|
+
if (!entity || !entityMeta) {
|
|
95880
|
+
console.warn(`Entity ${name.value} not found in scope ${scopeId}`);
|
|
95881
|
+
return;
|
|
95882
|
+
}
|
|
95883
|
+
const pathSegments = prop.split(".");
|
|
95884
|
+
const isNested = pathSegments.length > 1;
|
|
95885
|
+
const finalSegment = pathSegments.pop() || "";
|
|
95886
|
+
const parentSegments = isNested ? pathSegments : [];
|
|
95887
|
+
let propParent = entity;
|
|
95888
|
+
let metaParent = entityMeta;
|
|
95889
|
+
if (isNested) {
|
|
95890
|
+
for (const segment of parentSegments) {
|
|
95891
|
+
if (!(segment in propParent) || !(segment in metaParent)) {
|
|
95892
|
+
return;
|
|
95893
|
+
}
|
|
95894
|
+
propParent = propParent[segment];
|
|
95895
|
+
metaParent = metaParent[segment];
|
|
95896
|
+
}
|
|
95897
|
+
}
|
|
95898
|
+
if (finalSegment in propParent) {
|
|
95899
|
+
delete propParent[finalSegment];
|
|
95900
|
+
}
|
|
95901
|
+
if (finalSegment in metaParent) {
|
|
95902
|
+
delete metaParent[finalSegment];
|
|
95903
|
+
}
|
|
95904
|
+
if ((_b2 = (_a2 = this.atoms[scopeId]) == null ? void 0 : _a2[name.value]) == null ? void 0 : _b2[prop]) {
|
|
95905
|
+
delete this.atoms[scopeId][name.value][prop];
|
|
95906
|
+
}
|
|
95907
|
+
}
|
|
95908
|
+
/*
|
|
95909
|
+
This is a helper method to delete obsolete nested properties
|
|
95910
|
+
It handles cases like deleting custom columns on the table
|
|
95911
|
+
*/
|
|
95912
|
+
deleteObsoleteNestedProperties(scopeId, name, currentProps, entity) {
|
|
95913
|
+
for (const [propKey, propValue] of Object.entries(currentProps)) {
|
|
95914
|
+
if (propValue && typeof propValue === "object" && !Array.isArray(propValue)) {
|
|
95915
|
+
const entityPropValue = entity[propKey];
|
|
95916
|
+
if (!entityPropValue || typeof entityPropValue !== "object" || Array.isArray(entityPropValue)) {
|
|
95917
|
+
continue;
|
|
95918
|
+
}
|
|
95919
|
+
const currentKeys = new Set(Object.keys(propValue));
|
|
95920
|
+
const existingKeys = Object.keys(entityPropValue);
|
|
95921
|
+
const keysToDelete = existingKeys.filter(
|
|
95922
|
+
(key2) => !currentKeys.has(key2)
|
|
95923
|
+
);
|
|
95924
|
+
for (const keyToDelete of keysToDelete) {
|
|
95925
|
+
const obsoleteObj = entityPropValue[keyToDelete];
|
|
95926
|
+
if (obsoleteObj && typeof obsoleteObj === "object") {
|
|
95927
|
+
const nestedProps = this.getNestedPropertyPaths(
|
|
95928
|
+
`${propKey}.${keyToDelete}`,
|
|
95929
|
+
obsoleteObj
|
|
95930
|
+
);
|
|
95931
|
+
for (const nestedProp of nestedProps) {
|
|
95932
|
+
this.deleteProperty({ scopeId, name, prop: nestedProp });
|
|
95933
|
+
}
|
|
95934
|
+
}
|
|
95935
|
+
this.deleteProperty({
|
|
95936
|
+
scopeId,
|
|
95937
|
+
name,
|
|
95938
|
+
prop: `${propKey}.${keyToDelete}`
|
|
95939
|
+
});
|
|
95940
|
+
}
|
|
95941
|
+
}
|
|
95942
|
+
}
|
|
95943
|
+
}
|
|
95944
|
+
getNestedPropertyPaths(basePath, obj) {
|
|
95945
|
+
const paths = [];
|
|
95946
|
+
if (obj && typeof obj === "object" && !Array.isArray(obj)) {
|
|
95947
|
+
for (const [key2, value] of Object.entries(obj)) {
|
|
95948
|
+
const currentPath = `${basePath}.${key2}`;
|
|
95949
|
+
paths.push(currentPath);
|
|
95950
|
+
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
95951
|
+
paths.push(...this.getNestedPropertyPaths(currentPath, value));
|
|
95952
|
+
}
|
|
95953
|
+
}
|
|
95954
|
+
}
|
|
95955
|
+
return paths;
|
|
95956
|
+
}
|
|
95865
95957
|
deleteEntityById(params) {
|
|
95866
95958
|
const scope = this.getScope(params.scopeId);
|
|
95867
95959
|
const name = scope.getEntityName(params.entityId);
|
|
@@ -95896,6 +95988,7 @@ class EntityManager {
|
|
|
95896
95988
|
if (instanceId) {
|
|
95897
95989
|
scope.idToName[instanceId] = name;
|
|
95898
95990
|
}
|
|
95991
|
+
this.deleteObsoleteNestedProperties(scopeId, name, props, entity);
|
|
95899
95992
|
const managedPropsForType = this.componentRegistry.getManagedProps(type5);
|
|
95900
95993
|
const functionalProps = toExecutablesOrValues(props, managedPropsForType);
|
|
95901
95994
|
const addedProperties = /* @__PURE__ */ new Set();
|
|
@@ -118640,7 +118733,7 @@ const SbContainer = registerSbComponent(
|
|
|
118640
118733
|
InternalContainer
|
|
118641
118734
|
);
|
|
118642
118735
|
const propertiesDefinition$e = {
|
|
118643
|
-
layout: Section.category(PropsPanelCategory.Layout).add(containerLayout()).add(
|
|
118736
|
+
layout: Section.category(PropsPanelCategory.Layout).add(containerLayout()).add(padding()).add(
|
|
118644
118737
|
size$2({
|
|
118645
118738
|
defaults: {
|
|
118646
118739
|
width: Dim.fill(),
|
|
@@ -118682,7 +118775,6 @@ const SbColumn = registerSbComponent(
|
|
|
118682
118775
|
height: CONTAINER_FILL_DIM,
|
|
118683
118776
|
shouldScrollContents: props.shouldScrollContents,
|
|
118684
118777
|
width: props.width,
|
|
118685
|
-
spacing: props.spacing,
|
|
118686
118778
|
layout: props.layout,
|
|
118687
118779
|
verticalAlign: props.verticalAlign,
|
|
118688
118780
|
horizontalAlign: props.horizontalAlign,
|
|
@@ -134269,6 +134361,10 @@ const columnPanelConfig = {
|
|
|
134269
134361
|
})
|
|
134270
134362
|
},
|
|
134271
134363
|
variants: [
|
|
134364
|
+
{
|
|
134365
|
+
columnType: Prop.unset(),
|
|
134366
|
+
...textColumnProperties.general
|
|
134367
|
+
},
|
|
134272
134368
|
{
|
|
134273
134369
|
columnType: Prop.literal(ColumnType.TEXT),
|
|
134274
134370
|
...textColumnProperties.general
|
|
@@ -134353,6 +134449,10 @@ const columnPanelConfig = {
|
|
|
134353
134449
|
columnType: Prop.string()
|
|
134354
134450
|
},
|
|
134355
134451
|
variants: [
|
|
134452
|
+
{
|
|
134453
|
+
columnType: Prop.unset(),
|
|
134454
|
+
...textColumnProperties.presentation
|
|
134455
|
+
},
|
|
134356
134456
|
{
|
|
134357
134457
|
columnType: Prop.literal(ColumnType.TEXT),
|
|
134358
134458
|
...textColumnProperties.presentation
|
|
@@ -143666,14 +143766,14 @@ function getLoaderFn(options) {
|
|
|
143666
143766
|
if (!(loader === "all")) return [3, 3];
|
|
143667
143767
|
return [4, import(
|
|
143668
143768
|
/* webpackChunkName: "blueprint-icons-all-paths-loader" */
|
|
143669
|
-
"./allPathsLoader-
|
|
143769
|
+
"./allPathsLoader-XCaj74v7.js"
|
|
143670
143770
|
)];
|
|
143671
143771
|
case 2:
|
|
143672
143772
|
return [2, _b2.sent().allPathsLoader];
|
|
143673
143773
|
case 3:
|
|
143674
143774
|
return [4, import(
|
|
143675
143775
|
/* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
|
|
143676
|
-
"./splitPathsBySizeLoader-
|
|
143776
|
+
"./splitPathsBySizeLoader-D5uYxJgE.js"
|
|
143677
143777
|
)];
|
|
143678
143778
|
case 4:
|
|
143679
143779
|
return [2, _b2.sent().splitPathsBySizeLoader];
|
|
@@ -154382,11 +154482,12 @@ function getDefaultColumnProperties(accessor, index2, widgetName, isDerived) {
|
|
|
154382
154482
|
enableFilter: true,
|
|
154383
154483
|
enableSort: true,
|
|
154384
154484
|
isVisible: true,
|
|
154385
|
-
isDerived:
|
|
154485
|
+
isDerived: !!isDerived,
|
|
154386
154486
|
label: accessor,
|
|
154387
154487
|
computedValue: getDefaultComputedValue(
|
|
154388
154488
|
accessor,
|
|
154389
|
-
widgetName
|
|
154489
|
+
widgetName,
|
|
154490
|
+
isDerived ?? false
|
|
154390
154491
|
),
|
|
154391
154492
|
linkUrl: "",
|
|
154392
154493
|
linkLabel: "",
|
|
@@ -154403,6 +154504,9 @@ function getDefaultColumnProperties(accessor, index2, widgetName, isDerived) {
|
|
|
154403
154504
|
};
|
|
154404
154505
|
}
|
|
154405
154506
|
function getDefaultComputedValue(accessor, widgetName, isDerived) {
|
|
154507
|
+
if (isDerived) {
|
|
154508
|
+
return "";
|
|
154509
|
+
}
|
|
154406
154510
|
return `{{${widgetName}.tableDataWithInserts.map((currentRow) => { return currentRow${getDottedPathTo(
|
|
154407
154511
|
accessor
|
|
154408
154512
|
)} })}}`;
|
|
@@ -154530,7 +154634,8 @@ function createTableColumns(props) {
|
|
|
154530
154634
|
const defaultProperties = getDefaultColumnProperties(
|
|
154531
154635
|
derivedColumnKey,
|
|
154532
154636
|
index2,
|
|
154533
|
-
props.widgetName
|
|
154637
|
+
props.widgetName,
|
|
154638
|
+
true
|
|
154534
154639
|
);
|
|
154535
154640
|
tableColumns[derivedColumnKey] = {
|
|
154536
154641
|
...defaultProperties,
|
|
@@ -190107,4 +190212,4 @@ export {
|
|
|
190107
190212
|
copyToClipboard as y,
|
|
190108
190213
|
navigateTo as z
|
|
190109
190214
|
};
|
|
190110
|
-
//# sourceMappingURL=index-
|
|
190215
|
+
//# sourceMappingURL=index-RSnP9D-h.js.map
|