@superblocksteam/library 2.0.0-next.63 → 2.0.0-next.69
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-BZfM3FHu.js → allPaths-C6OJ6mru.js} +2 -2
- package/dist/{allPaths-BZfM3FHu.js.map → allPaths-C6OJ6mru.js.map} +1 -1
- package/dist/{allPaths-BcLZR8dk.js → allPaths-gAit3yMA.js} +2 -2
- package/dist/{allPaths-BcLZR8dk.js.map → allPaths-gAit3yMA.js.map} +1 -1
- package/dist/{allPathsLoader-CfTtW5Pk.js → allPathsLoader-BJfnsyfx.js} +3 -3
- package/dist/{allPathsLoader-DiAtjU88.js.map → allPathsLoader-BJfnsyfx.js.map} +1 -1
- package/dist/{allPathsLoader-DiAtjU88.js → allPathsLoader-Bjuqgh93.js} +3 -3
- package/dist/{allPathsLoader-CfTtW5Pk.js.map → allPathsLoader-Bjuqgh93.js.map} +1 -1
- package/dist/{index-CbiXEaxq.js → index-B2rMu95r.js} +103 -58
- package/dist/{index-CbiXEaxq.js.map → index-B2rMu95r.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-K5Uoo3UV.js → splitPathsBySizeLoader-DJBHYgBR.js} +2 -2
- package/dist/{splitPathsBySizeLoader-K5Uoo3UV.js.map → splitPathsBySizeLoader-DJBHYgBR.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-DjrBp-Rx.js → splitPathsBySizeLoader-bQPBH87C.js} +2 -2
- package/dist/{splitPathsBySizeLoader-DjrBp-Rx.js.map → splitPathsBySizeLoader-bQPBH87C.js.map} +1 -1
- package/dist-types/edit-mode/dnd/utils.d.ts +2 -13
- package/dist-types/lib/internal-details/lib/evaluator/base-entity-manager.d.ts +2 -2
- package/dist-types/lib/user-facing/component-base/utils/input-validation.d.ts +11 -8
- package/dist-types/lib/user-facing/components/date-picker/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/date-picker/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/dropdown/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/dropdown/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/input/index.d.ts +4 -4
- package/dist-types/lib/user-facing/components/input/props.d.ts +5 -4
- package/dist-types/lib/user-facing/components/text/index.d.ts +4 -4
- package/dist-types/lib/user-facing/components/text/props.d.ts +4 -4
- package/dist-types/lib/user-facing/properties-panel/mixins/form-inputs-properties.d.ts +2 -2
- package/dist-types/lib/user-facing/properties-panel/mixins/layout-section.d.ts +3 -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-B2rMu95r.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-B2rMu95r.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, I as IconSize } from "./index-
|
|
1
|
+
import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-B2rMu95r.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-DJBHYgBR.js.map
|
package/dist/{splitPathsBySizeLoader-K5Uoo3UV.js.map → splitPathsBySizeLoader-DJBHYgBR.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-DJBHYgBR.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]}
|
|
@@ -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-B2rMu95r.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-bQPBH87C.js.map
|
package/dist/{splitPathsBySizeLoader-DjrBp-Rx.js.map → splitPathsBySizeLoader-bQPBH87C.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-bQPBH87C.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]}
|
|
@@ -11,6 +11,7 @@ export declare const isDragAndDropTypeValid: ({ draggedType, dropTargetType, dro
|
|
|
11
11
|
}) => boolean;
|
|
12
12
|
export declare const isTypeDroppable: (type: string) => boolean;
|
|
13
13
|
export declare const isTypeDraggable: (type: string) => boolean;
|
|
14
|
+
export declare const isContentDragDisabled: (type: string) => boolean;
|
|
14
15
|
export declare function shouldWrapInSectionAndColumn(type: string, parentType: string | undefined): boolean;
|
|
15
16
|
export declare const filterSafeStackDimensionProperties: (existingProps: {
|
|
16
17
|
width?: Dim;
|
|
@@ -31,16 +32,4 @@ export declare const defaultSizeForComponent: (componentType: string, isFreeform
|
|
|
31
32
|
heightGU?: number;
|
|
32
33
|
widthPx?: number;
|
|
33
34
|
heightPx?: number;
|
|
34
|
-
}) =>
|
|
35
|
-
height: import("@superblocksteam/library-shared/types").PropertyInfo<Dim<"fit">>;
|
|
36
|
-
width: import("@superblocksteam/library-shared/types").PropertyInfo<Dim<"columns">>;
|
|
37
|
-
} | {
|
|
38
|
-
height: import("@superblocksteam/library-shared/types").PropertyInfo<Dim<"fit">>;
|
|
39
|
-
width: import("@superblocksteam/library-shared/types").PropertyInfo<Dim<"fit">>;
|
|
40
|
-
} | {
|
|
41
|
-
height: import("@superblocksteam/library-shared/types").PropertyInfo<Dim<"fit">>;
|
|
42
|
-
width: import("@superblocksteam/library-shared/types").PropertyInfo<Dim<"px">>;
|
|
43
|
-
} | {
|
|
44
|
-
height: import("@superblocksteam/library-shared/types").PropertyInfo<Dim<"fit">>;
|
|
45
|
-
width: import("@superblocksteam/library-shared/types").PropertyInfo<Dim<"fill">>;
|
|
46
|
-
};
|
|
35
|
+
}) => Record<string, PropertyInfo>;
|
|
@@ -2,13 +2,13 @@ import type { ObserveListener } from "./deep-observe.js";
|
|
|
2
2
|
import type { Name } from "./names.js";
|
|
3
3
|
import type { ValidateFn } from "../../../user-facing/properties-panel/validators.js";
|
|
4
4
|
import type { SbEventFlow } from "../../../user-facing/sb-event-flow.js";
|
|
5
|
-
import type { BindingString, ComputedProperty
|
|
5
|
+
import type { BindingString, ComputedProperty } 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
8
|
export type EntityDerivedProp<ARGS extends any[] = any[]> = (this: Readonly<Entity>, state?: Readonly<ScopedState>, ...args: ARGS) => EntityOutputProp;
|
|
9
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
|
-
export type SingleInputProp<T = EntityOutputProp> = ValueInputProp<T> | SbEventFlow
|
|
11
|
+
export type SingleInputProp<T = EntityOutputProp> = ValueInputProp<T> | SbEventFlow;
|
|
12
12
|
export type NestedInputProp<T> = T extends object ? {
|
|
13
13
|
[K in keyof T]: SingleInputProp<T[K]> | NestedInputProp<T[K]>;
|
|
14
14
|
} : never;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
export type ValidationErrors = {
|
|
2
|
+
required?: string;
|
|
3
|
+
minMax?: string;
|
|
4
|
+
customRule?: string;
|
|
5
|
+
email?: string;
|
|
6
|
+
number?: string;
|
|
7
|
+
url?: string;
|
|
8
|
+
};
|
|
1
9
|
export declare const getInputValidationErrors: (props: {
|
|
2
10
|
text?: string;
|
|
3
11
|
inputType?: string;
|
|
@@ -7,11 +15,6 @@ export declare const getInputValidationErrors: (props: {
|
|
|
7
15
|
maxLength?: number;
|
|
8
16
|
minLength?: number;
|
|
9
17
|
emailRegex?: RegExp;
|
|
10
|
-
}) =>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
customRule?: string;
|
|
14
|
-
email?: string;
|
|
15
|
-
number?: string;
|
|
16
|
-
url?: string;
|
|
17
|
-
};
|
|
18
|
+
}) => ValidationErrors;
|
|
19
|
+
export declare const getErrorMessages: (errors: ValidationErrors) => string[];
|
|
20
|
+
export declare const hasErrors: (errors: ValidationErrors) => boolean;
|
|
@@ -19,11 +19,11 @@ export declare const SbDatePicker: React.FC<import("../../properties-panel/props
|
|
|
19
19
|
twentyFourHourTime: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
20
20
|
}>;
|
|
21
21
|
layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
22
|
+
width: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<"px" | "fill" | "%" | "rows" | "columns">, false>;
|
|
22
23
|
maxHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
23
24
|
minHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
24
25
|
maxWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
25
26
|
minWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
26
|
-
width: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
27
27
|
height: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
28
28
|
} & {
|
|
29
29
|
margin: import("../../properties-panel/props-builder.js").Prop<unknown, true>;
|
|
@@ -21,11 +21,11 @@ export declare const propertiesDefinition: {
|
|
|
21
21
|
twentyFourHourTime: Prop<boolean, true>;
|
|
22
22
|
}>;
|
|
23
23
|
layout: Section<Record<string, Prop<any, any>> & {
|
|
24
|
+
width: Prop<import("@superblocksteam/library-shared").Dim<"px" | "fill" | "%" | "rows" | "columns">, false>;
|
|
24
25
|
maxHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
25
26
|
minHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
26
27
|
maxWidth?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
27
28
|
minWidth?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
28
|
-
width: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
29
29
|
height: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
30
30
|
} & {
|
|
31
31
|
margin: Prop<unknown, true>;
|
|
@@ -22,11 +22,11 @@ export declare const SbDropdown: React.FC<import("../../properties-panel/props-b
|
|
|
22
22
|
layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
23
23
|
padding: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
24
24
|
} & {
|
|
25
|
+
width: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<"px" | "fill" | "%" | "rows" | "columns">, false>;
|
|
25
26
|
maxHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
26
27
|
minHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
27
28
|
maxWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
28
29
|
minWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
29
|
-
width: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
30
30
|
height: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
31
31
|
} & {
|
|
32
32
|
margin: import("../../properties-panel/props-builder.js").Prop<unknown, true>;
|
|
@@ -24,11 +24,11 @@ export declare const propertiesDefinition: {
|
|
|
24
24
|
layout: Section<Record<string, Prop<any, any>> & {
|
|
25
25
|
padding: Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
26
26
|
} & {
|
|
27
|
+
width: Prop<import("@superblocksteam/library-shared").Dim<"px" | "fill" | "%" | "rows" | "columns">, false>;
|
|
27
28
|
maxHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
28
29
|
minHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
29
30
|
maxWidth?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
30
31
|
minWidth?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
31
|
-
width: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
32
32
|
height: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
33
33
|
} & {
|
|
34
34
|
margin: Prop<unknown, true>;
|
|
@@ -36,11 +36,11 @@ export declare const SbInput: import("react").FC<import("../../properties-panel/
|
|
|
36
36
|
layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
37
37
|
padding: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
38
38
|
} & {
|
|
39
|
+
width: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<"px" | "fill" | "%" | "rows" | "columns">, false>;
|
|
39
40
|
maxHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
40
41
|
minHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
41
42
|
maxWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
42
43
|
minWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
43
|
-
width: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
44
44
|
height: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
45
45
|
} & {
|
|
46
46
|
margin: import("../../properties-panel/props-builder.js").Prop<unknown, true>;
|
|
@@ -54,8 +54,8 @@ export declare const SbInput: import("react").FC<import("../../properties-panel/
|
|
|
54
54
|
}, "inputType" | "minimumFractionDigits" | "maximumFractionDigits" | "stepper" | "stepSize"> & {
|
|
55
55
|
stepper: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
56
56
|
stepSize: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
57
|
-
minimumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number,
|
|
58
|
-
maximumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number,
|
|
57
|
+
minimumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
58
|
+
maximumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
59
59
|
inputType: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
60
60
|
} & Omit<{
|
|
61
61
|
inputType: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
@@ -82,7 +82,7 @@ export declare const SbInput: import("react").FC<import("../../properties-panel/
|
|
|
82
82
|
}>;
|
|
83
83
|
derived: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
84
84
|
value: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
85
|
-
validationErrors: import("../../properties-panel/props-builder.js").Prop<
|
|
85
|
+
validationErrors: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/utils/input-validation.js").ValidationErrors, true>;
|
|
86
86
|
isValid: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
87
87
|
showError: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
88
88
|
}>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Section, Prop } from "../../properties-panel/props-builder.js";
|
|
2
2
|
import type { CurrencyCodeDisplayType } from "./types.js";
|
|
3
|
+
import type { ValidationErrors } from "../../component-base/utils/input-validation.js";
|
|
3
4
|
import type { IconPosition } from "../../icons/constants.js";
|
|
4
5
|
export declare const propertiesDefinition: {
|
|
5
6
|
general: Section<(Record<string, Prop<any, any>> & ({
|
|
@@ -39,11 +40,11 @@ export declare const propertiesDefinition: {
|
|
|
39
40
|
layout: Section<Record<string, Prop<any, any>> & {
|
|
40
41
|
padding: Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
41
42
|
} & {
|
|
43
|
+
width: Prop<import("@superblocksteam/library-shared").Dim<"px" | "fill" | "%" | "rows" | "columns">, false>;
|
|
42
44
|
maxHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
43
45
|
minHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
44
46
|
maxWidth?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
45
47
|
minWidth?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
46
|
-
width: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
47
48
|
height: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
48
49
|
} & {
|
|
49
50
|
margin: Prop<unknown, true>;
|
|
@@ -57,8 +58,8 @@ export declare const propertiesDefinition: {
|
|
|
57
58
|
}, "inputType" | "minimumFractionDigits" | "maximumFractionDigits" | "stepper" | "stepSize"> & {
|
|
58
59
|
stepper: Prop<boolean, true>;
|
|
59
60
|
stepSize: Prop<number, true>;
|
|
60
|
-
minimumFractionDigits: Prop<number,
|
|
61
|
-
maximumFractionDigits: Prop<number,
|
|
61
|
+
minimumFractionDigits: Prop<number, false>;
|
|
62
|
+
maximumFractionDigits: Prop<number, false>;
|
|
62
63
|
inputType: Prop<string, true>;
|
|
63
64
|
} & Omit<{
|
|
64
65
|
inputType: Prop<string, false>;
|
|
@@ -85,7 +86,7 @@ export declare const propertiesDefinition: {
|
|
|
85
86
|
}>;
|
|
86
87
|
derived: Section<Record<string, Prop<any, any>> & {
|
|
87
88
|
value: Prop<string, true>;
|
|
88
|
-
validationErrors: Prop<
|
|
89
|
+
validationErrors: Prop<ValidationErrors, true>;
|
|
89
90
|
isValid: Prop<boolean, true>;
|
|
90
91
|
showError: Prop<boolean, true>;
|
|
91
92
|
}>;
|
|
@@ -14,16 +14,16 @@ export declare const SbText: import("react").FC<import("../../properties-panel/p
|
|
|
14
14
|
} & (Omit<{
|
|
15
15
|
textType: import("../../properties-panel/props-builder.js").Prop<"number" | "time" | "text" | "date" | "currency", false>;
|
|
16
16
|
}, "textType" | "dateInputFormat" | "dateOutputFormat"> & ({
|
|
17
|
-
minimumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number,
|
|
18
|
-
maximumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number,
|
|
17
|
+
minimumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
18
|
+
maximumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
19
19
|
textType: import("../../properties-panel/props-builder.js").Prop<"currency", true>;
|
|
20
20
|
currency: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
21
21
|
notation: import("../../properties-panel/props-builder.js").Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", true>;
|
|
22
22
|
dateInputFormat?: undefined;
|
|
23
23
|
dateOutputFormat?: undefined;
|
|
24
24
|
} | {
|
|
25
|
-
minimumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number,
|
|
26
|
-
maximumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number,
|
|
25
|
+
minimumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
26
|
+
maximumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
27
27
|
textType: import("../../properties-panel/props-builder.js").Prop<"number", true>;
|
|
28
28
|
notation: import("../../properties-panel/props-builder.js").Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", true>;
|
|
29
29
|
dateInputFormat?: undefined;
|
|
@@ -23,16 +23,16 @@ export declare const propertiesDefinition: {
|
|
|
23
23
|
} & (Omit<{
|
|
24
24
|
textType: Prop<"number" | "time" | "text" | "date" | "currency", false>;
|
|
25
25
|
}, "textType" | "dateInputFormat" | "dateOutputFormat"> & ({
|
|
26
|
-
minimumFractionDigits: Prop<number,
|
|
27
|
-
maximumFractionDigits: Prop<number,
|
|
26
|
+
minimumFractionDigits: Prop<number, false>;
|
|
27
|
+
maximumFractionDigits: Prop<number, false>;
|
|
28
28
|
textType: Prop<"currency", true>;
|
|
29
29
|
currency: Prop<string, true>;
|
|
30
30
|
notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", true>;
|
|
31
31
|
dateInputFormat?: undefined;
|
|
32
32
|
dateOutputFormat?: undefined;
|
|
33
33
|
} | {
|
|
34
|
-
minimumFractionDigits: Prop<number,
|
|
35
|
-
maximumFractionDigits: Prop<number,
|
|
34
|
+
minimumFractionDigits: Prop<number, false>;
|
|
35
|
+
maximumFractionDigits: Prop<number, false>;
|
|
36
36
|
textType: Prop<"number", true>;
|
|
37
37
|
notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", true>;
|
|
38
38
|
dateInputFormat?: undefined;
|
|
@@ -39,6 +39,6 @@ export declare const getCustomValidationProperties: ({ errorMessagePlacementSche
|
|
|
39
39
|
export declare const getFractionDigitsProperties: ({ schema, }?: {
|
|
40
40
|
schema?: Omit<Partial<PropertiesPanelDisplay<number, "INPUT_TEXT">>, "controlType">;
|
|
41
41
|
}) => {
|
|
42
|
-
minimumFractionDigits: Prop<number,
|
|
43
|
-
maximumFractionDigits: Prop<number,
|
|
42
|
+
minimumFractionDigits: Prop<number, false>;
|
|
43
|
+
maximumFractionDigits: Prop<number, false>;
|
|
44
44
|
};
|
|
@@ -40,6 +40,9 @@ export declare const size: ({ defaults, defaultsOnAdd, hasMinWidth, hasMaxWidth,
|
|
|
40
40
|
width: Prop<Dim<DimModes>, false>;
|
|
41
41
|
height: Prop<Dim<DimModes>, false>;
|
|
42
42
|
};
|
|
43
|
+
export declare const widthWithoutFit: () => {
|
|
44
|
+
width: Prop<Dim<"px" | "fill" | "%" | "rows" | "columns">, false>;
|
|
45
|
+
};
|
|
43
46
|
export declare const shouldScrollContents: (defaultValue?: boolean) => {
|
|
44
47
|
shouldScrollContents: Prop<boolean, true>;
|
|
45
48
|
};
|
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.69",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@react-hook/resize-observer": "1.2.6",
|
|
34
34
|
"@superblocksteam/fast-deep-equal": "3.1.4",
|
|
35
35
|
"@superblocksteam/iso-currency": "2.0.0",
|
|
36
|
-
"@superblocksteam/library-shared": "2.0.0-next.
|
|
36
|
+
"@superblocksteam/library-shared": "2.0.0-next.69",
|
|
37
37
|
"@superblocksteam/shared": "0.9146.0",
|
|
38
38
|
"antd": "4.24.15",
|
|
39
39
|
"apca-w3": "^0.1.9",
|