@superblocksteam/library 2.0.0-next.4 → 2.0.0-next.41
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-D8-iN1no.js → allPaths-Bj6thg9f.js} +2 -2
- package/dist/{allPaths-D8-iN1no.js.map → allPaths-Bj6thg9f.js.map} +1 -1
- package/dist/{allPaths-CF1gtIOM.js → allPaths-Cv0KigTj.js} +2 -2
- package/dist/{allPaths-CF1gtIOM.js.map → allPaths-Cv0KigTj.js.map} +1 -1
- package/dist/{allPathsLoader-BeBFpQBL.js → allPathsLoader-AuVCeQbD.js} +3 -3
- package/dist/{allPathsLoader-BeBFpQBL.js.map → allPathsLoader-AuVCeQbD.js.map} +1 -1
- package/dist/{allPathsLoader-C9Zv92Qq.js → allPathsLoader-DzJ5WE4I.js} +3 -3
- package/dist/{allPathsLoader-C9Zv92Qq.js.map → allPathsLoader-DzJ5WE4I.js.map} +1 -1
- package/dist/{icons-BrNMuu_I.js → icons-D_yAT9A6.js} +27 -19
- package/dist/icons-D_yAT9A6.js.map +1 -0
- package/dist/{index-BKcgNC6z.js → index-sY8OAGZZ.js} +50584 -49585
- package/dist/{index-BKcgNC6z.js.map → index-sY8OAGZZ.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-B1mX23Pc.js → splitPathsBySizeLoader-B9VbwPK4.js} +2 -2
- package/dist/{splitPathsBySizeLoader-B1mX23Pc.js.map → splitPathsBySizeLoader-B9VbwPK4.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-B2lh3sPK.js → splitPathsBySizeLoader-CFT4USmT.js} +2 -2
- package/dist/{splitPathsBySizeLoader-B2lh3sPK.js.map → splitPathsBySizeLoader-CFT4USmT.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 +11 -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/triggers/implementations/show-alert.d.ts +6 -5
- package/dist-types/lib/triggers/registry.d.ts +4 -2
- package/dist-types/lib/user-facing/component-base/constants.d.ts +4 -4
- package/dist-types/lib/user-facing/component-base/utils/input-validation.d.ts +3 -3
- package/dist-types/lib/user-facing/components/button/index.d.ts +0 -1
- package/dist-types/lib/user-facing/components/button/props.d.ts +0 -6
- package/dist-types/lib/user-facing/components/checkbox/index.d.ts +0 -1
- package/dist-types/lib/user-facing/components/checkbox/props.d.ts +0 -1
- package/dist-types/lib/user-facing/components/column/index.d.ts +5 -6
- package/dist-types/lib/user-facing/components/column/props.d.ts +27 -29
- package/dist-types/lib/user-facing/components/container/index.d.ts +4 -5
- package/dist-types/lib/user-facing/components/container/props.d.ts +4 -5
- package/dist-types/lib/user-facing/components/custom/register-custom-component.d.ts +0 -1
- package/dist-types/lib/user-facing/components/date-picker/date-picker-component.d.ts +11 -4
- package/dist-types/lib/user-facing/components/date-picker/index.d.ts +2 -3
- package/dist-types/lib/user-facing/components/date-picker/props.d.ts +2 -3
- package/dist-types/lib/user-facing/components/date-picker/types.d.ts +2 -2
- package/dist-types/lib/user-facing/components/date-picker/utils.d.ts +11 -0
- package/dist-types/lib/user-facing/components/dropdown/index.d.ts +1 -2
- package/dist-types/lib/user-facing/components/dropdown/props.d.ts +1 -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 +0 -1
- package/dist-types/lib/user-facing/components/icon/index.d.ts +0 -1
- package/dist-types/lib/user-facing/components/icon/props.d.ts +0 -1
- package/dist-types/lib/user-facing/components/image/index.d.ts +1 -2
- package/dist-types/lib/user-facing/components/image/props.d.ts +1 -2
- package/dist-types/lib/user-facing/components/input/derived-properties.d.ts +0 -1
- package/dist-types/lib/user-facing/components/input/index.d.ts +0 -1
- package/dist-types/lib/user-facing/components/input/props.d.ts +2 -4
- package/dist-types/lib/user-facing/components/key-value/props.d.ts +0 -1
- package/dist-types/lib/user-facing/components/modal/index.d.ts +4 -4
- package/dist-types/lib/user-facing/components/modal/props.d.ts +4 -4
- package/dist-types/lib/user-facing/components/section/index.d.ts +4 -3
- package/dist-types/lib/user-facing/components/section/props.d.ts +4 -3
- package/dist-types/lib/user-facing/components/slideout/props.d.ts +0 -1
- package/dist-types/lib/user-facing/components/stack/index.d.ts +6 -9
- package/dist-types/lib/user-facing/components/switch/index.d.ts +0 -1
- package/dist-types/lib/user-facing/components/switch/props.d.ts +0 -1
- package/dist-types/lib/user-facing/components/table/column-properties-panel.d.ts +14 -9
- 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 +25 -22
- package/dist-types/lib/user-facing/components/table/props.d.ts +26 -24
- 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 +0 -1
- package/dist-types/lib/user-facing/components/table/types.d.ts +7 -13
- package/dist-types/lib/user-facing/components/text/index.d.ts +0 -1
- package/dist-types/lib/user-facing/components/text/props.d.ts +0 -1
- package/dist-types/lib/user-facing/global-functions.d.ts +2 -1
- 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/layout-section.d.ts +11 -13
- package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +2 -1
- package/dist-types/lib/user-facing/sb-event-flow.d.ts +3 -3
- package/dist-types/lib/user-facing/themes/constants.d.ts +1 -0
- package/dist-types/lib/user-facing/utils/notification.d.ts +17 -0
- package/package.json +4 -3
- package/dist/icons-BrNMuu_I.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const SbTable: import("react").FC<import("../../properties-panel/props-builder.js").ExternalProps<{
|
|
2
2
|
general: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
3
|
-
|
|
3
|
+
header: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
4
4
|
tableData: import("../../properties-panel/props-builder.js").Prop<import("./types.js").UnknownRow[], false>;
|
|
5
5
|
columns: import("../../properties-panel/props-builder.js").RecordProp<{
|
|
6
6
|
general: import("../../properties-panel/props-builder.js").Section<(Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & ({
|
|
@@ -8,24 +8,23 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
|
|
|
8
8
|
} & (Omit<{
|
|
9
9
|
columnType: import("../../properties-panel/props-builder.js").Prop<import("./types.js").ColumnType, true>;
|
|
10
10
|
}, "columnType"> & ({
|
|
11
|
-
|
|
11
|
+
displayedValue: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
12
|
+
columnType: import("../../properties-panel/props-builder.js").Prop<undefined, false>;
|
|
13
|
+
} | {
|
|
12
14
|
displayedValue: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
13
15
|
columnType: import("../../properties-panel/props-builder.js").Prop<"text", true>;
|
|
14
16
|
} | {
|
|
15
|
-
computedValue: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
16
17
|
notation: import("../../properties-panel/props-builder.js").Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false>;
|
|
17
18
|
minimumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
18
19
|
maximumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
19
20
|
columnType: import("../../properties-panel/props-builder.js").Prop<"number", true>;
|
|
20
21
|
} | {
|
|
21
|
-
computedValue: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
22
22
|
notation: import("../../properties-panel/props-builder.js").Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false>;
|
|
23
23
|
minimumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
24
24
|
maximumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
25
25
|
currency: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
26
26
|
columnType: import("../../properties-panel/props-builder.js").Prop<"currency", true>;
|
|
27
27
|
} | {
|
|
28
|
-
computedValue: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
29
28
|
minimumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
30
29
|
maximumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
31
30
|
columnType: import("../../properties-panel/props-builder.js").Prop<"percentage", true>;
|
|
@@ -33,11 +32,10 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
|
|
|
33
32
|
openImageUrl: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
34
33
|
columnType: import("../../properties-panel/props-builder.js").Prop<"image", true>;
|
|
35
34
|
} | {
|
|
36
|
-
computedValue: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
37
35
|
columnType: import("../../properties-panel/props-builder.js").Prop<"video", true>;
|
|
38
36
|
} | {
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
inputFormat: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
38
|
+
outputFormat: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
41
39
|
manageTimezone: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
42
40
|
valueTimezone: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
43
41
|
displayTimezone: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
@@ -52,13 +50,11 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
|
|
|
52
50
|
openInNewTab: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
53
51
|
columnType: import("../../properties-panel/props-builder.js").Prop<"link", true>;
|
|
54
52
|
} | {
|
|
55
|
-
computedValue: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
56
53
|
columnType: import("../../properties-panel/props-builder.js").Prop<"boolean", true>;
|
|
57
54
|
} | {
|
|
58
55
|
computedValue: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
59
56
|
columnType: import("../../properties-panel/props-builder.js").Prop<"tags", true>;
|
|
60
57
|
} | {
|
|
61
|
-
computedValue: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
62
58
|
displayedValue: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
63
59
|
columnType: import("../../properties-panel/props-builder.js").Prop<"email", true>;
|
|
64
60
|
})))) & {
|
|
@@ -70,6 +66,15 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
|
|
|
70
66
|
} & (Omit<{
|
|
71
67
|
columnType: import("../../properties-panel/props-builder.js").Prop<import("./types.js").ColumnType, false>;
|
|
72
68
|
}, "columnType"> & ({
|
|
69
|
+
horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "left" | "right", false>;
|
|
70
|
+
verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "bottom" | "top", false>;
|
|
71
|
+
"cellProps.textStyle": import("../../properties-panel/props-builder.js").Prop<any, false>;
|
|
72
|
+
cellBackground: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
73
|
+
textWrap: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
74
|
+
cellIcon: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
75
|
+
cellIconPosition: import("../../properties-panel/props-builder.js").Prop<import("../../icons/constants.js").IconPosition, false>;
|
|
76
|
+
columnType: import("../../properties-panel/props-builder.js").Prop<undefined, false>;
|
|
77
|
+
} | {
|
|
73
78
|
horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "left" | "right", false>;
|
|
74
79
|
verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "bottom" | "top", false>;
|
|
75
80
|
"cellProps.textStyle": import("../../properties-panel/props-builder.js").Prop<any, false>;
|
|
@@ -187,7 +192,6 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
|
|
|
187
192
|
margin: import("../../properties-panel/props-builder.js").Prop<unknown, true>;
|
|
188
193
|
} & {
|
|
189
194
|
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
190
|
-
collapseWhenInvisible: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
191
195
|
}>;
|
|
192
196
|
interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
193
197
|
isFilterable: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
@@ -195,10 +199,10 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
|
|
|
195
199
|
multiRowSelection: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
196
200
|
isSearchable: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
197
201
|
isDownloadable: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
198
|
-
|
|
199
|
-
configuredPageSize: import("../../properties-panel/props-builder.js").Prop<
|
|
202
|
+
paginationType: import("../../properties-panel/props-builder.js").Prop<import("./types.js").PaginationType, true>;
|
|
203
|
+
configuredPageSize: import("../../properties-panel/props-builder.js").Prop<any, false>;
|
|
200
204
|
defaultSort: import("../../properties-panel/props-builder.js").CompositeProp<{
|
|
201
|
-
column: import("../../properties-panel/props-builder.js").Prop<string,
|
|
205
|
+
column: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
202
206
|
asc: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
203
207
|
}>;
|
|
204
208
|
defaultSearchText: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
@@ -212,7 +216,7 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
|
|
|
212
216
|
"cellProps.textStyle": import("../../properties-panel/props-builder.js").Prop<any, false>;
|
|
213
217
|
backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
214
218
|
selectedRowBackgroundColor: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
215
|
-
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder,
|
|
219
|
+
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
|
|
216
220
|
borderRadius: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
217
221
|
compactMode: import("../../properties-panel/props-builder.js").Prop<import("./types.js").CompactMode, false>;
|
|
218
222
|
maxLinesPerRow: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
@@ -221,7 +225,7 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
|
|
|
221
225
|
collapseWhenHidden: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
222
226
|
"searchProps.textStyle": import("../../properties-panel/props-builder.js").Prop<any, false>;
|
|
223
227
|
"searchProps.backgroundColor": import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
224
|
-
"searchProps.border": import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder,
|
|
228
|
+
"searchProps.border": import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
|
|
225
229
|
"searchProps.borderRadius": import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
226
230
|
}>;
|
|
227
231
|
events: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
@@ -237,19 +241,18 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
|
|
|
237
241
|
selectedRow: import("../../properties-panel/props-builder.js").Prop<any, true>;
|
|
238
242
|
selectedRowSchema: import("../../properties-panel/props-builder.js").Prop<any, true>;
|
|
239
243
|
selectedRows: import("../../properties-panel/props-builder.js").Prop<any, true>;
|
|
240
|
-
pageSize: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
241
244
|
filteredTableData: import("../../properties-panel/props-builder.js").Prop<any[], true>;
|
|
242
245
|
filteredOrderMap: import("../../properties-panel/props-builder.js").Prop<number[], true>;
|
|
243
246
|
}>;
|
|
244
247
|
meta: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
245
|
-
selectedRowIndex: import("../../properties-panel/props-builder.js").Prop<number,
|
|
248
|
+
selectedRowIndex: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
246
249
|
selectedRowIndices: import("../../properties-panel/props-builder.js").Prop<any, false>;
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
filters: import("../../properties-panel/props-builder.js").Prop<any, false>;
|
|
250
|
+
sortedColumn: import("../../properties-panel/props-builder.js").Prop<any, true>;
|
|
251
|
+
searchText: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
252
|
+
filters: import("../../properties-panel/props-builder.js").Prop<any, true>;
|
|
251
253
|
hiddenColumns: import("../../properties-panel/props-builder.js").Prop<any, false>;
|
|
252
254
|
columnFreezes: import("../../properties-panel/props-builder.js").Prop<any, false>;
|
|
253
255
|
tagsColorAssignment: import("../../properties-panel/props-builder.js").Prop<any, false>;
|
|
256
|
+
pageNo: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
254
257
|
}>;
|
|
255
258
|
}>>;
|
|
@@ -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,11 +35,10 @@ 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>;
|
|
@@ -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
|
})))) & {
|
|
@@ -74,6 +69,15 @@ export declare const propertiesDefinition: {
|
|
|
74
69
|
} & (Omit<{
|
|
75
70
|
columnType: Prop<import("./types.js").ColumnType, false>;
|
|
76
71
|
}, "columnType"> & ({
|
|
72
|
+
horizontalAlign: Prop<"center" | "left" | "right", false>;
|
|
73
|
+
verticalAlign: Prop<"center" | "bottom" | "top", false>;
|
|
74
|
+
"cellProps.textStyle": Prop<any, false>;
|
|
75
|
+
cellBackground: Prop<string, false>;
|
|
76
|
+
textWrap: Prop<boolean, false>;
|
|
77
|
+
cellIcon: Prop<string, false>;
|
|
78
|
+
cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, false>;
|
|
79
|
+
columnType: Prop<undefined, false>;
|
|
80
|
+
} | {
|
|
77
81
|
horizontalAlign: Prop<"center" | "left" | "right", false>;
|
|
78
82
|
verticalAlign: Prop<"center" | "bottom" | "top", false>;
|
|
79
83
|
"cellProps.textStyle": Prop<any, false>;
|
|
@@ -191,7 +195,6 @@ export declare const propertiesDefinition: {
|
|
|
191
195
|
margin: Prop<unknown, true>;
|
|
192
196
|
} & {
|
|
193
197
|
isVisible: Prop<boolean, true>;
|
|
194
|
-
collapseWhenInvisible: Prop<boolean, false>;
|
|
195
198
|
}>;
|
|
196
199
|
interaction: Section<Record<string, Prop<any, any>> & {
|
|
197
200
|
isFilterable: Prop<boolean, true>;
|
|
@@ -199,10 +202,10 @@ export declare const propertiesDefinition: {
|
|
|
199
202
|
multiRowSelection: Prop<boolean, true>;
|
|
200
203
|
isSearchable: Prop<boolean, true>;
|
|
201
204
|
isDownloadable: Prop<boolean, true>;
|
|
202
|
-
|
|
203
|
-
configuredPageSize: Prop<
|
|
205
|
+
paginationType: Prop<PaginationType, true>;
|
|
206
|
+
configuredPageSize: Prop<any, false>;
|
|
204
207
|
defaultSort: import("../../properties-panel/props-builder.js").CompositeProp<{
|
|
205
|
-
column: Prop<string,
|
|
208
|
+
column: Prop<string, false>;
|
|
206
209
|
asc: Prop<boolean, true>;
|
|
207
210
|
}>;
|
|
208
211
|
defaultSearchText: Prop<string, false>;
|
|
@@ -216,7 +219,7 @@ export declare const propertiesDefinition: {
|
|
|
216
219
|
"cellProps.textStyle": Prop<any, false>;
|
|
217
220
|
backgroundColor: Prop<string, false>;
|
|
218
221
|
selectedRowBackgroundColor: Prop<string, false>;
|
|
219
|
-
border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder,
|
|
222
|
+
border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
|
|
220
223
|
borderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
221
224
|
compactMode: Prop<CompactMode, false>;
|
|
222
225
|
maxLinesPerRow: Prop<number, false>;
|
|
@@ -225,7 +228,7 @@ export declare const propertiesDefinition: {
|
|
|
225
228
|
collapseWhenHidden: Prop<boolean, false>;
|
|
226
229
|
"searchProps.textStyle": Prop<any, false>;
|
|
227
230
|
"searchProps.backgroundColor": Prop<string, false>;
|
|
228
|
-
"searchProps.border": Prop<import("@superblocksteam/library-shared/types").PerSideBorder,
|
|
231
|
+
"searchProps.border": Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
|
|
229
232
|
"searchProps.borderRadius": Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
230
233
|
}>;
|
|
231
234
|
events: Section<Record<string, Prop<any, any>> & {
|
|
@@ -241,19 +244,18 @@ export declare const propertiesDefinition: {
|
|
|
241
244
|
selectedRow: Prop<any, true>;
|
|
242
245
|
selectedRowSchema: Prop<any, true>;
|
|
243
246
|
selectedRows: Prop<any, true>;
|
|
244
|
-
pageSize: Prop<number, true>;
|
|
245
247
|
filteredTableData: Prop<any[], true>;
|
|
246
248
|
filteredOrderMap: Prop<number[], true>;
|
|
247
249
|
}>;
|
|
248
250
|
meta: Section<Record<string, Prop<any, any>> & {
|
|
249
|
-
selectedRowIndex: Prop<number,
|
|
251
|
+
selectedRowIndex: Prop<number, true>;
|
|
250
252
|
selectedRowIndices: Prop<any, false>;
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
filters: Prop<any, false>;
|
|
253
|
+
sortedColumn: Prop<any, true>;
|
|
254
|
+
searchText: Prop<string, true>;
|
|
255
|
+
filters: Prop<any, true>;
|
|
255
256
|
hiddenColumns: Prop<any, false>;
|
|
256
257
|
columnFreezes: Prop<any, false>;
|
|
257
258
|
tagsColorAssignment: Prop<any, false>;
|
|
259
|
+
pageNo: Prop<number, true>;
|
|
258
260
|
}>;
|
|
259
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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -184,7 +180,6 @@ export interface TableStyles {
|
|
|
184
180
|
horizontalAlign?: CellAlignment;
|
|
185
181
|
verticalAlign?: VerticalAlignment;
|
|
186
182
|
}
|
|
187
|
-
export type Pagination = keyof typeof PaginationTypes;
|
|
188
183
|
type CellAlignment = keyof typeof CellAlignmentTypes;
|
|
189
184
|
type VerticalAlignment = keyof typeof VerticalAlignmentTypes;
|
|
190
185
|
type TextSize = keyof typeof TextSizes;
|
|
@@ -304,8 +299,8 @@ export interface ColumnProperties extends ColumnEditConfigs, ColumnPropertiesFor
|
|
|
304
299
|
imageSize?: ImageSize;
|
|
305
300
|
imageBorderRadius?: Dim<DimModes>;
|
|
306
301
|
openImageUrl?: boolean;
|
|
307
|
-
outputFormat?: string
|
|
308
|
-
inputFormat?: string
|
|
302
|
+
outputFormat?: string;
|
|
303
|
+
inputFormat?: string;
|
|
309
304
|
}
|
|
310
305
|
export type EditProps = ColumnEditConfigs & {
|
|
311
306
|
handleEditStart: () => void;
|
|
@@ -366,7 +361,7 @@ type ColumnEditConfigs = {
|
|
|
366
361
|
export type UnknownRow = Record<string, unknown>;
|
|
367
362
|
export type UnknownRows = Array<UnknownRow>;
|
|
368
363
|
export interface TableSortColumn {
|
|
369
|
-
column
|
|
364
|
+
column?: string;
|
|
370
365
|
asc: boolean;
|
|
371
366
|
}
|
|
372
367
|
export interface TagsColorAssignment {
|
|
@@ -377,11 +372,10 @@ export interface TableWidgetProps extends TableFunctions {
|
|
|
377
372
|
sourceId: string;
|
|
378
373
|
widgetName: string;
|
|
379
374
|
isLoading: boolean;
|
|
380
|
-
defaultSearchText: string;
|
|
381
375
|
searchPlaceholder: string;
|
|
382
376
|
pageSize: number;
|
|
383
377
|
configuredPageSize?: number;
|
|
384
|
-
|
|
378
|
+
paginationType: PaginationType;
|
|
385
379
|
multiRowSelection?: boolean;
|
|
386
380
|
columnOrder?: string[];
|
|
387
381
|
columnSizeMap?: {
|
|
@@ -393,9 +387,8 @@ export interface TableWidgetProps extends TableFunctions {
|
|
|
393
387
|
isDownloadable: boolean;
|
|
394
388
|
isFilterable: boolean;
|
|
395
389
|
showColumnBorders: boolean;
|
|
396
|
-
defaultFilters: string;
|
|
397
390
|
isSearchable: boolean;
|
|
398
|
-
|
|
391
|
+
header: string;
|
|
399
392
|
compactMode: CompactMode;
|
|
400
393
|
enableRowDeletion: boolean;
|
|
401
394
|
enableRowInsertion: boolean;
|
|
@@ -427,6 +420,7 @@ export interface TableWidgetProps extends TableFunctions {
|
|
|
427
420
|
theme: UserAccessibleTheme;
|
|
428
421
|
border: PerSideBorder;
|
|
429
422
|
disableNudge: (disable: boolean) => void;
|
|
423
|
+
disableDrag: (disable: boolean) => void;
|
|
430
424
|
filteredTableData?: UnknownRows;
|
|
431
425
|
filteredOrderMap?: Array<number>;
|
|
432
426
|
editedRows?: {
|
|
@@ -44,7 +44,6 @@ export declare const SbText: import("react").FC<import("../../properties-panel/p
|
|
|
44
44
|
margin: import("../../properties-panel/props-builder.js").Prop<unknown, true>;
|
|
45
45
|
} & {
|
|
46
46
|
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
47
|
-
collapseWhenInvisible: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
48
47
|
} & {
|
|
49
48
|
shouldScroll: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
50
49
|
}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type NotificationPosition, type NotificationType } from "./utils/notification.jsx";
|
|
1
2
|
export declare enum Types {
|
|
2
3
|
STRING = "STRING",
|
|
3
4
|
NUMBER = "NUMBER",
|
|
@@ -19,5 +20,5 @@ export declare function copyToClipboard(text: string, options?: {
|
|
|
19
20
|
export declare function navigateTo(urlOrRoute: string, queryParams?: Record<string, any>, target?: string): boolean;
|
|
20
21
|
export declare function setQueryParams(queryParams?: Record<string, any>, preserveExistingQueryParams?: boolean): boolean;
|
|
21
22
|
export declare function download(data: any, fileName?: string, fileType?: string): void;
|
|
22
|
-
export declare function showAlert(
|
|
23
|
+
export declare function showAlert(message: string, style: NotificationType, durationSeconds?: number, alertPosition?: NotificationPosition): void;
|
|
23
24
|
export declare function logoutIntegrations(): void;
|
|
@@ -19,4 +19,5 @@ export declare const textStyleProp: ({ baseProp, propertiesPanel, }?: {
|
|
|
19
19
|
baseProp?: ReturnType<typeof createTextStyleCompositeBase>;
|
|
20
20
|
propertiesPanel?: Omit<Partial<PropertiesPanelDisplay<TextStyleWithVariant, "TEXT_STYLE">>, "controlType">;
|
|
21
21
|
}) => Prop<TextStyleWithVariant>;
|
|
22
|
+
export declare const colorProp: (schema: Omit<Partial<PropertiesPanelDisplay<string, "COLOR_PICKER">>, "controlType">) => Prop<string, false>;
|
|
22
23
|
export declare const labelTextStyle: () => Prop<TextStyleWithVariant, true>;
|
|
@@ -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>;
|
|
@@ -45,7 +45,6 @@ export declare const shouldScrollContents: (defaultValue?: boolean) => {
|
|
|
45
45
|
};
|
|
46
46
|
export declare const visible: () => {
|
|
47
47
|
isVisible: Prop<boolean, true>;
|
|
48
|
-
collapseWhenInvisible: Prop<boolean, false>;
|
|
49
48
|
};
|
|
50
49
|
export declare const spacing: (options?: {
|
|
51
50
|
default?: Dim<"px">;
|
|
@@ -60,9 +59,9 @@ export declare const padding: (options?: {
|
|
|
60
59
|
export declare const margin: () => {
|
|
61
60
|
margin: Prop<unknown, true>;
|
|
62
61
|
};
|
|
63
|
-
export declare const getAlignmentProps: () => {
|
|
64
|
-
verticalAlign: Prop<VerticalAlignment
|
|
65
|
-
horizontalAlign: Prop<HorizontalAlignment
|
|
62
|
+
export declare const getAlignmentProps: <LayoutType extends "vertical" | "horizontal">() => {
|
|
63
|
+
verticalAlign: Prop<VerticalAlignment<LayoutType>, true>;
|
|
64
|
+
horizontalAlign: Prop<HorizontalAlignment<LayoutType>, true>;
|
|
66
65
|
};
|
|
67
66
|
export declare const containerLayout: () => import("../props-builder.js").UnionProp<{
|
|
68
67
|
layout: Prop<ContainerLayout, true>;
|
|
@@ -72,12 +71,12 @@ export declare const containerLayout: () => import("../props-builder.js").UnionP
|
|
|
72
71
|
readonly rows: Prop<number, false>;
|
|
73
72
|
readonly rowSize: Prop<number, false>;
|
|
74
73
|
}, {
|
|
75
|
-
readonly verticalAlign: Prop<
|
|
76
|
-
readonly horizontalAlign: Prop<
|
|
74
|
+
readonly verticalAlign: Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true>;
|
|
75
|
+
readonly horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
77
76
|
readonly layout: Prop<"vertical", true>;
|
|
78
77
|
}, {
|
|
79
|
-
readonly verticalAlign: Prop<
|
|
80
|
-
readonly horizontalAlign: Prop<
|
|
78
|
+
readonly verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
79
|
+
readonly horizontalAlign: Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
|
|
81
80
|
readonly layout: Prop<"horizontal", true>;
|
|
82
81
|
}], ({
|
|
83
82
|
layout: Prop<ContainerLayout, true>;
|
|
@@ -89,14 +88,14 @@ export declare const containerLayout: () => import("../props-builder.js").UnionP
|
|
|
89
88
|
}) | ({
|
|
90
89
|
layout: Prop<ContainerLayout, true>;
|
|
91
90
|
} & {
|
|
92
|
-
readonly verticalAlign: Prop<
|
|
93
|
-
readonly horizontalAlign: Prop<
|
|
91
|
+
readonly verticalAlign: Prop<"center" | "space-around" | "space-between" | "bottom" | "top", true>;
|
|
92
|
+
readonly horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
94
93
|
readonly layout: Prop<"vertical", true>;
|
|
95
94
|
}) | ({
|
|
96
95
|
layout: Prop<ContainerLayout, true>;
|
|
97
96
|
} & {
|
|
98
|
-
readonly verticalAlign: Prop<
|
|
99
|
-
readonly horizontalAlign: Prop<
|
|
97
|
+
readonly verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
98
|
+
readonly horizontalAlign: Prop<"center" | "space-around" | "space-between" | "left" | "right", true>;
|
|
100
99
|
readonly layout: Prop<"horizontal", true>;
|
|
101
100
|
})>;
|
|
102
101
|
export declare const basicLayout: () => Section<Record<string, Prop<any, any>> & {
|
|
@@ -110,5 +109,4 @@ export declare const basicLayout: () => Section<Record<string, Prop<any, any>> &
|
|
|
110
109
|
margin: Prop<unknown, true>;
|
|
111
110
|
} & {
|
|
112
111
|
isVisible: Prop<boolean, true>;
|
|
113
|
-
collapseWhenInvisible: Prop<boolean, false>;
|
|
114
112
|
}>;
|
|
@@ -141,6 +141,7 @@ declare class Prop<Type extends DataType, _HasDefault extends boolean = false> {
|
|
|
141
141
|
*/
|
|
142
142
|
protected relations: Relation[][];
|
|
143
143
|
protected constructor(typeString: DataTypeString, defaultValidator?: ValidateFn<Type | undefined>);
|
|
144
|
+
static unset(): Prop<undefined>;
|
|
144
145
|
static string<T extends string>(): Prop<T>;
|
|
145
146
|
static number<T extends number>(): Prop<T>;
|
|
146
147
|
static boolean<T extends boolean>(): Prop<T>;
|
|
@@ -205,7 +206,7 @@ declare class Prop<Type extends DataType, _HasDefault extends boolean = false> {
|
|
|
205
206
|
setName(name: string): this;
|
|
206
207
|
onEdit(callback: SideEffectCallback): this;
|
|
207
208
|
onEvaluate(callback: SideEffectCallback): this;
|
|
208
|
-
propertiesPanel<CT extends ControlType>(schema: Omit<Partial<PropertiesPanelDisplay<Type, CT>>, "defaultValue">): this;
|
|
209
|
+
propertiesPanel<CT extends ControlType>(schema: Omit<Partial<PropertiesPanelDisplay<Type, CT>>, "defaultValue" | "isTriggerProperty">): this;
|
|
209
210
|
build(): ManagedProp<Type>;
|
|
210
211
|
toDefinition(entity?: Entity, scopedState?: ScopedState): WidgetPropertyDefinition<DataType> | undefined;
|
|
211
212
|
getRelations(): Relation[][];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ScopedState, ValueInputProp } from "../internal-details/lib/evaluator/base-entity-manager.js";
|
|
2
2
|
import type { SelectedWidgetProps, StepDef } from "../sb-trigger.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { NotificationPosition, NotificationType } from "./utils/notification.jsx";
|
|
4
4
|
import type { ISbEventFlow, WithBindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
5
5
|
declare class SbEventFlow implements ISbEventFlow<StepDef, ScopedState, ValueInputProp> {
|
|
6
6
|
steps: StepDef[];
|
|
@@ -41,8 +41,8 @@ declare class SbEventFlow implements ISbEventFlow<StepDef, ScopedState, ValueInp
|
|
|
41
41
|
setStateVar(stateVar: WithBindingIdentifier, value: ValueInputProp): this;
|
|
42
42
|
static setComponentProperty(widget: SelectedWidgetProps, propertyName: string, value: ValueInputProp): SbEventFlow;
|
|
43
43
|
setComponentProperty(widget: SelectedWidgetProps, propertyName: string, value: ValueInputProp): this;
|
|
44
|
-
static showAlert(message: ValueInputProp<string>, alertType:
|
|
45
|
-
showAlert(message: ValueInputProp<string>, alertType:
|
|
44
|
+
static showAlert(message: ValueInputProp<string>, alertType: NotificationType, alertDuration?: number, alertPosition?: NotificationPosition): SbEventFlow;
|
|
45
|
+
showAlert(message: ValueInputProp<string>, alertType: NotificationType, alertDuration?: number, alertPosition?: NotificationPosition): this;
|
|
46
46
|
static setProfile(profileId: string, profileAction: "set" | "unset"): SbEventFlow;
|
|
47
47
|
setProfile(profileId: string, profileAction: "set" | "unset"): this;
|
|
48
48
|
static triggerEvent(eventName: string, eventData: Record<string, string>): SbEventFlow;
|
|
@@ -5,6 +5,7 @@ export declare const LIGHT_APP_BG: "#F9FAFB";
|
|
|
5
5
|
export declare const DARK_APP_BG = "#131516";
|
|
6
6
|
export declare const noBorder: (theme: UserAccessibleTheme) => Border;
|
|
7
7
|
export declare const noBorderOject: (theme: UserAccessibleTheme) => PerSideBorder;
|
|
8
|
+
export declare const onePixelTransparentBorderObject: () => PerSideBorder;
|
|
8
9
|
export declare const EMPTY_RADIUS: PerCornerBorderRadius;
|
|
9
10
|
export declare const DEFAULT_SYSTEM_RADIUS: PerCornerBorderRadius;
|
|
10
11
|
export declare const defaultContainerBorderObject: (theme: UserAccessibleTheme) => PerSideBorder;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type NotificationPosition = "bottomRight" | "bottomLeft" | "topRight" | "topLeft" | "top" | "bottom";
|
|
3
|
+
export type NotificationType = "info" | "success" | "warning" | "error";
|
|
4
|
+
type NotificationConfig = {
|
|
5
|
+
key?: string;
|
|
6
|
+
message: JSX.Element | string;
|
|
7
|
+
description?: JSX.Element | string;
|
|
8
|
+
duration?: number;
|
|
9
|
+
placement?: NotificationPosition;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
dataTest?: string;
|
|
12
|
+
type: NotificationType;
|
|
13
|
+
};
|
|
14
|
+
export declare function cleanNotification(): void;
|
|
15
|
+
export declare function closeNotification(key: string): void;
|
|
16
|
+
export declare function sendNotification({ message, description, duration, key, placement, style, dataTest, type, }: NotificationConfig): void;
|
|
17
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superblocksteam/library",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.41",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -26,14 +26,15 @@
|
|
|
26
26
|
"@dnd-kit/modifiers": "^9.0.0",
|
|
27
27
|
"@mobx-devtools/tools": "^0.0.4",
|
|
28
28
|
"@oddbird/css-anchor-positioning": "^0.4.0",
|
|
29
|
+
"@opentelemetry/api": "^1.9.0",
|
|
29
30
|
"@popperjs/core": "^2.11.7",
|
|
30
31
|
"@radix-ui/colors": "^3.0.0",
|
|
31
32
|
"@radix-ui/react-context-menu": "^2.2.2",
|
|
32
33
|
"@react-hook/resize-observer": "1.2.6",
|
|
33
34
|
"@superblocksteam/fast-deep-equal": "3.1.4",
|
|
34
35
|
"@superblocksteam/iso-currency": "2.0.0",
|
|
35
|
-
"@superblocksteam/library-shared": "2.0.0-next.
|
|
36
|
-
"@superblocksteam/shared": "0.
|
|
36
|
+
"@superblocksteam/library-shared": "2.0.0-next.41",
|
|
37
|
+
"@superblocksteam/shared": "0.9137.0",
|
|
37
38
|
"antd": "4.24.15",
|
|
38
39
|
"apca-w3": "^0.1.9",
|
|
39
40
|
"clsx": "^2.1.1",
|