@superblocksteam/library 2.0.6 → 2.0.7
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-CROgh4Wr.js → allPaths-Boby_CDT.js} +2 -2
- package/dist/{allPaths-CROgh4Wr.js.map → allPaths-Boby_CDT.js.map} +1 -1
- package/dist/{allPaths-Va1k8Bn4.js → allPaths-d63_pjlB.js} +2 -2
- package/dist/{allPaths-Va1k8Bn4.js.map → allPaths-d63_pjlB.js.map} +1 -1
- package/dist/{allPathsLoader-BdHvMdcd.js → allPathsLoader-CmUnKzK9.js} +3 -3
- package/dist/{allPathsLoader-BdHvMdcd.js.map → allPathsLoader-CmUnKzK9.js.map} +1 -1
- package/dist/{allPathsLoader-BJthmVkF.js → allPathsLoader-DyTMsYjm.js} +3 -3
- package/dist/{allPathsLoader-BJthmVkF.js.map → allPathsLoader-DyTMsYjm.js.map} +1 -1
- package/dist/{devtools-consolidated-Ck9KuyGf.js → devtools-consolidated-B3U5EpYG.js} +2 -2
- package/dist/{devtools-consolidated-Ck9KuyGf.js.map → devtools-consolidated-B3U5EpYG.js.map} +1 -1
- package/dist/{icons-NrNO8p_u.js → icons-lSlfQ50w.js} +10 -14
- package/dist/icons-lSlfQ50w.js.map +1 -0
- package/dist/{index-CJuRwhWz.js → index-NrZGBHks.js} +19419 -17119
- package/dist/{index-CJuRwhWz.js.map → index-NrZGBHks.js.map} +1 -1
- package/dist/index.js +150 -149
- package/dist/{splitPathsBySizeLoader-3mcg6Jfx.js → splitPathsBySizeLoader-B6CeEPjz.js} +2 -2
- package/dist/{splitPathsBySizeLoader-3mcg6Jfx.js.map → splitPathsBySizeLoader-B6CeEPjz.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-BFbna0L2.js → splitPathsBySizeLoader-mTPqVWRR.js} +2 -2
- package/dist/{splitPathsBySizeLoader-BFbna0L2.js.map → splitPathsBySizeLoader-mTPqVWRR.js.map} +1 -1
- package/dist-types/edit-mode/create-component.d.ts +1 -1
- package/dist-types/edit-mode/dnd/utils.d.ts +4 -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 +22 -22
- package/dist-types/edit-mode/features/ui-store.d.ts +1 -1
- package/dist-types/edit-mode/iframe-wrappers.d.ts +1 -0
- package/dist-types/edit-mode/source-update-api.d.ts +5 -0
- package/dist-types/edit-mode/superblocks-editor-bridge.d.ts +7 -1
- package/dist-types/edit-mode/vite.d.ts +5 -0
- package/dist-types/internal-testing/components/slideout.d.ts +3 -0
- package/dist-types/lib/index.d.ts +1 -0
- package/dist-types/lib/internal-details/actions-context.d.ts +1 -1
- package/dist-types/lib/internal-details/entities-state.d.ts +2 -1
- package/dist-types/lib/internal-details/is-sb-component.d.ts +5 -1
- package/dist-types/lib/internal-details/lib/evaluator/base-entity-manager.d.ts +16 -27
- package/dist-types/lib/internal-details/lib/evaluator/binding-strings/transform-bindings.d.ts +1 -1
- package/dist-types/lib/internal-details/lib/evaluator/compute-engines.d.ts +3 -2
- package/dist-types/lib/internal-details/lib/evaluator/create-global-object.d.ts +1 -1
- package/dist-types/lib/internal-details/lib/evaluator/create-scope-proxy.d.ts +3 -2
- package/dist-types/lib/internal-details/lib/evaluator/deep-observe.d.ts +1 -2
- package/dist-types/lib/internal-details/lib/evaluator/entity-manager.d.ts +8 -7
- package/dist-types/lib/internal-details/lib/evaluator/lazy-function.d.ts +2 -1
- package/dist-types/lib/internal-details/lib/evaluator/pretty-print-function.d.ts +2 -2
- package/dist-types/lib/internal-details/lib/evaluator/sanitize-object.d.ts +6 -0
- package/dist-types/lib/internal-details/lib/evaluator/suspense-helpers.d.ts +8 -0
- package/dist-types/lib/internal-details/lib/evaluator/to-executables-or-values.d.ts +2 -1
- package/dist-types/lib/internal-details/lib/evaluator/use-shallow-mobx-observer.d.ts +1 -1
- package/dist-types/lib/internal-details/lib/features/component-registry.d.ts +16 -1
- package/dist-types/lib/internal-details/lib/root-store.d.ts +2 -0
- package/dist-types/lib/internal-details/lib/types.d.ts +34 -1
- package/dist-types/lib/internal-details/location-store.d.ts +18 -0
- package/dist-types/lib/internal-details/scope/global.d.ts +1 -1
- package/dist-types/lib/internal-details/scope/types.d.ts +2 -2
- package/dist-types/lib/triggers/base.d.ts +1 -2
- package/dist-types/lib/triggers/implementations/apis/cancel-apis.d.ts +1 -8
- package/dist-types/lib/triggers/implementations/apis/run-apis.d.ts +3 -21
- package/dist-types/lib/triggers/implementations/components/control-modal.d.ts +3 -9
- package/dist-types/lib/triggers/implementations/components/control-slideout.d.ts +5 -10
- package/dist-types/lib/triggers/implementations/components/reset-component.d.ts +2 -9
- package/dist-types/lib/triggers/implementations/components/set-component-property.d.ts +2 -9
- package/dist-types/lib/triggers/implementations/navigate/navigate-to-app.d.ts +1 -13
- package/dist-types/lib/triggers/implementations/navigate/navigate-to-route.d.ts +1 -12
- package/dist-types/lib/triggers/implementations/navigate/navigate-to.d.ts +1 -9
- package/dist-types/lib/triggers/implementations/navigate/set-query-params.d.ts +2 -8
- package/dist-types/lib/triggers/implementations/run-js.d.ts +1 -8
- package/dist-types/lib/triggers/implementations/set-profile.d.ts +2 -7
- package/dist-types/lib/triggers/implementations/show-alert.d.ts +3 -12
- package/dist-types/lib/triggers/implementations/state/reset-state-var.d.ts +3 -9
- package/dist-types/lib/triggers/implementations/state/set-state-var.d.ts +4 -11
- package/dist-types/lib/triggers/implementations/timers/control-timer.d.ts +3 -9
- package/dist-types/lib/triggers/implementations/trigger-event.d.ts +1 -7
- package/dist-types/lib/triggers/registry.d.ts +4 -175
- package/dist-types/lib/triggers/run-event-handlers.d.ts +2 -2
- package/dist-types/lib/user-facing/build-manifest.d.ts +2 -0
- package/dist-types/lib/user-facing/component-base/sb-component.d.ts +5 -1
- package/dist-types/lib/user-facing/components/button/index.d.ts +26 -26
- package/dist-types/lib/user-facing/components/button/props.d.ts +26 -26
- package/dist-types/lib/user-facing/components/checkbox/index.d.ts +31 -31
- package/dist-types/lib/user-facing/components/checkbox/props.d.ts +31 -31
- package/dist-types/lib/user-facing/components/column/index.d.ts +19 -19
- package/dist-types/lib/user-facing/components/column/props.d.ts +19 -19
- package/dist-types/lib/user-facing/components/container/index.d.ts +21 -21
- package/dist-types/lib/user-facing/components/container/props.d.ts +21 -21
- package/dist-types/lib/user-facing/components/custom/register-custom-component.d.ts +14 -11
- package/dist-types/lib/user-facing/components/date-picker/index.d.ts +48 -48
- package/dist-types/lib/user-facing/components/date-picker/props.d.ts +48 -48
- package/dist-types/lib/user-facing/components/dropdown/index.d.ts +54 -54
- package/dist-types/lib/user-facing/components/dropdown/props.d.ts +54 -54
- package/dist-types/lib/user-facing/components/dropdown/types.d.ts +1 -2
- package/dist-types/lib/user-facing/components/grid/index.d.ts +20 -18
- package/dist-types/lib/user-facing/components/icon/index.d.ts +11 -13
- package/dist-types/lib/user-facing/components/icon/props.d.ts +11 -13
- package/dist-types/lib/user-facing/components/image/index.d.ts +20 -20
- package/dist-types/lib/user-facing/components/image/props.d.ts +23 -23
- package/dist-types/lib/user-facing/components/input/index.d.ts +63 -63
- package/dist-types/lib/user-facing/components/input/input-component.d.ts +1 -0
- package/dist-types/lib/user-facing/components/input/props.d.ts +63 -63
- package/dist-types/lib/user-facing/components/key-value/properties-props.d.ts +21 -21
- package/dist-types/lib/user-facing/components/key-value/props.d.ts +27 -27
- package/dist-types/lib/user-facing/components/modal/index.d.ts +27 -31
- package/dist-types/lib/user-facing/components/modal/props.d.ts +27 -27
- package/dist-types/lib/user-facing/components/page/index.d.ts +13 -13
- package/dist-types/lib/user-facing/components/page/props.d.ts +13 -13
- package/dist-types/lib/user-facing/components/section/index.d.ts +16 -16
- package/dist-types/lib/user-facing/components/section/props.d.ts +16 -16
- package/dist-types/lib/user-facing/components/slideout/constants.d.ts +10 -0
- package/dist-types/lib/user-facing/components/slideout/index.d.ts +41 -1
- package/dist-types/lib/user-facing/components/slideout/props.d.ts +39 -19
- package/dist-types/lib/user-facing/components/slideout/slideout-component.d.ts +31 -0
- package/dist-types/lib/user-facing/components/stack/index.d.ts +38 -38
- package/dist-types/lib/user-facing/components/switch/index.d.ts +32 -32
- package/dist-types/lib/user-facing/components/switch/props.d.ts +32 -32
- package/dist-types/lib/user-facing/components/table/column-properties-panel.d.ts +262 -161
- package/dist-types/lib/user-facing/components/table/components/table-header.d.ts +1 -0
- package/dist-types/lib/user-facing/components/table/index.d.ts +305 -204
- package/dist-types/lib/user-facing/components/table/props.d.ts +305 -204
- package/dist-types/lib/user-facing/components/table/table-component.d.ts +1 -0
- package/dist-types/lib/user-facing/components/table/table-utilities.d.ts +7 -10
- package/dist-types/lib/user-facing/components/table/table-widget.d.ts +8 -6
- package/dist-types/lib/user-facing/components/table/types.d.ts +34 -32
- package/dist-types/lib/user-facing/components/text/index.d.ts +35 -35
- package/dist-types/lib/user-facing/components/text/props.d.ts +35 -35
- package/dist-types/lib/user-facing/constants.d.ts +1 -1
- package/dist-types/lib/user-facing/entities/api/props.d.ts +20 -11
- package/dist-types/lib/user-facing/entities/api/suspensible-api.d.ts +20 -0
- package/dist-types/lib/user-facing/entities/timer/props.d.ts +12 -12
- package/dist-types/lib/user-facing/entities/variable/props.d.ts +7 -7
- package/dist-types/lib/user-facing/global-functions.d.ts +2 -1
- package/dist-types/lib/user-facing/hooks/use-dialog-editing.d.ts +14 -0
- package/dist-types/lib/user-facing/internal-index.d.ts +1 -1
- package/dist-types/lib/user-facing/layers.d.ts +1 -2
- package/dist-types/lib/user-facing/properties-panel/create-managed-props-list.d.ts +4 -0
- package/dist-types/lib/user-facing/properties-panel/mixins/appearance-properties.d.ts +13 -13
- package/dist-types/lib/user-facing/properties-panel/mixins/appearance.d.ts +2 -2
- package/dist-types/lib/user-facing/properties-panel/mixins/form-inputs-properties.d.ts +10 -10
- package/dist-types/lib/user-facing/properties-panel/mixins/layout-section.d.ts +46 -46
- package/dist-types/lib/user-facing/properties-panel/mixins/loading.d.ts +1 -1
- package/dist-types/lib/user-facing/properties-panel/properties-panel-definition.d.ts +1 -2
- package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +32 -13
- package/dist-types/lib/user-facing/properties-panel/validators.d.ts +1 -1
- package/dist-types/lib/user-facing/sb-event-flow.d.ts +6 -8
- package/dist-types/lib/user-facing/sb-provider.d.ts +1 -2
- package/dist-types/lib/user-facing/state/create-bindable-entity-proxy.d.ts +1 -2
- package/dist-types/lib/user-facing/utils/notification.d.ts +1 -2
- package/package.json +4 -3
- package/dist/icons-NrNO8p_u.js.map +0 -1
- package/dist-types/lib/sb-trigger.d.ts +0 -48
- package/dist-types/lib/user-facing/components/grid/utils.d.ts +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { HorizontalAlignment, VerticalAlignment } from "./types.js";
|
|
3
|
-
import type { ColumnProperties, EditProps, SingleCellProperties, TagDisplayConfig,
|
|
3
|
+
import type { ColumnProperties, EditProps, SingleCellProperties, TagDisplayConfig, RowDensity, BooleanStyleFalse, UnknownRow, ContextualColumnProperty } from "./types.js";
|
|
4
4
|
import type { IconPosition } from "../../icons/constants.js";
|
|
5
5
|
import type { ButtonVariant } from "../button/props.js";
|
|
6
6
|
import type { Dim } from "@superblocksteam/library-shared";
|
|
@@ -12,8 +12,7 @@ interface TableTagsProps {
|
|
|
12
12
|
isHidden: boolean;
|
|
13
13
|
cellProperties: SingleCellProperties;
|
|
14
14
|
tagValues: unknown[];
|
|
15
|
-
tagsColorAssignment?:
|
|
16
|
-
tagsCustomColorAssignment?: Record<string, TagDisplayConfig>;
|
|
15
|
+
tagsColorAssignment?: Record<string, TagDisplayConfig>;
|
|
17
16
|
rowDensity: RowDensity;
|
|
18
17
|
handleCellFocus?: () => void;
|
|
19
18
|
maxWidth?: number;
|
|
@@ -22,8 +21,7 @@ interface TableTagsProps {
|
|
|
22
21
|
export type TableCellProps = SingleCellProperties & {
|
|
23
22
|
isHidden: boolean;
|
|
24
23
|
cellProperties: SingleCellProperties;
|
|
25
|
-
tagsColorAssignment?:
|
|
26
|
-
tagsCustomColorAssignment?: Record<string, TagDisplayConfig>;
|
|
24
|
+
tagsColorAssignment?: Record<string, TagDisplayConfig>;
|
|
27
25
|
booleanStyleFalse?: BooleanStyleFalse;
|
|
28
26
|
rowDensity: RowDensity;
|
|
29
27
|
isFocused: boolean;
|
|
@@ -34,8 +32,7 @@ interface CellPosition {
|
|
|
34
32
|
originalRowIndex: number;
|
|
35
33
|
columnId: string;
|
|
36
34
|
}
|
|
37
|
-
export declare const
|
|
38
|
-
export declare const TagsCell: ({ isHidden, cellProperties, tagValues, tagsColorAssignment, tagsCustomColorAssignment, rowDensity, handleCellFocus, maxWidth, maxLinesPerRow, theme, }: TableTagsProps) => React.JSX.Element;
|
|
35
|
+
export declare const TagsCell: ({ isHidden, cellProperties, tagValues, tagsColorAssignment, rowDensity, handleCellFocus, maxWidth, maxLinesPerRow, theme, }: TableTagsProps) => React.JSX.Element;
|
|
39
36
|
interface ColumnAction {
|
|
40
37
|
label: string;
|
|
41
38
|
id: string;
|
|
@@ -68,9 +65,9 @@ export declare const EditableCell: (props: {
|
|
|
68
65
|
maxLinesPerRow?: number;
|
|
69
66
|
theme: UserAccessibleTheme;
|
|
70
67
|
}) => React.JSX.Element;
|
|
71
|
-
export declare function getCellProperties(tableCellTextStyle: TextStyleWithVariant | undefined, columnProperties: ColumnProperties,
|
|
72
|
-
export declare function getPropertyValue(value:
|
|
73
|
-
export declare function getFirstPropertyValue(value:
|
|
68
|
+
export declare function getCellProperties(tableCellTextStyle: TextStyleWithVariant | undefined, columnProperties: ColumnProperties, currentRow?: UnknownRow): SingleCellProperties;
|
|
69
|
+
export declare function getPropertyValue<T>(value: ContextualColumnProperty<T>, currentRow?: UnknownRow): T | undefined;
|
|
70
|
+
export declare function getFirstPropertyValue<T>(value: ContextualColumnProperty<T>): T;
|
|
74
71
|
export declare const renderCell: ({ value, columnType, editInputType, cellProps, defaultValue, maxLinesPerRow, tableCellTextStyle, typographies, theme, }: {
|
|
75
72
|
value: any;
|
|
76
73
|
columnType: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { TableManager } from "./table-manager.js";
|
|
3
3
|
import type { InsertRowOptions } from "./constants.js";
|
|
4
|
-
import type { ColumnFilter, ColumnProperties, ReactTableColumnProps, TableWidgetProps } from "./types.js";
|
|
4
|
+
import type { ColumnFilter, ColumnProperties, ReactTableColumnProps, TableWidgetProps, TagDisplayConfig } from "./types.js";
|
|
5
5
|
interface TableWidgetState {
|
|
6
6
|
isSaving: boolean;
|
|
7
7
|
}
|
|
@@ -24,6 +24,7 @@ export declare class TableWidget extends React.Component<TableWidgetProps, Table
|
|
|
24
24
|
columnId: string;
|
|
25
25
|
}[];
|
|
26
26
|
eventListenerController: AbortController | undefined;
|
|
27
|
+
cachedTagColorAssignment: Record<string, Record<string, TagDisplayConfig>> | undefined;
|
|
27
28
|
componentDidMount(): void;
|
|
28
29
|
addEventListeners(): void;
|
|
29
30
|
componentWillUnmount(): void;
|
|
@@ -37,6 +38,10 @@ export declare class TableWidget extends React.Component<TableWidgetProps, Table
|
|
|
37
38
|
previousColumns: ReactTableColumnProps[];
|
|
38
39
|
handleTableButtonClick: (columnId: string, onComplete: () => void) => void;
|
|
39
40
|
getReactTableColumns(): ReactTableColumnProps[];
|
|
41
|
+
columnPropertyFunctionMap: WeakMap<WeakKey, any>;
|
|
42
|
+
functionCounter: number;
|
|
43
|
+
getColumnPropertiesString: (columnProperties: ColumnProperties) => string;
|
|
44
|
+
createTableCell(columnProperties: ColumnProperties, isHidden: boolean): (props: any) => React.JSX.Element;
|
|
40
45
|
static transformData: (tableData: Array<Record<string, unknown>>, filteredOrderMap: Array<number>, columns: ReactTableColumnProps[], editOverrides: Record<number, Record<string, {
|
|
41
46
|
value: unknown;
|
|
42
47
|
validationErrors?: Array<string>;
|
|
@@ -57,7 +62,7 @@ export declare class TableWidget extends React.Component<TableWidgetProps, Table
|
|
|
57
62
|
getCurrentRowIndex: (originalIndex: number) => number;
|
|
58
63
|
getIsRowEdited: (rowIndex: number, isOriginalIndex?: boolean) => boolean;
|
|
59
64
|
getIsRowInserted: (rowIndex: number, isOriginalIndex?: boolean) => boolean;
|
|
60
|
-
getCellBackground: (currentRowIndex: number, columnId: string) =>
|
|
65
|
+
getCellBackground: (currentRowIndex: number, columnId: string) => string | undefined;
|
|
61
66
|
getIsLoading: () => boolean;
|
|
62
67
|
getDropdownOptionsLoading: () => boolean;
|
|
63
68
|
render(): React.JSX.Element;
|
|
@@ -67,7 +72,7 @@ export declare class TableWidget extends React.Component<TableWidgetProps, Table
|
|
|
67
72
|
[key: string]: number;
|
|
68
73
|
}) => void;
|
|
69
74
|
handleSearchTable: (searchKey: any) => void;
|
|
70
|
-
assignTagColors(tableData
|
|
75
|
+
assignTagColors(tableData?: Array<Record<string, unknown>>, columns?: Record<string, ColumnProperties>): void;
|
|
71
76
|
selectRows: (rows?: "ALL" | "NONE") => void;
|
|
72
77
|
handleRowSelect: (index: number, shiftKey?: boolean) => void;
|
|
73
78
|
getRowContext: (idx?: number) => {
|
|
@@ -75,9 +80,6 @@ export declare class TableWidget extends React.Component<TableWidgetProps, Table
|
|
|
75
80
|
[key: string]: any;
|
|
76
81
|
};
|
|
77
82
|
rowIndex: number | undefined;
|
|
78
|
-
currentRow: {
|
|
79
|
-
[key: string]: any;
|
|
80
|
-
};
|
|
81
83
|
};
|
|
82
84
|
handleRowClick: (_rowData: Record<string, unknown>, index: number) => void;
|
|
83
85
|
updatePageNumber: (pageNo: number) => void;
|
|
@@ -107,7 +107,6 @@ export type TableInserts = {
|
|
|
107
107
|
export type RowContext = {
|
|
108
108
|
row: undefined | Record<string, unknown>;
|
|
109
109
|
rowIndex: undefined | number;
|
|
110
|
-
currentRow: undefined | Record<string, unknown>;
|
|
111
110
|
};
|
|
112
111
|
export type ColumnContext = {
|
|
113
112
|
value: any;
|
|
@@ -121,15 +120,14 @@ interface TableFunctions {
|
|
|
121
120
|
selectedRowIndices?: number[];
|
|
122
121
|
selectedRows?: Array<Record<string, unknown>>;
|
|
123
122
|
}, rowContext: RowContext, triggerEventHandlers: boolean) => void;
|
|
124
|
-
setPageNo: (value: number,
|
|
123
|
+
setPageNo: (value: number, triggerEventHandlers?: boolean) => void;
|
|
125
124
|
setTableFilters: (columnId: string, filter: ColumnFilter, rowContext: RowContext) => void;
|
|
126
125
|
setColumnOrder: (value: string[]) => void;
|
|
127
126
|
setSortedColumn: (value: undefined | TableSortColumn) => void;
|
|
128
127
|
setColumnSizeMap: (value: {
|
|
129
128
|
[key: string]: number;
|
|
130
129
|
}) => void;
|
|
131
|
-
setSearchText: (value: string
|
|
132
|
-
updateTagColorAssignment: (value: TagsColorAssignment) => void;
|
|
130
|
+
setSearchText: (value: string) => void;
|
|
133
131
|
onRowClicked: (context: RowContext, onComplete?: () => void) => void;
|
|
134
132
|
selectAllRows: (rowIndices: number[], rows: Array<Record<string, unknown>>, rowContext: RowContext) => void;
|
|
135
133
|
deselectAllRows: (rowContext: RowContext) => void;
|
|
@@ -237,6 +235,9 @@ export type ColumnPropertyFunctions = {
|
|
|
237
235
|
onDateSelected?: () => void;
|
|
238
236
|
onCheckChange?: () => void;
|
|
239
237
|
};
|
|
238
|
+
export type ContextualColumnProperty<T> = T | ((params: {
|
|
239
|
+
currentRow: UnknownRow;
|
|
240
|
+
}) => T);
|
|
240
241
|
export interface ColumnProperties extends ColumnEditConfigs, ColumnPropertiesForEditing, ColumnPropertyFunctions {
|
|
241
242
|
id: string;
|
|
242
243
|
label: string;
|
|
@@ -246,41 +247,41 @@ export interface ColumnProperties extends ColumnEditConfigs, ColumnPropertiesFor
|
|
|
246
247
|
isVisible: boolean;
|
|
247
248
|
index: number;
|
|
248
249
|
width: number;
|
|
249
|
-
cellBackground?: string
|
|
250
|
-
horizontalAlign?: HorizontalAlignment
|
|
251
|
-
verticalAlign?: VerticalAlignment
|
|
252
|
-
cellProps?: {
|
|
250
|
+
cellBackground?: ContextualColumnProperty<string>;
|
|
251
|
+
horizontalAlign?: ContextualColumnProperty<HorizontalAlignment>;
|
|
252
|
+
verticalAlign?: ContextualColumnProperty<VerticalAlignment>;
|
|
253
|
+
cellProps?: ContextualColumnProperty<{
|
|
253
254
|
textStyle: TextStyleWithVariant;
|
|
254
|
-
}
|
|
255
|
+
}>;
|
|
255
256
|
enableFilter?: boolean;
|
|
256
257
|
enableSort?: boolean;
|
|
257
258
|
isDerived: boolean;
|
|
258
|
-
computedValue: string
|
|
259
|
-
displayedValue?: string
|
|
260
|
-
buttonLabel?: string
|
|
261
|
-
buttonBackgroundColor?: string
|
|
262
|
-
buttonBorder?: PerSideBorder
|
|
263
|
-
buttonVariant?: string
|
|
264
|
-
buttonTextStyle?: TextStyleWithVariant
|
|
265
|
-
cellIcon?: string
|
|
266
|
-
cellIconPosition?: IconPosition
|
|
267
|
-
buttonIcon?: string
|
|
268
|
-
buttonIconPosition?: IconPosition
|
|
269
|
-
isDisabled?: boolean
|
|
270
|
-
linkUrl?: string
|
|
271
|
-
linkLabel?: string
|
|
272
|
-
openInNewTab?: boolean
|
|
259
|
+
computedValue: ContextualColumnProperty<string>;
|
|
260
|
+
displayedValue?: ContextualColumnProperty<string>;
|
|
261
|
+
buttonLabel?: ContextualColumnProperty<string>;
|
|
262
|
+
buttonBackgroundColor?: ContextualColumnProperty<string>;
|
|
263
|
+
buttonBorder?: ContextualColumnProperty<PerSideBorder>;
|
|
264
|
+
buttonVariant?: ContextualColumnProperty<string>;
|
|
265
|
+
buttonTextStyle?: ContextualColumnProperty<TextStyleWithVariant>;
|
|
266
|
+
cellIcon?: ContextualColumnProperty<string>;
|
|
267
|
+
cellIconPosition?: ContextualColumnProperty<IconPosition>;
|
|
268
|
+
buttonIcon?: ContextualColumnProperty<string>;
|
|
269
|
+
buttonIconPosition?: ContextualColumnProperty<IconPosition>;
|
|
270
|
+
isDisabled?: ContextualColumnProperty<boolean>;
|
|
271
|
+
linkUrl?: ContextualColumnProperty<string>;
|
|
272
|
+
linkLabel?: ContextualColumnProperty<string>;
|
|
273
|
+
openInNewTab?: ContextualColumnProperty<boolean>;
|
|
273
274
|
booleanStyleFalse?: BooleanStyleFalse;
|
|
274
|
-
isEditable?: boolean
|
|
275
|
+
isEditable?: ContextualColumnProperty<boolean>;
|
|
275
276
|
isFrozen?: boolean;
|
|
276
|
-
textWrap?: boolean
|
|
277
|
-
tagsWrap?: boolean
|
|
277
|
+
textWrap?: ContextualColumnProperty<boolean>;
|
|
278
|
+
tagsWrap?: ContextualColumnProperty<boolean>;
|
|
278
279
|
tagDisplayConfig: Record<string, TagDisplayConfig>;
|
|
279
|
-
imageSize?: ImageSize
|
|
280
|
-
imageBorderRadius?: PerCornerBorderRadius
|
|
281
|
-
openImageUrl?: boolean
|
|
282
|
-
outputFormat?: string
|
|
283
|
-
inputFormat?: string
|
|
280
|
+
imageSize?: ContextualColumnProperty<ImageSize>;
|
|
281
|
+
imageBorderRadius?: ContextualColumnProperty<PerCornerBorderRadius>;
|
|
282
|
+
openImageUrl?: ContextualColumnProperty<boolean>;
|
|
283
|
+
outputFormat?: ContextualColumnProperty<string>;
|
|
284
|
+
inputFormat?: ContextualColumnProperty<string>;
|
|
284
285
|
}
|
|
285
286
|
export type EditProps = ColumnEditConfigs & {
|
|
286
287
|
handleEditStart: () => void;
|
|
@@ -382,6 +383,7 @@ export interface TableWidgetProps extends TableFunctions {
|
|
|
382
383
|
columnHeaderProps?: {
|
|
383
384
|
textStyle: TextStyleWithVariant;
|
|
384
385
|
};
|
|
386
|
+
columnHeaderTextWrap?: boolean;
|
|
385
387
|
searchProps?: {
|
|
386
388
|
textStyle?: TextStyleWithVariant;
|
|
387
389
|
border?: PerSideBorder;
|
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
export declare const SbText: import("react").FC<import("../../properties-panel/props-builder.js").ExternalProps<{
|
|
2
|
-
general: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
3
|
-
text: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
4
|
-
textType: import("../../properties-panel/props-builder.js").Prop<"number" | "time" | "text" | "date" | "currency", true>;
|
|
2
|
+
general: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
3
|
+
text: import("../../properties-panel/props-builder.js").Prop<string, false, undefined>;
|
|
4
|
+
textType: import("../../properties-panel/props-builder.js").Prop<"number" | "time" | "text" | "date" | "currency", true, undefined>;
|
|
5
5
|
}>;
|
|
6
|
-
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & ({
|
|
7
|
-
textStyle: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
8
|
-
horizontalAlign: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/props").HorizontalAlign, true>;
|
|
9
|
-
verticalAlign: import("../../properties-panel/props-builder.js").Prop<import("./props.js").VerticalAlign, true>;
|
|
10
|
-
wrapText: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
11
|
-
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
12
|
-
shouldScroll: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
13
|
-
icon: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
14
|
-
iconPosition: import("../../properties-panel/props-builder.js").Prop<import("../../icons/constants.js").IconPosition, true>;
|
|
6
|
+
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & ({
|
|
7
|
+
textStyle: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
|
|
8
|
+
horizontalAlign: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/props").HorizontalAlign, true, undefined>;
|
|
9
|
+
verticalAlign: import("../../properties-panel/props-builder.js").Prop<import("./props.js").VerticalAlign, true, undefined>;
|
|
10
|
+
wrapText: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
11
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
12
|
+
shouldScroll: import("../../properties-panel/props-builder.js").Prop<boolean, false, undefined>;
|
|
13
|
+
icon: import("../../properties-panel/props-builder.js").Prop<string, false, undefined>;
|
|
14
|
+
iconPosition: import("../../properties-panel/props-builder.js").Prop<import("../../icons/constants.js").IconPosition, true, undefined>;
|
|
15
15
|
} & (Omit<{
|
|
16
|
-
textType: import("../../properties-panel/props-builder.js").Prop<"number" | "time" | "text" | "date" | "currency", false>;
|
|
16
|
+
textType: import("../../properties-panel/props-builder.js").Prop<"number" | "time" | "text" | "date" | "currency", false, undefined>;
|
|
17
17
|
}, "textType" | "dateInputFormat" | "dateOutputFormat"> & ({
|
|
18
|
-
minDecimals: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
19
|
-
maxDecimals: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
20
|
-
textType: import("../../properties-panel/props-builder.js").Prop<"currency", true>;
|
|
21
|
-
currency: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
22
|
-
numberFormat: import("../../properties-panel/props-builder.js").Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", true>;
|
|
18
|
+
minDecimals: import("../../properties-panel/props-builder.js").Prop<number, false, undefined>;
|
|
19
|
+
maxDecimals: import("../../properties-panel/props-builder.js").Prop<number, false, undefined>;
|
|
20
|
+
textType: import("../../properties-panel/props-builder.js").Prop<"currency", true, undefined>;
|
|
21
|
+
currency: import("../../properties-panel/props-builder.js").Prop<string, true, undefined>;
|
|
22
|
+
numberFormat: import("../../properties-panel/props-builder.js").Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", true, undefined>;
|
|
23
23
|
dateInputFormat?: undefined;
|
|
24
24
|
dateOutputFormat?: undefined;
|
|
25
25
|
} | {
|
|
26
|
-
minDecimals: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
27
|
-
maxDecimals: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
28
|
-
textType: import("../../properties-panel/props-builder.js").Prop<"number", true>;
|
|
29
|
-
numberFormat: import("../../properties-panel/props-builder.js").Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", true>;
|
|
26
|
+
minDecimals: import("../../properties-panel/props-builder.js").Prop<number, false, undefined>;
|
|
27
|
+
maxDecimals: import("../../properties-panel/props-builder.js").Prop<number, false, undefined>;
|
|
28
|
+
textType: import("../../properties-panel/props-builder.js").Prop<"number", true, undefined>;
|
|
29
|
+
numberFormat: import("../../properties-panel/props-builder.js").Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", true, undefined>;
|
|
30
30
|
dateInputFormat?: undefined;
|
|
31
31
|
dateOutputFormat?: undefined;
|
|
32
32
|
} | {
|
|
33
|
-
textType: import("../../properties-panel/props-builder.js").Prop<"date", true>;
|
|
34
|
-
dateInputFormat: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
35
|
-
dateOutputFormat: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
33
|
+
textType: import("../../properties-panel/props-builder.js").Prop<"date", true, undefined>;
|
|
34
|
+
dateInputFormat: import("../../properties-panel/props-builder.js").Prop<string, false, undefined>;
|
|
35
|
+
dateOutputFormat: import("../../properties-panel/props-builder.js").Prop<string, false, undefined>;
|
|
36
36
|
})))>;
|
|
37
|
-
layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
38
|
-
maxHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
39
|
-
minHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
40
|
-
maxWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
41
|
-
minWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
42
|
-
width: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
43
|
-
height: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
37
|
+
layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any, undefined>> & {
|
|
38
|
+
maxHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
|
|
39
|
+
minHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
|
|
40
|
+
maxWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
|
|
41
|
+
minWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
|
|
42
|
+
width: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined>;
|
|
43
|
+
height: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined>;
|
|
44
44
|
} & {
|
|
45
45
|
margin: import("../../properties-panel/props-builder.js").Prop<{
|
|
46
46
|
top: import("@superblocksteam/library-shared").Dim<"px">;
|
|
47
47
|
bottom: import("@superblocksteam/library-shared").Dim<"px">;
|
|
48
48
|
left: import("@superblocksteam/library-shared").Dim<"px">;
|
|
49
49
|
right: import("@superblocksteam/library-shared").Dim<"px">;
|
|
50
|
-
} | undefined, true>;
|
|
50
|
+
} | undefined, true, undefined>;
|
|
51
51
|
} & {
|
|
52
|
-
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
52
|
+
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true, undefined>;
|
|
53
53
|
} & {
|
|
54
|
-
shouldScroll: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
54
|
+
shouldScroll: import("../../properties-panel/props-builder.js").Prop<boolean, false, undefined>;
|
|
55
55
|
}>;
|
|
56
56
|
}>>;
|
|
@@ -10,58 +10,58 @@ import type { Typographies } from "@superblocksteam/library-shared/types";
|
|
|
10
10
|
export declare const DEFAULT_TEXT_WIDGET_TEXT_STYLE_VARIANT: keyof Typographies;
|
|
11
11
|
export type VerticalAlign = "top" | "center" | "bottom";
|
|
12
12
|
export declare const propertiesDefinition: {
|
|
13
|
-
general: Section<Record<string, Prop<any, any>> & {
|
|
14
|
-
text: Prop<string, false>;
|
|
15
|
-
textType: Prop<"number" | "time" | "text" | "date" | "currency", true>;
|
|
13
|
+
general: Section<Record<string, Prop<any, any, undefined>> & {
|
|
14
|
+
text: Prop<string, false, undefined>;
|
|
15
|
+
textType: Prop<"number" | "time" | "text" | "date" | "currency", true, undefined>;
|
|
16
16
|
}>;
|
|
17
|
-
appearance: Section<Record<string, Prop<any, any>> & ({
|
|
18
|
-
textStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
19
|
-
horizontalAlign: Prop<HorizontalAlign, true>;
|
|
20
|
-
verticalAlign: Prop<VerticalAlign, true>;
|
|
21
|
-
wrapText: Prop<boolean, true>;
|
|
22
|
-
loading: Prop<boolean, true>;
|
|
23
|
-
shouldScroll: Prop<boolean, false>;
|
|
24
|
-
icon: Prop<string, false>;
|
|
25
|
-
iconPosition: Prop<IconPosition, true>;
|
|
17
|
+
appearance: Section<Record<string, Prop<any, any, undefined>> & ({
|
|
18
|
+
textStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true, undefined>;
|
|
19
|
+
horizontalAlign: Prop<HorizontalAlign, true, undefined>;
|
|
20
|
+
verticalAlign: Prop<VerticalAlign, true, undefined>;
|
|
21
|
+
wrapText: Prop<boolean, true, undefined>;
|
|
22
|
+
loading: Prop<boolean, true, undefined>;
|
|
23
|
+
shouldScroll: Prop<boolean, false, undefined>;
|
|
24
|
+
icon: Prop<string, false, undefined>;
|
|
25
|
+
iconPosition: Prop<IconPosition, true, undefined>;
|
|
26
26
|
} & (Omit<{
|
|
27
|
-
textType: Prop<"number" | "time" | "text" | "date" | "currency", false>;
|
|
27
|
+
textType: Prop<"number" | "time" | "text" | "date" | "currency", false, undefined>;
|
|
28
28
|
}, "textType" | "dateInputFormat" | "dateOutputFormat"> & ({
|
|
29
|
-
minDecimals: Prop<number, false>;
|
|
30
|
-
maxDecimals: Prop<number, false>;
|
|
31
|
-
textType: Prop<"currency", true>;
|
|
32
|
-
currency: Prop<string, true>;
|
|
33
|
-
numberFormat: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", true>;
|
|
29
|
+
minDecimals: Prop<number, false, undefined>;
|
|
30
|
+
maxDecimals: Prop<number, false, undefined>;
|
|
31
|
+
textType: Prop<"currency", true, undefined>;
|
|
32
|
+
currency: Prop<string, true, undefined>;
|
|
33
|
+
numberFormat: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", true, undefined>;
|
|
34
34
|
dateInputFormat?: undefined;
|
|
35
35
|
dateOutputFormat?: undefined;
|
|
36
36
|
} | {
|
|
37
|
-
minDecimals: Prop<number, false>;
|
|
38
|
-
maxDecimals: Prop<number, false>;
|
|
39
|
-
textType: Prop<"number", true>;
|
|
40
|
-
numberFormat: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", true>;
|
|
37
|
+
minDecimals: Prop<number, false, undefined>;
|
|
38
|
+
maxDecimals: Prop<number, false, undefined>;
|
|
39
|
+
textType: Prop<"number", true, undefined>;
|
|
40
|
+
numberFormat: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", true, undefined>;
|
|
41
41
|
dateInputFormat?: undefined;
|
|
42
42
|
dateOutputFormat?: undefined;
|
|
43
43
|
} | {
|
|
44
|
-
textType: Prop<"date", true>;
|
|
45
|
-
dateInputFormat: Prop<string, false>;
|
|
46
|
-
dateOutputFormat: Prop<string, false>;
|
|
44
|
+
textType: Prop<"date", true, undefined>;
|
|
45
|
+
dateInputFormat: Prop<string, false, undefined>;
|
|
46
|
+
dateOutputFormat: Prop<string, false, undefined>;
|
|
47
47
|
})))>;
|
|
48
|
-
layout: Section<Record<string, Prop<any, any>> & {
|
|
49
|
-
maxHeight?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
50
|
-
minHeight?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
51
|
-
maxWidth?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
52
|
-
minWidth?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
53
|
-
width: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
54
|
-
height: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
48
|
+
layout: Section<Record<string, Prop<any, any, undefined>> & {
|
|
49
|
+
maxHeight?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
|
|
50
|
+
minHeight?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
|
|
51
|
+
maxWidth?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
|
|
52
|
+
minWidth?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined> | undefined;
|
|
53
|
+
width: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined>;
|
|
54
|
+
height: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false, undefined>;
|
|
55
55
|
} & {
|
|
56
56
|
margin: Prop<{
|
|
57
57
|
top: Dim<"px">;
|
|
58
58
|
bottom: Dim<"px">;
|
|
59
59
|
left: Dim<"px">;
|
|
60
60
|
right: Dim<"px">;
|
|
61
|
-
} | undefined, true>;
|
|
61
|
+
} | undefined, true, undefined>;
|
|
62
62
|
} & {
|
|
63
|
-
isVisible: Prop<boolean, true>;
|
|
63
|
+
isVisible: Prop<boolean, true, undefined>;
|
|
64
64
|
} & {
|
|
65
|
-
shouldScroll: Prop<boolean, false>;
|
|
65
|
+
shouldScroll: Prop<boolean, false, undefined>;
|
|
66
66
|
}>;
|
|
67
67
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const CANVAS_ROOT_ID = "canvas-root";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const PORTAL_ROOT_ID = "portal-root";
|
|
@@ -1,20 +1,29 @@
|
|
|
1
1
|
import { Section, Prop, type InternalProps } from "../../properties-panel/props-builder.js";
|
|
2
|
-
|
|
2
|
+
import { SuspensibleAPI } from "./suspensible-api.js";
|
|
3
|
+
export type ApiEntity = Omit<InternalProps<typeof propertiesDefinition>, "_suspensibleApi"> & {
|
|
3
4
|
run: () => Promise<any>;
|
|
4
5
|
cancel: () => Promise<any>;
|
|
6
|
+
_suspensibleApi: SuspensibleAPI<any, any[]>;
|
|
5
7
|
};
|
|
6
8
|
export declare const propertiesDefinition: {
|
|
7
|
-
events: Section<Record<string, Prop<any, any>> & {
|
|
8
|
-
onSuccess: Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
|
|
9
|
-
onError: Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
|
|
9
|
+
events: Section<Record<string, Prop<any, any, undefined>> & {
|
|
10
|
+
onSuccess: Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
|
|
11
|
+
onError: Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
|
|
10
12
|
}>;
|
|
11
|
-
metadata: Section<Record<string, Prop<any, any>> & {
|
|
12
|
-
response: Prop<any, true>;
|
|
13
|
-
error: Prop<any, true>;
|
|
14
|
-
|
|
13
|
+
metadata: Section<Record<string, Prop<any, any, undefined>> & {
|
|
14
|
+
response: Prop<any, true, undefined>;
|
|
15
|
+
error: Prop<any, true, undefined>;
|
|
16
|
+
isLoading: Prop<boolean, true, undefined>;
|
|
15
17
|
}>;
|
|
16
|
-
functions: Section<Record<string, Prop<any, any>> & {
|
|
17
|
-
run: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[], Promise<any>>, true>;
|
|
18
|
-
cancel: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[], Promise<void>>, true>;
|
|
18
|
+
functions: Section<Record<string, Prop<any, any, undefined>> & {
|
|
19
|
+
run: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[], Promise<any>>, true, undefined>;
|
|
20
|
+
cancel: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[], Promise<void>>, true, undefined>;
|
|
21
|
+
}>;
|
|
22
|
+
internal: Section<Record<string, Prop<any, any, undefined>> & {
|
|
23
|
+
/**
|
|
24
|
+
* Internal SuspensibleAPI instance that manages loading states and React Suspense integration.
|
|
25
|
+
* This property is hidden from the public interface but accessible to other properties.
|
|
26
|
+
*/
|
|
27
|
+
_suspensibleApi: Prop<SuspensibleAPI<any, []>, true, undefined>;
|
|
19
28
|
}>;
|
|
20
29
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare class SuspensibleAPI<TData = any, TArgs extends any[] = any[]> {
|
|
2
|
+
private _response;
|
|
3
|
+
private _error;
|
|
4
|
+
private _promise;
|
|
5
|
+
private _isLoading;
|
|
6
|
+
private _runFn;
|
|
7
|
+
private _cancelFn;
|
|
8
|
+
constructor({ runFn, cancelFn, }: {
|
|
9
|
+
runFn: (...args: TArgs) => Promise<TData>;
|
|
10
|
+
cancelFn: (...args: TArgs) => Promise<void>;
|
|
11
|
+
});
|
|
12
|
+
/**
|
|
13
|
+
* Context-aware response getter that either returns data or throws promises to trigger React Suspense.
|
|
14
|
+
*/
|
|
15
|
+
get response(): TData | undefined;
|
|
16
|
+
get isLoading(): boolean;
|
|
17
|
+
get error(): Error | undefined;
|
|
18
|
+
run(...args: TArgs): Promise<TData>;
|
|
19
|
+
cancel(...args: TArgs): Promise<void>;
|
|
20
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { Section, Prop } from "../../properties-panel/props-builder.js";
|
|
2
2
|
export declare const propertiesDefinition: {
|
|
3
|
-
general: Section<Record<string, Prop<any, any>> & {
|
|
4
|
-
intervalMs: Prop<number, true>;
|
|
5
|
-
startOnPageLoad: Prop<boolean, false>;
|
|
3
|
+
general: Section<Record<string, Prop<any, any, undefined>> & {
|
|
4
|
+
intervalMs: Prop<number, true, undefined>;
|
|
5
|
+
startOnPageLoad: Prop<boolean, false, undefined>;
|
|
6
6
|
}>;
|
|
7
|
-
events: Section<Record<string, Prop<any, any>> & {
|
|
8
|
-
onFire: Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
|
|
7
|
+
events: Section<Record<string, Prop<any, any, undefined>> & {
|
|
8
|
+
onFire: Prop<import("../../sb-event-flow.js").SbEventFlow, false, undefined>;
|
|
9
9
|
}>;
|
|
10
|
-
metadata: Section<Record<string, Prop<any, any>> & {
|
|
11
|
-
timerId: Prop<string, false>;
|
|
12
|
-
isRunning: Prop<boolean, true>;
|
|
10
|
+
metadata: Section<Record<string, Prop<any, any, undefined>> & {
|
|
11
|
+
timerId: Prop<string, false, undefined>;
|
|
12
|
+
isRunning: Prop<boolean, true, undefined>;
|
|
13
13
|
}>;
|
|
14
|
-
functions: Section<Record<string, Prop<any, any>> & {
|
|
15
|
-
start: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[], void>, true>;
|
|
16
|
-
stop: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[], void>, true>;
|
|
17
|
-
toggle: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[], void>, true>;
|
|
14
|
+
functions: Section<Record<string, Prop<any, any, undefined>> & {
|
|
15
|
+
start: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[], void>, true, undefined>;
|
|
16
|
+
stop: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[], void>, true, undefined>;
|
|
17
|
+
toggle: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[], void>, true, undefined>;
|
|
18
18
|
}>;
|
|
19
19
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { SbVariablePersistence } from "@superblocksteam/library-shared/types";
|
|
2
2
|
import { Section, Prop } from "../../properties-panel/props-builder.js";
|
|
3
3
|
export declare const propertiesDefinition: {
|
|
4
|
-
general: Section<Record<string, Prop<any, any>> & {
|
|
5
|
-
defaultValue: Prop<any, false>;
|
|
6
|
-
value: Prop<any, false>;
|
|
7
|
-
persistence: Prop<SbVariablePersistence, true>;
|
|
4
|
+
general: Section<Record<string, Prop<any, any, undefined>> & {
|
|
5
|
+
defaultValue: Prop<any, false, undefined>;
|
|
6
|
+
value: Prop<any, false, undefined>;
|
|
7
|
+
persistence: Prop<SbVariablePersistence, true, undefined>;
|
|
8
8
|
}>;
|
|
9
|
-
functions: Section<Record<string, Prop<any, any>> & {
|
|
10
|
-
set: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[value: any], void>, true>;
|
|
11
|
-
reset: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[], void>, true>;
|
|
9
|
+
functions: Section<Record<string, Prop<any, any, undefined>> & {
|
|
10
|
+
set: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[value: any], void>, true, undefined>;
|
|
11
|
+
reset: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[], void>, true, undefined>;
|
|
12
12
|
}>;
|
|
13
13
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NotificationPosition } from "@superblocksteam/library-shared/types";
|
|
2
|
+
import type { NotificationType } from "@superblocksteam/library-shared/types";
|
|
2
3
|
export declare enum Types {
|
|
3
4
|
STRING = "STRING",
|
|
4
5
|
NUMBER = "NUMBER",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A hook to enable editing dialogs.
|
|
3
|
+
*
|
|
4
|
+
* Dialog: A window overlaid on either the primary window or another dialog window, rendering the content underneath inert.
|
|
5
|
+
* E.g: Modal, Slideout, etc
|
|
6
|
+
*
|
|
7
|
+
* The hook expects an `isOpen` property on the component, but can be customized by passing a `isOpenPropertyName`.
|
|
8
|
+
*/
|
|
9
|
+
import type { SbInstance } from "@superblocksteam/library-shared/types";
|
|
10
|
+
export declare function useDialogEditing(props: {
|
|
11
|
+
isOpen: boolean;
|
|
12
|
+
instanceId: SbInstance;
|
|
13
|
+
isOpenPropertyName?: string;
|
|
14
|
+
}): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { registerSbComponent } from "../internal-details/sb-wrapper.jsx";
|
|
2
2
|
export { useActions } from "../internal-details/actions-context.jsx";
|
|
3
|
-
export type { Entity } from "
|
|
3
|
+
export type { Entity } from "@superblocksteam/library-shared/types";
|
|
4
4
|
export { useScope } from "../internal-details/scope/scope-context.jsx";
|
|
@@ -22,7 +22,6 @@ export declare const Layers: {
|
|
|
22
22
|
selectedRect: Indices;
|
|
23
23
|
focusedRect: Indices;
|
|
24
24
|
namePill: Indices;
|
|
25
|
-
drawer: Indices;
|
|
26
25
|
closeButton: Indices;
|
|
27
26
|
stickySections: Indices;
|
|
28
27
|
scrollbars: Indices;
|
|
@@ -31,7 +30,7 @@ export declare const Layers: {
|
|
|
31
30
|
parentSelectedWrapper: Indices;
|
|
32
31
|
widgetResizer: Indices;
|
|
33
32
|
resizer: Indices;
|
|
34
|
-
|
|
33
|
+
dialog: Indices;
|
|
35
34
|
widgetName: Indices;
|
|
36
35
|
selectionConstraintResize: Indices;
|
|
37
36
|
addSectionButton: Indices;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { Section } from "./props-builder.js";
|
|
2
2
|
import type { ManagedPropsList } from "./props-builder.js";
|
|
3
3
|
export declare const RECORD_PATH_IDENTIFIER = "*";
|
|
4
|
+
export declare function createInternalPropsList(sections: Record<string, Section>, parentPath?: string): Array<{
|
|
5
|
+
path: string;
|
|
6
|
+
factory: () => any;
|
|
7
|
+
}>;
|
|
4
8
|
declare function createManagedPropsList(sections: Record<string, Section>, parentPath?: string): ManagedPropsList;
|
|
5
9
|
export { createManagedPropsList };
|