@superblocksteam/library 2.0.4 → 2.0.6-next.0
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-B2t0JFsE.js → allPaths-BtaGk7Hl.js} +2 -2
- package/dist/{allPaths-B2t0JFsE.js.map → allPaths-BtaGk7Hl.js.map} +1 -1
- package/dist/{allPaths-Ds8PViwH.js → allPaths-COzTzraD.js} +2 -2
- package/dist/{allPaths-Ds8PViwH.js.map → allPaths-COzTzraD.js.map} +1 -1
- package/dist/{allPathsLoader-BwDYmyS1.js → allPathsLoader-CkqgEhyC.js} +3 -3
- package/dist/{allPathsLoader-BwDYmyS1.js.map → allPathsLoader-CkqgEhyC.js.map} +1 -1
- package/dist/{allPathsLoader-l2CC2ZRN.js → allPathsLoader-CoNAJZeJ.js} +3 -3
- package/dist/{allPathsLoader-l2CC2ZRN.js.map → allPathsLoader-CoNAJZeJ.js.map} +1 -1
- package/dist/devtools-consolidated-CziXG7En.js +590 -0
- package/dist/devtools-consolidated-CziXG7En.js.map +1 -0
- package/dist/{index-DV7VPZc1.js → index-C4PHemM8.js} +1169 -473
- package/dist/{index-DV7VPZc1.js.map → index-C4PHemM8.js.map} +1 -1
- package/dist/index.css +172 -1
- package/dist/index.js +149 -149
- package/dist/{splitPathsBySizeLoader-BsO5Qoxp.js → splitPathsBySizeLoader-BkYpVgsW.js} +2 -2
- package/dist/{splitPathsBySizeLoader-BsO5Qoxp.js.map → splitPathsBySizeLoader-BkYpVgsW.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-CTv2UfGL.js → splitPathsBySizeLoader-DzWbuSYz.js} +2 -2
- package/dist/{splitPathsBySizeLoader-CTv2UfGL.js.map → splitPathsBySizeLoader-DzWbuSYz.js.map} +1 -1
- package/dist-types/edit-mode/extended-clickable-area.d.ts +8 -0
- package/dist-types/edit-mode/features/properties-panel-manager.d.ts +12 -1
- 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/edit-mode/vite.d.ts +5 -0
- 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/internal-details/lib/evaluator/base-entity-manager.d.ts +2 -1
- package/dist-types/lib/internal-details/lib/features/component-registry.d.ts +3 -1
- package/dist-types/lib/internal-details/sb-wrapper.d.ts +1 -0
- package/dist-types/lib/internal-details/scope/global.d.ts +2 -1
- package/dist-types/lib/internal-details/scope/types.d.ts +57 -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/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/types.d.ts +1 -1
- package/dist-types/lib/user-facing/components/grid/index.d.ts +2 -1
- package/dist-types/lib/user-facing/components/page/index.d.ts +3 -0
- package/dist-types/lib/user-facing/components/page/props.d.ts +3 -0
- package/dist-types/lib/user-facing/components/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/components/text/utils.d.ts +2 -1
- 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,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Name } from "../lib/internal-details/lib/evaluator/names.js";
|
|
2
2
|
/**
|
|
3
3
|
* Gets the actual value from a PropertyInfo object.
|
|
4
4
|
* This will parse the value based on the type of property.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { VitePostMessageKind } from "@superblocksteam/library-shared/types";
|
|
2
|
+
import type { VitePostMessage } from "@superblocksteam/library-shared/types";
|
|
3
|
+
export declare function onVitePostMessage<T extends VitePostMessageKind, Message extends Extract<VitePostMessage, {
|
|
4
|
+
kind: T;
|
|
5
|
+
}>>(kind: T, callback: (message: Message) => void): () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function serializeStoreData(stores_: Record<string, any>): Record<string, any>;
|
|
@@ -14,9 +14,10 @@ export type NestedInputProp<T> = T extends object ? {
|
|
|
14
14
|
} : never;
|
|
15
15
|
export type InputProp<T = EntityOutputProp> = SingleInputProp<T> | NestedInputProp<T>;
|
|
16
16
|
export type EntityFunction<ARGS extends any[] = any[], R = EntityOutputProp> = (this: Entity, state: ScopedState, ...args: ARGS) => R;
|
|
17
|
+
export type EntityType = "global" | "theme" | "variable" | "api" | "timer" | (string & {});
|
|
17
18
|
export type Entity = {
|
|
18
19
|
[key: string]: EntityOutputProp;
|
|
19
|
-
type:
|
|
20
|
+
type: EntityType;
|
|
20
21
|
};
|
|
21
22
|
export type ScopeId = string;
|
|
22
23
|
export type ScopedState = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ManagedPropsList } from "../../../user-facing/properties-panel/props-builder.js";
|
|
1
|
+
import type { ManagedPropsList, PropertiesDefinition } from "../../../user-facing/properties-panel/props-builder.js";
|
|
2
2
|
import type { RootStore } from "../root-store.js";
|
|
3
3
|
import type { ComponentRegistryShareState } from "@superblocksteam/library-shared/types";
|
|
4
4
|
import type * as React from "react";
|
|
@@ -6,6 +6,8 @@ export type Type = {
|
|
|
6
6
|
isSb: symbol;
|
|
7
7
|
sbType: string;
|
|
8
8
|
isDroppable?: boolean;
|
|
9
|
+
hasExtendedClickArea?: boolean;
|
|
10
|
+
propertiesDefinition?: PropertiesDefinition;
|
|
9
11
|
} & React.ComponentType<any>;
|
|
10
12
|
export declare class ComponentRegistry implements ComponentRegistryShareState {
|
|
11
13
|
readonly rootStore: RootStore;
|
|
@@ -7,6 +7,7 @@ export type DropTargetProps = {
|
|
|
7
7
|
export declare const registerSbComponent: <PD extends PropertiesDefinition, EP extends ExternalProps<PD> = ExternalProps<PD>, IP extends InternalProps<PD> & DropTargetProps = InternalProps<PD> & DropTargetProps>(type: string, config: {
|
|
8
8
|
container?: boolean;
|
|
9
9
|
customComponent?: boolean;
|
|
10
|
+
hasExtendedClickArea?: boolean;
|
|
10
11
|
propertiesDefinition: PD;
|
|
11
12
|
}, Component: React.FC<IP>) => React.FC<EP>;
|
|
12
13
|
export declare function registerSbEntity<PROPS, PD extends PropertiesDefinition, EP extends ExternalProps<PD> = ExternalProps<PD>>(name: string, config: {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Global as GlobalType } from "./types.js";
|
|
1
2
|
import type { UserAccessibleTheme, Theme as BaseTheme } from "@superblocksteam/library-shared/types";
|
|
2
3
|
export declare const GlobalScope: import("react").FC<import("react").JSX.IntrinsicAttributes & {
|
|
3
4
|
children: React.ReactNode;
|
|
@@ -5,6 +6,6 @@ export declare const GlobalScope: import("react").FC<import("react").JSX.Intrins
|
|
|
5
6
|
export declare const updateGlobalScope: (global: Record<string, unknown>) => void;
|
|
6
7
|
export type AppTheme = BaseTheme;
|
|
7
8
|
export declare const Theme: UserAccessibleTheme;
|
|
8
|
-
export declare const Global:
|
|
9
|
+
export declare const Global: GlobalType;
|
|
9
10
|
export declare const Embed: any;
|
|
10
11
|
export declare const Env: any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { Profile, RouteDef } from "@superblocksteam/shared";
|
|
2
|
+
export declare const AppMode: {
|
|
3
|
+
readonly EDIT: "EDIT";
|
|
4
|
+
readonly PUBLISHED: "PUBLISHED";
|
|
5
|
+
readonly PREVIEW: "PREVIEW";
|
|
6
|
+
};
|
|
7
|
+
export type AppMode = (typeof AppMode)[keyof typeof AppMode];
|
|
8
|
+
export type Global = {
|
|
9
|
+
mode?: AppMode;
|
|
10
|
+
user?: User;
|
|
11
|
+
URL?: UrlState;
|
|
12
|
+
groups?: Group[];
|
|
13
|
+
deployedAt?: string;
|
|
14
|
+
createdAt?: string;
|
|
15
|
+
selectedProfileId?: string;
|
|
16
|
+
profiles?: Profiles;
|
|
17
|
+
routes?: {
|
|
18
|
+
[id: string]: RouteDef;
|
|
19
|
+
};
|
|
20
|
+
currentRoute?: {
|
|
21
|
+
routeDef: RouteDef;
|
|
22
|
+
params: Record<string, string>;
|
|
23
|
+
};
|
|
24
|
+
app?: {
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
type User = {
|
|
30
|
+
name: string;
|
|
31
|
+
email: string;
|
|
32
|
+
id: string;
|
|
33
|
+
groups: Group[];
|
|
34
|
+
username: string;
|
|
35
|
+
metadata: Record<string, unknown>;
|
|
36
|
+
};
|
|
37
|
+
type Group = {
|
|
38
|
+
id: string;
|
|
39
|
+
name: string;
|
|
40
|
+
size: number;
|
|
41
|
+
};
|
|
42
|
+
type UrlState = {
|
|
43
|
+
queryParams: Record<string, string>;
|
|
44
|
+
protocol: string;
|
|
45
|
+
host: string;
|
|
46
|
+
hostname: string;
|
|
47
|
+
port: string;
|
|
48
|
+
pathname: string;
|
|
49
|
+
hash: string;
|
|
50
|
+
fullPath: string;
|
|
51
|
+
};
|
|
52
|
+
type Profiles = {
|
|
53
|
+
available: Profile[];
|
|
54
|
+
selected?: Profile;
|
|
55
|
+
default: Profile;
|
|
56
|
+
};
|
|
57
|
+
export {};
|
|
@@ -2,10 +2,6 @@ import type { ValidStepDef } from "./triggers/registry.js";
|
|
|
2
2
|
import type { TriggerStepType } from "@superblocksteam/library-shared/types";
|
|
3
3
|
type ApplicationScope = "APP" | "PAGE";
|
|
4
4
|
type WidgetTypes = string;
|
|
5
|
-
export type SelectedStateVarProps = {
|
|
6
|
-
name: string;
|
|
7
|
-
scope?: ApplicationScope;
|
|
8
|
-
};
|
|
9
5
|
export type SelectedEventProps = {
|
|
10
6
|
id: string;
|
|
11
7
|
name: string;
|
|
@@ -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: {
|
|
@@ -16,7 +16,7 @@ export declare const SbDatePicker: React.FC<import("../../properties-panel/props
|
|
|
16
16
|
valueTimezone?: undefined;
|
|
17
17
|
displayTimezone?: undefined;
|
|
18
18
|
})))) & {
|
|
19
|
-
|
|
19
|
+
use24HourTime: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
20
20
|
}>;
|
|
21
21
|
layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
22
22
|
padding: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
@@ -18,7 +18,7 @@ export declare const propertiesDefinition: {
|
|
|
18
18
|
valueTimezone?: undefined;
|
|
19
19
|
displayTimezone?: undefined;
|
|
20
20
|
})))) & {
|
|
21
|
-
|
|
21
|
+
use24HourTime: Prop<boolean, true>;
|
|
22
22
|
}>;
|
|
23
23
|
layout: Section<Record<string, Prop<any, any>> & {
|
|
24
24
|
padding: Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
@@ -3,13 +3,14 @@ import React from "react";
|
|
|
3
3
|
import { Prop, Section } from "../../properties-panel/props-builder.js";
|
|
4
4
|
import type { InternalProps } from "../../properties-panel/props-builder.js";
|
|
5
5
|
import type { DimModes } from "@superblocksteam/library-shared";
|
|
6
|
+
import type { WithBindingIdentifier } from "@superblocksteam/library-shared/types";
|
|
6
7
|
export type GridChild = React.ReactElement<{
|
|
7
|
-
name: string;
|
|
8
8
|
marginTop?: Dim<"rows">;
|
|
9
9
|
marginLeft?: Dim<"columns">;
|
|
10
10
|
width?: Dim<"columns">;
|
|
11
11
|
height?: Dim<"rows" | "fit">;
|
|
12
12
|
constraintTop?: string | [string];
|
|
13
|
+
bind?: WithBindingIdentifier;
|
|
13
14
|
}>;
|
|
14
15
|
declare const _propertiesDefinition: {
|
|
15
16
|
general: Section<Record<string, Prop<any, any>> & {
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export declare const SbPage: import("react").FC<import("../../properties-panel/props-builder.js").ExternalProps<{
|
|
2
|
+
contents: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
3
|
+
columns: import("../../properties-panel/props-builder.js").Prop<string[], false>;
|
|
4
|
+
}>;
|
|
2
5
|
layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
3
6
|
maxHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
4
7
|
minHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { Dim } from "@superblocksteam/library-shared";
|
|
2
2
|
import { Prop, Section } from "../../properties-panel/props-builder.js";
|
|
3
3
|
export declare const propertiesDefinition: {
|
|
4
|
+
contents: Section<Record<string, Prop<any, any>> & {
|
|
5
|
+
columns: Prop<string[], false>;
|
|
6
|
+
}>;
|
|
4
7
|
layout: Section<Record<string, Prop<any, any>> & {
|
|
5
8
|
maxHeight?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
6
9
|
minHeight?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
@@ -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>;
|