@superblocksteam/library 2.0.0-next.6 → 2.0.0-next.61
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-JTh0AvL-.js → allPaths-BBGvblR2.js} +2 -2
- package/dist/{allPaths-JTh0AvL-.js.map → allPaths-BBGvblR2.js.map} +1 -1
- package/dist/{allPaths-CQicmj05.js → allPaths-BLs3_1JE.js} +2 -2
- package/dist/{allPaths-CQicmj05.js.map → allPaths-BLs3_1JE.js.map} +1 -1
- package/dist/{allPathsLoader-BzKYsLDE.js → allPathsLoader-D3ybY8Wk.js} +3 -3
- package/dist/{allPathsLoader-BzKYsLDE.js.map → allPathsLoader-D3ybY8Wk.js.map} +1 -1
- package/dist/{allPathsLoader-DUkr4f2u.js → allPathsLoader-Dggiono4.js} +3 -3
- package/dist/{allPathsLoader-DUkr4f2u.js.map → allPathsLoader-Dggiono4.js.map} +1 -1
- package/dist/{index-U8MX-8Hu.js → index-DWMz_Ohy.js} +1890 -941
- package/dist/{index-U8MX-8Hu.js.map → index-DWMz_Ohy.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-D1iVVUla.js → splitPathsBySizeLoader-B-TUNLgR.js} +2 -2
- package/dist/{splitPathsBySizeLoader-D1iVVUla.js.map → splitPathsBySizeLoader-B-TUNLgR.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-4uQi8FeZ.js → splitPathsBySizeLoader-DHzX-8rX.js} +2 -2
- package/dist/{splitPathsBySizeLoader-4uQi8FeZ.js.map → splitPathsBySizeLoader-DHzX-8rX.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 +19 -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/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/components/button/props.d.ts +0 -5
- package/dist-types/lib/user-facing/components/column/index.d.ts +8 -21
- package/dist-types/lib/user-facing/components/column/props.d.ts +20 -33
- package/dist-types/lib/user-facing/components/container/index.d.ts +8 -22
- 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/utils.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/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/index.d.ts +5 -11
- package/dist-types/lib/user-facing/components/input/props.d.ts +5 -11
- package/dist-types/lib/user-facing/components/modal/index.d.ts +8 -13
- package/dist-types/lib/user-facing/components/modal/modal-component.d.ts +1 -1
- package/dist-types/lib/user-facing/components/modal/props.d.ts +8 -13
- 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 +45 -40
- 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/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 +55 -51
- package/dist-types/lib/user-facing/components/table/props.d.ts +56 -53
- 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 +1 -3
- package/dist-types/lib/user-facing/components/table/types.d.ts +8 -19
- 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 +1 -1
- package/dist-types/lib/user-facing/properties-panel/mixins/layout-section.d.ts +12 -14
- package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +1 -0
- package/dist-types/lib/user-facing/themes/constants.d.ts +2 -0
- package/package.json +4 -3
|
@@ -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>;
|
|
@@ -33,26 +33,20 @@ 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
39
|
maxHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
40
40
|
minHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
41
41
|
maxWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
42
42
|
minWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
43
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<{
|
|
@@ -36,26 +36,20 @@ export declare const propertiesDefinition: {
|
|
|
36
36
|
} & {
|
|
37
37
|
loadingAnimation: Prop<boolean, true>;
|
|
38
38
|
}>;
|
|
39
|
-
layout: Section<
|
|
39
|
+
layout: Section<Record<string, Prop<any, any>> & {
|
|
40
40
|
padding: Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
41
|
-
} &
|
|
41
|
+
} & {
|
|
42
42
|
maxHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
43
43
|
minHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
44
44
|
maxWidth?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
45
45
|
minWidth?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
46
46
|
width: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
47
47
|
height: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
48
|
-
} &
|
|
48
|
+
} & {
|
|
49
49
|
margin: Prop<unknown, true>;
|
|
50
|
-
} &
|
|
51
|
-
labelPosition: Prop<"left" | "top", false>;
|
|
52
|
-
}, "labelPosition" | "labelWidth"> & ({
|
|
53
|
-
labelPosition: Prop<"left", true>;
|
|
50
|
+
} & {
|
|
54
51
|
labelWidth: Prop<import("@superblocksteam/library-shared").Dim, true>;
|
|
55
|
-
}
|
|
56
|
-
labelPosition: Prop<"top", true>;
|
|
57
|
-
labelWidth?: undefined;
|
|
58
|
-
}))))) & {
|
|
52
|
+
} & {
|
|
59
53
|
isVisible: Prop<boolean, true>;
|
|
60
54
|
}>;
|
|
61
55
|
interaction: Section<Record<string, Prop<any, any>> & Omit<{
|
|
@@ -5,14 +5,7 @@ import type { ContainerLayout } from "../../component-base/constants.js";
|
|
|
5
5
|
* - close all other modal when current modal is opened
|
|
6
6
|
*/
|
|
7
7
|
export declare const SbModal: import("react").FC<import("../../properties-panel/props-builder.js").ExternalProps<{
|
|
8
|
-
layout: import("../../properties-panel/props-builder.js").Section<
|
|
9
|
-
layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true>;
|
|
10
|
-
}, "layout" | "rows" | "columns" | "rowSize"> & {
|
|
11
|
-
readonly layout: import("../../properties-panel/props-builder.js").Prop<"freeform", true>;
|
|
12
|
-
readonly columns: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
13
|
-
readonly rows: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
14
|
-
readonly rowSize: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
15
|
-
}) | (Omit<{
|
|
8
|
+
layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & ((Omit<{
|
|
16
9
|
layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true>;
|
|
17
10
|
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
18
11
|
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true>;
|
|
@@ -24,11 +17,13 @@ export declare const SbModal: import("react").FC<import("../../properties-panel/
|
|
|
24
17
|
readonly verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "bottom" | "top", true>;
|
|
25
18
|
readonly horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
|
|
26
19
|
readonly layout: import("../../properties-panel/props-builder.js").Prop<"horizontal", true>;
|
|
27
|
-
})
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
20
|
+
}) | (Omit<{
|
|
21
|
+
layout: import("../../properties-panel/props-builder.js").Prop<ContainerLayout, true>;
|
|
22
|
+
}, "layout" | "columns" | "rowHeight"> & {
|
|
23
|
+
readonly columns: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
24
|
+
readonly rowHeight: import("../../properties-panel/props-builder.js").Prop<Dim<"px">, true>;
|
|
25
|
+
readonly layout: import("../../properties-panel/props-builder.js").Prop<"freeform", true>;
|
|
26
|
+
}))>;
|
|
32
27
|
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
33
28
|
backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
34
29
|
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
|
|
@@ -28,7 +28,7 @@ type ModalComponentProps = {
|
|
|
28
28
|
spacing: Dim<"px">;
|
|
29
29
|
columns?: number;
|
|
30
30
|
rows?: number;
|
|
31
|
-
|
|
31
|
+
rowHeight?: Dim<"px">;
|
|
32
32
|
dropTargetRef?: React.RefObject<HTMLElement | null>;
|
|
33
33
|
};
|
|
34
34
|
/** the modal is open/close by setting isOpen to true/false
|
|
@@ -2,14 +2,7 @@ import { Prop, Section } from "../../properties-panel/props-builder.js";
|
|
|
2
2
|
import type { ModalSize } from "./constants.js";
|
|
3
3
|
import type { PerCornerBorderRadius, PerSideBorder } from "@superblocksteam/library-shared/types";
|
|
4
4
|
export declare const propertiesDefinition: {
|
|
5
|
-
layout: Section<
|
|
6
|
-
layout: Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
7
|
-
}, "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>;
|
|
12
|
-
}) | (Omit<{
|
|
5
|
+
layout: Section<Record<string, Prop<any, any>> & ((Omit<{
|
|
13
6
|
layout: Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
14
7
|
}, "layout" | "verticalAlign" | "horizontalAlign"> & {
|
|
15
8
|
readonly verticalAlign: Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true>;
|
|
@@ -21,11 +14,13 @@ export declare const propertiesDefinition: {
|
|
|
21
14
|
readonly verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
22
15
|
readonly horizontalAlign: Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
|
|
23
16
|
readonly layout: Prop<"horizontal", true>;
|
|
24
|
-
})
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
17
|
+
}) | (Omit<{
|
|
18
|
+
layout: Prop<import("../../component-base/constants.js").ContainerLayout, true>;
|
|
19
|
+
}, "layout" | "columns" | "rowHeight"> & {
|
|
20
|
+
readonly columns: Prop<number, true>;
|
|
21
|
+
readonly rowHeight: Prop<import("@superblocksteam/library-shared").Dim<"px">, true>;
|
|
22
|
+
readonly layout: Prop<"freeform", true>;
|
|
23
|
+
}))>;
|
|
29
24
|
appearance: Section<Record<string, Prop<any, any>> & {
|
|
30
25
|
backgroundColor: Prop<string, false>;
|
|
31
26
|
border: Prop<PerSideBorder, false>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { InputNumberProps } from "antd";
|
|
2
|
+
export interface PixelInputProps extends InputNumberProps<number> {
|
|
3
|
+
showResetToDefault?: boolean;
|
|
4
|
+
dataTest?: string;
|
|
5
|
+
unit?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const PixelInput: (props: PixelInputProps) => import("react").JSX.Element;
|
|
@@ -17,7 +17,7 @@ export declare const SbSection: import("react").FC<import("../../properties-pane
|
|
|
17
17
|
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
18
18
|
}>;
|
|
19
19
|
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
20
|
-
backgroundColor: import("../../properties-panel/props-builder.js").Prop<string,
|
|
21
|
-
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder,
|
|
20
|
+
backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
21
|
+
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
|
|
22
22
|
}>;
|
|
23
23
|
}>>;
|
|
@@ -20,7 +20,7 @@ export declare const propertiesDefinition: {
|
|
|
20
20
|
isVisible: Prop<boolean, true>;
|
|
21
21
|
}>;
|
|
22
22
|
appearance: Section<Record<string, Prop<any, any>> & {
|
|
23
|
-
backgroundColor: Prop<string,
|
|
24
|
-
border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder,
|
|
23
|
+
backgroundColor: Prop<string, true>;
|
|
24
|
+
border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
|
|
25
25
|
}>;
|
|
26
26
|
};
|
|
@@ -21,7 +21,7 @@ declare const _propertiesDefinitionVStack: {
|
|
|
21
21
|
}>;
|
|
22
22
|
appearance: Section<Record<string, Prop<any, any>> & {
|
|
23
23
|
backgroundColor: Prop<string, false>;
|
|
24
|
-
border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder,
|
|
24
|
+
border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
|
|
25
25
|
borderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
26
26
|
}>;
|
|
27
27
|
};
|
|
@@ -43,7 +43,7 @@ declare const _propertiesDefinitionHStack: {
|
|
|
43
43
|
}>;
|
|
44
44
|
appearance: Section<Record<string, Prop<any, any>> & {
|
|
45
45
|
backgroundColor: Prop<string, false>;
|
|
46
|
-
border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder,
|
|
46
|
+
border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
|
|
47
47
|
borderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
48
48
|
}>;
|
|
49
49
|
};
|
|
@@ -35,7 +35,7 @@ export declare const SbSwitch: import("react").FC<import("../../properties-panel
|
|
|
35
35
|
isChecked: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
36
36
|
}>;
|
|
37
37
|
derived: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
38
|
-
|
|
38
|
+
isToggledOn: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
39
39
|
validationErrors: import("../../properties-panel/props-builder.js").Prop<any, true>;
|
|
40
40
|
isValid: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
41
41
|
showError: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
@@ -36,7 +36,7 @@ export declare const propertiesDefinition: {
|
|
|
36
36
|
isChecked: Prop<boolean, true>;
|
|
37
37
|
}>;
|
|
38
38
|
derived: Section<Record<string, Prop<any, any>> & {
|
|
39
|
-
|
|
39
|
+
isToggledOn: Prop<boolean, true>;
|
|
40
40
|
validationErrors: Prop<any, true>;
|
|
41
41
|
isValid: Prop<boolean, true>;
|
|
42
42
|
showError: Prop<boolean, true>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Dim } from "@superblocksteam/library-shared";
|
|
2
2
|
import { Section, Prop } from "../../properties-panel/props-builder.js";
|
|
3
|
-
import { BooleanStyleFalse, ColumnType, ImageSize } from "./types.js";
|
|
3
|
+
import { type BooleanStyleFalse, ColumnType, ImageSize } from "./types.js";
|
|
4
4
|
import type { IconPosition } from "../../icons/constants.js";
|
|
5
5
|
import type { ButtonVariant } from "../button/props.js";
|
|
6
6
|
export declare const columnPanelConfig: {
|
|
@@ -9,24 +9,23 @@ export declare const columnPanelConfig: {
|
|
|
9
9
|
} & (Omit<{
|
|
10
10
|
columnType: Prop<ColumnType, true>;
|
|
11
11
|
}, "columnType"> & ({
|
|
12
|
-
|
|
12
|
+
displayedValue: Prop<string, false>;
|
|
13
|
+
columnType: Prop<undefined, false>;
|
|
14
|
+
} | {
|
|
13
15
|
displayedValue: Prop<string, false>;
|
|
14
16
|
columnType: Prop<"text", true>;
|
|
15
17
|
} | {
|
|
16
|
-
computedValue: Prop<string, false>;
|
|
17
18
|
notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false>;
|
|
18
19
|
minimumFractionDigits: Prop<number, false>;
|
|
19
20
|
maximumFractionDigits: Prop<number, false>;
|
|
20
21
|
columnType: Prop<"number", true>;
|
|
21
22
|
} | {
|
|
22
|
-
computedValue: Prop<string, false>;
|
|
23
23
|
notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false>;
|
|
24
24
|
minimumFractionDigits: Prop<number, false>;
|
|
25
25
|
maximumFractionDigits: Prop<number, false>;
|
|
26
26
|
currency: Prop<string, false>;
|
|
27
27
|
columnType: Prop<"currency", true>;
|
|
28
28
|
} | {
|
|
29
|
-
computedValue: Prop<string, false>;
|
|
30
29
|
minimumFractionDigits: Prop<number, false>;
|
|
31
30
|
maximumFractionDigits: Prop<number, false>;
|
|
32
31
|
columnType: Prop<"percentage", true>;
|
|
@@ -34,11 +33,10 @@ export declare const columnPanelConfig: {
|
|
|
34
33
|
openImageUrl: Prop<boolean, false>;
|
|
35
34
|
columnType: Prop<"image", true>;
|
|
36
35
|
} | {
|
|
37
|
-
computedValue: Prop<string, false>;
|
|
38
36
|
columnType: Prop<"video", true>;
|
|
39
37
|
} | {
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
inputFormat: Prop<string, false>;
|
|
39
|
+
outputFormat: Prop<string, false>;
|
|
42
40
|
manageTimezone: Prop<boolean, false>;
|
|
43
41
|
valueTimezone: Prop<string, false>;
|
|
44
42
|
displayTimezone: Prop<string, false>;
|
|
@@ -53,13 +51,11 @@ export declare const columnPanelConfig: {
|
|
|
53
51
|
openInNewTab: Prop<boolean, false>;
|
|
54
52
|
columnType: Prop<"link", true>;
|
|
55
53
|
} | {
|
|
56
|
-
computedValue: Prop<string, false>;
|
|
57
54
|
columnType: Prop<"boolean", true>;
|
|
58
55
|
} | {
|
|
59
56
|
computedValue: Prop<string, false>;
|
|
60
57
|
columnType: Prop<"tags", true>;
|
|
61
58
|
} | {
|
|
62
|
-
computedValue: Prop<string, false>;
|
|
63
59
|
displayedValue: Prop<string, false>;
|
|
64
60
|
columnType: Prop<"email", true>;
|
|
65
61
|
})))) & {
|
|
@@ -71,63 +67,72 @@ export declare const columnPanelConfig: {
|
|
|
71
67
|
} & (Omit<{
|
|
72
68
|
columnType: Prop<ColumnType, false>;
|
|
73
69
|
}, "columnType"> & ({
|
|
74
|
-
horizontalAlign: Prop<"center" | "left" | "right",
|
|
75
|
-
verticalAlign: Prop<"center" | "bottom" | "top",
|
|
70
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
71
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
72
|
+
"cellProps.textStyle": Prop<any, false>;
|
|
73
|
+
cellBackground: Prop<string, false>;
|
|
74
|
+
textWrap: Prop<boolean, false>;
|
|
75
|
+
cellIcon: Prop<string, false>;
|
|
76
|
+
cellIconPosition: Prop<IconPosition, true>;
|
|
77
|
+
columnType: Prop<undefined, false>;
|
|
78
|
+
} | {
|
|
79
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
80
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
76
81
|
"cellProps.textStyle": Prop<any, false>;
|
|
77
82
|
cellBackground: Prop<string, false>;
|
|
78
83
|
textWrap: Prop<boolean, false>;
|
|
79
84
|
cellIcon: Prop<string, false>;
|
|
80
|
-
cellIconPosition: Prop<IconPosition,
|
|
85
|
+
cellIconPosition: Prop<IconPosition, true>;
|
|
81
86
|
columnType: Prop<"text", true>;
|
|
82
87
|
} | {
|
|
83
|
-
horizontalAlign: Prop<"center" | "left" | "right",
|
|
84
|
-
verticalAlign: Prop<"center" | "bottom" | "top",
|
|
88
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
89
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
85
90
|
"cellProps.textStyle": Prop<any, false>;
|
|
86
91
|
cellBackground: Prop<string, false>;
|
|
87
92
|
textWrap: Prop<boolean, false>;
|
|
88
93
|
cellIcon: Prop<string, false>;
|
|
89
|
-
cellIconPosition: Prop<IconPosition,
|
|
94
|
+
cellIconPosition: Prop<IconPosition, true>;
|
|
90
95
|
columnType: Prop<"number", true>;
|
|
91
96
|
} | {
|
|
92
|
-
horizontalAlign: Prop<"center" | "left" | "right",
|
|
93
|
-
verticalAlign: Prop<"center" | "bottom" | "top",
|
|
97
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
98
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
94
99
|
"cellProps.textStyle": Prop<any, false>;
|
|
95
100
|
cellBackground: Prop<string, false>;
|
|
96
101
|
textWrap: Prop<boolean, false>;
|
|
97
102
|
cellIcon: Prop<string, false>;
|
|
98
|
-
cellIconPosition: Prop<IconPosition,
|
|
103
|
+
cellIconPosition: Prop<IconPosition, true>;
|
|
99
104
|
columnType: Prop<"currency", true>;
|
|
100
105
|
} | {
|
|
101
|
-
horizontalAlign: Prop<"center" | "left" | "right",
|
|
102
|
-
verticalAlign: Prop<"center" | "bottom" | "top",
|
|
106
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
107
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
103
108
|
"cellProps.textStyle": Prop<any, false>;
|
|
104
109
|
cellBackground: Prop<string, false>;
|
|
105
110
|
textWrap: Prop<boolean, false>;
|
|
106
111
|
cellIcon: Prop<string, false>;
|
|
107
|
-
cellIconPosition: Prop<IconPosition,
|
|
112
|
+
cellIconPosition: Prop<IconPosition, true>;
|
|
108
113
|
columnType: Prop<"percentage", true>;
|
|
109
114
|
} | {
|
|
110
|
-
horizontalAlign: Prop<"center" | "left" | "right",
|
|
111
|
-
verticalAlign: Prop<"center" | "bottom" | "top",
|
|
115
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
116
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
112
117
|
"cellProps.textStyle": Prop<any, false>;
|
|
113
118
|
cellBackground: Prop<string, false>;
|
|
114
119
|
imageSize: Prop<ImageSize, false>;
|
|
115
120
|
imageBorderRadius: Prop<Dim, false>;
|
|
116
121
|
columnType: Prop<"image", true>;
|
|
117
122
|
} | {
|
|
118
|
-
horizontalAlign: Prop<"center" | "left" | "right",
|
|
119
|
-
verticalAlign: Prop<"center" | "bottom" | "top",
|
|
123
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
124
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
120
125
|
"cellProps.textStyle": Prop<any, false>;
|
|
121
126
|
cellBackground: Prop<string, false>;
|
|
122
127
|
columnType: Prop<"video", true>;
|
|
123
128
|
} | {
|
|
124
|
-
horizontalAlign: Prop<"center" | "left" | "right",
|
|
125
|
-
verticalAlign: Prop<"center" | "bottom" | "top",
|
|
129
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
130
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
126
131
|
"cellProps.textStyle": Prop<any, false>;
|
|
127
132
|
cellBackground: Prop<string, false>;
|
|
128
133
|
textWrap: Prop<boolean, false>;
|
|
129
134
|
cellIcon: Prop<string, false>;
|
|
130
|
-
cellIconPosition: Prop<IconPosition,
|
|
135
|
+
cellIconPosition: Prop<IconPosition, true>;
|
|
131
136
|
columnType: Prop<"date", true>;
|
|
132
137
|
} | {
|
|
133
138
|
buttonVariant: Prop<ButtonVariant, false>;
|
|
@@ -135,36 +140,36 @@ export declare const columnPanelConfig: {
|
|
|
135
140
|
buttonLabelColor: Prop<string, false>;
|
|
136
141
|
backgroundColor: Prop<string, false>;
|
|
137
142
|
cellIcon: Prop<string, false>;
|
|
138
|
-
cellIconPosition: Prop<IconPosition,
|
|
143
|
+
cellIconPosition: Prop<IconPosition, true>;
|
|
139
144
|
columnType: Prop<"button", true>;
|
|
140
145
|
} | {
|
|
141
|
-
horizontalAlign: Prop<"center" | "left" | "right",
|
|
142
|
-
verticalAlign: Prop<"center" | "bottom" | "top",
|
|
146
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
147
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
143
148
|
"cellProps.textStyle": Prop<any, false>;
|
|
144
149
|
cellBackground: Prop<string, false>;
|
|
145
150
|
columnType: Prop<"link", true>;
|
|
146
151
|
} | {
|
|
147
|
-
booleanStyleFalse: Prop<BooleanStyleFalse,
|
|
148
|
-
horizontalAlign: Prop<"center" | "left" | "right",
|
|
149
|
-
verticalAlign: Prop<"center" | "bottom" | "top",
|
|
152
|
+
booleanStyleFalse: Prop<BooleanStyleFalse, true>;
|
|
153
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
154
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
150
155
|
"cellProps.textStyle": Prop<any, false>;
|
|
151
156
|
cellBackground: Prop<string, false>;
|
|
152
157
|
columnType: Prop<"boolean", true>;
|
|
153
158
|
} | {
|
|
154
159
|
tagDisplayConfig: Prop<any, false>;
|
|
155
|
-
horizontalAlign: Prop<"center" | "left" | "right",
|
|
156
|
-
verticalAlign: Prop<"center" | "bottom" | "top",
|
|
160
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
161
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
157
162
|
"cellProps.textStyle": Prop<any, false>;
|
|
158
163
|
cellBackground: Prop<string, false>;
|
|
159
164
|
columnType: Prop<"tags", true>;
|
|
160
165
|
} | {
|
|
161
|
-
horizontalAlign: Prop<"center" | "left" | "right",
|
|
162
|
-
verticalAlign: Prop<"center" | "bottom" | "top",
|
|
166
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
167
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
163
168
|
"cellProps.textStyle": Prop<any, false>;
|
|
164
169
|
cellBackground: Prop<string, false>;
|
|
165
170
|
textWrap: Prop<boolean, false>;
|
|
166
171
|
cellIcon: Prop<string, false>;
|
|
167
|
-
cellIconPosition: Prop<IconPosition,
|
|
172
|
+
cellIconPosition: Prop<IconPosition, true>;
|
|
168
173
|
columnType: Prop<"email", true>;
|
|
169
174
|
})))) & {
|
|
170
175
|
frozen: Prop<boolean, false>;
|
|
@@ -6,11 +6,11 @@ type BooleanIconProps = {
|
|
|
6
6
|
strokeWidth?: number;
|
|
7
7
|
};
|
|
8
8
|
export declare const RadioButtonControlIcons: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
empty: (_props: BooleanIconProps) => null;
|
|
10
|
+
check: (props: BooleanIconProps) => React.JSX.Element;
|
|
11
|
+
close: (props: BooleanIconProps) => React.JSX.Element;
|
|
12
|
+
minus: (props: BooleanIconProps) => React.JSX.Element;
|
|
13
|
+
empty_checkbox: (props: BooleanIconProps) => React.JSX.Element;
|
|
14
14
|
};
|
|
15
15
|
export type RadioButtonIconNames = keyof typeof RadioButtonControlIcons;
|
|
16
16
|
export {};
|
|
@@ -8,8 +8,8 @@ interface TableDataDownloadProps {
|
|
|
8
8
|
columns: ReactTableColumnProps[];
|
|
9
9
|
tableSizes: TableSizes;
|
|
10
10
|
widgetName: string;
|
|
11
|
-
|
|
11
|
+
header: string;
|
|
12
12
|
tableCellTextStyle?: TextStyleWithVariant;
|
|
13
13
|
}
|
|
14
|
-
declare const TableDataDownload: ({ data, filteredOrderMap, columns, tableSizes, widgetName,
|
|
14
|
+
declare const TableDataDownload: ({ data, filteredOrderMap, columns, tableSizes, widgetName, header, tableCellTextStyle, }: TableDataDownloadProps) => React.JSX.Element;
|
|
15
15
|
export default TableDataDownload;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { InsertRowOptions, TableSizes } from "../constants.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { PaginationType, ReactTableColumnProps } from "../types.js";
|
|
4
4
|
import type { TextStyleWithVariant, UserAccessibleTheme } from "@superblocksteam/library-shared/types";
|
|
5
5
|
interface TableFooterProps {
|
|
6
6
|
columns: ReactTableColumnProps[];
|
|
@@ -10,11 +10,11 @@ interface TableFooterProps {
|
|
|
10
10
|
prevPageClick: () => void;
|
|
11
11
|
pageNo: number;
|
|
12
12
|
pageCount: number;
|
|
13
|
-
|
|
13
|
+
paginationType: PaginationType;
|
|
14
14
|
tableColumns: ReactTableColumnProps[];
|
|
15
15
|
tableData: Array<Record<string, unknown>>;
|
|
16
16
|
filteredOrderMap: number[] | undefined;
|
|
17
|
-
|
|
17
|
+
header: string;
|
|
18
18
|
tableSizes: TableSizes;
|
|
19
19
|
updatePageNo: (pageNo: number) => void;
|
|
20
20
|
isDownloadable: boolean;
|
|
@@ -36,5 +36,5 @@ interface TableFooterProps {
|
|
|
36
36
|
borderColor: string;
|
|
37
37
|
theme: UserAccessibleTheme;
|
|
38
38
|
}
|
|
39
|
-
declare const TableFooter: ({ count, currentPageIndex, nextPageClick, prevPageClick, pageNo, pageCount,
|
|
39
|
+
declare const TableFooter: ({ count, currentPageIndex, nextPageClick, prevPageClick, pageNo, pageCount, paginationType, tableColumns, tableData, filteredOrderMap, header, tableSizes, borderColor, updatePageNo, isDownloadable, multiRowSelection, selectedRowIndices, widgetName, numEdits, numEditErrors, validationMessages, onEditSave, onEditCancel, onRowInsertion, onRowDeletion, isInsertionEnabled, isDeletionEnabled, isSaving, selectedRowIndex, tableCellTextStyle, theme, }: TableFooterProps) => React.JSX.Element;
|
|
40
40
|
export default TableFooter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { TableSizes } from "../constants.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { PaginationType } from "../types.js";
|
|
4
4
|
import type { UserAccessibleTheme } from "@superblocksteam/library-shared/types";
|
|
5
5
|
interface TablePaginationProps {
|
|
6
6
|
updatePageNo: (pageNo: number) => void;
|
|
@@ -9,10 +9,10 @@ interface TablePaginationProps {
|
|
|
9
9
|
count: number;
|
|
10
10
|
pageNo: number;
|
|
11
11
|
pageCount: number;
|
|
12
|
-
|
|
12
|
+
paginationType: PaginationType;
|
|
13
13
|
currentPageIndex: number;
|
|
14
14
|
tableSizes: TableSizes;
|
|
15
15
|
theme: UserAccessibleTheme;
|
|
16
16
|
}
|
|
17
|
-
declare const TablePagination: ({ currentPageIndex, nextPageClick, prevPageClick, pageCount, pageNo,
|
|
17
|
+
declare const TablePagination: ({ currentPageIndex, nextPageClick, prevPageClick, pageCount, pageNo, paginationType, updatePageNo, tableSizes, theme, }: TablePaginationProps) => React.JSX.Element | null;
|
|
18
18
|
export default TablePagination;
|
|
@@ -10,7 +10,6 @@ export declare function getEditedRows(props: any): {
|
|
|
10
10
|
originalRows: any[];
|
|
11
11
|
};
|
|
12
12
|
export declare function getAllEdits(props: any): any;
|
|
13
|
-
export declare function getPageSize(props: any): any;
|
|
14
13
|
export declare function getFilteredTableData(props: any): any[];
|
|
15
14
|
export declare function getEditedRowIndices(props: any): {
|
|
16
15
|
deletedRows: {
|