@superblocksteam/library 2.0.0-next.15 → 2.0.0-next.16
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-Dw4gnl1h.js → allPaths-81gThbn_.js} +2 -2
- package/dist/{allPaths-Dw4gnl1h.js.map → allPaths-81gThbn_.js.map} +1 -1
- package/dist/{allPaths-DhZ2EIr_.js → allPaths-Dgtpr-8t.js} +2 -2
- package/dist/{allPaths-DhZ2EIr_.js.map → allPaths-Dgtpr-8t.js.map} +1 -1
- package/dist/{allPathsLoader-B4Z0U3uu.js → allPathsLoader-BeEImT4o.js} +3 -3
- package/dist/{allPathsLoader-B4Z0U3uu.js.map → allPathsLoader-BeEImT4o.js.map} +1 -1
- package/dist/{allPathsLoader-rdTxApDE.js → allPathsLoader-DPEiDCtt.js} +3 -3
- package/dist/{allPathsLoader-rdTxApDE.js.map → allPathsLoader-DPEiDCtt.js.map} +1 -1
- package/dist/{index-ZdgsD-En.js → index-C9qKjr9S.js} +114 -8
- package/dist/{index-ZdgsD-En.js.map → index-C9qKjr9S.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-boJ6lyNc.js → splitPathsBySizeLoader-Dpg8c26Z.js} +2 -2
- package/dist/{splitPathsBySizeLoader-boJ6lyNc.js.map → splitPathsBySizeLoader-Dpg8c26Z.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-B9EaLUqI.js → splitPathsBySizeLoader-IIQT7VO3.js} +2 -2
- package/dist/{splitPathsBySizeLoader-B9EaLUqI.js.map → splitPathsBySizeLoader-IIQT7VO3.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/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
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as clientExports } from "./index-
|
|
2
|
-
import { W, X, Q, K, L, Y, J, Z, $, a0, a1, a2, a3, w, a4, a5, a6, a7, a8, U, a9, P, aa, ab, ac, ad, R, v, S, m, d, e, l, n, k, M, x, q, s, f, i, g, w as w2, c, o, j, h, u, t, A, ae, af, ag, ah, ai, T, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, y, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, H, aT, aU, aV, aW, aX, aY, C, aZ, a_, a$, b0, b1, E, b2, b3, z, b4, b5, b6, r, G, F, b7, b8, b9, O, B, D, ba, bb, bc, bd, be, bf, bg, bh, bi, bj, bk, bl, bm, bn, bo, bp, bq, br, bs, bt, bu, bv, bw, bx, by, bz, bA, bB, bC, bD, bE, bF, bG, N, bH } from "./index-
|
|
1
|
+
import { V as clientExports } from "./index-C9qKjr9S.js";
|
|
2
|
+
import { W, X, Q, K, L, Y, J, Z, $, a0, a1, a2, a3, w, a4, a5, a6, a7, a8, U, a9, P, aa, ab, ac, ad, R, v, S, m, d, e, l, n, k, M, x, q, s, f, i, g, w as w2, c, o, j, h, u, t, A, ae, af, ag, ah, ai, T, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, y, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, H, aT, aU, aV, aW, aX, aY, C, aZ, a_, a$, b0, b1, E, b2, b3, z, b4, b5, b6, r, G, F, b7, b8, b9, O, B, D, ba, bb, bc, bd, be, bf, bg, bh, bi, bj, bk, bl, bm, bn, bo, bp, bq, br, bs, bt, bu, bv, bw, bx, by, bz, bA, bB, bC, bD, bE, bF, bG, N, bH } from "./index-C9qKjr9S.js";
|
|
3
3
|
const createRoot = clientExports.createRoot;
|
|
4
4
|
export {
|
|
5
5
|
W as Await,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __awaiter, a as __generator, p as pascalCase, b as IconSize } from "./index-
|
|
1
|
+
import { _ as __awaiter, a as __generator, p as pascalCase, b as IconSize } from "./index-C9qKjr9S.js";
|
|
2
2
|
var splitPathsBySizeLoader = function(name, size) {
|
|
3
3
|
return __awaiter(void 0, void 0, void 0, function() {
|
|
4
4
|
var key, pathsRecord;
|
|
@@ -31,4 +31,4 @@ var splitPathsBySizeLoader = function(name, size) {
|
|
|
31
31
|
export {
|
|
32
32
|
splitPathsBySizeLoader
|
|
33
33
|
};
|
|
34
|
-
//# sourceMappingURL=splitPathsBySizeLoader-
|
|
34
|
+
//# sourceMappingURL=splitPathsBySizeLoader-Dpg8c26Z.js.map
|
package/dist/{splitPathsBySizeLoader-boJ6lyNc.js.map → splitPathsBySizeLoader-Dpg8c26Z.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-Dpg8c26Z.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/splitPathsBySizeLoader.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\";\nimport { pascalCase } from \"change-case\";\nimport { IconSize } from \"../iconTypes\";\n/**\n * A dynamic loader for icon paths that generates separate chunks for the two size variants.\n */\nexport var splitPathsBySizeLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var key, pathsRecord;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n key = pascalCase(name);\n if (!(size === IconSize.STANDARD)) return [3 /*break*/, 2];\n return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-16px-paths\" */\n \"../generated/16px/paths\")];\n case 1:\n pathsRecord = _a.sent();\n return [3 /*break*/, 4];\n case 2: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-20px-paths\" */\n \"../generated/20px/paths\")];\n case 3:\n pathsRecord = _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/, pathsRecord[key]];\n }\n });\n}); };\n//# sourceMappingURL=splitPathsBySizeLoader.js.map"],"names":[],"mappings":";AAqBU,IAAC,yBAAyB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AAC7G,QAAI,KAAK;AACT,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AACD,gBAAM,WAAW,IAAI;AACrB,cAAI,EAAE,SAAS,SAAS,UAAW,QAAO,CAAC,GAAa,CAAC;AACzD,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEjB;AAAA,UAAyB,kBAAC;AAAA,QAClC,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,iBAAO,CAAC,GAAa,CAAC;AAAA,QAC1B,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAyB,kBAAC;AAAA,QAC9B,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,aAAG,QAAQ;AAAA,QACf,KAAK;AAAG,iBAAO,CAAC,GAAc,YAAY,GAAG,CAAC;AAAA,MAC1D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-
|
|
1
|
+
import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-C9qKjr9S.js";
|
|
2
2
|
var splitPathsBySizeLoader = function(name, size) {
|
|
3
3
|
return __awaiter(void 0, void 0, void 0, function() {
|
|
4
4
|
var key, pathsRecord;
|
|
@@ -31,4 +31,4 @@ var splitPathsBySizeLoader = function(name, size) {
|
|
|
31
31
|
export {
|
|
32
32
|
splitPathsBySizeLoader
|
|
33
33
|
};
|
|
34
|
-
//# sourceMappingURL=splitPathsBySizeLoader-
|
|
34
|
+
//# sourceMappingURL=splitPathsBySizeLoader-IIQT7VO3.js.map
|
package/dist/{splitPathsBySizeLoader-B9EaLUqI.js.map → splitPathsBySizeLoader-IIQT7VO3.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-IIQT7VO3.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/splitPathsBySizeLoader.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\";\nimport { pascalCase } from \"change-case\";\nimport { IconSize } from \"../iconTypes\";\n/**\n * A dynamic loader for icon paths that generates separate chunks for the two size variants.\n */\nexport var splitPathsBySizeLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var key, pathsRecord;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n key = pascalCase(name);\n if (!(size === IconSize.STANDARD)) return [3 /*break*/, 2];\n return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-16px-paths\" */\n \"../generated/16px/paths\")];\n case 1:\n pathsRecord = _a.sent();\n return [3 /*break*/, 4];\n case 2: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-20px-paths\" */\n \"../generated/20px/paths\")];\n case 3:\n pathsRecord = _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/, pathsRecord[key]];\n }\n });\n}); };\n//# sourceMappingURL=splitPathsBySizeLoader.js.map"],"names":[],"mappings":";AAqBU,IAAC,yBAAyB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AAC7G,QAAI,KAAK;AACT,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AACD,gBAAM,WAAW,IAAI;AACrB,cAAI,EAAE,SAAS,SAAS,UAAW,QAAO,CAAC,GAAa,CAAC;AACzD,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEjB;AAAA,UAAyB,kBAAC;AAAA,QAClC,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,iBAAO,CAAC,GAAa,CAAC;AAAA,QAC1B,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAyB,kBAAC;AAAA,QAC9B,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,aAAG,QAAQ;AAAA,QACf,KAAK;AAAG,iBAAO,CAAC,GAAc,YAAY,GAAG,CAAC;AAAA,MAC1D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
|
|
@@ -44,6 +44,13 @@ export declare class EntityManager implements IEntityManager {
|
|
|
44
44
|
name: Name;
|
|
45
45
|
scopeId: string;
|
|
46
46
|
}): void;
|
|
47
|
+
deleteProperty(params: {
|
|
48
|
+
scopeId: string;
|
|
49
|
+
name: Name;
|
|
50
|
+
prop: string;
|
|
51
|
+
}): void;
|
|
52
|
+
private deleteObsoleteNestedProperties;
|
|
53
|
+
private getNestedPropertyPaths;
|
|
47
54
|
deleteEntityById(params: {
|
|
48
55
|
scopeId: string;
|
|
49
56
|
entityId: string;
|
|
@@ -9,6 +9,10 @@ export declare const columnPanelConfig: {
|
|
|
9
9
|
} & (Omit<{
|
|
10
10
|
columnType: Prop<ColumnType, true>;
|
|
11
11
|
}, "columnType"> & ({
|
|
12
|
+
computedValue: Prop<string, false>;
|
|
13
|
+
displayedValue: Prop<string, false>;
|
|
14
|
+
columnType: Prop<undefined, false>;
|
|
15
|
+
} | {
|
|
12
16
|
computedValue: Prop<string, false>;
|
|
13
17
|
displayedValue: Prop<string, false>;
|
|
14
18
|
columnType: Prop<"text", true>;
|
|
@@ -71,6 +75,15 @@ export declare const columnPanelConfig: {
|
|
|
71
75
|
} & (Omit<{
|
|
72
76
|
columnType: Prop<ColumnType, false>;
|
|
73
77
|
}, "columnType"> & ({
|
|
78
|
+
horizontalAlign: Prop<"center" | "left" | "right", false>;
|
|
79
|
+
verticalAlign: Prop<"center" | "bottom" | "top", false>;
|
|
80
|
+
"cellProps.textStyle": Prop<any, false>;
|
|
81
|
+
cellBackground: Prop<string, false>;
|
|
82
|
+
textWrap: Prop<boolean, false>;
|
|
83
|
+
cellIcon: Prop<string, false>;
|
|
84
|
+
cellIconPosition: Prop<IconPosition, false>;
|
|
85
|
+
columnType: Prop<undefined, false>;
|
|
86
|
+
} | {
|
|
74
87
|
horizontalAlign: Prop<"center" | "left" | "right", false>;
|
|
75
88
|
verticalAlign: Prop<"center" | "bottom" | "top", false>;
|
|
76
89
|
"cellProps.textStyle": Prop<any, false>;
|
|
@@ -8,6 +8,10 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
|
|
|
8
8
|
} & (Omit<{
|
|
9
9
|
columnType: import("../../properties-panel/props-builder.js").Prop<import("./types.js").ColumnType, true>;
|
|
10
10
|
}, "columnType"> & ({
|
|
11
|
+
computedValue: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
12
|
+
displayedValue: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
13
|
+
columnType: import("../../properties-panel/props-builder.js").Prop<undefined, false>;
|
|
14
|
+
} | {
|
|
11
15
|
computedValue: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
12
16
|
displayedValue: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
13
17
|
columnType: import("../../properties-panel/props-builder.js").Prop<"text", true>;
|
|
@@ -70,6 +74,15 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
|
|
|
70
74
|
} & (Omit<{
|
|
71
75
|
columnType: import("../../properties-panel/props-builder.js").Prop<import("./types.js").ColumnType, false>;
|
|
72
76
|
}, "columnType"> & ({
|
|
77
|
+
horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "left" | "right", false>;
|
|
78
|
+
verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "bottom" | "top", false>;
|
|
79
|
+
"cellProps.textStyle": import("../../properties-panel/props-builder.js").Prop<any, false>;
|
|
80
|
+
cellBackground: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
81
|
+
textWrap: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
82
|
+
cellIcon: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
83
|
+
cellIconPosition: import("../../properties-panel/props-builder.js").Prop<import("../../icons/constants.js").IconPosition, false>;
|
|
84
|
+
columnType: import("../../properties-panel/props-builder.js").Prop<undefined, false>;
|
|
85
|
+
} | {
|
|
73
86
|
horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "left" | "right", false>;
|
|
74
87
|
verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "bottom" | "top", false>;
|
|
75
88
|
"cellProps.textStyle": import("../../properties-panel/props-builder.js").Prop<any, false>;
|
|
@@ -12,6 +12,10 @@ export declare const propertiesDefinition: {
|
|
|
12
12
|
} & (Omit<{
|
|
13
13
|
columnType: Prop<import("./types.js").ColumnType, true>;
|
|
14
14
|
}, "columnType"> & ({
|
|
15
|
+
computedValue: Prop<string, false>;
|
|
16
|
+
displayedValue: Prop<string, false>;
|
|
17
|
+
columnType: Prop<undefined, false>;
|
|
18
|
+
} | {
|
|
15
19
|
computedValue: Prop<string, false>;
|
|
16
20
|
displayedValue: Prop<string, false>;
|
|
17
21
|
columnType: Prop<"text", true>;
|
|
@@ -74,6 +78,15 @@ export declare const propertiesDefinition: {
|
|
|
74
78
|
} & (Omit<{
|
|
75
79
|
columnType: Prop<import("./types.js").ColumnType, false>;
|
|
76
80
|
}, "columnType"> & ({
|
|
81
|
+
horizontalAlign: Prop<"center" | "left" | "right", false>;
|
|
82
|
+
verticalAlign: Prop<"center" | "bottom" | "top", false>;
|
|
83
|
+
"cellProps.textStyle": Prop<any, false>;
|
|
84
|
+
cellBackground: Prop<string, false>;
|
|
85
|
+
textWrap: Prop<boolean, false>;
|
|
86
|
+
cellIcon: Prop<string, false>;
|
|
87
|
+
cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, false>;
|
|
88
|
+
columnType: Prop<undefined, false>;
|
|
89
|
+
} | {
|
|
77
90
|
horizontalAlign: Prop<"center" | "left" | "right", false>;
|
|
78
91
|
verticalAlign: Prop<"center" | "bottom" | "top", false>;
|
|
79
92
|
"cellProps.textStyle": Prop<any, false>;
|
|
@@ -117,7 +117,6 @@ export declare const getVisibleOrderedColumnIds: (columns: Record<string, Column
|
|
|
117
117
|
export declare const reorderColumns: (columns: Record<string, ColumnProperties>, columnOrder: string[], columnFreezes?: Record<string, boolean>) => Record<string, ColumnProperties>;
|
|
118
118
|
export declare function getDefaultColumnProperties(accessor: string, index: number, widgetName: string, isDerived?: boolean): ColumnProperties;
|
|
119
119
|
export declare function getDefaultComputedValue(accessor: string, widgetName: string, isDerived: boolean): string;
|
|
120
|
-
export declare function columnHasNonDefaultProps(columnProperties: ColumnProperties, widgetName: string): boolean;
|
|
121
120
|
export declare function getTableStyles(props: any): TableStyles;
|
|
122
121
|
export declare const getColumnWidthStyle: ({ column, columnSizeMap, resizingColumnIdRef, canvasScaleFactor, }: {
|
|
123
122
|
column: any;
|
|
@@ -141,6 +141,7 @@ declare class Prop<Type extends DataType, _HasDefault extends boolean = false> {
|
|
|
141
141
|
*/
|
|
142
142
|
protected relations: Relation[][];
|
|
143
143
|
protected constructor(typeString: DataTypeString, defaultValidator?: ValidateFn<Type | undefined>);
|
|
144
|
+
static unset(): Prop<undefined>;
|
|
144
145
|
static string<T extends string>(): Prop<T>;
|
|
145
146
|
static number<T extends number>(): Prop<T>;
|
|
146
147
|
static boolean<T extends boolean>(): Prop<T>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superblocksteam/library",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.16",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@react-hook/resize-observer": "1.2.6",
|
|
33
33
|
"@superblocksteam/fast-deep-equal": "3.1.4",
|
|
34
34
|
"@superblocksteam/iso-currency": "2.0.0",
|
|
35
|
-
"@superblocksteam/library-shared": "2.0.0-next.
|
|
35
|
+
"@superblocksteam/library-shared": "2.0.0-next.16",
|
|
36
36
|
"@superblocksteam/shared": "0.9132.0",
|
|
37
37
|
"antd": "4.24.15",
|
|
38
38
|
"apca-w3": "^0.1.9",
|