@superblocksteam/library 2.0.0-next.11 → 2.0.0-next.110
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-DXE_RTrt.js → allPaths-C9t-oueG.js} +2 -2
- package/dist/{allPaths-DXE_RTrt.js.map → allPaths-C9t-oueG.js.map} +1 -1
- package/dist/{allPaths-h7bsheRo.js → allPaths-v-9aWvcC.js} +2 -2
- package/dist/{allPaths-h7bsheRo.js.map → allPaths-v-9aWvcC.js.map} +1 -1
- package/dist/{allPathsLoader-16QM90xQ.js → allPathsLoader-C12f21WG.js} +3 -3
- package/dist/{allPathsLoader-BWX35Jie.js.map → allPathsLoader-C12f21WG.js.map} +1 -1
- package/dist/{allPathsLoader-BWX35Jie.js → allPathsLoader-ptt7LSRI.js} +3 -3
- package/dist/{allPathsLoader-16QM90xQ.js.map → allPathsLoader-ptt7LSRI.js.map} +1 -1
- package/dist/{index-tdErpvtu.js → index-Dmuv9J5-.js} +27437 -20439
- package/dist/{index-tdErpvtu.js.map → index-Dmuv9J5-.js.map} +1 -1
- package/dist/index.css +2 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-wQWCogRx.js → splitPathsBySizeLoader-C9M7hrZo.js} +2 -2
- package/dist/{splitPathsBySizeLoader-wQWCogRx.js.map → splitPathsBySizeLoader-C9M7hrZo.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-7yhv4gcq.js → splitPathsBySizeLoader-yx8MCpqw.js} +2 -2
- package/dist/{splitPathsBySizeLoader-7yhv4gcq.js.map → splitPathsBySizeLoader-yx8MCpqw.js.map} +1 -1
- package/dist-types/edit-mode/create-component.d.ts +3 -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 +11 -10
- package/dist-types/edit-mode/features/connection-manager.d.ts +1 -2
- package/dist-types/edit-mode/features/interaction-layer-manager.d.ts +10 -4
- package/dist-types/edit-mode/features/operation-store.d.ts +12 -2
- package/dist-types/edit-mode/features/properties-panel-manager.d.ts +4 -4
- package/dist-types/edit-mode/features/resizing-store.d.ts +1 -0
- package/dist-types/edit-mode/interaction-utils.d.ts +4 -0
- 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/component-suspense-style-context.d.ts +10 -0
- package/dist-types/lib/internal-details/css-constants.d.ts +4 -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 +7 -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 +12 -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/suspense/suspense-fallback.d.ts +10 -0
- package/dist-types/lib/internal-details/lib/types.d.ts +5 -0
- package/dist-types/lib/internal-details/reactive-component.d.ts +4 -3
- package/dist-types/lib/internal-details/remove-bindings.d.ts +1 -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 +2 -2
- package/dist-types/lib/user-facing/components/button/props.d.ts +5 -11
- package/dist-types/lib/user-facing/components/checkbox/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/checkbox/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/column/index.d.ts +9 -21
- package/dist-types/lib/user-facing/components/column/props.d.ts +9 -20
- package/dist-types/lib/user-facing/components/container/index.d.ts +13 -24
- package/dist-types/lib/user-facing/components/container/props.d.ts +8 -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 +6 -1
- package/dist-types/lib/user-facing/components/date-picker/props.d.ts +6 -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 +3 -3
- package/dist-types/lib/user-facing/components/dropdown/props.d.ts +5 -6
- 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/icon/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/icon/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/image/index.d.ts +2 -2
- package/dist-types/lib/user-facing/components/image/props.d.ts +2 -2
- 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 +15 -21
- package/dist-types/lib/user-facing/components/input/props.d.ts +16 -21
- package/dist-types/lib/user-facing/components/key-value/props.d.ts +1 -0
- package/dist-types/lib/user-facing/components/modal/index.d.ts +11 -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 +11 -15
- package/dist-types/lib/user-facing/components/page/index.d.ts +3 -0
- package/dist-types/lib/user-facing/components/page/props.d.ts +3 -0
- 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 +3 -2
- package/dist-types/lib/user-facing/components/section/props.d.ts +3 -2
- package/dist-types/lib/user-facing/components/slideout/props.d.ts +5 -1
- package/dist-types/lib/user-facing/components/stack/index.d.ts +5 -3
- 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 +92 -96
- package/dist-types/lib/user-facing/components/table/props.d.ts +94 -99
- 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 +9 -8
- package/dist-types/lib/user-facing/components/text/props.d.ts +18 -15
- 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/mixins/loading.d.ts +2 -0
- package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +6 -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,6 +1,5 @@
|
|
|
1
|
-
import { Dim } from "@superblocksteam/library-shared";
|
|
2
1
|
import { Section, Prop } from "../../properties-panel/props-builder.js";
|
|
3
|
-
import { BooleanStyleFalse, ColumnType, ImageSize } from "./types.js";
|
|
2
|
+
import { type BooleanStyleFalse, ColumnType, ImageSize } from "./types.js";
|
|
4
3
|
import type { IconPosition } from "../../icons/constants.js";
|
|
5
4
|
import type { ButtonVariant } from "../button/props.js";
|
|
6
5
|
export declare const columnPanelConfig: {
|
|
@@ -9,57 +8,50 @@ export declare const columnPanelConfig: {
|
|
|
9
8
|
} & (Omit<{
|
|
10
9
|
columnType: Prop<ColumnType, true>;
|
|
11
10
|
}, "columnType"> & ({
|
|
12
|
-
|
|
11
|
+
displayedValue: Prop<string, false>;
|
|
12
|
+
columnType: Prop<undefined, false>;
|
|
13
|
+
} | {
|
|
13
14
|
displayedValue: Prop<string, false>;
|
|
14
15
|
columnType: Prop<"text", true>;
|
|
15
16
|
} | {
|
|
16
|
-
computedValue: Prop<string, false>;
|
|
17
17
|
notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false>;
|
|
18
18
|
minimumFractionDigits: Prop<number, false>;
|
|
19
19
|
maximumFractionDigits: Prop<number, false>;
|
|
20
20
|
columnType: Prop<"number", true>;
|
|
21
21
|
} | {
|
|
22
|
-
computedValue: Prop<string, false>;
|
|
23
22
|
notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false>;
|
|
24
23
|
minimumFractionDigits: Prop<number, false>;
|
|
25
24
|
maximumFractionDigits: Prop<number, false>;
|
|
26
|
-
currency: Prop<string,
|
|
25
|
+
currency: Prop<string, true>;
|
|
27
26
|
columnType: Prop<"currency", true>;
|
|
28
27
|
} | {
|
|
29
|
-
computedValue: Prop<string, false>;
|
|
30
28
|
minimumFractionDigits: Prop<number, false>;
|
|
31
29
|
maximumFractionDigits: Prop<number, false>;
|
|
32
30
|
columnType: Prop<"percentage", true>;
|
|
33
31
|
} | {
|
|
34
|
-
openImageUrl: Prop<boolean,
|
|
32
|
+
openImageUrl: Prop<boolean, true>;
|
|
35
33
|
columnType: Prop<"image", true>;
|
|
36
34
|
} | {
|
|
37
|
-
computedValue: Prop<string, false>;
|
|
38
35
|
columnType: Prop<"video", true>;
|
|
39
36
|
} | {
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
inputFormat: Prop<string, false>;
|
|
38
|
+
outputFormat: Prop<string, false>;
|
|
42
39
|
manageTimezone: Prop<boolean, false>;
|
|
43
40
|
valueTimezone: Prop<string, false>;
|
|
44
41
|
displayTimezone: Prop<string, false>;
|
|
45
42
|
columnType: Prop<"date", true>;
|
|
46
43
|
} | {
|
|
47
|
-
buttonLabel: Prop<string,
|
|
44
|
+
buttonLabel: Prop<string, true>;
|
|
48
45
|
isDisabled: Prop<boolean, false>;
|
|
49
46
|
columnType: Prop<"button", true>;
|
|
50
47
|
} | {
|
|
51
|
-
linkUrl: Prop<string, false>;
|
|
52
48
|
linkLabel: Prop<string, false>;
|
|
53
|
-
openInNewTab: Prop<boolean, false>;
|
|
54
49
|
columnType: Prop<"link", true>;
|
|
55
50
|
} | {
|
|
56
|
-
computedValue: Prop<string, false>;
|
|
57
51
|
columnType: Prop<"boolean", true>;
|
|
58
52
|
} | {
|
|
59
|
-
computedValue: Prop<string, false>;
|
|
60
53
|
columnType: Prop<"tags", true>;
|
|
61
54
|
} | {
|
|
62
|
-
computedValue: Prop<string, false>;
|
|
63
55
|
displayedValue: Prop<string, false>;
|
|
64
56
|
columnType: Prop<"email", true>;
|
|
65
57
|
})))) & {
|
|
@@ -67,107 +59,111 @@ export declare const columnPanelConfig: {
|
|
|
67
59
|
}>;
|
|
68
60
|
presentation: Section<(Record<string, Prop<any, any>> & ({
|
|
69
61
|
headerIcon: Prop<string, false>;
|
|
70
|
-
headerIconPosition: Prop<IconPosition,
|
|
62
|
+
headerIconPosition: Prop<IconPosition, true>;
|
|
71
63
|
} & (Omit<{
|
|
72
64
|
columnType: Prop<ColumnType, false>;
|
|
73
65
|
}, "columnType"> & ({
|
|
74
|
-
horizontalAlign: Prop<"center" | "left" | "right",
|
|
75
|
-
verticalAlign: Prop<"center" | "bottom" | "top",
|
|
76
|
-
"cellProps.textStyle": Prop<
|
|
77
|
-
cellBackground: Prop<string,
|
|
66
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
67
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
68
|
+
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
69
|
+
cellBackground: Prop<string, true>;
|
|
70
|
+
textWrap: Prop<boolean, false>;
|
|
71
|
+
cellIcon: Prop<string, false>;
|
|
72
|
+
cellIconPosition: Prop<IconPosition, true>;
|
|
73
|
+
columnType: Prop<undefined, false>;
|
|
74
|
+
} | {
|
|
75
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
76
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
77
|
+
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
78
|
+
cellBackground: Prop<string, true>;
|
|
78
79
|
textWrap: Prop<boolean, false>;
|
|
79
80
|
cellIcon: Prop<string, false>;
|
|
80
|
-
cellIconPosition: Prop<IconPosition,
|
|
81
|
+
cellIconPosition: Prop<IconPosition, true>;
|
|
81
82
|
columnType: Prop<"text", true>;
|
|
82
83
|
} | {
|
|
83
|
-
horizontalAlign: Prop<"center" | "left" | "right",
|
|
84
|
-
verticalAlign: Prop<"center" | "bottom" | "top",
|
|
85
|
-
"cellProps.textStyle": Prop<
|
|
86
|
-
cellBackground: Prop<string,
|
|
84
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
85
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
86
|
+
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
87
|
+
cellBackground: Prop<string, true>;
|
|
87
88
|
textWrap: Prop<boolean, false>;
|
|
88
89
|
cellIcon: Prop<string, false>;
|
|
89
|
-
cellIconPosition: Prop<IconPosition,
|
|
90
|
+
cellIconPosition: Prop<IconPosition, true>;
|
|
90
91
|
columnType: Prop<"number", true>;
|
|
91
92
|
} | {
|
|
92
|
-
horizontalAlign: Prop<"center" | "left" | "right",
|
|
93
|
-
verticalAlign: Prop<"center" | "bottom" | "top",
|
|
94
|
-
"cellProps.textStyle": Prop<
|
|
95
|
-
cellBackground: Prop<string,
|
|
93
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
94
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
95
|
+
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
96
|
+
cellBackground: Prop<string, true>;
|
|
96
97
|
textWrap: Prop<boolean, false>;
|
|
97
98
|
cellIcon: Prop<string, false>;
|
|
98
|
-
cellIconPosition: Prop<IconPosition,
|
|
99
|
+
cellIconPosition: Prop<IconPosition, true>;
|
|
99
100
|
columnType: Prop<"currency", true>;
|
|
100
101
|
} | {
|
|
101
|
-
horizontalAlign: Prop<"center" | "left" | "right",
|
|
102
|
-
verticalAlign: Prop<"center" | "bottom" | "top",
|
|
103
|
-
"cellProps.textStyle": Prop<
|
|
104
|
-
cellBackground: Prop<string,
|
|
102
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
103
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
104
|
+
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
105
|
+
cellBackground: Prop<string, true>;
|
|
105
106
|
textWrap: Prop<boolean, false>;
|
|
106
107
|
cellIcon: Prop<string, false>;
|
|
107
|
-
cellIconPosition: Prop<IconPosition,
|
|
108
|
+
cellIconPosition: Prop<IconPosition, true>;
|
|
108
109
|
columnType: Prop<"percentage", true>;
|
|
109
110
|
} | {
|
|
110
|
-
horizontalAlign: Prop<"center" | "left" | "right", false>;
|
|
111
|
-
verticalAlign: Prop<"center" | "bottom" | "top", false>;
|
|
112
|
-
"cellProps.textStyle": Prop<any, false>;
|
|
113
|
-
cellBackground: Prop<string, false>;
|
|
114
111
|
imageSize: Prop<ImageSize, false>;
|
|
115
|
-
imageBorderRadius: Prop<
|
|
112
|
+
imageBorderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
113
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
114
|
+
cellBackground: Prop<string, true>;
|
|
116
115
|
columnType: Prop<"image", true>;
|
|
117
116
|
} | {
|
|
118
|
-
horizontalAlign: Prop<"center" | "left" | "right",
|
|
119
|
-
|
|
120
|
-
"cellProps.textStyle": Prop<any, false>;
|
|
121
|
-
cellBackground: Prop<string, false>;
|
|
117
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
118
|
+
cellBackground: Prop<string, true>;
|
|
122
119
|
columnType: Prop<"video", true>;
|
|
123
120
|
} | {
|
|
124
|
-
horizontalAlign: Prop<"center" | "left" | "right",
|
|
125
|
-
verticalAlign: Prop<"center" | "bottom" | "top",
|
|
126
|
-
"cellProps.textStyle": Prop<
|
|
127
|
-
cellBackground: Prop<string,
|
|
121
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
122
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
123
|
+
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
124
|
+
cellBackground: Prop<string, true>;
|
|
128
125
|
textWrap: Prop<boolean, false>;
|
|
129
126
|
cellIcon: Prop<string, false>;
|
|
130
|
-
cellIconPosition: Prop<IconPosition,
|
|
127
|
+
cellIconPosition: Prop<IconPosition, true>;
|
|
131
128
|
columnType: Prop<"date", true>;
|
|
132
129
|
} | {
|
|
133
|
-
|
|
130
|
+
buttonIcon: Prop<string, false>;
|
|
131
|
+
buttonIconPosition: Prop<IconPosition, true>;
|
|
132
|
+
buttonVariant: Prop<ButtonVariant, true>;
|
|
133
|
+
buttonTextStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
134
134
|
buttonBackgroundColor: Prop<string, false>;
|
|
135
|
-
|
|
136
|
-
backgroundColor: Prop<string, false>;
|
|
137
|
-
cellIcon: Prop<string, false>;
|
|
138
|
-
cellIconPosition: Prop<IconPosition, false>;
|
|
135
|
+
buttonBorder: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
|
|
139
136
|
columnType: Prop<"button", true>;
|
|
140
137
|
} | {
|
|
141
|
-
horizontalAlign: Prop<"center" | "left" | "right",
|
|
142
|
-
verticalAlign: Prop<"center" | "bottom" | "top",
|
|
143
|
-
"cellProps.textStyle": Prop<
|
|
144
|
-
cellBackground: Prop<string,
|
|
138
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
139
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
140
|
+
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
141
|
+
cellBackground: Prop<string, true>;
|
|
145
142
|
columnType: Prop<"link", true>;
|
|
146
143
|
} | {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
cellBackground: Prop<string, false>;
|
|
144
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
145
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
146
|
+
cellBackground: Prop<string, true>;
|
|
147
|
+
booleanStyleFalse: Prop<BooleanStyleFalse, true>;
|
|
152
148
|
columnType: Prop<"boolean", true>;
|
|
153
149
|
} | {
|
|
150
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
151
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
152
|
+
cellBackground: Prop<string, true>;
|
|
153
|
+
tagsWrap: Prop<boolean, false>;
|
|
154
154
|
tagDisplayConfig: Prop<any, false>;
|
|
155
|
-
horizontalAlign: Prop<"center" | "left" | "right", false>;
|
|
156
|
-
verticalAlign: Prop<"center" | "bottom" | "top", false>;
|
|
157
|
-
"cellProps.textStyle": Prop<any, false>;
|
|
158
|
-
cellBackground: Prop<string, false>;
|
|
159
155
|
columnType: Prop<"tags", true>;
|
|
160
156
|
} | {
|
|
161
|
-
horizontalAlign: Prop<"center" | "left" | "right",
|
|
162
|
-
verticalAlign: Prop<"center" | "bottom" | "top",
|
|
163
|
-
"cellProps.textStyle": Prop<
|
|
164
|
-
cellBackground: Prop<string,
|
|
157
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
158
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
159
|
+
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
160
|
+
cellBackground: Prop<string, true>;
|
|
165
161
|
textWrap: Prop<boolean, false>;
|
|
166
162
|
cellIcon: Prop<string, false>;
|
|
167
|
-
cellIconPosition: Prop<IconPosition,
|
|
163
|
+
cellIconPosition: Prop<IconPosition, true>;
|
|
168
164
|
columnType: Prop<"email", true>;
|
|
169
165
|
})))) & {
|
|
170
|
-
|
|
166
|
+
isFrozen: Prop<boolean, false>;
|
|
171
167
|
}>;
|
|
172
168
|
interaction: Section<Record<string, Prop<any, any>> & Omit<{
|
|
173
169
|
columnType: Prop<ColumnType, false>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type {
|
|
2
|
+
import type { RowDensity, SingleCellProperties } from "../types.js";
|
|
3
3
|
import type { TextStyleWithVariant } from "@superblocksteam/library-shared/types";
|
|
4
4
|
declare const AutoToolTipComponent: (props: {
|
|
5
5
|
isHidden?: boolean;
|
|
6
6
|
children: React.ReactNode;
|
|
7
7
|
title: string;
|
|
8
8
|
cellProperties: SingleCellProperties;
|
|
9
|
-
|
|
9
|
+
rowDensity: RowDensity;
|
|
10
10
|
handleCellFocus?: () => void;
|
|
11
11
|
maxLinesPerRow?: number;
|
|
12
12
|
hasLeftIcon?: boolean;
|
|
@@ -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 {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { TableCellProps } from "../table-utilities.jsx";
|
|
3
|
-
import type {
|
|
3
|
+
import type { RowDensity, EditProps } from "../types.js";
|
|
4
4
|
import type { UserAccessibleTheme } from "@superblocksteam/library-shared/types";
|
|
5
5
|
import type { RefObject } from "react";
|
|
6
6
|
declare const EditCell: (props: {
|
|
@@ -8,7 +8,7 @@ declare const EditCell: (props: {
|
|
|
8
8
|
editProps: EditProps;
|
|
9
9
|
value: any;
|
|
10
10
|
tableName: string;
|
|
11
|
-
|
|
11
|
+
rowDensity: RowDensity;
|
|
12
12
|
cellProps: TableCellProps;
|
|
13
13
|
theme: UserAccessibleTheme;
|
|
14
14
|
}) => React.JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type
|
|
2
|
+
import { type SingleCellProperties, type RowDensity, type EditProps } from "../types.js";
|
|
3
3
|
declare const EditCheckboxCell: (props: {
|
|
4
4
|
editProps: EditProps;
|
|
5
5
|
value: any;
|
|
6
6
|
readModeComponent: JSX.Element;
|
|
7
|
-
|
|
7
|
+
rowDensity: RowDensity;
|
|
8
8
|
cellProperties: SingleCellProperties;
|
|
9
9
|
isFocused: boolean;
|
|
10
10
|
}) => React.JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { TableCellProps } from "../table-utilities.jsx";
|
|
3
|
-
import type {
|
|
3
|
+
import type { RowDensity, EditProps } from "../types.js";
|
|
4
4
|
import type { Position } from "./edit-utils.js";
|
|
5
5
|
declare const EditDateCell: (props: {
|
|
6
6
|
editProps: EditProps;
|
|
7
7
|
value: any;
|
|
8
8
|
inputPosition: Position;
|
|
9
|
-
|
|
9
|
+
rowDensity: RowDensity;
|
|
10
10
|
cellProps: TableCellProps;
|
|
11
11
|
}) => React.JSX.Element;
|
|
12
12
|
export default EditDateCell;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { TableCellProps } from "../table-utilities.jsx";
|
|
3
|
-
import type {
|
|
3
|
+
import type { RowDensity, EditProps } from "../types.js";
|
|
4
4
|
import type { Position } from "./edit-utils.js";
|
|
5
5
|
import type { RefObject } from "react";
|
|
6
6
|
declare const EditInputCell: (props: {
|
|
@@ -8,7 +8,7 @@ declare const EditInputCell: (props: {
|
|
|
8
8
|
value: any;
|
|
9
9
|
targetCellRef: RefObject<HTMLElement>;
|
|
10
10
|
inputPosition: Position;
|
|
11
|
-
|
|
11
|
+
rowDensity: RowDensity;
|
|
12
12
|
cellProps: TableCellProps;
|
|
13
13
|
}) => React.JSX.Element | null;
|
|
14
14
|
export default EditInputCell;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { TableCellProps } from "../table-utilities.jsx";
|
|
2
|
-
import type {
|
|
2
|
+
import type { RowDensity, EditProps } from "../types.js";
|
|
3
3
|
import type { Position } from "./edit-utils.js";
|
|
4
4
|
import type { UserAccessibleTheme } from "@superblocksteam/library-shared/types";
|
|
5
5
|
declare const EditMultiSelectCell: (props: {
|
|
6
6
|
editProps: EditProps;
|
|
7
7
|
value: any;
|
|
8
8
|
inputPosition: Position;
|
|
9
|
-
|
|
9
|
+
rowDensity: RowDensity;
|
|
10
10
|
cellProps: TableCellProps;
|
|
11
11
|
theme: UserAccessibleTheme;
|
|
12
12
|
}) => import("react").JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { TableCellProps } from "../table-utilities.jsx";
|
|
2
|
-
import type {
|
|
2
|
+
import type { RowDensity, EditProps } from "../types.js";
|
|
3
3
|
import type { Position } from "./edit-utils.js";
|
|
4
4
|
import type { UserAccessibleTheme } from "@superblocksteam/library-shared/types";
|
|
5
5
|
declare const EditSingleSelectCell: (props: {
|
|
6
6
|
editProps: EditProps;
|
|
7
7
|
value: any;
|
|
8
8
|
inputPosition: Position;
|
|
9
|
-
|
|
9
|
+
rowDensity: RowDensity;
|
|
10
10
|
cellProps: TableCellProps;
|
|
11
11
|
theme: UserAccessibleTheme;
|
|
12
12
|
}) => import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SingleCellProperties,
|
|
1
|
+
import type { SingleCellProperties, RowDensity } from "../types.js";
|
|
2
2
|
export type Position = {
|
|
3
3
|
top: undefined | number;
|
|
4
4
|
left: undefined | number;
|
|
@@ -18,7 +18,7 @@ export declare const extractDropdownOptions: (options: string | Array<string | R
|
|
|
18
18
|
}>;
|
|
19
19
|
type Props = {
|
|
20
20
|
$position: Position;
|
|
21
|
-
$
|
|
21
|
+
$rowDensity: RowDensity;
|
|
22
22
|
cellProperties: SingleCellProperties;
|
|
23
23
|
clearable?: boolean;
|
|
24
24
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { RowDensity, type SingleCellProperties } from "../types.js";
|
|
3
3
|
export declare const EditableLinkCell: (props: {
|
|
4
4
|
url: string;
|
|
5
5
|
label: string;
|
|
@@ -8,7 +8,7 @@ export declare const EditableLinkCell: (props: {
|
|
|
8
8
|
isEdited: boolean;
|
|
9
9
|
value: any;
|
|
10
10
|
cellProperties: SingleCellProperties;
|
|
11
|
-
|
|
11
|
+
rowDensity: RowDensity;
|
|
12
12
|
isFocused: boolean;
|
|
13
13
|
position: {
|
|
14
14
|
currentRowIndex: number;
|
|
@@ -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 { ColumnProperties,
|
|
3
|
+
import type { ColumnProperties, RowDensity, ReactTableColumnProps } from "../types.js";
|
|
4
4
|
import type { TextStyleWithVariant, UserAccessibleTheme, PerCornerBorderRadius, PerSideBorder } from "@superblocksteam/library-shared/types";
|
|
5
5
|
interface TableHeaderProps {
|
|
6
6
|
isSearchable: boolean;
|
|
@@ -8,7 +8,7 @@ interface TableHeaderProps {
|
|
|
8
8
|
searchTableData: (searchKey: any) => void;
|
|
9
9
|
tableSizes: TableSizes;
|
|
10
10
|
title: string;
|
|
11
|
-
|
|
11
|
+
rowDensity: RowDensity;
|
|
12
12
|
columns: ReactTableColumnProps[];
|
|
13
13
|
updateProperty: (property: string, value: any) => void;
|
|
14
14
|
hiddenColumns?: string[];
|
|
@@ -52,7 +52,7 @@ export declare const TableHeaderCell: (props: {
|
|
|
52
52
|
sourceId: string;
|
|
53
53
|
columnFreezes?: Record<string, boolean>;
|
|
54
54
|
showResizer: boolean;
|
|
55
|
-
|
|
55
|
+
rowDensity?: RowDensity;
|
|
56
56
|
handleHeaderDropped: (index: number, position: number) => void;
|
|
57
57
|
mutableHeaderDragRef: React.MutableRefObject<number>;
|
|
58
58
|
columnHeaderProps?: TextStyleWithVariant;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type {
|
|
2
|
+
import type { RowDensity } from "../types.js";
|
|
3
3
|
import type { UserAccessibleTheme } from "@superblocksteam/library-shared/types";
|
|
4
|
-
declare const TableLoading: ({ numRows,
|
|
4
|
+
declare const TableLoading: ({ numRows, rowDensity, width, dataTest, theme, }: {
|
|
5
5
|
numRows: number;
|
|
6
|
-
|
|
6
|
+
rowDensity: RowDensity;
|
|
7
7
|
width: number | string;
|
|
8
8
|
dataTest: string;
|
|
9
9
|
theme: UserAccessibleTheme;
|
|
@@ -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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { RowDensity } from "../types.js";
|
|
3
3
|
import type { MouseEventHandler } from "react";
|
|
4
4
|
/** the minimum horizontal space that should be available to a tag for it to look ok */
|
|
5
5
|
export declare const MIN_TAG_WIDTH = 32;
|
|
@@ -10,16 +10,16 @@ interface TableTagProps {
|
|
|
10
10
|
fgColor: string;
|
|
11
11
|
borderColor: string;
|
|
12
12
|
showTooltip?: boolean;
|
|
13
|
-
|
|
13
|
+
rowDensity?: RowDensity;
|
|
14
14
|
isWrapped?: boolean;
|
|
15
15
|
}
|
|
16
|
-
export declare const TableTag: ({ text, bgColor, fgColor, borderColor, showTooltip,
|
|
16
|
+
export declare const TableTag: ({ text, bgColor, fgColor, borderColor, showTooltip, rowDensity, isWrapped, }: TableTagProps) => React.JSX.Element;
|
|
17
17
|
interface TableTagsShowMoreProps {
|
|
18
18
|
count: number;
|
|
19
19
|
onMouseEnter?: MouseEventHandler<HTMLElement>;
|
|
20
20
|
onMouseLeave?: MouseEventHandler<HTMLElement>;
|
|
21
|
-
|
|
21
|
+
rowDensity: RowDensity;
|
|
22
22
|
isWrapped?: boolean;
|
|
23
23
|
}
|
|
24
|
-
export declare const TableTagsShowMore: ({ count, onMouseEnter, onMouseLeave,
|
|
24
|
+
export declare const TableTagsShowMore: ({ count, onMouseEnter, onMouseLeave, rowDensity, isWrapped, }: TableTagsShowMoreProps) => React.JSX.Element;
|
|
25
25
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type HorizontalAlignment, type VerticalAlignment, IconSize, EditInputType } from "./types.js";
|
|
2
2
|
import type { Typographies } from "@superblocksteam/shared";
|
|
3
3
|
export type TableSizes = {
|
|
4
4
|
COLUMN_HEADER_HEIGHT: number;
|
|
@@ -12,29 +12,9 @@ export type TableSizes = {
|
|
|
12
12
|
LINK_MENU_ICON_SIZE: IconSize;
|
|
13
13
|
ROW_PADDING: number;
|
|
14
14
|
};
|
|
15
|
-
export declare const JUSTIFY_CONTENT:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
RIGHT: string;
|
|
19
|
-
};
|
|
20
|
-
export declare const ALIGN_ITEMS: {
|
|
21
|
-
TOP: string;
|
|
22
|
-
CENTER: string;
|
|
23
|
-
BOTTOM: string;
|
|
24
|
-
};
|
|
25
|
-
export declare const TEXT_ALIGN: {
|
|
26
|
-
LEFT: string;
|
|
27
|
-
CENTER: string;
|
|
28
|
-
RIGHT: string;
|
|
29
|
-
};
|
|
30
|
-
export declare const TEXT_SIZES: Record<TextSizes, string>;
|
|
31
|
-
export declare const LEGACY_DEFAULT_CELL_TEXT_SIZE: TextSizes;
|
|
32
|
-
export declare enum FontStyleTypes {
|
|
33
|
-
BOLD = "BOLD",
|
|
34
|
-
ITALIC = "ITALIC",
|
|
35
|
-
REGULAR = "REGULAR",
|
|
36
|
-
UNDERLINE = "UNDERLINE"
|
|
37
|
-
}
|
|
15
|
+
export declare const JUSTIFY_CONTENT: Record<HorizontalAlignment, string>;
|
|
16
|
+
export declare const ALIGN_ITEMS: Record<VerticalAlignment, string>;
|
|
17
|
+
export declare const TEXT_ALIGN: Record<HorizontalAlignment, string>;
|
|
38
18
|
export declare const TABLE_SIZES: {
|
|
39
19
|
[key: string]: TableSizes;
|
|
40
20
|
};
|
|
@@ -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: {
|