@superblocksteam/library 2.0.3-next.2 → 2.0.3-next.201
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-suM7y71x.js → allPaths-BTYAJAA3.js} +2 -2
- package/dist/{allPaths-suM7y71x.js.map → allPaths-BTYAJAA3.js.map} +1 -1
- package/dist/{allPaths-DInKfo9f.js → allPaths-k-ermJRk.js} +2 -2
- package/dist/{allPaths-DInKfo9f.js.map → allPaths-k-ermJRk.js.map} +1 -1
- package/dist/{allPathsLoader-Bj9gR6m4.js → allPathsLoader-DGPQhqI0.js} +3 -3
- package/dist/{allPathsLoader-Bj9gR6m4.js.map → allPathsLoader-DGPQhqI0.js.map} +1 -1
- package/dist/{allPathsLoader-C6VX9lZI.js → allPathsLoader-XDG2QDHX.js} +3 -3
- package/dist/{allPathsLoader-C6VX9lZI.js.map → allPathsLoader-XDG2QDHX.js.map} +1 -1
- package/dist/devtools-consolidated-CuKf4Mw6.js +590 -0
- package/dist/devtools-consolidated-CuKf4Mw6.js.map +1 -0
- package/dist/{index-DHOLy0gg.js → index-CFz3UGkJ.js} +1041 -454
- package/dist/{index-DHOLy0gg.js.map → index-CFz3UGkJ.js.map} +1 -1
- package/dist/index.css +172 -1
- package/dist/index.js +149 -149
- package/dist/{splitPathsBySizeLoader-K1ovXYr3.js → splitPathsBySizeLoader-9ypptKho.js} +2 -2
- package/dist/{splitPathsBySizeLoader-K1ovXYr3.js.map → splitPathsBySizeLoader-9ypptKho.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-yyTSdt5z.js → splitPathsBySizeLoader-CW0AvZcf.js} +2 -2
- package/dist/{splitPathsBySizeLoader-yyTSdt5z.js.map → splitPathsBySizeLoader-CW0AvZcf.js.map} +1 -1
- package/dist-types/edit-mode/extended-clickable-area.d.ts +9 -0
- package/dist-types/edit-mode/features/runtime-entities-manager.d.ts +23 -23
- package/dist-types/edit-mode/properties.d.ts +1 -1
- package/dist-types/internal-testing/components/modal.d.ts +3 -1
- package/dist-types/lib/internal-details/lib/devtools/devtools-consolidated.d.ts +5 -0
- package/dist-types/lib/internal-details/lib/devtools/index.d.ts +4 -0
- package/dist-types/lib/internal-details/lib/devtools/serialize-store-data.d.ts +1 -0
- package/dist-types/lib/sb-trigger.d.ts +0 -4
- package/dist-types/lib/triggers/implementations/components/control-modal.d.ts +4 -3
- package/dist-types/lib/triggers/implementations/state/reset-state-var.d.ts +4 -8
- package/dist-types/lib/triggers/implementations/state/set-state-var.d.ts +4 -8
- package/dist-types/lib/triggers/registry.d.ts +6 -14
- package/dist-types/lib/user-facing/components/table/column-properties-panel.d.ts +12 -9
- package/dist-types/lib/user-facing/components/table/derived-properties.d.ts +1 -0
- package/dist-types/lib/user-facing/components/table/index.d.ts +12 -9
- package/dist-types/lib/user-facing/components/table/props.d.ts +12 -9
- package/dist-types/lib/user-facing/sb-event-flow.d.ts +4 -2
- package/dist-types/lib/user-facing/themes/constants.d.ts +7 -2
- package/dist-types/lib/utils/children.d.ts +3 -0
- package/package.json +3 -4
- package/dist-types/lib/internal-details/lib/devtools.d.ts +0 -1
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
2
2
|
import type { BaseStepDef } from "../../../sb-trigger.js";
|
|
3
3
|
import type { ExecutionContext } from "../../base.js";
|
|
4
|
+
import type { WithBindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
4
5
|
export interface ControlModalStep extends BaseStepDef {
|
|
5
6
|
type: typeof TriggerStepType.CONTROL_MODAL;
|
|
6
|
-
name
|
|
7
|
+
name?: string;
|
|
7
8
|
direction: "open" | "close";
|
|
8
9
|
}
|
|
9
10
|
export declare const ControlModalTrigger: {
|
|
10
11
|
type: "controlModal";
|
|
11
12
|
execute(context: ExecutionContext, step: ControlModalStep): Promise<void>;
|
|
12
|
-
create(
|
|
13
|
+
create(modal: WithBindingIdentifier, direction: "open" | "close"): {
|
|
13
14
|
type: "controlModal";
|
|
14
|
-
name: string;
|
|
15
|
+
name: string | undefined;
|
|
15
16
|
direction: "close" | "open";
|
|
16
17
|
};
|
|
17
18
|
};
|
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
import { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
2
|
-
import type { BaseStepDef
|
|
2
|
+
import type { BaseStepDef } from "../../../sb-trigger.js";
|
|
3
3
|
import type { ExecutionContext } from "../../base.js";
|
|
4
4
|
import type { WithBindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
5
5
|
export interface ResetStateVarStep extends BaseStepDef {
|
|
6
6
|
type: typeof TriggerStepType.RESET_STATE_VAR;
|
|
7
|
-
state?:
|
|
7
|
+
state?: WithBindingIdentifier;
|
|
8
8
|
}
|
|
9
9
|
export declare const ResetStateVarTrigger: {
|
|
10
10
|
type: "resetStateVar";
|
|
11
|
-
execute(context: ExecutionContext,
|
|
11
|
+
execute(context: ExecutionContext, step: ResetStateVarStep): Promise<void>;
|
|
12
12
|
create(stateVar?: WithBindingIdentifier): {
|
|
13
13
|
type: "resetStateVar";
|
|
14
|
-
state:
|
|
15
|
-
name: string;
|
|
16
|
-
scopeId: any;
|
|
17
|
-
scope: any;
|
|
18
|
-
} | undefined;
|
|
14
|
+
state: WithBindingIdentifier | undefined;
|
|
19
15
|
};
|
|
20
16
|
};
|
|
@@ -1,23 +1,19 @@
|
|
|
1
1
|
import { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
2
2
|
import type { ValueInputProp } from "../../../internal-details/lib/evaluator/base-entity-manager.js";
|
|
3
|
-
import type { BaseStepDef
|
|
3
|
+
import type { BaseStepDef } from "../../../sb-trigger.js";
|
|
4
4
|
import type { ExecutionContext } from "../../base.js";
|
|
5
5
|
import type { WithBindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
6
6
|
export interface SetStateVarStep extends BaseStepDef {
|
|
7
7
|
type: typeof TriggerStepType.SET_STATE_VAR;
|
|
8
|
-
state?:
|
|
8
|
+
state?: WithBindingIdentifier;
|
|
9
9
|
value?: ValueInputProp;
|
|
10
10
|
}
|
|
11
11
|
export declare const SetStateVarTrigger: {
|
|
12
12
|
type: "setStateVar";
|
|
13
|
-
execute(context: ExecutionContext,
|
|
13
|
+
execute(context: ExecutionContext, step: SetStateVarStep): Promise<void>;
|
|
14
14
|
create(stateVar?: WithBindingIdentifier, value?: ValueInputProp): {
|
|
15
15
|
type: "setStateVar";
|
|
16
|
-
state:
|
|
17
|
-
name: string;
|
|
18
|
-
scopeId: any;
|
|
19
|
-
scope: any;
|
|
20
|
-
} | undefined;
|
|
16
|
+
state: WithBindingIdentifier | undefined;
|
|
21
17
|
value: ValueInputProp;
|
|
22
18
|
};
|
|
23
19
|
};
|
|
@@ -78,9 +78,9 @@ declare const EventRegistry: {
|
|
|
78
78
|
readonly controlModal: {
|
|
79
79
|
type: "controlModal";
|
|
80
80
|
execute(context: import("./base.js").ExecutionContext, step: import("./implementations/components/control-modal.js").ControlModalStep): Promise<void>;
|
|
81
|
-
create(
|
|
81
|
+
create(modal: import("@superblocksteam/library-shared/types").WithBindingIdentifier, direction: "open" | "close"): {
|
|
82
82
|
type: "controlModal";
|
|
83
|
-
name: string;
|
|
83
|
+
name: string | undefined;
|
|
84
84
|
direction: "close" | "open";
|
|
85
85
|
};
|
|
86
86
|
};
|
|
@@ -115,14 +115,10 @@ declare const EventRegistry: {
|
|
|
115
115
|
};
|
|
116
116
|
readonly setStateVar: {
|
|
117
117
|
type: "setStateVar";
|
|
118
|
-
execute(context: import("./base.js").ExecutionContext,
|
|
118
|
+
execute(context: import("./base.js").ExecutionContext, step: import("./implementations/state/set-state-var.js").SetStateVarStep): Promise<void>;
|
|
119
119
|
create(stateVar?: import("@superblocksteam/library-shared/types").WithBindingIdentifier, value?: import("../internal-details/lib/evaluator/base-entity-manager.js").ValueInputProp): {
|
|
120
120
|
type: "setStateVar";
|
|
121
|
-
state:
|
|
122
|
-
name: string;
|
|
123
|
-
scopeId: any;
|
|
124
|
-
scope: any;
|
|
125
|
-
} | undefined;
|
|
121
|
+
state: import("@superblocksteam/library-shared/types").WithBindingIdentifier | undefined;
|
|
126
122
|
value: import("../internal-details/lib/evaluator/base-entity-manager.js").ValueInputProp;
|
|
127
123
|
};
|
|
128
124
|
};
|
|
@@ -138,14 +134,10 @@ declare const EventRegistry: {
|
|
|
138
134
|
};
|
|
139
135
|
readonly resetStateVar: {
|
|
140
136
|
type: "resetStateVar";
|
|
141
|
-
execute(context: import("./base.js").ExecutionContext,
|
|
137
|
+
execute(context: import("./base.js").ExecutionContext, step: import("./implementations/state/reset-state-var.js").ResetStateVarStep): Promise<void>;
|
|
142
138
|
create(stateVar?: import("@superblocksteam/library-shared/types").WithBindingIdentifier): {
|
|
143
139
|
type: "resetStateVar";
|
|
144
|
-
state:
|
|
145
|
-
name: string;
|
|
146
|
-
scopeId: any;
|
|
147
|
-
scope: any;
|
|
148
|
-
} | undefined;
|
|
140
|
+
state: import("@superblocksteam/library-shared/types").WithBindingIdentifier | undefined;
|
|
149
141
|
};
|
|
150
142
|
};
|
|
151
143
|
readonly controlTimer: {
|
|
@@ -9,36 +9,42 @@ export declare const columnPanelConfig: {
|
|
|
9
9
|
columnType: Prop<ColumnType, true>;
|
|
10
10
|
}, "columnType"> & ({
|
|
11
11
|
displayedValue: Prop<string, false>;
|
|
12
|
+
isDerived: Prop<boolean, true>;
|
|
12
13
|
columnType: Prop<undefined, false>;
|
|
13
14
|
} | {
|
|
14
15
|
displayedValue: Prop<string, false>;
|
|
16
|
+
isDerived: Prop<boolean, true>;
|
|
15
17
|
columnType: Prop<"text", true>;
|
|
16
18
|
} | {
|
|
17
19
|
notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false>;
|
|
18
20
|
minimumFractionDigits: Prop<number, false>;
|
|
19
21
|
maximumFractionDigits: Prop<number, false>;
|
|
22
|
+
isDerived: Prop<boolean, true>;
|
|
20
23
|
columnType: Prop<"number", true>;
|
|
21
24
|
} | {
|
|
22
25
|
notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false>;
|
|
23
26
|
minimumFractionDigits: Prop<number, false>;
|
|
24
27
|
maximumFractionDigits: Prop<number, false>;
|
|
25
28
|
currency: Prop<string, true>;
|
|
29
|
+
isDerived: Prop<boolean, true>;
|
|
26
30
|
columnType: Prop<"currency", true>;
|
|
27
31
|
} | {
|
|
28
32
|
minimumFractionDigits: Prop<number, false>;
|
|
29
33
|
maximumFractionDigits: Prop<number, false>;
|
|
34
|
+
isDerived: Prop<boolean, true>;
|
|
30
35
|
columnType: Prop<"percentage", true>;
|
|
31
36
|
} | {
|
|
32
37
|
openImageUrl: Prop<boolean, true>;
|
|
38
|
+
isDerived: Prop<boolean, true>;
|
|
33
39
|
columnType: Prop<"image", true>;
|
|
34
40
|
} | {
|
|
41
|
+
isDerived: Prop<boolean, true>;
|
|
35
42
|
columnType: Prop<"video", true>;
|
|
36
43
|
} | {
|
|
44
|
+
manageTimezone: Prop<boolean, true>;
|
|
37
45
|
inputFormat: Prop<string, false>;
|
|
38
46
|
outputFormat: Prop<string, false>;
|
|
39
|
-
|
|
40
|
-
valueTimezone: Prop<string, false>;
|
|
41
|
-
displayTimezone: Prop<string, false>;
|
|
47
|
+
isDerived: Prop<boolean, true>;
|
|
42
48
|
columnType: Prop<"date", true>;
|
|
43
49
|
} | {
|
|
44
50
|
buttonLabel: Prop<string, true>;
|
|
@@ -48,11 +54,14 @@ export declare const columnPanelConfig: {
|
|
|
48
54
|
linkLabel: Prop<string, false>;
|
|
49
55
|
columnType: Prop<"link", true>;
|
|
50
56
|
} | {
|
|
57
|
+
isDerived: Prop<boolean, true>;
|
|
51
58
|
columnType: Prop<"boolean", true>;
|
|
52
59
|
} | {
|
|
60
|
+
isDerived: Prop<boolean, true>;
|
|
53
61
|
columnType: Prop<"tags", true>;
|
|
54
62
|
} | {
|
|
55
63
|
displayedValue: Prop<string, false>;
|
|
64
|
+
isDerived: Prop<boolean, true>;
|
|
56
65
|
columnType: Prop<"email", true>;
|
|
57
66
|
})))) & {
|
|
58
67
|
isVisible: Prop<boolean, true>;
|
|
@@ -68,8 +77,6 @@ export declare const columnPanelConfig: {
|
|
|
68
77
|
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
69
78
|
cellBackground: Prop<string, true>;
|
|
70
79
|
textWrap: Prop<boolean, false>;
|
|
71
|
-
cellIcon: Prop<string, false>;
|
|
72
|
-
cellIconPosition: Prop<IconPosition, true>;
|
|
73
80
|
columnType: Prop<undefined, false>;
|
|
74
81
|
} | {
|
|
75
82
|
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
@@ -77,8 +84,6 @@ export declare const columnPanelConfig: {
|
|
|
77
84
|
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
78
85
|
cellBackground: Prop<string, true>;
|
|
79
86
|
textWrap: Prop<boolean, false>;
|
|
80
|
-
cellIcon: Prop<string, false>;
|
|
81
|
-
cellIconPosition: Prop<IconPosition, true>;
|
|
82
87
|
columnType: Prop<"text", true>;
|
|
83
88
|
} | {
|
|
84
89
|
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
@@ -159,8 +164,6 @@ export declare const columnPanelConfig: {
|
|
|
159
164
|
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
160
165
|
cellBackground: Prop<string, true>;
|
|
161
166
|
textWrap: Prop<boolean, false>;
|
|
162
|
-
cellIcon: Prop<string, false>;
|
|
163
|
-
cellIconPosition: Prop<IconPosition, true>;
|
|
164
167
|
columnType: Prop<"email", true>;
|
|
165
168
|
})))) & {
|
|
166
169
|
isFrozen: Prop<boolean, false>;
|
|
@@ -10,6 +10,7 @@ export declare function getEditedRows(props: any): {
|
|
|
10
10
|
originalRows: any[];
|
|
11
11
|
};
|
|
12
12
|
export declare function getAllEdits(props: any): any;
|
|
13
|
+
export declare const isDerivedColumn: (tableData: any[], columnId: string) => boolean;
|
|
13
14
|
export declare function getFilteredTableData(props: any): any[];
|
|
14
15
|
export declare function getEditedRowIndices(props: any): {
|
|
15
16
|
deletedRows: {
|
|
@@ -9,36 +9,42 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
|
|
|
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
|
+
isDerived: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
12
13
|
columnType: import("../../properties-panel/props-builder.js").Prop<undefined, false>;
|
|
13
14
|
} | {
|
|
14
15
|
displayedValue: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
16
|
+
isDerived: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
15
17
|
columnType: import("../../properties-panel/props-builder.js").Prop<"text", true>;
|
|
16
18
|
} | {
|
|
17
19
|
notation: import("../../properties-panel/props-builder.js").Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false>;
|
|
18
20
|
minimumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
19
21
|
maximumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
22
|
+
isDerived: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
20
23
|
columnType: import("../../properties-panel/props-builder.js").Prop<"number", true>;
|
|
21
24
|
} | {
|
|
22
25
|
notation: import("../../properties-panel/props-builder.js").Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false>;
|
|
23
26
|
minimumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
24
27
|
maximumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
25
28
|
currency: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
29
|
+
isDerived: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
26
30
|
columnType: import("../../properties-panel/props-builder.js").Prop<"currency", true>;
|
|
27
31
|
} | {
|
|
28
32
|
minimumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
29
33
|
maximumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
34
|
+
isDerived: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
30
35
|
columnType: import("../../properties-panel/props-builder.js").Prop<"percentage", true>;
|
|
31
36
|
} | {
|
|
32
37
|
openImageUrl: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
38
|
+
isDerived: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
33
39
|
columnType: import("../../properties-panel/props-builder.js").Prop<"image", true>;
|
|
34
40
|
} | {
|
|
41
|
+
isDerived: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
35
42
|
columnType: import("../../properties-panel/props-builder.js").Prop<"video", true>;
|
|
36
43
|
} | {
|
|
44
|
+
manageTimezone: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
37
45
|
inputFormat: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
38
46
|
outputFormat: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
39
|
-
|
|
40
|
-
valueTimezone: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
41
|
-
displayTimezone: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
47
|
+
isDerived: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
42
48
|
columnType: import("../../properties-panel/props-builder.js").Prop<"date", true>;
|
|
43
49
|
} | {
|
|
44
50
|
buttonLabel: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
@@ -48,11 +54,14 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
|
|
|
48
54
|
linkLabel: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
49
55
|
columnType: import("../../properties-panel/props-builder.js").Prop<"link", true>;
|
|
50
56
|
} | {
|
|
57
|
+
isDerived: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
51
58
|
columnType: import("../../properties-panel/props-builder.js").Prop<"boolean", true>;
|
|
52
59
|
} | {
|
|
60
|
+
isDerived: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
53
61
|
columnType: import("../../properties-panel/props-builder.js").Prop<"tags", true>;
|
|
54
62
|
} | {
|
|
55
63
|
displayedValue: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
64
|
+
isDerived: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
56
65
|
columnType: import("../../properties-panel/props-builder.js").Prop<"email", true>;
|
|
57
66
|
})))) & {
|
|
58
67
|
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
@@ -68,8 +77,6 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
|
|
|
68
77
|
"cellProps.textStyle": import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
69
78
|
cellBackground: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
70
79
|
textWrap: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
71
|
-
cellIcon: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
72
|
-
cellIconPosition: import("../../properties-panel/props-builder.js").Prop<import("../../icons/constants.js").IconPosition, true>;
|
|
73
80
|
columnType: import("../../properties-panel/props-builder.js").Prop<undefined, false>;
|
|
74
81
|
} | {
|
|
75
82
|
horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "left" | "right", true>;
|
|
@@ -77,8 +84,6 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
|
|
|
77
84
|
"cellProps.textStyle": import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
78
85
|
cellBackground: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
79
86
|
textWrap: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
80
|
-
cellIcon: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
81
|
-
cellIconPosition: import("../../properties-panel/props-builder.js").Prop<import("../../icons/constants.js").IconPosition, true>;
|
|
82
87
|
columnType: import("../../properties-panel/props-builder.js").Prop<"text", true>;
|
|
83
88
|
} | {
|
|
84
89
|
horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "left" | "right", true>;
|
|
@@ -159,8 +164,6 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
|
|
|
159
164
|
"cellProps.textStyle": import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
160
165
|
cellBackground: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
161
166
|
textWrap: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
162
|
-
cellIcon: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
163
|
-
cellIconPosition: import("../../properties-panel/props-builder.js").Prop<import("../../icons/constants.js").IconPosition, true>;
|
|
164
167
|
columnType: import("../../properties-panel/props-builder.js").Prop<"email", true>;
|
|
165
168
|
})))) & {
|
|
166
169
|
isFrozen: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
@@ -12,36 +12,42 @@ export declare const propertiesDefinition: {
|
|
|
12
12
|
columnType: Prop<import("./types.js").ColumnType, true>;
|
|
13
13
|
}, "columnType"> & ({
|
|
14
14
|
displayedValue: Prop<string, false>;
|
|
15
|
+
isDerived: Prop<boolean, true>;
|
|
15
16
|
columnType: Prop<undefined, false>;
|
|
16
17
|
} | {
|
|
17
18
|
displayedValue: Prop<string, false>;
|
|
19
|
+
isDerived: Prop<boolean, true>;
|
|
18
20
|
columnType: Prop<"text", true>;
|
|
19
21
|
} | {
|
|
20
22
|
notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false>;
|
|
21
23
|
minimumFractionDigits: Prop<number, false>;
|
|
22
24
|
maximumFractionDigits: Prop<number, false>;
|
|
25
|
+
isDerived: Prop<boolean, true>;
|
|
23
26
|
columnType: Prop<"number", true>;
|
|
24
27
|
} | {
|
|
25
28
|
notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false>;
|
|
26
29
|
minimumFractionDigits: Prop<number, false>;
|
|
27
30
|
maximumFractionDigits: Prop<number, false>;
|
|
28
31
|
currency: Prop<string, true>;
|
|
32
|
+
isDerived: Prop<boolean, true>;
|
|
29
33
|
columnType: Prop<"currency", true>;
|
|
30
34
|
} | {
|
|
31
35
|
minimumFractionDigits: Prop<number, false>;
|
|
32
36
|
maximumFractionDigits: Prop<number, false>;
|
|
37
|
+
isDerived: Prop<boolean, true>;
|
|
33
38
|
columnType: Prop<"percentage", true>;
|
|
34
39
|
} | {
|
|
35
40
|
openImageUrl: Prop<boolean, true>;
|
|
41
|
+
isDerived: Prop<boolean, true>;
|
|
36
42
|
columnType: Prop<"image", true>;
|
|
37
43
|
} | {
|
|
44
|
+
isDerived: Prop<boolean, true>;
|
|
38
45
|
columnType: Prop<"video", true>;
|
|
39
46
|
} | {
|
|
47
|
+
manageTimezone: Prop<boolean, true>;
|
|
40
48
|
inputFormat: Prop<string, false>;
|
|
41
49
|
outputFormat: Prop<string, false>;
|
|
42
|
-
|
|
43
|
-
valueTimezone: Prop<string, false>;
|
|
44
|
-
displayTimezone: Prop<string, false>;
|
|
50
|
+
isDerived: Prop<boolean, true>;
|
|
45
51
|
columnType: Prop<"date", true>;
|
|
46
52
|
} | {
|
|
47
53
|
buttonLabel: Prop<string, true>;
|
|
@@ -51,11 +57,14 @@ export declare const propertiesDefinition: {
|
|
|
51
57
|
linkLabel: Prop<string, false>;
|
|
52
58
|
columnType: Prop<"link", true>;
|
|
53
59
|
} | {
|
|
60
|
+
isDerived: Prop<boolean, true>;
|
|
54
61
|
columnType: Prop<"boolean", true>;
|
|
55
62
|
} | {
|
|
63
|
+
isDerived: Prop<boolean, true>;
|
|
56
64
|
columnType: Prop<"tags", true>;
|
|
57
65
|
} | {
|
|
58
66
|
displayedValue: Prop<string, false>;
|
|
67
|
+
isDerived: Prop<boolean, true>;
|
|
59
68
|
columnType: Prop<"email", true>;
|
|
60
69
|
})))) & {
|
|
61
70
|
isVisible: Prop<boolean, true>;
|
|
@@ -71,8 +80,6 @@ export declare const propertiesDefinition: {
|
|
|
71
80
|
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
72
81
|
cellBackground: Prop<string, true>;
|
|
73
82
|
textWrap: Prop<boolean, false>;
|
|
74
|
-
cellIcon: Prop<string, false>;
|
|
75
|
-
cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
|
|
76
83
|
columnType: Prop<undefined, false>;
|
|
77
84
|
} | {
|
|
78
85
|
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
@@ -80,8 +87,6 @@ export declare const propertiesDefinition: {
|
|
|
80
87
|
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
81
88
|
cellBackground: Prop<string, true>;
|
|
82
89
|
textWrap: Prop<boolean, false>;
|
|
83
|
-
cellIcon: Prop<string, false>;
|
|
84
|
-
cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
|
|
85
90
|
columnType: Prop<"text", true>;
|
|
86
91
|
} | {
|
|
87
92
|
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
@@ -162,8 +167,6 @@ export declare const propertiesDefinition: {
|
|
|
162
167
|
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
163
168
|
cellBackground: Prop<string, true>;
|
|
164
169
|
textWrap: Prop<boolean, false>;
|
|
165
|
-
cellIcon: Prop<string, false>;
|
|
166
|
-
cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
|
|
167
170
|
columnType: Prop<"email", true>;
|
|
168
171
|
})))) & {
|
|
169
172
|
isFrozen: Prop<boolean, false>;
|
|
@@ -25,8 +25,8 @@ declare class SbEventFlow implements ISbEventFlow<StepDef, ScopedState, ValueInp
|
|
|
25
25
|
setQueryParams(params: Record<string, ValueInputProp<string>>, keepQueryParams?: boolean): this;
|
|
26
26
|
static controlSlideout(slideoutId: string, action: "open" | "close"): SbEventFlow;
|
|
27
27
|
controlSlideout(slideoutId: string, action: "open" | "close"): this;
|
|
28
|
-
static controlModal(
|
|
29
|
-
controlModal(
|
|
28
|
+
static controlModal(modal: WithBindingIdentifier, action: "open" | "close"): SbEventFlow;
|
|
29
|
+
controlModal(modal: WithBindingIdentifier, action: "open" | "close"): this;
|
|
30
30
|
static controlTimer(timerId: string, action: "start" | "stop" | "toggle"): SbEventFlow;
|
|
31
31
|
controlTimer(timerId: string, action: "start" | "stop" | "toggle"): this;
|
|
32
32
|
static runApis(apis: any[], onSuccess?: SbEventFlow, onError?: SbEventFlow): SbEventFlow;
|
|
@@ -47,6 +47,8 @@ declare class SbEventFlow implements ISbEventFlow<StepDef, ScopedState, ValueInp
|
|
|
47
47
|
setProfile(profileId: string, profileAction: "set" | "unset"): this;
|
|
48
48
|
static triggerEvent(eventName: string, eventData: Record<string, string>): SbEventFlow;
|
|
49
49
|
triggerEvent(eventName: string, eventData: Record<string, string>): this;
|
|
50
|
+
static sequence(eventFlows: SbEventFlow[]): SbEventFlow;
|
|
51
|
+
sequence(eventFlows: SbEventFlow[]): this;
|
|
50
52
|
build(): StepDef[];
|
|
51
53
|
}
|
|
52
54
|
export { SbEventFlow };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Dim } from "@superblocksteam/library-shared";
|
|
2
|
-
import type { Border,
|
|
2
|
+
import type { Border, PerCornerBorderRadius, PerSideBorder, Typographies, UserAccessibleTheme, UserDefinedPalette, UserDefinedTheme } from "@superblocksteam/library-shared/types";
|
|
3
3
|
export declare const CURRENT_THEME_VERSION = 5;
|
|
4
4
|
export declare const LIGHT_APP_BG: "#F9FAFB";
|
|
5
5
|
export declare const DARK_APP_BG = "#131516";
|
|
@@ -58,7 +58,6 @@ export declare const BOX_SHADOWS: {
|
|
|
58
58
|
dark: string;
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
|
-
export declare const BUTTON_PADDING: Padding;
|
|
62
61
|
export declare const INPUT_PADDING: {
|
|
63
62
|
left: Dim<"px">;
|
|
64
63
|
right: Dim<"px">;
|
|
@@ -71,6 +70,12 @@ export declare const DROPDOWN_PADDING: {
|
|
|
71
70
|
top: Dim<"px">;
|
|
72
71
|
bottom: Dim<"px">;
|
|
73
72
|
};
|
|
73
|
+
export declare const BUTTON_PADDING: {
|
|
74
|
+
left: Dim<"px">;
|
|
75
|
+
right: Dim<"px">;
|
|
76
|
+
top: Dim<"px">;
|
|
77
|
+
bottom: Dim<"px">;
|
|
78
|
+
};
|
|
74
79
|
export declare const KEY_VALUE_PADDING: {
|
|
75
80
|
left: Dim<"px">;
|
|
76
81
|
right: Dim<"px">;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superblocksteam/library",
|
|
3
|
-
"version": "2.0.3-next.
|
|
3
|
+
"version": "2.0.3-next.201",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
"@blueprintjs/select": "5.3.11",
|
|
25
25
|
"@dnd-kit/core": "^6.3.1",
|
|
26
26
|
"@dnd-kit/modifiers": "^9.0.0",
|
|
27
|
-
"@mobx-devtools/tools": "^0.0.4",
|
|
28
27
|
"@oddbird/css-anchor-positioning": "^0.4.0",
|
|
29
28
|
"@opentelemetry/api": "^1.9.0",
|
|
30
29
|
"@popperjs/core": "^2.11.7",
|
|
@@ -33,7 +32,7 @@
|
|
|
33
32
|
"@react-hook/resize-observer": "1.2.6",
|
|
34
33
|
"@superblocksteam/fast-deep-equal": "3.1.4",
|
|
35
34
|
"@superblocksteam/iso-currency": "2.0.0",
|
|
36
|
-
"@superblocksteam/library-shared": "2.0.3-next.
|
|
35
|
+
"@superblocksteam/library-shared": "2.0.3-next.201",
|
|
37
36
|
"@superblocksteam/shared": "0.9160.0",
|
|
38
37
|
"antd": "4.24.15",
|
|
39
38
|
"apca-w3": "^0.1.9",
|
|
@@ -59,6 +58,7 @@
|
|
|
59
58
|
"normalize.css": "8.0.1",
|
|
60
59
|
"react-dnd": "^16.0.1",
|
|
61
60
|
"react-hotkeys-hook": "3.3.1",
|
|
61
|
+
"react-json-view-lite": "^2.4.1",
|
|
62
62
|
"react-player": "2.3.1",
|
|
63
63
|
"react-router": "^7.0.2",
|
|
64
64
|
"react-svg": "^16.1.29",
|
|
@@ -74,7 +74,6 @@
|
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@eslint/js": "^9.16.0",
|
|
77
|
-
"@mobx-devtools/tools": "^0.0.4",
|
|
78
77
|
"@testing-library/dom": "^10.4.0",
|
|
79
78
|
"@testing-library/react": "^16.0.1",
|
|
80
79
|
"@types/apca-w3": "^0.1.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function registerStores(stores: Record<string, any>): void;
|