@superblocksteam/library 2.0.0-next.4 → 2.0.0-next.41
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-D8-iN1no.js → allPaths-Bj6thg9f.js} +2 -2
- package/dist/{allPaths-D8-iN1no.js.map → allPaths-Bj6thg9f.js.map} +1 -1
- package/dist/{allPaths-CF1gtIOM.js → allPaths-Cv0KigTj.js} +2 -2
- package/dist/{allPaths-CF1gtIOM.js.map → allPaths-Cv0KigTj.js.map} +1 -1
- package/dist/{allPathsLoader-BeBFpQBL.js → allPathsLoader-AuVCeQbD.js} +3 -3
- package/dist/{allPathsLoader-BeBFpQBL.js.map → allPathsLoader-AuVCeQbD.js.map} +1 -1
- package/dist/{allPathsLoader-C9Zv92Qq.js → allPathsLoader-DzJ5WE4I.js} +3 -3
- package/dist/{allPathsLoader-C9Zv92Qq.js.map → allPathsLoader-DzJ5WE4I.js.map} +1 -1
- package/dist/{icons-BrNMuu_I.js → icons-D_yAT9A6.js} +27 -19
- package/dist/icons-D_yAT9A6.js.map +1 -0
- package/dist/{index-BKcgNC6z.js → index-sY8OAGZZ.js} +50584 -49585
- package/dist/{index-BKcgNC6z.js.map → index-sY8OAGZZ.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-B1mX23Pc.js → splitPathsBySizeLoader-B9VbwPK4.js} +2 -2
- package/dist/{splitPathsBySizeLoader-B1mX23Pc.js.map → splitPathsBySizeLoader-B9VbwPK4.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-B2lh3sPK.js → splitPathsBySizeLoader-CFT4USmT.js} +2 -2
- package/dist/{splitPathsBySizeLoader-B2lh3sPK.js.map → splitPathsBySizeLoader-CFT4USmT.js.map} +1 -1
- package/dist-types/edit-mode/default-table-data.d.ts +64 -0
- package/dist-types/edit-mode/dnd/utils.d.ts +11 -1
- package/dist-types/edit-mode/features/operation-store.d.ts +4 -0
- package/dist-types/edit-mode/source-update-api.d.ts +2 -1
- package/dist-types/lib/internal-details/identifier-normalizer.d.ts +0 -1
- package/dist-types/lib/internal-details/lib/evaluator/base-entity-manager.d.ts +3 -2
- package/dist-types/lib/internal-details/lib/evaluator/compute-engines.d.ts +2 -1
- package/dist-types/lib/internal-details/lib/evaluator/entity-manager.d.ts +8 -0
- package/dist-types/lib/internal-details/lib/evaluator/lazy-function.d.ts +1 -1
- package/dist-types/lib/triggers/implementations/show-alert.d.ts +6 -5
- package/dist-types/lib/triggers/registry.d.ts +4 -2
- package/dist-types/lib/user-facing/component-base/constants.d.ts +4 -4
- package/dist-types/lib/user-facing/component-base/utils/input-validation.d.ts +3 -3
- package/dist-types/lib/user-facing/components/button/index.d.ts +0 -1
- package/dist-types/lib/user-facing/components/button/props.d.ts +0 -6
- package/dist-types/lib/user-facing/components/checkbox/index.d.ts +0 -1
- package/dist-types/lib/user-facing/components/checkbox/props.d.ts +0 -1
- package/dist-types/lib/user-facing/components/column/index.d.ts +5 -6
- package/dist-types/lib/user-facing/components/column/props.d.ts +27 -29
- package/dist-types/lib/user-facing/components/container/index.d.ts +4 -5
- package/dist-types/lib/user-facing/components/container/props.d.ts +4 -5
- package/dist-types/lib/user-facing/components/custom/register-custom-component.d.ts +0 -1
- package/dist-types/lib/user-facing/components/date-picker/date-picker-component.d.ts +11 -4
- package/dist-types/lib/user-facing/components/date-picker/index.d.ts +2 -3
- package/dist-types/lib/user-facing/components/date-picker/props.d.ts +2 -3
- package/dist-types/lib/user-facing/components/date-picker/types.d.ts +2 -2
- package/dist-types/lib/user-facing/components/date-picker/utils.d.ts +11 -0
- package/dist-types/lib/user-facing/components/dropdown/index.d.ts +1 -2
- package/dist-types/lib/user-facing/components/dropdown/props.d.ts +1 -2
- package/dist-types/lib/user-facing/components/dropdown/types.d.ts +1 -1
- package/dist-types/lib/user-facing/components/grid/index.d.ts +0 -1
- package/dist-types/lib/user-facing/components/icon/index.d.ts +0 -1
- package/dist-types/lib/user-facing/components/icon/props.d.ts +0 -1
- package/dist-types/lib/user-facing/components/image/index.d.ts +1 -2
- package/dist-types/lib/user-facing/components/image/props.d.ts +1 -2
- package/dist-types/lib/user-facing/components/input/derived-properties.d.ts +0 -1
- package/dist-types/lib/user-facing/components/input/index.d.ts +0 -1
- package/dist-types/lib/user-facing/components/input/props.d.ts +2 -4
- package/dist-types/lib/user-facing/components/key-value/props.d.ts +0 -1
- package/dist-types/lib/user-facing/components/modal/index.d.ts +4 -4
- package/dist-types/lib/user-facing/components/modal/props.d.ts +4 -4
- package/dist-types/lib/user-facing/components/section/index.d.ts +4 -3
- package/dist-types/lib/user-facing/components/section/props.d.ts +4 -3
- package/dist-types/lib/user-facing/components/slideout/props.d.ts +0 -1
- package/dist-types/lib/user-facing/components/stack/index.d.ts +6 -9
- package/dist-types/lib/user-facing/components/switch/index.d.ts +0 -1
- package/dist-types/lib/user-facing/components/switch/props.d.ts +0 -1
- package/dist-types/lib/user-facing/components/table/column-properties-panel.d.ts +14 -9
- package/dist-types/lib/user-facing/components/table/components/table-data-download.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/components/table-footer.d.ts +4 -4
- package/dist-types/lib/user-facing/components/table/components/table-pagination.d.ts +3 -3
- package/dist-types/lib/user-facing/components/table/derived-properties.d.ts +0 -1
- package/dist-types/lib/user-facing/components/table/index.d.ts +25 -22
- package/dist-types/lib/user-facing/components/table/props.d.ts +26 -24
- package/dist-types/lib/user-facing/components/table/table-component.d.ts +3 -3
- package/dist-types/lib/user-facing/components/table/table-styles.d.ts +0 -1
- package/dist-types/lib/user-facing/components/table/table-utilities.d.ts +0 -1
- package/dist-types/lib/user-facing/components/table/types.d.ts +7 -13
- package/dist-types/lib/user-facing/components/text/index.d.ts +0 -1
- package/dist-types/lib/user-facing/components/text/props.d.ts +0 -1
- package/dist-types/lib/user-facing/global-functions.d.ts +2 -1
- package/dist-types/lib/user-facing/properties-panel/mixins/appearance-properties.d.ts +1 -0
- package/dist-types/lib/user-facing/properties-panel/mixins/appearance.d.ts +4 -8
- package/dist-types/lib/user-facing/properties-panel/mixins/layout-section.d.ts +11 -13
- package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +2 -1
- package/dist-types/lib/user-facing/sb-event-flow.d.ts +3 -3
- package/dist-types/lib/user-facing/themes/constants.d.ts +1 -0
- package/dist-types/lib/user-facing/utils/notification.d.ts +17 -0
- package/package.json +4 -3
- package/dist/icons-BrNMuu_I.js.map +0 -1
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-sY8OAGZZ.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-sY8OAGZZ.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-sY8OAGZZ.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-B9VbwPK4.js.map
|
package/dist/{splitPathsBySizeLoader-B1mX23Pc.js.map → splitPathsBySizeLoader-B9VbwPK4.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-B9VbwPK4.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-sY8OAGZZ.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-CFT4USmT.js.map
|
package/dist/{splitPathsBySizeLoader-B2lh3sPK.js.map → splitPathsBySizeLoader-CFT4USmT.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-CFT4USmT.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]}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export declare const DEFAULT_TABLE_DATA: {
|
|
2
|
+
photo: string;
|
|
3
|
+
name: string;
|
|
4
|
+
email: string;
|
|
5
|
+
role: string;
|
|
6
|
+
company: string;
|
|
7
|
+
status: string;
|
|
8
|
+
date_joined: string;
|
|
9
|
+
last_activity: string;
|
|
10
|
+
}[];
|
|
11
|
+
export declare const DEFAULT_TABLE_COLUMNS: {
|
|
12
|
+
name: {
|
|
13
|
+
columnType: string;
|
|
14
|
+
label: string;
|
|
15
|
+
};
|
|
16
|
+
email: {
|
|
17
|
+
columnType: string;
|
|
18
|
+
label: string;
|
|
19
|
+
};
|
|
20
|
+
role: {
|
|
21
|
+
columnType: string;
|
|
22
|
+
label: string;
|
|
23
|
+
};
|
|
24
|
+
company: {
|
|
25
|
+
columnType: string;
|
|
26
|
+
label: string;
|
|
27
|
+
};
|
|
28
|
+
status: {
|
|
29
|
+
columnType: string;
|
|
30
|
+
tagDisplayConfig: {
|
|
31
|
+
Active: {
|
|
32
|
+
color: string;
|
|
33
|
+
};
|
|
34
|
+
Pending: {
|
|
35
|
+
color: string;
|
|
36
|
+
};
|
|
37
|
+
Inactive: {
|
|
38
|
+
color: string;
|
|
39
|
+
};
|
|
40
|
+
Suspended: {
|
|
41
|
+
color: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
label: string;
|
|
45
|
+
};
|
|
46
|
+
date_joined: {
|
|
47
|
+
columnType: string;
|
|
48
|
+
inputFormat: string;
|
|
49
|
+
outputFormat: string;
|
|
50
|
+
label: string;
|
|
51
|
+
};
|
|
52
|
+
last_activity: {
|
|
53
|
+
columnType: string;
|
|
54
|
+
inputFormat: string;
|
|
55
|
+
outputFormat: string;
|
|
56
|
+
label: string;
|
|
57
|
+
};
|
|
58
|
+
photo: {
|
|
59
|
+
columnType: string;
|
|
60
|
+
label: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export declare const DEFAULT_TABLE_KEYS: string[];
|
|
64
|
+
export declare const CLEARED_TABLE_COLUMNS: Record<string, undefined>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dim, type PropertyInfo } from "@superblocksteam/library-shared";
|
|
2
2
|
export declare const WithLayoutContainerTypes: Set<string>;
|
|
3
3
|
export declare const VStackLikeContainerTypes: Set<string>;
|
|
4
4
|
export declare const HStackLikeContainerTypes: Set<string>;
|
|
@@ -26,3 +26,13 @@ export declare const filterSafeGridDimensionProperties: (existingProps: {
|
|
|
26
26
|
width?: PropertyInfo;
|
|
27
27
|
height?: PropertyInfo;
|
|
28
28
|
};
|
|
29
|
+
export declare const defaultSizeForComponent: (componentType: string, isFreeform: boolean, activeRectGUWidth?: number) => {
|
|
30
|
+
height: import("@superblocksteam/library-shared/types").PropertyInfo<Dim<"fit">>;
|
|
31
|
+
width: import("@superblocksteam/library-shared/types").PropertyInfo<Dim<"columns">>;
|
|
32
|
+
} | {
|
|
33
|
+
height: import("@superblocksteam/library-shared/types").PropertyInfo<Dim<"fit">>;
|
|
34
|
+
width: import("@superblocksteam/library-shared/types").PropertyInfo<Dim<"fit">>;
|
|
35
|
+
} | {
|
|
36
|
+
height: import("@superblocksteam/library-shared/types").PropertyInfo<Dim<"fit">>;
|
|
37
|
+
width: import("@superblocksteam/library-shared/types").PropertyInfo<Dim<"fill">>;
|
|
38
|
+
};
|
|
@@ -43,6 +43,10 @@ declare class OperationManager {
|
|
|
43
43
|
writeRuntimeProperties(sourceId: SbElement, transactionId: string, updates: Record<string, PropertyInfo<unknown>>): void;
|
|
44
44
|
setWidgetProperties(sourceId: SbElement, properties: Record<string, PropertyInfo<unknown>>, callback?: () => void): void;
|
|
45
45
|
setWidgetProperty(sourceId: SbElement, property: string, value: PropertyInfo<unknown>, callback?: () => void): void;
|
|
46
|
+
renameWidget(params: {
|
|
47
|
+
sourceId: SbElement;
|
|
48
|
+
newName: string;
|
|
49
|
+
}): void;
|
|
46
50
|
ensureFilesSynced(): Promise<void>;
|
|
47
51
|
generateSourceId(): `SB-${string}`;
|
|
48
52
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EditOperationType, EditOperations, ReparentRequest, CreateRequest, SetPropertyRequest, SetPropertiesRequest, BatchUpdateRequest, ApiUpdateRequest, AddEntityRequest, UpdateEntityRequest, UpdateThemeRequest, DeleteEntityRequest, DeleteRequest, DeletePropertiesRequest } from "@superblocksteam/library-shared/types";
|
|
1
|
+
import type { EditOperationType, EditOperations, ReparentRequest, CreateRequest, SetPropertyRequest, SetPropertiesRequest, BatchUpdateRequest, ApiUpdateRequest, AddEntityRequest, UpdateEntityRequest, UpdateThemeRequest, DeleteEntityRequest, DeleteRequest, DeletePropertiesRequest, RenameElementRequest } from "@superblocksteam/library-shared/types";
|
|
2
2
|
type CamelCase<S extends string> = S extends `${infer Head}-${infer Tail}` ? `${Head}${Capitalize<CamelCase<Tail>>}` : S extends `${infer Head}:${infer Tail}` ? `${Head}${Capitalize<CamelCase<Tail>>}` : S;
|
|
3
3
|
type IOperationAPI = {
|
|
4
4
|
[K in EditOperationType as CamelCase<K>]: (payload: Parameters<EditOperations[K]>[0]) => Promise<ReturnType<EditOperations[K]> | undefined>;
|
|
@@ -19,6 +19,7 @@ declare class OperationAPI implements IOperationAPI {
|
|
|
19
19
|
editorAddEntity: (payload: AddEntityRequest) => Promise<void | undefined>;
|
|
20
20
|
editorUpdateEntity: (payload: UpdateEntityRequest) => Promise<void | undefined>;
|
|
21
21
|
editorDeleteEntity: (payload: DeleteEntityRequest) => Promise<void | undefined>;
|
|
22
|
+
editorRenameElement: (payload: RenameElementRequest) => Promise<void | undefined>;
|
|
22
23
|
editorUpdateTheme: (payload: UpdateThemeRequest) => Promise<void | undefined>;
|
|
23
24
|
ensureFilesSynced: () => Promise<string | undefined>;
|
|
24
25
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { BindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
2
2
|
export declare const getNormalizedIdInfo: (params: {
|
|
3
3
|
bind: BindingIdentifier | undefined;
|
|
4
|
-
propsName: string | undefined;
|
|
5
4
|
fallbackScopeId: string;
|
|
6
5
|
}) => {
|
|
7
6
|
name: string | undefined;
|
|
@@ -5,8 +5,8 @@ import type { SbEventFlow } from "../../../user-facing/sb-event-flow.js";
|
|
|
5
5
|
import type { BindingString, ComputedProperty, Dim, DimModes } from "@superblocksteam/library-shared";
|
|
6
6
|
import type { SbElement, SbInstance } from "@superblocksteam/library-shared/types";
|
|
7
7
|
export type EntityOutputProp = Exclude<null | undefined | string | number | boolean | object | bigint | any[], BindingString | EntityDerivedProp<any[]>>;
|
|
8
|
-
export type EntityDerivedProp<ARGS extends any[] = any[]> = (this: Readonly<Entity>, state
|
|
9
|
-
export type Executable<ARGS extends any[] = any[]> = (this: Entity, state
|
|
8
|
+
export type EntityDerivedProp<ARGS extends any[] = any[]> = (this: Readonly<Entity>, state?: Readonly<ScopedState>, ...args: ARGS) => EntityOutputProp;
|
|
9
|
+
export type Executable<ARGS extends any[] = any[]> = (this: Entity, state?: ScopedState, ...args: ARGS) => void;
|
|
10
10
|
export type ValueInputProp<T = EntityOutputProp> = T | EntityDerivedProp | BindingString | ComputedProperty<T>;
|
|
11
11
|
export type SingleInputProp<T = EntityOutputProp> = ValueInputProp<T> | SbEventFlow | Dim<DimModes>;
|
|
12
12
|
export type NestedInputProp<T> = T extends object ? {
|
|
@@ -86,6 +86,7 @@ export interface IEntityManager {
|
|
|
86
86
|
name: Name;
|
|
87
87
|
func: Executable<ARGS>;
|
|
88
88
|
args?: ARGS;
|
|
89
|
+
excludeState?: boolean;
|
|
89
90
|
}): void;
|
|
90
91
|
computeValue<T>(params: {
|
|
91
92
|
scopeId: ScopeId;
|
|
@@ -6,6 +6,7 @@ export type ComputeParams<ARGS extends any[] = any[]> = {
|
|
|
6
6
|
path?: string;
|
|
7
7
|
func: EntityDerivedProp<ARGS>;
|
|
8
8
|
args?: ARGS;
|
|
9
|
+
excludeState?: boolean;
|
|
9
10
|
};
|
|
10
11
|
export interface ComputeEngine {
|
|
11
12
|
compute(params: ComputeParams): EntityOutputProp;
|
|
@@ -15,6 +16,6 @@ declare class EvalComputeEngine implements ComputeEngine {
|
|
|
15
16
|
compute({ snapshot, entityName, func, args, path }: ComputeParams): any;
|
|
16
17
|
}
|
|
17
18
|
declare class DirectComputeEngine implements ComputeEngine {
|
|
18
|
-
compute({ snapshot, entityName, func, args, path }: ComputeParams): EntityOutputProp;
|
|
19
|
+
compute({ snapshot, entityName, func, args, path, excludeState, }: ComputeParams): EntityOutputProp;
|
|
19
20
|
}
|
|
20
21
|
export { EvalComputeEngine, DirectComputeEngine };
|
|
@@ -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;
|
|
@@ -70,6 +77,7 @@ export declare class EntityManager implements IEntityManager {
|
|
|
70
77
|
scopeId: string;
|
|
71
78
|
name: Name;
|
|
72
79
|
func: Executable;
|
|
80
|
+
excludeState?: boolean;
|
|
73
81
|
args?: ARGS;
|
|
74
82
|
}): void;
|
|
75
83
|
computeValue<T>(params: {
|
|
@@ -3,5 +3,5 @@ export type LazyFunction = ((...args: unknown[]) => unknown) & {
|
|
|
3
3
|
[lazyFunctionSymbol]: true;
|
|
4
4
|
};
|
|
5
5
|
export declare const isLazyFunction: (value: unknown) => value is LazyFunction;
|
|
6
|
-
export declare const LazyFunction: (source: string) => LazyFunction;
|
|
6
|
+
export declare const LazyFunction: (source: string, args?: string[]) => LazyFunction;
|
|
7
7
|
export {};
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
2
|
+
import { type NotificationPosition, type NotificationType } from "../../user-facing/utils/notification.jsx";
|
|
2
3
|
import type { ValueInputProp } from "../../internal-details/lib/evaluator/base-entity-manager.js";
|
|
3
4
|
import type { BaseStepDef } from "../../sb-trigger.js";
|
|
4
5
|
import type { ExecutionContext } from "../base.js";
|
|
5
|
-
export type TypeOptions = "info" | "success" | "warning" | "error" | "default";
|
|
6
|
-
export type NotificationPosition = string;
|
|
7
6
|
export interface ShowAlertStep extends BaseStepDef {
|
|
8
7
|
type: typeof TriggerStepType.SHOW_ALERT;
|
|
9
8
|
message: ValueInputProp<string>;
|
|
10
|
-
style:
|
|
9
|
+
style: NotificationType;
|
|
11
10
|
alertDuration?: number;
|
|
12
11
|
alertPosition?: NotificationPosition;
|
|
13
12
|
}
|
|
14
13
|
export declare const ShowAlertTrigger: {
|
|
15
14
|
type: "showAlert";
|
|
16
15
|
execute(_context: ExecutionContext, step: ShowAlertStep): Promise<void>;
|
|
17
|
-
create(message: ValueInputProp<string>, alertType:
|
|
16
|
+
create(message: ValueInputProp<string>, alertType: NotificationType, alertDuration?: number, alertPosition?: NotificationPosition): {
|
|
18
17
|
type: "showAlert";
|
|
19
18
|
message: ValueInputProp<string>;
|
|
20
|
-
style:
|
|
19
|
+
style: NotificationType;
|
|
20
|
+
alertDuration: number | undefined;
|
|
21
|
+
alertPosition: NotificationPosition | undefined;
|
|
21
22
|
};
|
|
22
23
|
};
|
|
@@ -160,10 +160,12 @@ declare const EventRegistry: {
|
|
|
160
160
|
readonly showAlert: {
|
|
161
161
|
type: "showAlert";
|
|
162
162
|
execute(_context: import("./base.js").ExecutionContext, step: import("./implementations/show-alert.js").ShowAlertStep): Promise<void>;
|
|
163
|
-
create(message: import("../internal-details/lib/evaluator/base-entity-manager.js").ValueInputProp<string>, alertType: import("
|
|
163
|
+
create(message: import("../internal-details/lib/evaluator/base-entity-manager.js").ValueInputProp<string>, alertType: import("../user-facing/utils/notification.jsx").NotificationType, alertDuration?: number, alertPosition?: import("../user-facing/utils/notification.jsx").NotificationPosition): {
|
|
164
164
|
type: "showAlert";
|
|
165
165
|
message: import("../internal-details/lib/evaluator/base-entity-manager.js").ValueInputProp<string>;
|
|
166
|
-
style: import("
|
|
166
|
+
style: import("../user-facing/utils/notification.jsx").NotificationType;
|
|
167
|
+
alertDuration: number | undefined;
|
|
168
|
+
alertPosition: import("../user-facing/utils/notification.jsx").NotificationPosition | undefined;
|
|
167
169
|
};
|
|
168
170
|
};
|
|
169
171
|
readonly setProfile: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export type ContainerLayout = "freeform" | "vertical" | "horizontal";
|
|
2
2
|
export type ContainerVariant = "none" | "card";
|
|
3
|
-
export type VerticalAlignment = "top" | "center" | "bottom" | "space-between" | "space-around";
|
|
4
|
-
export type HorizontalAlignment = "left" | "center" | "right" | "space-between" | "space-around";
|
|
5
|
-
export declare const VERTICAL_ALIGNMENT_MAP: Record<VerticalAlignment
|
|
6
|
-
export declare const HORIZONTAL_ALIGNMENT_MAP: Record<HorizontalAlignment
|
|
3
|
+
export type VerticalAlignment<LayoutType extends "vertical" | "horizontal" | undefined = undefined> = LayoutType extends "horizontal" ? "top" | "center" | "bottom" : "top" | "center" | "bottom" | "space-between" | "space-around";
|
|
4
|
+
export type HorizontalAlignment<LayoutType extends "vertical" | "horizontal" | undefined = undefined> = LayoutType extends "vertical" ? "left" | "center" | "right" : "left" | "center" | "right" | "space-between" | "space-around";
|
|
5
|
+
export declare const VERTICAL_ALIGNMENT_MAP: Record<VerticalAlignment<"vertical">, string>;
|
|
6
|
+
export declare const HORIZONTAL_ALIGNMENT_MAP: Record<HorizontalAlignment<"horizontal">, string>;
|
|
7
7
|
export declare const GridDefaults: {
|
|
8
8
|
DEFAULT_GRID_COLUMNS: number;
|
|
9
9
|
SLIDEOUT_DEFAULT_GRID_COLUMNS: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const getInputValidationErrors: (props: {
|
|
2
|
-
text
|
|
3
|
-
inputType
|
|
4
|
-
isRequired
|
|
2
|
+
text?: string;
|
|
3
|
+
inputType?: string;
|
|
4
|
+
isRequired?: boolean;
|
|
5
5
|
customValidationRule?: string;
|
|
6
6
|
customErrorMessage?: string;
|
|
7
7
|
maxLength?: number;
|
|
@@ -15,7 +15,6 @@ export declare const SbButton: import("react").FC<import("../../properties-panel
|
|
|
15
15
|
margin: import("../../properties-panel/props-builder.js").Prop<unknown, true>;
|
|
16
16
|
} & {
|
|
17
17
|
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
18
|
-
collapseWhenInvisible: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
19
18
|
}>;
|
|
20
19
|
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
21
20
|
variant: import("../../properties-panel/props-builder.js").Prop<import("./props.js").ButtonVariant, true>;
|
|
@@ -4,11 +4,6 @@ import type { IconPosition } from "../../icons/constants.js";
|
|
|
4
4
|
import type { TextAlign } from "@superblocksteam/library-shared/props";
|
|
5
5
|
import type { PerSideBorder } from "@superblocksteam/library-shared/types";
|
|
6
6
|
export type ButtonVariant = "primary" | "secondary" | "tertiary";
|
|
7
|
-
export declare const PerSideBorderDef: () => import("../../properties-panel/props-builder.js").CompositeProp<{
|
|
8
|
-
color: Prop<string, false>;
|
|
9
|
-
width: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
10
|
-
style: Prop<string, false>;
|
|
11
|
-
}>;
|
|
12
7
|
export declare const propertiesDefinition: {
|
|
13
8
|
general: Section<Record<string, Prop<any, any>> & {
|
|
14
9
|
label: Prop<string, false>;
|
|
@@ -26,7 +21,6 @@ export declare const propertiesDefinition: {
|
|
|
26
21
|
margin: Prop<unknown, true>;
|
|
27
22
|
} & {
|
|
28
23
|
isVisible: Prop<boolean, true>;
|
|
29
|
-
collapseWhenInvisible: Prop<boolean, false>;
|
|
30
24
|
}>;
|
|
31
25
|
appearance: Section<Record<string, Prop<any, any>> & {
|
|
32
26
|
variant: Prop<ButtonVariant, true>;
|
|
@@ -18,7 +18,6 @@ export declare const SbCheckbox: import("react").FC<import("../../properties-pan
|
|
|
18
18
|
margin: import("../../properties-panel/props-builder.js").Prop<unknown, true>;
|
|
19
19
|
} & {
|
|
20
20
|
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
21
|
-
collapseWhenInvisible: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
22
21
|
}>;
|
|
23
22
|
interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
24
23
|
customValidationRule: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
@@ -19,7 +19,6 @@ export declare const propertiesDefinition: {
|
|
|
19
19
|
margin: Prop<unknown, true>;
|
|
20
20
|
} & {
|
|
21
21
|
isVisible: Prop<boolean, true>;
|
|
22
|
-
collapseWhenInvisible: Prop<boolean, false>;
|
|
23
22
|
}>;
|
|
24
23
|
interaction: Section<Record<string, Prop<any, any>> & {
|
|
25
24
|
customValidationRule: Prop<string, true>;
|
|
@@ -18,14 +18,14 @@ export declare const SbColumn: import("react").FC<import("../../properties-panel
|
|
|
18
18
|
}) | (Omit<{
|
|
19
19
|
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
20
20
|
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
21
|
-
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<
|
|
22
|
-
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<
|
|
21
|
+
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true>;
|
|
22
|
+
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "left" | "right", true>;
|
|
23
23
|
readonly layout: import("../../properties-panel/props-builder.js").Prop<"vertical", true>;
|
|
24
24
|
}) | (Omit<{
|
|
25
25
|
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
26
26
|
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
27
|
-
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<
|
|
28
|
-
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<
|
|
27
|
+
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "bottom" | "top", true>;
|
|
28
|
+
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
|
|
29
29
|
readonly layout: import("../../properties-panel/props-builder.js").Prop<"horizontal", true>;
|
|
30
30
|
}))) & {
|
|
31
31
|
spacing: import("../../properties-panel/props-builder.js").Prop<Dim<"px">, true>;
|
|
@@ -42,10 +42,9 @@ export declare const SbColumn: import("react").FC<import("../../properties-panel
|
|
|
42
42
|
shouldScrollContents: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
43
43
|
}) & {
|
|
44
44
|
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
45
|
-
collapseWhenInvisible: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
46
45
|
}>;
|
|
47
46
|
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
48
47
|
backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
49
|
-
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder,
|
|
48
|
+
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
|
|
50
49
|
}>;
|
|
51
50
|
}>>;
|
|
@@ -1,45 +1,43 @@
|
|
|
1
1
|
import { Dim } from "@superblocksteam/library-shared";
|
|
2
|
-
import { Prop } from "../../properties-panel/props-builder.js";
|
|
3
2
|
import { Section } from "../../properties-panel/props-builder.js";
|
|
4
3
|
export declare const propertiesDefinition: {
|
|
5
|
-
layout: Section<(((((Record<string, Prop<any, any>> & ((Omit<{
|
|
6
|
-
layout: Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
4
|
+
layout: Section<(((((Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & ((Omit<{
|
|
5
|
+
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
7
6
|
}, "layout" | "rows" | "columns" | "rowSize"> & {
|
|
8
|
-
readonly layout: Prop<"freeform", true>;
|
|
9
|
-
readonly columns: Prop<number, true>;
|
|
10
|
-
readonly rows: Prop<number, false>;
|
|
11
|
-
readonly rowSize: Prop<number, false>;
|
|
7
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"freeform", true>;
|
|
8
|
+
readonly columns: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
9
|
+
readonly rows: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
10
|
+
readonly rowSize: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
12
11
|
}) | (Omit<{
|
|
13
|
-
layout: Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
12
|
+
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
14
13
|
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
15
|
-
readonly verticalAlign:
|
|
16
|
-
readonly horizontalAlign:
|
|
17
|
-
readonly layout: Prop<"vertical", true>;
|
|
14
|
+
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true>;
|
|
15
|
+
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "left" | "right", true>;
|
|
16
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"vertical", true>;
|
|
18
17
|
}) | (Omit<{
|
|
19
|
-
layout: Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
18
|
+
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
20
19
|
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
21
|
-
readonly verticalAlign:
|
|
22
|
-
readonly horizontalAlign:
|
|
23
|
-
readonly layout: Prop<"horizontal", true>;
|
|
20
|
+
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "bottom" | "top", true>;
|
|
21
|
+
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
|
|
22
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"horizontal", true>;
|
|
24
23
|
}))) & {
|
|
25
|
-
spacing: Prop<Dim<"px">, true>;
|
|
24
|
+
spacing: import("../../properties-panel/props-builder.js").Prop<Dim<"px">, true>;
|
|
26
25
|
}) & {
|
|
27
|
-
padding: Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
26
|
+
padding: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
28
27
|
}) & {
|
|
29
|
-
maxHeight?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
30
|
-
minHeight?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
31
|
-
maxWidth?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
32
|
-
minWidth?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
33
|
-
width: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
34
|
-
height: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
28
|
+
maxHeight?: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
29
|
+
minHeight?: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
30
|
+
maxWidth?: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
31
|
+
minWidth?: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
32
|
+
width: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
33
|
+
height: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
35
34
|
}) & {
|
|
36
|
-
shouldScrollContents: Prop<boolean, true>;
|
|
35
|
+
shouldScrollContents: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
37
36
|
}) & {
|
|
38
|
-
isVisible: Prop<boolean, true>;
|
|
39
|
-
collapseWhenInvisible: Prop<boolean, false>;
|
|
37
|
+
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
40
38
|
}>;
|
|
41
|
-
appearance: Section<Record<string, Prop<any, any>> & {
|
|
42
|
-
backgroundColor: Prop<string, false>;
|
|
43
|
-
border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder,
|
|
39
|
+
appearance: Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
40
|
+
backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
41
|
+
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
|
|
44
42
|
}>;
|
|
45
43
|
};
|
|
@@ -25,14 +25,14 @@ export declare const SbContainer: import("react").FC<import("../../properties-pa
|
|
|
25
25
|
}) | (Omit<{
|
|
26
26
|
layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true>;
|
|
27
27
|
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
28
|
-
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<
|
|
29
|
-
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<
|
|
28
|
+
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true>;
|
|
29
|
+
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "left" | "right", true>;
|
|
30
30
|
readonly layout: import("../../properties-panel/props-builder.js").Prop<"vertical", true>;
|
|
31
31
|
}) | (Omit<{
|
|
32
32
|
layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true>;
|
|
33
33
|
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
34
|
-
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<
|
|
35
|
-
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<
|
|
34
|
+
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "bottom" | "top", true>;
|
|
35
|
+
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
|
|
36
36
|
readonly layout: import("../../properties-panel/props-builder.js").Prop<"horizontal", true>;
|
|
37
37
|
}))) & {
|
|
38
38
|
spacing: import("../../properties-panel/props-builder.js").Prop<Dim<"px">, true>;
|
|
@@ -51,7 +51,6 @@ export declare const SbContainer: import("react").FC<import("../../properties-pa
|
|
|
51
51
|
shouldScrollContents: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
52
52
|
}) & {
|
|
53
53
|
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
54
|
-
collapseWhenInvisible: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
55
54
|
}>;
|
|
56
55
|
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
57
56
|
variant: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerVariant, true>;
|
|
@@ -21,14 +21,14 @@ export declare const propertiesDefinition: {
|
|
|
21
21
|
}) | (Omit<{
|
|
22
22
|
layout: Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
23
23
|
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
24
|
-
readonly verticalAlign: Prop<
|
|
25
|
-
readonly horizontalAlign: Prop<
|
|
24
|
+
readonly verticalAlign: Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true>;
|
|
25
|
+
readonly horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
26
26
|
readonly layout: Prop<"vertical", true>;
|
|
27
27
|
}) | (Omit<{
|
|
28
28
|
layout: Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
29
29
|
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
30
|
-
readonly verticalAlign: Prop<
|
|
31
|
-
readonly horizontalAlign: Prop<
|
|
30
|
+
readonly verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
31
|
+
readonly horizontalAlign: Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
|
|
32
32
|
readonly layout: Prop<"horizontal", true>;
|
|
33
33
|
}))) & {
|
|
34
34
|
spacing: Prop<Dim<"px">, true>;
|
|
@@ -47,7 +47,6 @@ export declare const propertiesDefinition: {
|
|
|
47
47
|
shouldScrollContents: Prop<boolean, true>;
|
|
48
48
|
}) & {
|
|
49
49
|
isVisible: Prop<boolean, true>;
|
|
50
|
-
collapseWhenInvisible: Prop<boolean, false>;
|
|
51
50
|
}>;
|
|
52
51
|
appearance: Section<Record<string, Prop<any, any>> & {
|
|
53
52
|
variant: Prop<ContainerVariant, true>;
|
|
@@ -2,6 +2,9 @@ import React from "react";
|
|
|
2
2
|
import type { DatePickerComponentProps } from "./types.js";
|
|
3
3
|
export declare const INPUT_ADDITIONAL_MIN_HEIGHT = 17.7;
|
|
4
4
|
export declare const LABEL_EXTRA_HEIGHT_MARGIN = 4;
|
|
5
|
+
interface DatePickerComponentState {
|
|
6
|
+
isOpen?: boolean;
|
|
7
|
+
}
|
|
5
8
|
declare class DatePickerComponent extends React.Component<DatePickerComponentProps, DatePickerComponentState> {
|
|
6
9
|
constructor(props: DatePickerComponentProps);
|
|
7
10
|
componentDidMount(): void;
|
|
@@ -9,6 +12,8 @@ declare class DatePickerComponent extends React.Component<DatePickerComponentPro
|
|
|
9
12
|
getValidDate: (date: string, format: string) => Date | undefined;
|
|
10
13
|
getNormalizedDateFormat: () => string;
|
|
11
14
|
getNormalizedDisplayDateFormat: () => string | undefined;
|
|
15
|
+
get valueTimezone(): string;
|
|
16
|
+
get displayTimezone(): string;
|
|
12
17
|
shouldWrapTime: () => boolean;
|
|
13
18
|
handleInteraction: (openState: boolean) => void;
|
|
14
19
|
getInitialMonth: (currentValue: string | undefined | null, minDate: Date | undefined, maxDate: Date | undefined) => Date | undefined;
|
|
@@ -19,11 +24,13 @@ declare class DatePickerComponent extends React.Component<DatePickerComponentPro
|
|
|
19
24
|
formatSelectedDate: (date: Date) => string;
|
|
20
25
|
parseSelectedDate: (dateStr: string) => Date;
|
|
21
26
|
onInputChanged: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
27
|
+
/**
|
|
28
|
+
* @param selectedDayOnly date in the local timezone
|
|
29
|
+
*/
|
|
22
30
|
onDayChanged: (selectedDayOnly: Date | undefined) => void;
|
|
31
|
+
/**
|
|
32
|
+
* @param selectedDayOnly date in the local timezone
|
|
33
|
+
*/
|
|
23
34
|
onTimeChanged: (selectedDateTime: Date | null) => void;
|
|
24
35
|
}
|
|
25
|
-
interface DatePickerComponentState {
|
|
26
|
-
selectedDateFormatted?: unknown;
|
|
27
|
-
isOpen?: boolean;
|
|
28
|
-
}
|
|
29
36
|
export default DatePickerComponent;
|