@superblocksteam/library 2.0.0-next.10 → 2.0.0-next.100
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-h7bsheRo.js → allPaths-CcZmxiOk.js} +2 -2
- package/dist/{allPaths-h7bsheRo.js.map → allPaths-CcZmxiOk.js.map} +1 -1
- package/dist/{allPaths-DXE_RTrt.js → allPaths-D2hMUe-Q.js} +2 -2
- package/dist/{allPaths-DXE_RTrt.js.map → allPaths-D2hMUe-Q.js.map} +1 -1
- package/dist/{allPathsLoader-16QM90xQ.js → allPathsLoader-BGIPBdhf.js} +3 -3
- package/dist/{allPathsLoader-BWX35Jie.js.map → allPathsLoader-BGIPBdhf.js.map} +1 -1
- package/dist/{allPathsLoader-BWX35Jie.js → allPathsLoader-CPzLM5jS.js} +3 -3
- package/dist/{allPathsLoader-16QM90xQ.js.map → allPathsLoader-CPzLM5jS.js.map} +1 -1
- package/dist/{index-tdErpvtu.js → index-jWufYPVw.js} +27083 -20354
- package/dist/{index-tdErpvtu.js.map → index-jWufYPVw.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-7yhv4gcq.js → splitPathsBySizeLoader-B1uNPKcc.js} +2 -2
- package/dist/{splitPathsBySizeLoader-7yhv4gcq.js.map → splitPathsBySizeLoader-B1uNPKcc.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-wQWCogRx.js → splitPathsBySizeLoader-BbdcQ6go.js} +2 -2
- package/dist/{splitPathsBySizeLoader-wQWCogRx.js.map → splitPathsBySizeLoader-BbdcQ6go.js.map} +1 -1
- package/dist-types/edit-mode/default-table-data.d.ts +71 -0
- package/dist-types/edit-mode/dnd/grid-store.d.ts +29 -4
- package/dist-types/edit-mode/dnd/utils.d.ts +7 -10
- package/dist-types/edit-mode/features/connection-manager.d.ts +1 -2
- package/dist-types/edit-mode/features/properties-panel-manager.d.ts +2 -1
- package/dist-types/edit-mode/features/resizing-store.d.ts +1 -0
- package/dist-types/edit-mode/right-click-menu/right-click-menu.d.ts +2 -1
- package/dist-types/edit-mode/source-update-api.d.ts +3 -20
- package/dist-types/internal-testing/components/form.d.ts +1 -0
- 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 +8 -5
- 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 +13 -1
- package/dist-types/lib/internal-details/lib/evaluator/use-shallow-mobx-observer.d.ts +1 -1
- package/dist-types/lib/internal-details/lib/features/api-store.d.ts +1 -0
- package/dist-types/lib/internal-details/lib/features/api-utils.d.ts +0 -1
- package/dist-types/lib/internal-details/lib/types.d.ts +3 -0
- package/dist-types/lib/internal-details/scope/global.d.ts +1 -0
- package/dist-types/lib/user-facing/component-base/components/button.d.ts +3 -4
- package/dist-types/lib/user-facing/component-base/components/video.d.ts +19 -0
- package/dist-types/lib/user-facing/component-base/styles/button-styles.d.ts +3 -11
- package/dist-types/lib/user-facing/component-base/utils/input-validation.d.ts +11 -8
- package/dist-types/lib/user-facing/components/button/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/button/props.d.ts +4 -10
- package/dist-types/lib/user-facing/components/column/index.d.ts +8 -21
- package/dist-types/lib/user-facing/components/column/props.d.ts +8 -20
- package/dist-types/lib/user-facing/components/container/index.d.ts +12 -24
- package/dist-types/lib/user-facing/components/container/props.d.ts +7 -22
- package/dist-types/lib/user-facing/components/date-picker/date-picker-component.d.ts +3 -3
- package/dist-types/lib/user-facing/components/date-picker/index.d.ts +5 -1
- package/dist-types/lib/user-facing/components/date-picker/props.d.ts +5 -1
- package/dist-types/lib/user-facing/components/date-picker/types.d.ts +3 -0
- package/dist-types/lib/user-facing/components/date-picker/utils.d.ts +1 -1
- package/dist-types/lib/user-facing/components/dropdown/dropdown-component.d.ts +1 -1
- package/dist-types/lib/user-facing/components/dropdown/index.d.ts +2 -2
- package/dist-types/lib/user-facing/components/dropdown/props.d.ts +4 -5
- package/dist-types/lib/user-facing/components/dropdown/types.d.ts +1 -1
- package/dist-types/lib/user-facing/components/grid/index.d.ts +8 -8
- package/dist-types/lib/user-facing/components/image/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/image/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/input/derived-properties.d.ts +1 -1
- package/dist-types/lib/user-facing/components/input/index.d.ts +14 -20
- package/dist-types/lib/user-facing/components/input/props.d.ts +15 -20
- package/dist-types/lib/user-facing/components/modal/index.d.ts +10 -15
- package/dist-types/lib/user-facing/components/modal/modal-component.d.ts +2 -2
- package/dist-types/lib/user-facing/components/modal/props.d.ts +10 -15
- package/dist-types/lib/user-facing/components/pixel-input/index.d.ts +7 -0
- package/dist-types/lib/user-facing/components/section/index.d.ts +2 -2
- package/dist-types/lib/user-facing/components/section/props.d.ts +2 -2
- package/dist-types/lib/user-facing/components/stack/index.d.ts +2 -2
- package/dist-types/lib/user-facing/components/switch/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/switch/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/table/column-properties-panel.d.ts +72 -76
- package/dist-types/lib/user-facing/components/table/components/autotooltip-component.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/components/boolean-value-icons.d.ts +5 -5
- package/dist-types/lib/user-facing/components/table/components/edit-cell.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/components/edit-checkbox-cell.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/components/edit-date-cell.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/components/edit-input-cell.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/components/edit-multi-select-cell.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/components/edit-single-select-cell.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/components/edit-utils.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/components/editable-link-cell.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/components/popover-video.d.ts +1 -1
- 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-header.d.ts +3 -3
- package/dist-types/lib/user-facing/components/table/components/table-loading-state.d.ts +3 -3
- package/dist-types/lib/user-facing/components/table/components/table-pagination.d.ts +3 -3
- package/dist-types/lib/user-facing/components/table/components/table-tag.d.ts +5 -5
- package/dist-types/lib/user-facing/components/table/constants.d.ts +4 -24
- 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 +91 -95
- package/dist-types/lib/user-facing/components/table/props.d.ts +93 -98
- package/dist-types/lib/user-facing/components/table/table-component.d.ts +4 -4
- package/dist-types/lib/user-facing/components/table/table-styles.d.ts +3 -8
- package/dist-types/lib/user-facing/components/table/table-utilities.d.ts +25 -20
- package/dist-types/lib/user-facing/components/table/table-widget.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/types.d.ts +47 -73
- package/dist-types/lib/user-facing/components/table/utils.d.ts +2 -2
- package/dist-types/lib/user-facing/components/text/index.d.ts +8 -7
- package/dist-types/lib/user-facing/components/text/props.d.ts +17 -14
- package/dist-types/lib/user-facing/components/text/utils.d.ts +6 -6
- 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/form-inputs-properties.d.ts +4 -4
- package/dist-types/lib/user-facing/properties-panel/mixins/layout-section.d.ts +15 -14
- package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +5 -4
- package/dist-types/lib/user-facing/properties-panel/validators.d.ts +2 -1
- package/dist-types/lib/user-facing/state/sb-computed.d.ts +1 -1
- package/dist-types/lib/user-facing/themes/constants.d.ts +4 -2
- package/dist-types/lib/user-facing/themes/utils.d.ts +1 -2
- package/package.json +5 -3
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Dim } from "@superblocksteam/library-shared";
|
|
2
|
-
import type { DimModes } from "@superblocksteam/library-shared";
|
|
3
2
|
/**
|
|
4
3
|
* TODO:
|
|
5
4
|
* - disable setting height related props in prop panel and code
|
|
@@ -8,14 +7,7 @@ import type { DimModes } from "@superblocksteam/library-shared";
|
|
|
8
7
|
*/
|
|
9
8
|
export declare const getDefaultSectionChildren: () => never[];
|
|
10
9
|
export declare const SbColumn: import("react").FC<import("../../properties-panel/props-builder.js").ExternalProps<{
|
|
11
|
-
layout: import("../../properties-panel/props-builder.js").Section<((
|
|
12
|
-
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
13
|
-
}, "layout" | "rows" | "columns" | "rowSize"> & {
|
|
14
|
-
readonly layout: import("../../properties-panel/props-builder.js").Prop<"freeform", true>;
|
|
15
|
-
readonly columns: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
16
|
-
readonly rows: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
17
|
-
readonly rowSize: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
18
|
-
}) | (Omit<{
|
|
10
|
+
layout: import("../../properties-panel/props-builder.js").Section<((Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & ((Omit<{
|
|
19
11
|
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
20
12
|
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
21
13
|
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true>;
|
|
@@ -27,24 +19,19 @@ export declare const SbColumn: import("react").FC<import("../../properties-panel
|
|
|
27
19
|
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "bottom" | "top", true>;
|
|
28
20
|
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
|
|
29
21
|
readonly layout: import("../../properties-panel/props-builder.js").Prop<"horizontal", true>;
|
|
22
|
+
}) | (Omit<{
|
|
23
|
+
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
24
|
+
}, "layout" | "columns" | "rowHeight"> & {
|
|
25
|
+
readonly columns: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
26
|
+
readonly rowHeight: import("../../properties-panel/props-builder.js").Prop<Dim<"px">, true>;
|
|
27
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"freeform", true>;
|
|
30
28
|
}))) & {
|
|
31
|
-
spacing: import("../../properties-panel/props-builder.js").Prop<Dim<"px">, true>;
|
|
32
|
-
}) & {
|
|
33
|
-
padding: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
34
|
-
}) & {
|
|
35
|
-
maxHeight?: import("../../properties-panel/props-builder.js").Prop<Dim<DimModes>, false> | undefined;
|
|
36
|
-
minHeight?: import("../../properties-panel/props-builder.js").Prop<Dim<DimModes>, false> | undefined;
|
|
37
|
-
maxWidth?: import("../../properties-panel/props-builder.js").Prop<Dim<DimModes>, false> | undefined;
|
|
38
|
-
minWidth?: import("../../properties-panel/props-builder.js").Prop<Dim<DimModes>, false> | undefined;
|
|
39
|
-
width: import("../../properties-panel/props-builder.js").Prop<Dim<DimModes>, false>;
|
|
40
|
-
height: import("../../properties-panel/props-builder.js").Prop<Dim<DimModes>, false>;
|
|
41
|
-
}) & {
|
|
42
29
|
shouldScrollContents: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
43
30
|
}) & {
|
|
44
31
|
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
45
32
|
}>;
|
|
46
33
|
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
47
34
|
backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
48
|
-
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder,
|
|
35
|
+
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
|
|
49
36
|
}>;
|
|
50
37
|
}>>;
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
import { Dim } from "@superblocksteam/library-shared";
|
|
2
2
|
import { Section } from "../../properties-panel/props-builder.js";
|
|
3
3
|
export declare const propertiesDefinition: {
|
|
4
|
-
layout: Section<((
|
|
5
|
-
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
6
|
-
}, "layout" | "rows" | "columns" | "rowSize"> & {
|
|
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>;
|
|
11
|
-
}) | (Omit<{
|
|
4
|
+
layout: Section<((Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & ((Omit<{
|
|
12
5
|
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
13
6
|
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
14
7
|
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true>;
|
|
@@ -20,24 +13,19 @@ export declare const propertiesDefinition: {
|
|
|
20
13
|
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "bottom" | "top", true>;
|
|
21
14
|
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
|
|
22
15
|
readonly layout: import("../../properties-panel/props-builder.js").Prop<"horizontal", true>;
|
|
16
|
+
}) | (Omit<{
|
|
17
|
+
layout: import("../../properties-panel/props-builder.js").Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
18
|
+
}, "layout" | "columns" | "rowHeight"> & {
|
|
19
|
+
readonly columns: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
20
|
+
readonly rowHeight: import("../../properties-panel/props-builder.js").Prop<Dim<"px">, true>;
|
|
21
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"freeform", true>;
|
|
23
22
|
}))) & {
|
|
24
|
-
spacing: import("../../properties-panel/props-builder.js").Prop<Dim<"px">, true>;
|
|
25
|
-
}) & {
|
|
26
|
-
padding: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
27
|
-
}) & {
|
|
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>;
|
|
34
|
-
}) & {
|
|
35
23
|
shouldScrollContents: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
36
24
|
}) & {
|
|
37
25
|
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
38
26
|
}>;
|
|
39
27
|
appearance: Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
40
28
|
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,
|
|
29
|
+
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
|
|
42
30
|
}>;
|
|
43
31
|
};
|
|
@@ -2,8 +2,10 @@ import { Dim } from "@superblocksteam/library-shared";
|
|
|
2
2
|
import { propertiesDefinition } from "./props.js";
|
|
3
3
|
import type { ContainerLayout } from "../../component-base/constants.js";
|
|
4
4
|
import type { InternalPropsWithOptional } from "../../properties-panel/props-builder.js";
|
|
5
|
-
type OptionalProps = "
|
|
6
|
-
type ContainerProps = InternalPropsWithOptional<typeof propertiesDefinition, OptionalProps
|
|
5
|
+
type OptionalProps = "backgroundColor" | "border" | "borderRadius";
|
|
6
|
+
type ContainerProps<T> = Omit<InternalPropsWithOptional<typeof propertiesDefinition, OptionalProps>, "layout"> & {
|
|
7
|
+
layout: T;
|
|
8
|
+
};
|
|
7
9
|
/**
|
|
8
10
|
* TODO:
|
|
9
11
|
* - interaciton rect of children will show outside of container if overflow
|
|
@@ -13,16 +15,9 @@ type ContainerProps = InternalPropsWithOptional<typeof propertiesDefinition, Opt
|
|
|
13
15
|
* - border style are showing some control default value even actually undefined. styles are coming from container classes but ideally we should set them as default props?
|
|
14
16
|
* - move more props to inner layout component
|
|
15
17
|
*/
|
|
16
|
-
export declare const InternalContainer: (props: ContainerProps) => import("react").JSX.Element;
|
|
18
|
+
export declare const InternalContainer: <T extends ContainerLayout>(props: ContainerProps<T>) => import("react").JSX.Element;
|
|
17
19
|
export declare const SbContainer: import("react").FC<import("../../properties-panel/props-builder.js").ExternalProps<{
|
|
18
|
-
layout: import("../../properties-panel/props-builder.js").Section<((
|
|
19
|
-
layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true>;
|
|
20
|
-
}, "layout" | "rows" | "columns" | "rowSize"> & {
|
|
21
|
-
readonly layout: import("../../properties-panel/props-builder.js").Prop<"freeform", true>;
|
|
22
|
-
readonly columns: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
23
|
-
readonly rows: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
24
|
-
readonly rowSize: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
25
|
-
}) | (Omit<{
|
|
20
|
+
layout: import("../../properties-panel/props-builder.js").Section<((Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & ((Omit<{
|
|
26
21
|
layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true>;
|
|
27
22
|
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
28
23
|
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true>;
|
|
@@ -34,20 +29,13 @@ export declare const SbContainer: import("react").FC<import("../../properties-pa
|
|
|
34
29
|
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "bottom" | "top", true>;
|
|
35
30
|
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
|
|
36
31
|
readonly layout: import("../../properties-panel/props-builder.js").Prop<"horizontal", true>;
|
|
32
|
+
}) | (Omit<{
|
|
33
|
+
layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true>;
|
|
34
|
+
}, "layout" | "columns" | "rowHeight"> & {
|
|
35
|
+
readonly columns: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
36
|
+
readonly rowHeight: import("../../properties-panel/props-builder.js").Prop<Dim<"px">, true>;
|
|
37
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"freeform", true>;
|
|
37
38
|
}))) & {
|
|
38
|
-
spacing: import("../../properties-panel/props-builder.js").Prop<Dim<"px">, true>;
|
|
39
|
-
}) & {
|
|
40
|
-
padding: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").Padding, true>;
|
|
41
|
-
}) & {
|
|
42
|
-
width: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
43
|
-
height: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
44
|
-
minWidth: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
45
|
-
maxWidth: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
46
|
-
minHeight: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
47
|
-
maxHeight: import("../../properties-panel/props-builder.js").Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
48
|
-
}) & {
|
|
49
|
-
margin: import("../../properties-panel/props-builder.js").Prop<unknown, true>;
|
|
50
|
-
}) & {
|
|
51
39
|
shouldScrollContents: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
52
40
|
}) & {
|
|
53
41
|
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Dim } from "@superblocksteam/library-shared";
|
|
2
2
|
import { Section, Prop } from "../../properties-panel/props-builder.js";
|
|
3
3
|
import type { ContainerVariant } from "../../component-base/constants.js";
|
|
4
|
-
import type { Padding } from "@superblocksteam/library-shared/types";
|
|
5
4
|
/**
|
|
6
5
|
* TODO:
|
|
7
6
|
* - make default and options dynamic for distribution and alignment
|
|
@@ -11,14 +10,7 @@ import type { Padding } from "@superblocksteam/library-shared/types";
|
|
|
11
10
|
* - use default func once supported for composite props, apply it to padding, border, borderRadius, and backgroundColor. Otherwise, prop panel control will not show the correct value
|
|
12
11
|
*/
|
|
13
12
|
export declare const propertiesDefinition: {
|
|
14
|
-
layout: Section<((
|
|
15
|
-
layout: Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
16
|
-
}, "layout" | "rows" | "columns" | "rowSize"> & {
|
|
17
|
-
readonly layout: Prop<"freeform", true>;
|
|
18
|
-
readonly columns: Prop<number, true>;
|
|
19
|
-
readonly rows: Prop<number, false>;
|
|
20
|
-
readonly rowSize: Prop<number, false>;
|
|
21
|
-
}) | (Omit<{
|
|
13
|
+
layout: Section<((Record<string, Prop<any, any>> & ((Omit<{
|
|
22
14
|
layout: Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
23
15
|
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
24
16
|
readonly verticalAlign: Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true>;
|
|
@@ -30,20 +22,13 @@ export declare const propertiesDefinition: {
|
|
|
30
22
|
readonly verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
31
23
|
readonly horizontalAlign: Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
|
|
32
24
|
readonly layout: Prop<"horizontal", true>;
|
|
25
|
+
}) | (Omit<{
|
|
26
|
+
layout: Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
27
|
+
}, "layout" | "columns" | "rowHeight"> & {
|
|
28
|
+
readonly columns: Prop<number, true>;
|
|
29
|
+
readonly rowHeight: Prop<Dim<"px">, true>;
|
|
30
|
+
readonly layout: Prop<"freeform", true>;
|
|
33
31
|
}))) & {
|
|
34
|
-
spacing: Prop<Dim<"px">, true>;
|
|
35
|
-
}) & {
|
|
36
|
-
padding: Prop<Padding, true>;
|
|
37
|
-
}) & {
|
|
38
|
-
width: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
39
|
-
height: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
40
|
-
minWidth: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
41
|
-
maxWidth: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
42
|
-
minHeight: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
43
|
-
maxHeight: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
44
|
-
}) & {
|
|
45
|
-
margin: Prop<unknown, true>;
|
|
46
|
-
}) & {
|
|
47
32
|
shouldScrollContents: Prop<boolean, true>;
|
|
48
33
|
}) & {
|
|
49
34
|
isVisible: Prop<boolean, true>;
|
|
@@ -10,14 +10,14 @@ declare class DatePickerComponent extends React.Component<DatePickerComponentPro
|
|
|
10
10
|
componentDidMount(): void;
|
|
11
11
|
componentDidUpdate(prevProps: DatePickerComponentProps): void;
|
|
12
12
|
getValidDate: (date: string, format: string) => Date | undefined;
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
get normalizedDateFormat(): string;
|
|
14
|
+
get normalizedDisplayDateFormat(): string | undefined;
|
|
15
15
|
get valueTimezone(): string;
|
|
16
16
|
get displayTimezone(): string;
|
|
17
17
|
shouldWrapTime: () => boolean;
|
|
18
18
|
handleInteraction: (openState: boolean) => void;
|
|
19
19
|
getInitialMonth: (currentValue: string | undefined | null, minDate: Date | undefined, maxDate: Date | undefined) => Date | undefined;
|
|
20
|
-
|
|
20
|
+
get currentValue(): string | null;
|
|
21
21
|
render(): React.JSX.Element;
|
|
22
22
|
getPopoverFooter: () => React.JSX.Element;
|
|
23
23
|
formatDisplayDate: (date: Date) => string;
|
|
@@ -19,11 +19,13 @@ 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
|
+
padding: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
23
|
+
} & {
|
|
24
|
+
width: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<"px" | "fill" | "%" | "rows" | "columns">, false>;
|
|
22
25
|
maxHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
23
26
|
minHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
24
27
|
maxWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
25
28
|
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
29
|
height: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
28
30
|
} & {
|
|
29
31
|
margin: import("../../properties-panel/props-builder.js").Prop<unknown, true>;
|
|
@@ -34,6 +36,8 @@ export declare const SbDatePicker: React.FC<import("../../properties-panel/props
|
|
|
34
36
|
labelPosition: import("../../properties-panel/props-builder.js").Prop<"left" | "top", true>;
|
|
35
37
|
labelStyle: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
36
38
|
icon: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
39
|
+
placeholder: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
40
|
+
textStyle: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
37
41
|
}>;
|
|
38
42
|
interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
39
43
|
customValidationRule: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
@@ -21,11 +21,13 @@ export declare const propertiesDefinition: {
|
|
|
21
21
|
twentyFourHourTime: Prop<boolean, true>;
|
|
22
22
|
}>;
|
|
23
23
|
layout: Section<Record<string, Prop<any, any>> & {
|
|
24
|
+
padding: Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
25
|
+
} & {
|
|
26
|
+
width: Prop<import("@superblocksteam/library-shared").Dim<"px" | "fill" | "%" | "rows" | "columns">, false>;
|
|
24
27
|
maxHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
25
28
|
minHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
26
29
|
maxWidth?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
27
30
|
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
31
|
height: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
30
32
|
} & {
|
|
31
33
|
margin: Prop<unknown, true>;
|
|
@@ -36,6 +38,8 @@ export declare const propertiesDefinition: {
|
|
|
36
38
|
labelPosition: Prop<"left" | "top", true>;
|
|
37
39
|
labelStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
38
40
|
icon: Prop<string, true>;
|
|
41
|
+
placeholder: Prop<string, true>;
|
|
42
|
+
textStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
39
43
|
}>;
|
|
40
44
|
interaction: Section<Record<string, Prop<any, any>> & {
|
|
41
45
|
customValidationRule: Prop<string, true>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { DatePickerType } from "./constants.js";
|
|
2
2
|
import type { Dim } from "@superblocksteam/library-shared";
|
|
3
3
|
import type { ErrorMessagePlacement, WidgetLabelPosition } from "@superblocksteam/library-shared/props";
|
|
4
|
+
import type { Spacing } from "@superblocksteam/library-shared/types";
|
|
4
5
|
export interface DatePickerComponentProps {
|
|
5
6
|
dateFormat: string | undefined;
|
|
6
7
|
enableTimePicker?: boolean;
|
|
@@ -22,6 +23,8 @@ export interface DatePickerComponentProps {
|
|
|
22
23
|
forceOpen?: boolean;
|
|
23
24
|
icon?: string;
|
|
24
25
|
iconSize?: number;
|
|
26
|
+
placeholder?: string;
|
|
27
|
+
inputPadding?: Spacing;
|
|
25
28
|
inputClassName?: string;
|
|
26
29
|
inputStyleOverride?: React.CSSProperties;
|
|
27
30
|
inputLineHeightPx?: number;
|
|
@@ -11,7 +11,7 @@ export declare function normalizeDateFormat(dateFormat: string): string;
|
|
|
11
11
|
* Parses a date string according to the given format, removes timezone information,
|
|
12
12
|
* and returns the date in NO_TZ format.
|
|
13
13
|
*
|
|
14
|
-
* @param {string}
|
|
14
|
+
* @param {string} dateString - The date string to parse.
|
|
15
15
|
* @param {string} format - The format of the input date string.
|
|
16
16
|
* @returns {string} - The formatted date string in "MM/DD/YYYY HH:mm:ss" format.
|
|
17
17
|
*/
|
|
@@ -62,7 +62,7 @@ export interface BaseDropDownComponentProps extends ComponentBaseProps {
|
|
|
62
62
|
inputClassName?: string;
|
|
63
63
|
inputStyleOverride?: React.CSSProperties;
|
|
64
64
|
inputLineHeightPx?: number;
|
|
65
|
-
inputPadding
|
|
65
|
+
inputPadding: Padding;
|
|
66
66
|
parentId?: string;
|
|
67
67
|
options: DropdownOption[];
|
|
68
68
|
isLoading: boolean;
|
|
@@ -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>;
|
|
@@ -36,7 +36,7 @@ export declare const SbDropdown: React.FC<import("../../properties-panel/props-b
|
|
|
36
36
|
interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
37
37
|
customValidationRule: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
38
38
|
customErrorMessage: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
39
|
-
|
|
39
|
+
multiselect: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
40
40
|
allowSelectAll: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
41
41
|
allowClearing: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
42
42
|
clientSideFiltering: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Section, Prop } from "../../properties-panel/props-builder.js";
|
|
2
2
|
import type { DropdownOptionsTransformation, ExternalDropdownOption, OptionValue, TransformedDropdownOption, UnknownOption } from "./types.js";
|
|
3
3
|
import type { InternalProps } from "../../properties-panel/props-builder.js";
|
|
4
|
-
import type { TextStyleWithVariant } from "@superblocksteam/library-shared/types";
|
|
5
4
|
export declare const propertiesDefinition: {
|
|
6
5
|
general: Section<Record<string, Prop<any, any>> & {
|
|
7
6
|
label: Prop<string, true>;
|
|
@@ -15,20 +14,20 @@ export declare const propertiesDefinition: {
|
|
|
15
14
|
}>;
|
|
16
15
|
appearance: Section<Record<string, Prop<any, any>> & {
|
|
17
16
|
labelPosition: Prop<"left" | "top", true>;
|
|
18
|
-
labelStyle: Prop<TextStyleWithVariant, true>;
|
|
17
|
+
labelStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
19
18
|
icon: Prop<string, false>;
|
|
20
19
|
placeholder: Prop<string, true>;
|
|
21
|
-
textStyle: Prop<TextStyleWithVariant, true>;
|
|
20
|
+
textStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
22
21
|
loadingAnimation: Prop<boolean, false>;
|
|
23
22
|
}>;
|
|
24
23
|
layout: Section<Record<string, Prop<any, any>> & {
|
|
25
24
|
padding: Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
26
25
|
} & {
|
|
26
|
+
width: Prop<import("@superblocksteam/library-shared").Dim<"px" | "fill" | "%" | "rows" | "columns">, false>;
|
|
27
27
|
maxHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
28
28
|
minHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
29
29
|
maxWidth?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
30
30
|
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
31
|
height: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
33
32
|
} & {
|
|
34
33
|
margin: Prop<unknown, true>;
|
|
@@ -38,7 +37,7 @@ export declare const propertiesDefinition: {
|
|
|
38
37
|
interaction: Section<Record<string, Prop<any, any>> & {
|
|
39
38
|
customValidationRule: Prop<string, true>;
|
|
40
39
|
customErrorMessage: Prop<string, true>;
|
|
41
|
-
|
|
40
|
+
multiselect: Prop<boolean, true>;
|
|
42
41
|
allowSelectAll: Prop<boolean, true>;
|
|
43
42
|
allowClearing: Prop<boolean, true>;
|
|
44
43
|
clientSideFiltering: Prop<boolean, true>;
|
|
@@ -2,6 +2,7 @@ import { Dim } from "@superblocksteam/library-shared";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { Prop, Section } from "../../properties-panel/props-builder.js";
|
|
4
4
|
import type { InternalProps } from "../../properties-panel/props-builder.js";
|
|
5
|
+
import type { DimModes } from "@superblocksteam/library-shared";
|
|
5
6
|
export type GridChild = React.ReactElement<{
|
|
6
7
|
name: string;
|
|
7
8
|
marginTop?: Dim<"rows">;
|
|
@@ -14,16 +15,15 @@ declare const _propertiesDefinition: {
|
|
|
14
15
|
general: Section<Record<string, Prop<any, any>> & {
|
|
15
16
|
spacing: Prop<Dim<"px">, true>;
|
|
16
17
|
columns: Prop<number, false>;
|
|
17
|
-
|
|
18
|
-
rowSize: Prop<number, false>;
|
|
18
|
+
rowHeight: Prop<Dim<"px">, false>;
|
|
19
19
|
}>;
|
|
20
20
|
layout: Section<Record<string, Prop<any, any>> & {
|
|
21
|
-
maxHeight?: Prop<Dim<
|
|
22
|
-
minHeight?: Prop<Dim<
|
|
23
|
-
maxWidth?: Prop<Dim<
|
|
24
|
-
minWidth?: Prop<Dim<
|
|
25
|
-
width: Prop<Dim<
|
|
26
|
-
height: Prop<Dim<
|
|
21
|
+
maxHeight?: Prop<Dim<DimModes>, false> | undefined;
|
|
22
|
+
minHeight?: Prop<Dim<DimModes>, false> | undefined;
|
|
23
|
+
maxWidth?: Prop<Dim<DimModes>, false> | undefined;
|
|
24
|
+
minWidth?: Prop<Dim<DimModes>, false> | undefined;
|
|
25
|
+
width: Prop<Dim<DimModes>, false>;
|
|
26
|
+
height: Prop<Dim<DimModes>, false>;
|
|
27
27
|
} & {
|
|
28
28
|
margin: Prop<unknown, true>;
|
|
29
29
|
} & {
|
|
@@ -4,7 +4,7 @@ export declare const SbImage: import("react").FC<import("../../properties-panel/
|
|
|
4
4
|
}>;
|
|
5
5
|
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
6
6
|
backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
7
|
-
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder,
|
|
7
|
+
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
|
|
8
8
|
borderRadius: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
9
9
|
fillContainer: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
10
10
|
align: import("../../properties-panel/props-builder.js").Prop<import("./props.js").ImageAlign, true>;
|
|
@@ -14,7 +14,7 @@ export declare const propertiesDefinition: {
|
|
|
14
14
|
}>;
|
|
15
15
|
appearance: Section<Record<string, Prop<any, any>> & {
|
|
16
16
|
backgroundColor: Prop<string, false>;
|
|
17
|
-
border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder,
|
|
17
|
+
border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
|
|
18
18
|
borderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
19
19
|
fillContainer: Prop<boolean, true>;
|
|
20
20
|
align: Prop<ImageAlign, true>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { InputWidgetProps } from "./types.js";
|
|
2
|
-
export declare function getValue(this: InputWidgetProps): string | number | null
|
|
2
|
+
export declare function getValue(this: InputWidgetProps): string | number | null;
|
|
3
3
|
export declare function getShowError(this: InputWidgetProps): boolean;
|
|
4
4
|
export declare function getIsValid(this: InputWidgetProps): boolean;
|
|
@@ -3,14 +3,14 @@ export declare const SbInput: import("react").FC<import("../../properties-panel/
|
|
|
3
3
|
label: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
4
4
|
} & (Omit<{
|
|
5
5
|
inputType: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
6
|
-
}, "inputType" | "currency" | "
|
|
6
|
+
}, "inputType" | "currency" | "numberFormat" | "currencyCodeDisplay"> & ({
|
|
7
7
|
inputType: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
8
|
-
|
|
8
|
+
numberFormat: import("../../properties-panel/props-builder.js").Prop<"unformatted" | NonNullable<"compact" | "standard" | "scientific" | "engineering" | undefined>, true>;
|
|
9
9
|
currency?: undefined;
|
|
10
10
|
currencyCodeDisplay?: undefined;
|
|
11
11
|
} | {
|
|
12
12
|
inputType: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
13
|
-
|
|
13
|
+
numberFormat: import("../../properties-panel/props-builder.js").Prop<"unformatted" | NonNullable<"compact" | "standard" | "scientific" | "engineering" | undefined>, true>;
|
|
14
14
|
currency: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
15
15
|
currencyCodeDisplay: import("../../properties-panel/props-builder.js").Prop<import("./types.js").CurrencyCodeDisplayType, true>;
|
|
16
16
|
})))) & {
|
|
@@ -33,35 +33,29 @@ export declare const SbInput: import("react").FC<import("../../properties-panel/
|
|
|
33
33
|
} & {
|
|
34
34
|
loadingAnimation: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
35
35
|
}>;
|
|
36
|
-
layout: import("../../properties-panel/props-builder.js").Section<
|
|
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>;
|
|
47
|
-
} &
|
|
48
|
-
labelPosition: import("../../properties-panel/props-builder.js").Prop<"left" | "top", false>;
|
|
49
|
-
}, "labelPosition" | "labelWidth"> & ({
|
|
50
|
-
labelPosition: import("../../properties-panel/props-builder.js").Prop<"left", true>;
|
|
47
|
+
} & {
|
|
51
48
|
labelWidth: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim, true>;
|
|
52
|
-
}
|
|
53
|
-
labelPosition: import("../../properties-panel/props-builder.js").Prop<"top", true>;
|
|
54
|
-
labelWidth?: undefined;
|
|
55
|
-
}))))) & {
|
|
49
|
+
} & {
|
|
56
50
|
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
57
51
|
}>;
|
|
58
52
|
interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & Omit<{
|
|
59
53
|
inputType: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
60
|
-
}, "inputType" | "
|
|
54
|
+
}, "inputType" | "stepper" | "stepSize" | "minDecimals" | "maxDecimals"> & {
|
|
61
55
|
stepper: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
62
56
|
stepSize: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
63
|
-
|
|
64
|
-
|
|
57
|
+
minDecimals: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
58
|
+
maxDecimals: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
65
59
|
inputType: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
66
60
|
} & Omit<{
|
|
67
61
|
inputType: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
@@ -71,7 +65,7 @@ export declare const SbInput: import("react").FC<import("../../properties-panel/
|
|
|
71
65
|
inputType: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
72
66
|
} & {
|
|
73
67
|
errorMessagePlacement: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/props").ErrorMessagePlacement, true>;
|
|
74
|
-
customValidationRule: import("../../properties-panel/props-builder.js").Prop<
|
|
68
|
+
customValidationRule: import("../../properties-panel/props-builder.js").Prop<any, false>;
|
|
75
69
|
customErrorMessage: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
76
70
|
isDisabled: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
77
71
|
isRequired: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
@@ -88,7 +82,7 @@ export declare const SbInput: import("react").FC<import("../../properties-panel/
|
|
|
88
82
|
}>;
|
|
89
83
|
derived: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
90
84
|
value: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
91
|
-
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>;
|
|
92
86
|
isValid: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
93
87
|
showError: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
94
88
|
}>;
|