@superblocksteam/library 2.0.0-next.7 → 2.0.0-next.71
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-B09LcN7N.js → allPaths-C6OJ6mru.js} +2 -2
- package/dist/{allPaths-B09LcN7N.js.map → allPaths-C6OJ6mru.js.map} +1 -1
- package/dist/{allPaths-CQi6Mi9n.js → allPaths-gAit3yMA.js} +2 -2
- package/dist/{allPaths-CQi6Mi9n.js.map → allPaths-gAit3yMA.js.map} +1 -1
- package/dist/{allPathsLoader-DTMdKBA7.js → allPathsLoader-BJfnsyfx.js} +3 -3
- package/dist/{allPathsLoader-M6yIb9T6.js.map → allPathsLoader-BJfnsyfx.js.map} +1 -1
- package/dist/{allPathsLoader-M6yIb9T6.js → allPathsLoader-Bjuqgh93.js} +3 -3
- package/dist/{allPathsLoader-DTMdKBA7.js.map → allPathsLoader-Bjuqgh93.js.map} +1 -1
- package/dist/{index-B1VgfVEK.js → index-B2rMu95r.js} +15471 -14610
- package/dist/{index-B1VgfVEK.js.map → index-B2rMu95r.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-Cgf9KLYl.js → splitPathsBySizeLoader-DJBHYgBR.js} +2 -2
- package/dist/{splitPathsBySizeLoader-Cgf9KLYl.js.map → splitPathsBySizeLoader-DJBHYgBR.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-zdAfZhWx.js → splitPathsBySizeLoader-bQPBH87C.js} +2 -2
- package/dist/{splitPathsBySizeLoader-zdAfZhWx.js.map → splitPathsBySizeLoader-bQPBH87C.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 +8 -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 +5 -4
- 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/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 +1 -2
- 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/props.d.ts +2 -8
- 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 +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/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/date-picker/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/date-picker/utils.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 +2 -2
- package/dist-types/lib/user-facing/components/dropdown/types.d.ts +1 -1
- package/dist-types/lib/user-facing/components/grid/index.d.ts +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 +9 -15
- package/dist-types/lib/user-facing/components/input/props.d.ts +10 -15
- 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 +50 -45
- 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 +60 -56
- package/dist-types/lib/user-facing/components/table/props.d.ts +61 -58
- 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 +7 -8
- package/dist-types/lib/user-facing/components/table/table-widget.d.ts +1 -1
- package/dist-types/lib/user-facing/components/table/types.d.ts +19 -30
- package/dist-types/lib/user-facing/components/text/index.d.ts +4 -4
- package/dist-types/lib/user-facing/components/text/props.d.ts +4 -4
- package/dist-types/lib/user-facing/properties-panel/mixins/appearance.d.ts +4 -8
- package/dist-types/lib/user-facing/properties-panel/mixins/form-inputs-properties.d.ts +3 -3
- 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 +2 -1
- package/dist-types/lib/user-facing/themes/constants.d.ts +2 -0
- package/package.json +4 -3
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Section, Prop } from "../../properties-panel/props-builder.js";
|
|
2
|
-
import { PaginationTypes } from "./types.js";
|
|
3
2
|
import { CompactMode } from "./types.js";
|
|
4
|
-
import type { UnknownRow } from "./types.js";
|
|
3
|
+
import type { UnknownRow, PaginationType } from "./types.js";
|
|
5
4
|
export declare const propertiesDefinition: {
|
|
6
5
|
general: Section<Record<string, Prop<any, any>> & {
|
|
7
|
-
|
|
6
|
+
header: Prop<string, true>;
|
|
8
7
|
tableData: Prop<UnknownRow[], false>;
|
|
9
8
|
columns: import("../../properties-panel/props-builder.js").RecordProp<{
|
|
10
9
|
general: Section<(Record<string, Prop<any, any>> & ({
|
|
@@ -12,24 +11,23 @@ export declare const propertiesDefinition: {
|
|
|
12
11
|
} & (Omit<{
|
|
13
12
|
columnType: Prop<import("./types.js").ColumnType, true>;
|
|
14
13
|
}, "columnType"> & ({
|
|
15
|
-
|
|
14
|
+
displayedValue: Prop<string, false>;
|
|
15
|
+
columnType: Prop<undefined, false>;
|
|
16
|
+
} | {
|
|
16
17
|
displayedValue: Prop<string, false>;
|
|
17
18
|
columnType: Prop<"text", true>;
|
|
18
19
|
} | {
|
|
19
|
-
computedValue: Prop<string, false>;
|
|
20
20
|
notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false>;
|
|
21
21
|
minimumFractionDigits: Prop<number, false>;
|
|
22
22
|
maximumFractionDigits: Prop<number, false>;
|
|
23
23
|
columnType: Prop<"number", true>;
|
|
24
24
|
} | {
|
|
25
|
-
computedValue: Prop<string, false>;
|
|
26
25
|
notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false>;
|
|
27
26
|
minimumFractionDigits: Prop<number, false>;
|
|
28
27
|
maximumFractionDigits: Prop<number, false>;
|
|
29
28
|
currency: Prop<string, false>;
|
|
30
29
|
columnType: Prop<"currency", true>;
|
|
31
30
|
} | {
|
|
32
|
-
computedValue: Prop<string, false>;
|
|
33
31
|
minimumFractionDigits: Prop<number, false>;
|
|
34
32
|
maximumFractionDigits: Prop<number, false>;
|
|
35
33
|
columnType: Prop<"percentage", true>;
|
|
@@ -37,17 +35,16 @@ export declare const propertiesDefinition: {
|
|
|
37
35
|
openImageUrl: Prop<boolean, false>;
|
|
38
36
|
columnType: Prop<"image", true>;
|
|
39
37
|
} | {
|
|
40
|
-
computedValue: Prop<string, false>;
|
|
41
38
|
columnType: Prop<"video", true>;
|
|
42
39
|
} | {
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
inputFormat: Prop<string, false>;
|
|
41
|
+
outputFormat: Prop<string, false>;
|
|
45
42
|
manageTimezone: Prop<boolean, false>;
|
|
46
43
|
valueTimezone: Prop<string, false>;
|
|
47
44
|
displayTimezone: Prop<string, false>;
|
|
48
45
|
columnType: Prop<"date", true>;
|
|
49
46
|
} | {
|
|
50
|
-
buttonLabel: Prop<string,
|
|
47
|
+
buttonLabel: Prop<string, true>;
|
|
51
48
|
isDisabled: Prop<boolean, false>;
|
|
52
49
|
columnType: Prop<"button", true>;
|
|
53
50
|
} | {
|
|
@@ -56,13 +53,11 @@ export declare const propertiesDefinition: {
|
|
|
56
53
|
openInNewTab: Prop<boolean, false>;
|
|
57
54
|
columnType: Prop<"link", true>;
|
|
58
55
|
} | {
|
|
59
|
-
computedValue: Prop<string, false>;
|
|
60
56
|
columnType: Prop<"boolean", true>;
|
|
61
57
|
} | {
|
|
62
58
|
computedValue: Prop<string, false>;
|
|
63
59
|
columnType: Prop<"tags", true>;
|
|
64
60
|
} | {
|
|
65
|
-
computedValue: Prop<string, false>;
|
|
66
61
|
displayedValue: Prop<string, false>;
|
|
67
62
|
columnType: Prop<"email", true>;
|
|
68
63
|
})))) & {
|
|
@@ -70,104 +65,113 @@ export declare const propertiesDefinition: {
|
|
|
70
65
|
}>;
|
|
71
66
|
presentation: Section<(Record<string, Prop<any, any>> & ({
|
|
72
67
|
headerIcon: Prop<string, false>;
|
|
73
|
-
headerIconPosition: Prop<import("../../icons/constants.js").IconPosition,
|
|
68
|
+
headerIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
|
|
74
69
|
} & (Omit<{
|
|
75
70
|
columnType: Prop<import("./types.js").ColumnType, false>;
|
|
76
71
|
}, "columnType"> & ({
|
|
77
|
-
horizontalAlign: Prop<"center" | "left" | "right",
|
|
78
|
-
verticalAlign: Prop<"center" | "bottom" | "top",
|
|
72
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
73
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
79
74
|
"cellProps.textStyle": Prop<any, false>;
|
|
80
75
|
cellBackground: Prop<string, false>;
|
|
81
76
|
textWrap: Prop<boolean, false>;
|
|
82
77
|
cellIcon: Prop<string, false>;
|
|
83
|
-
cellIconPosition: Prop<import("../../icons/constants.js").IconPosition,
|
|
78
|
+
cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
|
|
79
|
+
columnType: Prop<undefined, false>;
|
|
80
|
+
} | {
|
|
81
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
82
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
83
|
+
"cellProps.textStyle": Prop<any, false>;
|
|
84
|
+
cellBackground: Prop<string, false>;
|
|
85
|
+
textWrap: Prop<boolean, false>;
|
|
86
|
+
cellIcon: Prop<string, false>;
|
|
87
|
+
cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
|
|
84
88
|
columnType: Prop<"text", true>;
|
|
85
89
|
} | {
|
|
86
|
-
horizontalAlign: Prop<"center" | "left" | "right",
|
|
87
|
-
verticalAlign: Prop<"center" | "bottom" | "top",
|
|
90
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
91
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
88
92
|
"cellProps.textStyle": Prop<any, false>;
|
|
89
93
|
cellBackground: Prop<string, false>;
|
|
90
94
|
textWrap: Prop<boolean, false>;
|
|
91
95
|
cellIcon: Prop<string, false>;
|
|
92
|
-
cellIconPosition: Prop<import("../../icons/constants.js").IconPosition,
|
|
96
|
+
cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
|
|
93
97
|
columnType: Prop<"number", true>;
|
|
94
98
|
} | {
|
|
95
|
-
horizontalAlign: Prop<"center" | "left" | "right",
|
|
96
|
-
verticalAlign: Prop<"center" | "bottom" | "top",
|
|
99
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
100
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
97
101
|
"cellProps.textStyle": Prop<any, false>;
|
|
98
102
|
cellBackground: Prop<string, false>;
|
|
99
103
|
textWrap: Prop<boolean, false>;
|
|
100
104
|
cellIcon: Prop<string, false>;
|
|
101
|
-
cellIconPosition: Prop<import("../../icons/constants.js").IconPosition,
|
|
105
|
+
cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
|
|
102
106
|
columnType: Prop<"currency", true>;
|
|
103
107
|
} | {
|
|
104
|
-
horizontalAlign: Prop<"center" | "left" | "right",
|
|
105
|
-
verticalAlign: Prop<"center" | "bottom" | "top",
|
|
108
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
109
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
106
110
|
"cellProps.textStyle": Prop<any, false>;
|
|
107
111
|
cellBackground: Prop<string, false>;
|
|
108
112
|
textWrap: Prop<boolean, false>;
|
|
109
113
|
cellIcon: Prop<string, false>;
|
|
110
|
-
cellIconPosition: Prop<import("../../icons/constants.js").IconPosition,
|
|
114
|
+
cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
|
|
111
115
|
columnType: Prop<"percentage", true>;
|
|
112
116
|
} | {
|
|
113
|
-
horizontalAlign: Prop<"center" | "left" | "right",
|
|
114
|
-
verticalAlign: Prop<"center" | "bottom" | "top",
|
|
117
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
118
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
115
119
|
"cellProps.textStyle": Prop<any, false>;
|
|
116
120
|
cellBackground: Prop<string, false>;
|
|
117
121
|
imageSize: Prop<import("./types.js").ImageSize, false>;
|
|
118
122
|
imageBorderRadius: Prop<import("@superblocksteam/library-shared").Dim, false>;
|
|
119
123
|
columnType: Prop<"image", true>;
|
|
120
124
|
} | {
|
|
121
|
-
horizontalAlign: Prop<"center" | "left" | "right",
|
|
122
|
-
verticalAlign: Prop<"center" | "bottom" | "top",
|
|
125
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
126
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
123
127
|
"cellProps.textStyle": Prop<any, false>;
|
|
124
128
|
cellBackground: Prop<string, false>;
|
|
125
129
|
columnType: Prop<"video", true>;
|
|
126
130
|
} | {
|
|
127
|
-
horizontalAlign: Prop<"center" | "left" | "right",
|
|
128
|
-
verticalAlign: Prop<"center" | "bottom" | "top",
|
|
131
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
132
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
129
133
|
"cellProps.textStyle": Prop<any, false>;
|
|
130
134
|
cellBackground: Prop<string, false>;
|
|
131
135
|
textWrap: Prop<boolean, false>;
|
|
132
136
|
cellIcon: Prop<string, false>;
|
|
133
|
-
cellIconPosition: Prop<import("../../icons/constants.js").IconPosition,
|
|
137
|
+
cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
|
|
134
138
|
columnType: Prop<"date", true>;
|
|
135
139
|
} | {
|
|
136
|
-
|
|
140
|
+
buttonIcon: Prop<string, false>;
|
|
141
|
+
buttonIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
|
|
142
|
+
buttonVariant: Prop<import("../button/props.js").ButtonVariant, true>;
|
|
137
143
|
buttonBackgroundColor: Prop<string, false>;
|
|
144
|
+
buttonBorder: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
|
|
138
145
|
buttonLabelColor: Prop<string, false>;
|
|
139
|
-
backgroundColor: Prop<string, false>;
|
|
140
|
-
cellIcon: Prop<string, false>;
|
|
141
|
-
cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, false>;
|
|
142
146
|
columnType: Prop<"button", true>;
|
|
143
147
|
} | {
|
|
144
|
-
horizontalAlign: Prop<"center" | "left" | "right",
|
|
145
|
-
verticalAlign: Prop<"center" | "bottom" | "top",
|
|
148
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
149
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
146
150
|
"cellProps.textStyle": Prop<any, false>;
|
|
147
151
|
cellBackground: Prop<string, false>;
|
|
148
152
|
columnType: Prop<"link", true>;
|
|
149
153
|
} | {
|
|
150
|
-
booleanStyleFalse: Prop<import("./types.js").BooleanStyleFalse,
|
|
151
|
-
horizontalAlign: Prop<"center" | "left" | "right",
|
|
152
|
-
verticalAlign: Prop<"center" | "bottom" | "top",
|
|
154
|
+
booleanStyleFalse: Prop<import("./types.js").BooleanStyleFalse, true>;
|
|
155
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
156
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
153
157
|
"cellProps.textStyle": Prop<any, false>;
|
|
154
158
|
cellBackground: Prop<string, false>;
|
|
155
159
|
columnType: Prop<"boolean", true>;
|
|
156
160
|
} | {
|
|
157
161
|
tagDisplayConfig: Prop<any, false>;
|
|
158
|
-
horizontalAlign: Prop<"center" | "left" | "right",
|
|
159
|
-
verticalAlign: Prop<"center" | "bottom" | "top",
|
|
162
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
163
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
160
164
|
"cellProps.textStyle": Prop<any, false>;
|
|
161
165
|
cellBackground: Prop<string, false>;
|
|
162
166
|
columnType: Prop<"tags", true>;
|
|
163
167
|
} | {
|
|
164
|
-
horizontalAlign: Prop<"center" | "left" | "right",
|
|
165
|
-
verticalAlign: Prop<"center" | "bottom" | "top",
|
|
168
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
169
|
+
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
166
170
|
"cellProps.textStyle": Prop<any, false>;
|
|
167
171
|
cellBackground: Prop<string, false>;
|
|
168
172
|
textWrap: Prop<boolean, false>;
|
|
169
173
|
cellIcon: Prop<string, false>;
|
|
170
|
-
cellIconPosition: Prop<import("../../icons/constants.js").IconPosition,
|
|
174
|
+
cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
|
|
171
175
|
columnType: Prop<"email", true>;
|
|
172
176
|
})))) & {
|
|
173
177
|
frozen: Prop<boolean, false>;
|
|
@@ -198,10 +202,10 @@ export declare const propertiesDefinition: {
|
|
|
198
202
|
multiRowSelection: Prop<boolean, true>;
|
|
199
203
|
isSearchable: Prop<boolean, true>;
|
|
200
204
|
isDownloadable: Prop<boolean, true>;
|
|
201
|
-
|
|
202
|
-
configuredPageSize: Prop<
|
|
205
|
+
paginationType: Prop<PaginationType, true>;
|
|
206
|
+
configuredPageSize: Prop<any, false>;
|
|
203
207
|
defaultSort: import("../../properties-panel/props-builder.js").CompositeProp<{
|
|
204
|
-
column: Prop<string,
|
|
208
|
+
column: Prop<string, false>;
|
|
205
209
|
asc: Prop<boolean, true>;
|
|
206
210
|
}>;
|
|
207
211
|
defaultSearchText: Prop<string, false>;
|
|
@@ -215,7 +219,7 @@ export declare const propertiesDefinition: {
|
|
|
215
219
|
"cellProps.textStyle": Prop<any, false>;
|
|
216
220
|
backgroundColor: Prop<string, false>;
|
|
217
221
|
selectedRowBackgroundColor: Prop<string, false>;
|
|
218
|
-
border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder,
|
|
222
|
+
border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
|
|
219
223
|
borderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
220
224
|
compactMode: Prop<CompactMode, false>;
|
|
221
225
|
maxLinesPerRow: Prop<number, false>;
|
|
@@ -224,7 +228,7 @@ export declare const propertiesDefinition: {
|
|
|
224
228
|
collapseWhenHidden: Prop<boolean, false>;
|
|
225
229
|
"searchProps.textStyle": Prop<any, false>;
|
|
226
230
|
"searchProps.backgroundColor": Prop<string, false>;
|
|
227
|
-
"searchProps.border": Prop<import("@superblocksteam/library-shared/types").PerSideBorder,
|
|
231
|
+
"searchProps.border": Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
|
|
228
232
|
"searchProps.borderRadius": Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
229
233
|
}>;
|
|
230
234
|
events: Section<Record<string, Prop<any, any>> & {
|
|
@@ -240,19 +244,18 @@ export declare const propertiesDefinition: {
|
|
|
240
244
|
selectedRow: Prop<any, true>;
|
|
241
245
|
selectedRowSchema: Prop<any, true>;
|
|
242
246
|
selectedRows: Prop<any, true>;
|
|
243
|
-
pageSize: Prop<number, true>;
|
|
244
247
|
filteredTableData: Prop<any[], true>;
|
|
245
248
|
filteredOrderMap: Prop<number[], true>;
|
|
246
249
|
}>;
|
|
247
250
|
meta: Section<Record<string, Prop<any, any>> & {
|
|
248
|
-
selectedRowIndex: Prop<number,
|
|
251
|
+
selectedRowIndex: Prop<number, true>;
|
|
249
252
|
selectedRowIndices: Prop<any, false>;
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
filters: Prop<any, false>;
|
|
253
|
+
sortedColumn: Prop<any, true>;
|
|
254
|
+
searchText: Prop<string, true>;
|
|
255
|
+
filters: Prop<any, true>;
|
|
254
256
|
hiddenColumns: Prop<any, false>;
|
|
255
257
|
columnFreezes: Prop<any, false>;
|
|
256
258
|
tagsColorAssignment: Prop<any, false>;
|
|
259
|
+
pageNo: Prop<number, true>;
|
|
257
260
|
}>;
|
|
258
261
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { InsertRowOptions } from "./constants.js";
|
|
3
|
-
import type { ColumnFilter, CompactMode,
|
|
3
|
+
import type { ColumnFilter, CompactMode, PaginationType, ReactTableColumnProps, TableFilters } from "./types.js";
|
|
4
4
|
import type { Dim, DimModes } from "@superblocksteam/library-shared";
|
|
5
5
|
import type { TextStyleWithVariant, UserAccessibleTheme, PerCornerBorderRadius, PerSideBorder } from "@superblocksteam/library-shared/types";
|
|
6
6
|
export interface TableProps {
|
|
@@ -40,7 +40,7 @@ export interface TableProps {
|
|
|
40
40
|
prevPageClick: () => void;
|
|
41
41
|
pageNo: number;
|
|
42
42
|
pageSize: number;
|
|
43
|
-
|
|
43
|
+
paginationType: PaginationType;
|
|
44
44
|
selectedRowIndex: number;
|
|
45
45
|
selectedRowIndices: number[];
|
|
46
46
|
multiRowSelection?: boolean;
|
|
@@ -61,7 +61,7 @@ export interface TableProps {
|
|
|
61
61
|
showColumnBorders: boolean;
|
|
62
62
|
isSortable: boolean;
|
|
63
63
|
isSearchable: boolean;
|
|
64
|
-
|
|
64
|
+
header: string;
|
|
65
65
|
hiddenColumns?: string[];
|
|
66
66
|
numEdits: number;
|
|
67
67
|
numEditErrors: number;
|
|
@@ -61,7 +61,6 @@ export declare const ColumnHeaderWrapper: import("styled-components").StyledComp
|
|
|
61
61
|
export declare const ColumnHeaderTitleWrapper: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
62
62
|
export declare const HeaderCellContentWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
63
63
|
columnProperties: ColumnProperties;
|
|
64
|
-
shouldCapitalize: boolean;
|
|
65
64
|
}, never>;
|
|
66
65
|
interface TableIconWrapperProps {
|
|
67
66
|
selected?: boolean;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { Dim } from "@superblocksteam/library-shared";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { BooleanStyleFalse } from "./types.js";
|
|
4
|
-
import type {
|
|
5
|
-
import type { ColumnProperties, TableWidgetProps, EditProps, SingleCellProperties, TableStyles, TagDisplayConfig, TagsColorAssignment, ColumnPropertyFunctionArgs } from "./types.js";
|
|
3
|
+
import type { CompactMode, BooleanStyleFalse } from "./types.js";
|
|
4
|
+
import type { ColumnProperties, TableWidgetProps, EditProps, SingleCellProperties, TableStyles, TagDisplayConfig, TagsColorAssignment } from "./types.js";
|
|
6
5
|
import type { IconPosition } from "../../icons/constants.js";
|
|
7
6
|
import type { ButtonVariant } from "../button/props.js";
|
|
8
7
|
import type { DimModes } from "@superblocksteam/library-shared";
|
|
9
|
-
import type { TextStyleWithVariant, UserAccessibleTheme } from "@superblocksteam/library-shared/types";
|
|
8
|
+
import type { TextStyleWithVariant, UserAccessibleTheme, PerSideBorder } from "@superblocksteam/library-shared/types";
|
|
10
9
|
export declare const getAllTableColumnKeys: (tableData: Readonly<Array<Record<string, unknown>>>, additionalColumnKeys?: string[]) => string[];
|
|
11
10
|
interface TableTagsProps {
|
|
12
11
|
theme: UserAccessibleTheme;
|
|
@@ -40,7 +39,7 @@ export declare const TagsCell: ({ isHidden, cellProperties, tagValues, tagsColor
|
|
|
40
39
|
interface ColumnAction {
|
|
41
40
|
label: string;
|
|
42
41
|
id: string;
|
|
43
|
-
actions: (
|
|
42
|
+
actions: () => void;
|
|
44
43
|
}
|
|
45
44
|
export declare const formatByType: (value: unknown, type: string, options: {
|
|
46
45
|
maxLen?: number;
|
|
@@ -70,7 +69,7 @@ export declare const EditableCell: (props: {
|
|
|
70
69
|
theme: UserAccessibleTheme;
|
|
71
70
|
}) => React.JSX.Element;
|
|
72
71
|
export declare function getCellProperties(tableCellTextStyle: TextStyleWithVariant | undefined, columnProperties: ColumnProperties, rowIndex: number): SingleCellProperties;
|
|
73
|
-
export declare function getPropertyValue(value: any, index: number,
|
|
72
|
+
export declare function getPropertyValue(value: any, index: number, preserveDataType?: boolean): any;
|
|
74
73
|
export declare function getFirstPropertyValue(value: string | string[] | undefined): string | undefined;
|
|
75
74
|
export declare const renderCell: ({ value, columnType, editInputType, cellProps, defaultValue, maxLinesPerRow, tableCellTextStyle, typographies, theme, }: {
|
|
76
75
|
value: any;
|
|
@@ -90,11 +89,12 @@ interface RenderActionProps {
|
|
|
90
89
|
isDisabled?: boolean;
|
|
91
90
|
columnActions?: ColumnAction[];
|
|
92
91
|
backgroundColor?: string;
|
|
92
|
+
buttonBorder?: PerSideBorder;
|
|
93
93
|
buttonVariant: ButtonVariant;
|
|
94
94
|
buttonLabelColor: string | undefined;
|
|
95
95
|
cellIcon?: string;
|
|
96
96
|
cellIconPosition: IconPosition;
|
|
97
|
-
onCommandClick: (
|
|
97
|
+
onCommandClick: (onComplete: () => void) => void;
|
|
98
98
|
handleRowSelect: (rowIndex: number) => void;
|
|
99
99
|
compactMode: CompactMode;
|
|
100
100
|
}
|
|
@@ -117,7 +117,6 @@ export declare const getVisibleOrderedColumnIds: (columns: Record<string, Column
|
|
|
117
117
|
export declare const reorderColumns: (columns: Record<string, ColumnProperties>, columnOrder: string[], columnFreezes?: Record<string, boolean>) => Record<string, ColumnProperties>;
|
|
118
118
|
export declare function getDefaultColumnProperties(accessor: string, index: number, widgetName: string, isDerived?: boolean): ColumnProperties;
|
|
119
119
|
export declare function getDefaultComputedValue(accessor: string, widgetName: string, isDerived: boolean): string;
|
|
120
|
-
export declare function columnHasNonDefaultProps(columnProperties: ColumnProperties, widgetName: string): boolean;
|
|
121
120
|
export declare function getTableStyles(props: any): TableStyles;
|
|
122
121
|
export declare const getColumnWidthStyle: ({ column, columnSizeMap, resizingColumnIdRef, canvasScaleFactor, }: {
|
|
123
122
|
column: any;
|
|
@@ -111,7 +111,7 @@ export declare class TableWidget extends React.Component<TableWidgetProps, Table
|
|
|
111
111
|
label: string;
|
|
112
112
|
value: string;
|
|
113
113
|
}) => void;
|
|
114
|
-
onEditStop: (columnProperties: ColumnProperties,
|
|
114
|
+
onEditStop: (columnProperties: ColumnProperties, _currentRowIndex: number, editStopProps: {
|
|
115
115
|
shouldSave: boolean;
|
|
116
116
|
value?: any;
|
|
117
117
|
validationErrors?: Array<string>;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import type { IconPosition } from "../../icons/constants";
|
|
2
2
|
import type { Dim, DimModes } from "@superblocksteam/library-shared";
|
|
3
3
|
import type { TextStyleWithVariant, UserAccessibleTheme, PerCornerBorderRadius, PerSideBorder } from "@superblocksteam/library-shared/types";
|
|
4
|
-
export
|
|
5
|
-
NONE = "NONE",
|
|
6
|
-
CLIENT_SIDE = "CLIENT_SIDE",
|
|
7
|
-
SERVER_SIDE = "SERVER_SIDE"
|
|
8
|
-
}
|
|
4
|
+
export type PaginationType = "none" | "client_side" | "server_side";
|
|
9
5
|
export interface TableFilters {
|
|
10
6
|
byColumn?: {
|
|
11
7
|
[column: string]: ColumnFilter;
|
|
@@ -91,12 +87,7 @@ export declare enum EditInputType {
|
|
|
91
87
|
Checkbox = "CHECKBOX",
|
|
92
88
|
Date = "DATE"
|
|
93
89
|
}
|
|
94
|
-
export
|
|
95
|
-
EMPTY = "EMPTY",
|
|
96
|
-
CLOSE = "CLOSE",
|
|
97
|
-
MINUS = "MINUS",
|
|
98
|
-
EMPTY_CHECKBOX = "EMPTY_CHECKBOX"
|
|
99
|
-
}
|
|
90
|
+
export type BooleanStyleFalse = "empty" | "close" | "minus" | "empty_checkbox";
|
|
100
91
|
export declare enum ImageSize {
|
|
101
92
|
Fixed = "FIXED",
|
|
102
93
|
Fit = "FIT",
|
|
@@ -184,7 +175,6 @@ export interface TableStyles {
|
|
|
184
175
|
horizontalAlign?: CellAlignment;
|
|
185
176
|
verticalAlign?: VerticalAlignment;
|
|
186
177
|
}
|
|
187
|
-
export type Pagination = keyof typeof PaginationTypes;
|
|
188
178
|
type CellAlignment = keyof typeof CellAlignmentTypes;
|
|
189
179
|
type VerticalAlignment = keyof typeof VerticalAlignmentTypes;
|
|
190
180
|
type TextSize = keyof typeof TextSizes;
|
|
@@ -197,6 +187,7 @@ export type SingleCellProperties = ColumnPropertiesForEditing & {
|
|
|
197
187
|
cellTextStyle?: TextStyleWithVariant;
|
|
198
188
|
cellBackground?: string;
|
|
199
189
|
buttonBackgroundColor?: string;
|
|
190
|
+
buttonBorder?: PerSideBorder;
|
|
200
191
|
buttonVariant?: string;
|
|
201
192
|
buttonLabelColor?: string;
|
|
202
193
|
buttonLabel?: string;
|
|
@@ -251,17 +242,13 @@ interface ColumnPropertiesForEditing {
|
|
|
251
242
|
export type TagDisplayConfig = {
|
|
252
243
|
color: string;
|
|
253
244
|
};
|
|
254
|
-
export type ColumnPropertyFunctionArgs = {
|
|
255
|
-
onComplete?: () => void;
|
|
256
|
-
context: ColumnContext | Record<string, unknown>;
|
|
257
|
-
};
|
|
258
245
|
export type ColumnPropertyFunctions = {
|
|
259
|
-
onClick?: (args:
|
|
260
|
-
onDropdownSearchTextChanged?: (
|
|
261
|
-
onOptionChange?: (
|
|
262
|
-
onFocusOut?: (
|
|
263
|
-
onDateSelected?: (
|
|
264
|
-
onCheckChange?: (
|
|
246
|
+
onClick?: (args: RowContext) => Promise<void>;
|
|
247
|
+
onDropdownSearchTextChanged?: () => void;
|
|
248
|
+
onOptionChange?: () => void;
|
|
249
|
+
onFocusOut?: () => void;
|
|
250
|
+
onDateSelected?: () => void;
|
|
251
|
+
onCheckChange?: () => void;
|
|
265
252
|
};
|
|
266
253
|
export interface ColumnProperties extends ColumnEditConfigs, ColumnPropertiesForEditing, ColumnPropertyFunctions {
|
|
267
254
|
id: string;
|
|
@@ -287,11 +274,14 @@ export interface ColumnProperties extends ColumnEditConfigs, ColumnPropertiesFor
|
|
|
287
274
|
computedValue: string | string[];
|
|
288
275
|
displayedValue?: string | string[];
|
|
289
276
|
buttonLabel?: string;
|
|
290
|
-
|
|
277
|
+
buttonBackgroundColor?: string;
|
|
278
|
+
buttonBorder?: PerSideBorder;
|
|
291
279
|
buttonVariant?: string;
|
|
292
280
|
buttonLabelColor?: string;
|
|
293
281
|
cellIcon?: string;
|
|
294
282
|
cellIconPosition?: IconPosition;
|
|
283
|
+
buttonIcon?: string;
|
|
284
|
+
buttonIconPosition?: IconPosition;
|
|
295
285
|
isDisabled?: boolean;
|
|
296
286
|
linkUrl?: string;
|
|
297
287
|
linkLabel?: string;
|
|
@@ -304,8 +294,8 @@ export interface ColumnProperties extends ColumnEditConfigs, ColumnPropertiesFor
|
|
|
304
294
|
imageSize?: ImageSize;
|
|
305
295
|
imageBorderRadius?: Dim<DimModes>;
|
|
306
296
|
openImageUrl?: boolean;
|
|
307
|
-
outputFormat?: string
|
|
308
|
-
inputFormat?: string
|
|
297
|
+
outputFormat?: string;
|
|
298
|
+
inputFormat?: string;
|
|
309
299
|
}
|
|
310
300
|
export type EditProps = ColumnEditConfigs & {
|
|
311
301
|
handleEditStart: () => void;
|
|
@@ -366,7 +356,7 @@ type ColumnEditConfigs = {
|
|
|
366
356
|
export type UnknownRow = Record<string, unknown>;
|
|
367
357
|
export type UnknownRows = Array<UnknownRow>;
|
|
368
358
|
export interface TableSortColumn {
|
|
369
|
-
column
|
|
359
|
+
column?: string;
|
|
370
360
|
asc: boolean;
|
|
371
361
|
}
|
|
372
362
|
export interface TagsColorAssignment {
|
|
@@ -377,11 +367,10 @@ export interface TableWidgetProps extends TableFunctions {
|
|
|
377
367
|
sourceId: string;
|
|
378
368
|
widgetName: string;
|
|
379
369
|
isLoading: boolean;
|
|
380
|
-
defaultSearchText: string;
|
|
381
370
|
searchPlaceholder: string;
|
|
382
371
|
pageSize: number;
|
|
383
372
|
configuredPageSize?: number;
|
|
384
|
-
|
|
373
|
+
paginationType: PaginationType;
|
|
385
374
|
multiRowSelection?: boolean;
|
|
386
375
|
columnOrder?: string[];
|
|
387
376
|
columnSizeMap?: {
|
|
@@ -393,9 +382,8 @@ export interface TableWidgetProps extends TableFunctions {
|
|
|
393
382
|
isDownloadable: boolean;
|
|
394
383
|
isFilterable: boolean;
|
|
395
384
|
showColumnBorders: boolean;
|
|
396
|
-
defaultFilters: string;
|
|
397
385
|
isSearchable: boolean;
|
|
398
|
-
|
|
386
|
+
header: string;
|
|
399
387
|
compactMode: CompactMode;
|
|
400
388
|
enableRowDeletion: boolean;
|
|
401
389
|
enableRowInsertion: boolean;
|
|
@@ -427,6 +415,7 @@ export interface TableWidgetProps extends TableFunctions {
|
|
|
427
415
|
theme: UserAccessibleTheme;
|
|
428
416
|
border: PerSideBorder;
|
|
429
417
|
disableNudge: (disable: boolean) => void;
|
|
418
|
+
disableDrag: (disable: boolean) => void;
|
|
430
419
|
filteredTableData?: UnknownRows;
|
|
431
420
|
filteredOrderMap?: Array<number>;
|
|
432
421
|
editedRows?: {
|
|
@@ -14,16 +14,16 @@ export declare const SbText: import("react").FC<import("../../properties-panel/p
|
|
|
14
14
|
} & (Omit<{
|
|
15
15
|
textType: import("../../properties-panel/props-builder.js").Prop<"number" | "time" | "text" | "date" | "currency", false>;
|
|
16
16
|
}, "textType" | "dateInputFormat" | "dateOutputFormat"> & ({
|
|
17
|
-
minimumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number,
|
|
18
|
-
maximumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number,
|
|
17
|
+
minimumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
18
|
+
maximumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
19
19
|
textType: import("../../properties-panel/props-builder.js").Prop<"currency", true>;
|
|
20
20
|
currency: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
21
21
|
notation: import("../../properties-panel/props-builder.js").Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", true>;
|
|
22
22
|
dateInputFormat?: undefined;
|
|
23
23
|
dateOutputFormat?: undefined;
|
|
24
24
|
} | {
|
|
25
|
-
minimumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number,
|
|
26
|
-
maximumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number,
|
|
25
|
+
minimumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
26
|
+
maximumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
27
27
|
textType: import("../../properties-panel/props-builder.js").Prop<"number", true>;
|
|
28
28
|
notation: import("../../properties-panel/props-builder.js").Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", true>;
|
|
29
29
|
dateInputFormat?: undefined;
|
|
@@ -23,16 +23,16 @@ export declare const propertiesDefinition: {
|
|
|
23
23
|
} & (Omit<{
|
|
24
24
|
textType: Prop<"number" | "time" | "text" | "date" | "currency", false>;
|
|
25
25
|
}, "textType" | "dateInputFormat" | "dateOutputFormat"> & ({
|
|
26
|
-
minimumFractionDigits: Prop<number,
|
|
27
|
-
maximumFractionDigits: Prop<number,
|
|
26
|
+
minimumFractionDigits: Prop<number, false>;
|
|
27
|
+
maximumFractionDigits: Prop<number, false>;
|
|
28
28
|
textType: Prop<"currency", true>;
|
|
29
29
|
currency: Prop<string, true>;
|
|
30
30
|
notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", true>;
|
|
31
31
|
dateInputFormat?: undefined;
|
|
32
32
|
dateOutputFormat?: undefined;
|
|
33
33
|
} | {
|
|
34
|
-
minimumFractionDigits: Prop<number,
|
|
35
|
-
maximumFractionDigits: Prop<number,
|
|
34
|
+
minimumFractionDigits: Prop<number, false>;
|
|
35
|
+
maximumFractionDigits: Prop<number, false>;
|
|
36
36
|
textType: Prop<"number", true>;
|
|
37
37
|
notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", true>;
|
|
38
38
|
dateInputFormat?: undefined;
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { Dim } from "@superblocksteam/library-shared";
|
|
2
1
|
import { Prop } from "../props-builder.js";
|
|
2
|
+
import type { Dim } from "@superblocksteam/library-shared";
|
|
3
3
|
import type { PropertiesPanelDisplay } from "@superblocksteam/library-shared/props";
|
|
4
|
-
import type { PerCornerBorderRadius, PerSideBorder } from "@superblocksteam/library-shared/types";
|
|
5
|
-
export declare const
|
|
6
|
-
|
|
7
|
-
width: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
8
|
-
style: Prop<string, false>;
|
|
9
|
-
}>;
|
|
10
|
-
export declare const border: (propertiesPanelConfig?: Partial<Partial<PropertiesPanelDisplay<"unknown", "BORDER_CONTROL">>>) => Prop<PerSideBorder, true>;
|
|
4
|
+
import type { BorderStyleBlock, PerCornerBorderRadius, PerSideBorder } from "@superblocksteam/library-shared/types";
|
|
5
|
+
export declare const createPerSideBorder: (border: BorderStyleBlock) => PerSideBorder;
|
|
6
|
+
export declare const border: (propertiesPanelConfig?: Partial<Partial<PropertiesPanelDisplay<PerSideBorder, "BORDER_CONTROL">>>) => Prop<PerSideBorder, false>;
|
|
11
7
|
export declare const createBorderRadiusObject: (borderRadius: Dim<"px" | "%">) => PerCornerBorderRadius;
|
|
12
8
|
export declare const borderRadius: (propertiesPanelConfig?: Partial<Partial<PropertiesPanelDisplay<PerCornerBorderRadius, "BORDER_RADIUS_CONTROL">>>) => Prop<PerCornerBorderRadius, true>;
|
|
@@ -8,7 +8,7 @@ export declare const customValidationProperties: {
|
|
|
8
8
|
customValidationRule: Prop<string, true>;
|
|
9
9
|
customErrorMessage: Prop<string, true>;
|
|
10
10
|
};
|
|
11
|
-
export declare const labelPosition: Prop<"left" | "top", true>;
|
|
11
|
+
export declare const labelPosition: () => Prop<"left" | "top", true>;
|
|
12
12
|
export declare const getTypographyOptions: () => {
|
|
13
13
|
label: string;
|
|
14
14
|
value: {
|
|
@@ -39,6 +39,6 @@ export declare const getCustomValidationProperties: ({ errorMessagePlacementSche
|
|
|
39
39
|
export declare const getFractionDigitsProperties: ({ schema, }?: {
|
|
40
40
|
schema?: Omit<Partial<PropertiesPanelDisplay<number, "INPUT_TEXT">>, "controlType">;
|
|
41
41
|
}) => {
|
|
42
|
-
minimumFractionDigits: Prop<number,
|
|
43
|
-
maximumFractionDigits: Prop<number,
|
|
42
|
+
minimumFractionDigits: Prop<number, false>;
|
|
43
|
+
maximumFractionDigits: Prop<number, false>;
|
|
44
44
|
};
|