@superblocksteam/library 2.0.6-next.98 → 2.0.6
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-DV_nqfgu.js → allPaths-CROgh4Wr.js} +2 -2
- package/dist/{allPaths-DV_nqfgu.js.map → allPaths-CROgh4Wr.js.map} +1 -1
- package/dist/{allPaths-Do8W1_hw.js → allPaths-Va1k8Bn4.js} +2 -2
- package/dist/{allPaths-Do8W1_hw.js.map → allPaths-Va1k8Bn4.js.map} +1 -1
- package/dist/{allPathsLoader-DZ4ej0yO.js → allPathsLoader-BJthmVkF.js} +3 -3
- package/dist/{allPathsLoader-BYPNQ715.js.map → allPathsLoader-BJthmVkF.js.map} +1 -1
- package/dist/{allPathsLoader-BYPNQ715.js → allPathsLoader-BdHvMdcd.js} +3 -3
- package/dist/{allPathsLoader-DZ4ej0yO.js.map → allPathsLoader-BdHvMdcd.js.map} +1 -1
- package/dist/{devtools-consolidated-Nb3opUCn.js → devtools-consolidated-Ck9KuyGf.js} +2 -2
- package/dist/{devtools-consolidated-Nb3opUCn.js.map → devtools-consolidated-Ck9KuyGf.js.map} +1 -1
- package/dist/{icons-lSlfQ50w.js → icons-NrNO8p_u.js} +14 -10
- package/dist/icons-NrNO8p_u.js.map +1 -0
- package/dist/{index-3q353Tib.js → index-CJuRwhWz.js} +17025 -19325
- package/dist/{index-3q353Tib.js.map → index-CJuRwhWz.js.map} +1 -1
- package/dist/index.js +149 -150
- package/dist/{splitPathsBySizeLoader-BSp5Jmf7.js → splitPathsBySizeLoader-3mcg6Jfx.js} +2 -2
- package/dist/{splitPathsBySizeLoader-BSp5Jmf7.js.map → splitPathsBySizeLoader-3mcg6Jfx.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-CtV8jbQy.js → splitPathsBySizeLoader-BFbna0L2.js} +2 -2
- package/dist/{splitPathsBySizeLoader-CtV8jbQy.js.map → splitPathsBySizeLoader-BFbna0L2.js.map} +1 -1
- package/dist-types/edit-mode/create-component.d.ts +1 -1
- package/dist-types/edit-mode/dnd/utils.d.ts +0 -4
- package/dist-types/edit-mode/features/properties-panel-manager.d.ts +1 -12
- 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 +0 -1
- package/dist-types/edit-mode/source-update-api.d.ts +0 -5
- package/dist-types/edit-mode/superblocks-editor-bridge.d.ts +1 -7
- package/dist-types/lib/index.d.ts +0 -1
- package/dist-types/lib/internal-details/actions-context.d.ts +1 -1
- package/dist-types/lib/internal-details/entities-state.d.ts +1 -2
- package/dist-types/lib/internal-details/is-sb-component.d.ts +1 -5
- package/dist-types/lib/internal-details/lib/evaluator/base-entity-manager.d.ts +27 -16
- 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 +2 -3
- 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 +2 -3
- package/dist-types/lib/internal-details/lib/evaluator/deep-observe.d.ts +2 -1
- package/dist-types/lib/internal-details/lib/evaluator/entity-manager.d.ts +7 -8
- package/dist-types/lib/internal-details/lib/evaluator/lazy-function.d.ts +1 -2
- package/dist-types/lib/internal-details/lib/evaluator/pretty-print-function.d.ts +2 -2
- package/dist-types/lib/internal-details/lib/evaluator/to-executables-or-values.d.ts +1 -2
- 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 +1 -16
- package/dist-types/lib/internal-details/lib/root-store.d.ts +0 -2
- package/dist-types/lib/internal-details/lib/types.d.ts +1 -34
- 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/sb-trigger.d.ts +48 -0
- package/dist-types/lib/triggers/base.d.ts +2 -1
- package/dist-types/lib/triggers/implementations/apis/cancel-apis.d.ts +8 -1
- package/dist-types/lib/triggers/implementations/apis/run-apis.d.ts +21 -3
- package/dist-types/lib/triggers/implementations/components/control-modal.d.ts +9 -3
- package/dist-types/lib/triggers/implementations/components/control-slideout.d.ts +10 -5
- package/dist-types/lib/triggers/implementations/components/reset-component.d.ts +9 -2
- package/dist-types/lib/triggers/implementations/components/set-component-property.d.ts +9 -2
- package/dist-types/lib/triggers/implementations/navigate/navigate-to-app.d.ts +13 -1
- package/dist-types/lib/triggers/implementations/navigate/navigate-to-route.d.ts +12 -1
- package/dist-types/lib/triggers/implementations/navigate/navigate-to.d.ts +9 -1
- package/dist-types/lib/triggers/implementations/navigate/set-query-params.d.ts +8 -2
- package/dist-types/lib/triggers/implementations/run-js.d.ts +8 -1
- package/dist-types/lib/triggers/implementations/set-profile.d.ts +7 -2
- package/dist-types/lib/triggers/implementations/show-alert.d.ts +12 -3
- package/dist-types/lib/triggers/implementations/state/reset-state-var.d.ts +9 -3
- package/dist-types/lib/triggers/implementations/state/set-state-var.d.ts +11 -4
- package/dist-types/lib/triggers/implementations/timers/control-timer.d.ts +9 -3
- package/dist-types/lib/triggers/implementations/trigger-event.d.ts +7 -1
- package/dist-types/lib/triggers/registry.d.ts +175 -4
- package/dist-types/lib/triggers/run-event-handlers.d.ts +2 -2
- package/dist-types/lib/user-facing/component-base/sb-component.d.ts +1 -5
- 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 +11 -14
- 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 +2 -1
- package/dist-types/lib/user-facing/components/grid/index.d.ts +18 -20
- package/dist-types/lib/user-facing/components/grid/utils.d.ts +1 -0
- package/dist-types/lib/user-facing/components/icon/index.d.ts +13 -11
- package/dist-types/lib/user-facing/components/icon/props.d.ts +13 -11
- 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 +0 -1
- 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 +31 -27
- 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/index.d.ts +1 -41
- package/dist-types/lib/user-facing/components/slideout/props.d.ts +19 -39
- 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 +161 -262
- package/dist-types/lib/user-facing/components/table/components/table-header.d.ts +0 -1
- package/dist-types/lib/user-facing/components/table/index.d.ts +204 -305
- package/dist-types/lib/user-facing/components/table/props.d.ts +204 -305
- package/dist-types/lib/user-facing/components/table/table-component.d.ts +0 -1
- package/dist-types/lib/user-facing/components/table/table-utilities.d.ts +10 -7
- package/dist-types/lib/user-facing/components/table/table-widget.d.ts +6 -8
- package/dist-types/lib/user-facing/components/table/types.d.ts +32 -34
- 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 +11 -20
- 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 +1 -2
- package/dist-types/lib/user-facing/internal-index.d.ts +1 -1
- package/dist-types/lib/user-facing/layers.d.ts +2 -1
- package/dist-types/lib/user-facing/properties-panel/create-managed-props-list.d.ts +0 -4
- 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 +2 -1
- package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +13 -32
- package/dist-types/lib/user-facing/properties-panel/validators.d.ts +1 -1
- package/dist-types/lib/user-facing/sb-event-flow.d.ts +8 -6
- package/dist-types/lib/user-facing/sb-provider.d.ts +2 -1
- package/dist-types/lib/user-facing/state/create-bindable-entity-proxy.d.ts +2 -1
- package/dist-types/lib/user-facing/utils/notification.d.ts +2 -1
- package/package.json +3 -4
- package/dist/icons-lSlfQ50w.js.map +0 -1
- package/dist-types/edit-mode/vite.d.ts +0 -5
- package/dist-types/internal-testing/components/slideout.d.ts +0 -3
- package/dist-types/lib/internal-details/lib/evaluator/sanitize-object.d.ts +0 -6
- package/dist-types/lib/internal-details/lib/evaluator/suspense-helpers.d.ts +0 -8
- package/dist-types/lib/internal-details/location-store.d.ts +0 -18
- package/dist-types/lib/user-facing/build-manifest.d.ts +0 -2
- package/dist-types/lib/user-facing/components/slideout/constants.d.ts +0 -10
- package/dist-types/lib/user-facing/components/slideout/slideout-component.d.ts +0 -31
- package/dist-types/lib/user-facing/entities/api/suspensible-api.d.ts +0 -20
- package/dist-types/lib/user-facing/hooks/use-dialog-editing.d.ts +0 -14
|
@@ -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, RowDensity, BooleanStyleFalse, UnknownRow
|
|
3
|
+
import type { ColumnProperties, EditProps, SingleCellProperties, TagDisplayConfig, TagsColorAssignment, RowDensity, BooleanStyleFalse, UnknownRow } 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,7 +12,8 @@ interface TableTagsProps {
|
|
|
12
12
|
isHidden: boolean;
|
|
13
13
|
cellProperties: SingleCellProperties;
|
|
14
14
|
tagValues: unknown[];
|
|
15
|
-
tagsColorAssignment?:
|
|
15
|
+
tagsColorAssignment?: TagsColorAssignment;
|
|
16
|
+
tagsCustomColorAssignment?: Record<string, TagDisplayConfig>;
|
|
16
17
|
rowDensity: RowDensity;
|
|
17
18
|
handleCellFocus?: () => void;
|
|
18
19
|
maxWidth?: number;
|
|
@@ -21,7 +22,8 @@ interface TableTagsProps {
|
|
|
21
22
|
export type TableCellProps = SingleCellProperties & {
|
|
22
23
|
isHidden: boolean;
|
|
23
24
|
cellProperties: SingleCellProperties;
|
|
24
|
-
tagsColorAssignment?:
|
|
25
|
+
tagsColorAssignment?: TagsColorAssignment;
|
|
26
|
+
tagsCustomColorAssignment?: Record<string, TagDisplayConfig>;
|
|
25
27
|
booleanStyleFalse?: BooleanStyleFalse;
|
|
26
28
|
rowDensity: RowDensity;
|
|
27
29
|
isFocused: boolean;
|
|
@@ -32,7 +34,8 @@ interface CellPosition {
|
|
|
32
34
|
originalRowIndex: number;
|
|
33
35
|
columnId: string;
|
|
34
36
|
}
|
|
35
|
-
export declare const
|
|
37
|
+
export declare const sanitizeCellValue: (cellValue: any) => string;
|
|
38
|
+
export declare const TagsCell: ({ isHidden, cellProperties, tagValues, tagsColorAssignment, tagsCustomColorAssignment, rowDensity, handleCellFocus, maxWidth, maxLinesPerRow, theme, }: TableTagsProps) => React.JSX.Element;
|
|
36
39
|
interface ColumnAction {
|
|
37
40
|
label: string;
|
|
38
41
|
id: string;
|
|
@@ -65,9 +68,9 @@ export declare const EditableCell: (props: {
|
|
|
65
68
|
maxLinesPerRow?: number;
|
|
66
69
|
theme: UserAccessibleTheme;
|
|
67
70
|
}) => React.JSX.Element;
|
|
68
|
-
export declare function getCellProperties(tableCellTextStyle: TextStyleWithVariant | undefined, columnProperties: ColumnProperties,
|
|
69
|
-
export declare function getPropertyValue
|
|
70
|
-
export declare function getFirstPropertyValue
|
|
71
|
+
export declare function getCellProperties(tableCellTextStyle: TextStyleWithVariant | undefined, columnProperties: ColumnProperties, rowIndex: number): SingleCellProperties;
|
|
72
|
+
export declare function getPropertyValue(value: any, index: number, preserveDataType?: boolean): any;
|
|
73
|
+
export declare function getFirstPropertyValue(value: string | string[] | undefined): string | undefined;
|
|
71
74
|
export declare const renderCell: ({ value, columnType, editInputType, cellProps, defaultValue, maxLinesPerRow, tableCellTextStyle, typographies, theme, }: {
|
|
72
75
|
value: any;
|
|
73
76
|
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
|
|
4
|
+
import type { ColumnFilter, ColumnProperties, ReactTableColumnProps, TableWidgetProps } from "./types.js";
|
|
5
5
|
interface TableWidgetState {
|
|
6
6
|
isSaving: boolean;
|
|
7
7
|
}
|
|
@@ -24,7 +24,6 @@ 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;
|
|
28
27
|
componentDidMount(): void;
|
|
29
28
|
addEventListeners(): void;
|
|
30
29
|
componentWillUnmount(): void;
|
|
@@ -38,10 +37,6 @@ export declare class TableWidget extends React.Component<TableWidgetProps, Table
|
|
|
38
37
|
previousColumns: ReactTableColumnProps[];
|
|
39
38
|
handleTableButtonClick: (columnId: string, onComplete: () => void) => void;
|
|
40
39
|
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;
|
|
45
40
|
static transformData: (tableData: Array<Record<string, unknown>>, filteredOrderMap: Array<number>, columns: ReactTableColumnProps[], editOverrides: Record<number, Record<string, {
|
|
46
41
|
value: unknown;
|
|
47
42
|
validationErrors?: Array<string>;
|
|
@@ -62,7 +57,7 @@ export declare class TableWidget extends React.Component<TableWidgetProps, Table
|
|
|
62
57
|
getCurrentRowIndex: (originalIndex: number) => number;
|
|
63
58
|
getIsRowEdited: (rowIndex: number, isOriginalIndex?: boolean) => boolean;
|
|
64
59
|
getIsRowInserted: (rowIndex: number, isOriginalIndex?: boolean) => boolean;
|
|
65
|
-
getCellBackground: (currentRowIndex: number, columnId: string) =>
|
|
60
|
+
getCellBackground: (currentRowIndex: number, columnId: string) => any;
|
|
66
61
|
getIsLoading: () => boolean;
|
|
67
62
|
getDropdownOptionsLoading: () => boolean;
|
|
68
63
|
render(): React.JSX.Element;
|
|
@@ -72,7 +67,7 @@ export declare class TableWidget extends React.Component<TableWidgetProps, Table
|
|
|
72
67
|
[key: string]: number;
|
|
73
68
|
}) => void;
|
|
74
69
|
handleSearchTable: (searchKey: any) => void;
|
|
75
|
-
assignTagColors(tableData
|
|
70
|
+
assignTagColors(tableData: Array<Record<string, unknown>>, columns: ReactTableColumnProps[]): void;
|
|
76
71
|
selectRows: (rows?: "ALL" | "NONE") => void;
|
|
77
72
|
handleRowSelect: (index: number, shiftKey?: boolean) => void;
|
|
78
73
|
getRowContext: (idx?: number) => {
|
|
@@ -80,6 +75,9 @@ export declare class TableWidget extends React.Component<TableWidgetProps, Table
|
|
|
80
75
|
[key: string]: any;
|
|
81
76
|
};
|
|
82
77
|
rowIndex: number | undefined;
|
|
78
|
+
currentRow: {
|
|
79
|
+
[key: string]: any;
|
|
80
|
+
};
|
|
83
81
|
};
|
|
84
82
|
handleRowClick: (_rowData: Record<string, unknown>, index: number) => void;
|
|
85
83
|
updatePageNumber: (pageNo: number) => void;
|
|
@@ -107,6 +107,7 @@ 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>;
|
|
110
111
|
};
|
|
111
112
|
export type ColumnContext = {
|
|
112
113
|
value: any;
|
|
@@ -120,14 +121,15 @@ interface TableFunctions {
|
|
|
120
121
|
selectedRowIndices?: number[];
|
|
121
122
|
selectedRows?: Array<Record<string, unknown>>;
|
|
122
123
|
}, rowContext: RowContext, triggerEventHandlers: boolean) => void;
|
|
123
|
-
setPageNo: (value: number, triggerEventHandlers?: boolean) => void;
|
|
124
|
+
setPageNo: (value: number, rowContext: RowContext, triggerEventHandlers?: boolean) => void;
|
|
124
125
|
setTableFilters: (columnId: string, filter: ColumnFilter, rowContext: RowContext) => void;
|
|
125
126
|
setColumnOrder: (value: string[]) => void;
|
|
126
127
|
setSortedColumn: (value: undefined | TableSortColumn) => void;
|
|
127
128
|
setColumnSizeMap: (value: {
|
|
128
129
|
[key: string]: number;
|
|
129
130
|
}) => void;
|
|
130
|
-
setSearchText: (value: string) => void;
|
|
131
|
+
setSearchText: (value: string, context: RowContext) => void;
|
|
132
|
+
updateTagColorAssignment: (value: TagsColorAssignment) => void;
|
|
131
133
|
onRowClicked: (context: RowContext, onComplete?: () => void) => void;
|
|
132
134
|
selectAllRows: (rowIndices: number[], rows: Array<Record<string, unknown>>, rowContext: RowContext) => void;
|
|
133
135
|
deselectAllRows: (rowContext: RowContext) => void;
|
|
@@ -235,9 +237,6 @@ export type ColumnPropertyFunctions = {
|
|
|
235
237
|
onDateSelected?: () => void;
|
|
236
238
|
onCheckChange?: () => void;
|
|
237
239
|
};
|
|
238
|
-
export type ContextualColumnProperty<T> = T | ((params: {
|
|
239
|
-
currentRow: UnknownRow;
|
|
240
|
-
}) => T);
|
|
241
240
|
export interface ColumnProperties extends ColumnEditConfigs, ColumnPropertiesForEditing, ColumnPropertyFunctions {
|
|
242
241
|
id: string;
|
|
243
242
|
label: string;
|
|
@@ -247,41 +246,41 @@ export interface ColumnProperties extends ColumnEditConfigs, ColumnPropertiesFor
|
|
|
247
246
|
isVisible: boolean;
|
|
248
247
|
index: number;
|
|
249
248
|
width: number;
|
|
250
|
-
cellBackground?:
|
|
251
|
-
horizontalAlign?:
|
|
252
|
-
verticalAlign?:
|
|
253
|
-
cellProps?:
|
|
249
|
+
cellBackground?: string;
|
|
250
|
+
horizontalAlign?: HorizontalAlignment;
|
|
251
|
+
verticalAlign?: VerticalAlignment;
|
|
252
|
+
cellProps?: {
|
|
254
253
|
textStyle: TextStyleWithVariant;
|
|
255
|
-
}
|
|
254
|
+
};
|
|
256
255
|
enableFilter?: boolean;
|
|
257
256
|
enableSort?: boolean;
|
|
258
257
|
isDerived: boolean;
|
|
259
|
-
computedValue:
|
|
260
|
-
displayedValue?:
|
|
261
|
-
buttonLabel?:
|
|
262
|
-
buttonBackgroundColor?:
|
|
263
|
-
buttonBorder?:
|
|
264
|
-
buttonVariant?:
|
|
265
|
-
buttonTextStyle?:
|
|
266
|
-
cellIcon?:
|
|
267
|
-
cellIconPosition?:
|
|
268
|
-
buttonIcon?:
|
|
269
|
-
buttonIconPosition?:
|
|
270
|
-
isDisabled?:
|
|
271
|
-
linkUrl?:
|
|
272
|
-
linkLabel?:
|
|
273
|
-
openInNewTab?:
|
|
258
|
+
computedValue: string | string[];
|
|
259
|
+
displayedValue?: string | 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;
|
|
274
273
|
booleanStyleFalse?: BooleanStyleFalse;
|
|
275
|
-
isEditable?:
|
|
274
|
+
isEditable?: boolean | string;
|
|
276
275
|
isFrozen?: boolean;
|
|
277
|
-
textWrap?:
|
|
278
|
-
tagsWrap?:
|
|
276
|
+
textWrap?: boolean;
|
|
277
|
+
tagsWrap?: boolean;
|
|
279
278
|
tagDisplayConfig: Record<string, TagDisplayConfig>;
|
|
280
|
-
imageSize?:
|
|
281
|
-
imageBorderRadius?:
|
|
282
|
-
openImageUrl?:
|
|
283
|
-
outputFormat?:
|
|
284
|
-
inputFormat?:
|
|
279
|
+
imageSize?: ImageSize;
|
|
280
|
+
imageBorderRadius?: PerCornerBorderRadius;
|
|
281
|
+
openImageUrl?: boolean;
|
|
282
|
+
outputFormat?: string;
|
|
283
|
+
inputFormat?: string;
|
|
285
284
|
}
|
|
286
285
|
export type EditProps = ColumnEditConfigs & {
|
|
287
286
|
handleEditStart: () => void;
|
|
@@ -383,7 +382,6 @@ export interface TableWidgetProps extends TableFunctions {
|
|
|
383
382
|
columnHeaderProps?: {
|
|
384
383
|
textStyle: TextStyleWithVariant;
|
|
385
384
|
};
|
|
386
|
-
columnHeaderTextWrap?: boolean;
|
|
387
385
|
searchProps?: {
|
|
388
386
|
textStyle?: TextStyleWithVariant;
|
|
389
387
|
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>> & {
|
|
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>;
|
|
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>> & ({
|
|
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>;
|
|
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>;
|
|
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>;
|
|
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>;
|
|
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>;
|
|
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>;
|
|
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>;
|
|
34
|
+
dateInputFormat: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
35
|
+
dateOutputFormat: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
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
|
|
39
|
-
minHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false
|
|
40
|
-
maxWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false
|
|
41
|
-
minWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false
|
|
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>> & {
|
|
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>;
|
|
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>;
|
|
51
51
|
} & {
|
|
52
|
-
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true
|
|
52
|
+
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
53
53
|
} & {
|
|
54
|
-
shouldScroll: import("../../properties-panel/props-builder.js").Prop<boolean, false
|
|
54
|
+
shouldScroll: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
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>> & {
|
|
14
|
+
text: Prop<string, false>;
|
|
15
|
+
textType: Prop<"number" | "time" | "text" | "date" | "currency", true>;
|
|
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>> & ({
|
|
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>;
|
|
26
26
|
} & (Omit<{
|
|
27
|
-
textType: Prop<"number" | "time" | "text" | "date" | "currency", false
|
|
27
|
+
textType: Prop<"number" | "time" | "text" | "date" | "currency", false>;
|
|
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>;
|
|
30
|
+
maxDecimals: Prop<number, false>;
|
|
31
|
+
textType: Prop<"currency", true>;
|
|
32
|
+
currency: Prop<string, true>;
|
|
33
|
+
numberFormat: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", true>;
|
|
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>;
|
|
38
|
+
maxDecimals: Prop<number, false>;
|
|
39
|
+
textType: Prop<"number", true>;
|
|
40
|
+
numberFormat: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", true>;
|
|
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>;
|
|
45
|
+
dateInputFormat: Prop<string, false>;
|
|
46
|
+
dateOutputFormat: Prop<string, false>;
|
|
47
47
|
})))>;
|
|
48
|
-
layout: Section<Record<string, Prop<any, any
|
|
49
|
-
maxHeight?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false
|
|
50
|
-
minHeight?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false
|
|
51
|
-
maxWidth?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false
|
|
52
|
-
minWidth?: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false
|
|
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>> & {
|
|
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>;
|
|
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>;
|
|
62
62
|
} & {
|
|
63
|
-
isVisible: Prop<boolean, true
|
|
63
|
+
isVisible: Prop<boolean, true>;
|
|
64
64
|
} & {
|
|
65
|
-
shouldScroll: Prop<boolean, false
|
|
65
|
+
shouldScroll: Prop<boolean, false>;
|
|
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 MODAL_TARGET_ROOT_ID = "modal-target-root";
|
|
@@ -1,29 +1,20 @@
|
|
|
1
1
|
import { Section, Prop, type InternalProps } from "../../properties-panel/props-builder.js";
|
|
2
|
-
|
|
3
|
-
export type ApiEntity = Omit<InternalProps<typeof propertiesDefinition>, "_suspensibleApi"> & {
|
|
2
|
+
export type ApiEntity = InternalProps<typeof propertiesDefinition> & {
|
|
4
3
|
run: () => Promise<any>;
|
|
5
4
|
cancel: () => Promise<any>;
|
|
6
|
-
_suspensibleApi: SuspensibleAPI<any, any[]>;
|
|
7
5
|
};
|
|
8
6
|
export declare const propertiesDefinition: {
|
|
9
|
-
events: Section<Record<string, Prop<any, any
|
|
10
|
-
onSuccess: Prop<import("../../sb-event-flow.js").SbEventFlow, false
|
|
11
|
-
onError: Prop<import("../../sb-event-flow.js").SbEventFlow, false
|
|
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>;
|
|
12
10
|
}>;
|
|
13
|
-
metadata: Section<Record<string, Prop<any, any
|
|
14
|
-
response: Prop<any, true
|
|
15
|
-
error: Prop<any, true
|
|
16
|
-
|
|
11
|
+
metadata: Section<Record<string, Prop<any, any>> & {
|
|
12
|
+
response: Prop<any, true>;
|
|
13
|
+
error: Prop<any, true>;
|
|
14
|
+
isRunning: Prop<boolean, true>;
|
|
17
15
|
}>;
|
|
18
|
-
functions: Section<Record<string, Prop<any, any
|
|
19
|
-
run: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[], Promise<any>>, true
|
|
20
|
-
cancel: Prop<import("../../../internal-details/lib/evaluator/base-entity-manager.js").EntityFunction<[], Promise<void>>, true
|
|
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>;
|
|
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>;
|
|
28
19
|
}>;
|
|
29
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>> & {
|
|
4
|
+
intervalMs: Prop<number, true>;
|
|
5
|
+
startOnPageLoad: Prop<boolean, false>;
|
|
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>> & {
|
|
8
|
+
onFire: Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
|
|
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>> & {
|
|
11
|
+
timerId: Prop<string, false>;
|
|
12
|
+
isRunning: Prop<boolean, true>;
|
|
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>> & {
|
|
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>;
|
|
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>> & {
|
|
5
|
+
defaultValue: Prop<any, false>;
|
|
6
|
+
value: Prop<any, false>;
|
|
7
|
+
persistence: Prop<SbVariablePersistence, true>;
|
|
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>> & {
|
|
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>;
|
|
12
12
|
}>;
|
|
13
13
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { NotificationPosition } from "
|
|
2
|
-
import type { NotificationType } from "@superblocksteam/library-shared/types";
|
|
1
|
+
import { type NotificationPosition, type NotificationType } from "./utils/notification.jsx";
|
|
3
2
|
export declare enum Types {
|
|
4
3
|
STRING = "STRING",
|
|
5
4
|
NUMBER = "NUMBER",
|
|
@@ -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 "../internal-details/lib/evaluator/base-entity-manager.js";
|
|
4
4
|
export { useScope } from "../internal-details/scope/scope-context.jsx";
|
|
@@ -22,6 +22,7 @@ export declare const Layers: {
|
|
|
22
22
|
selectedRect: Indices;
|
|
23
23
|
focusedRect: Indices;
|
|
24
24
|
namePill: Indices;
|
|
25
|
+
drawer: Indices;
|
|
25
26
|
closeButton: Indices;
|
|
26
27
|
stickySections: Indices;
|
|
27
28
|
scrollbars: Indices;
|
|
@@ -30,7 +31,7 @@ export declare const Layers: {
|
|
|
30
31
|
parentSelectedWrapper: Indices;
|
|
31
32
|
widgetResizer: Indices;
|
|
32
33
|
resizer: Indices;
|
|
33
|
-
|
|
34
|
+
modal: Indices;
|
|
34
35
|
widgetName: Indices;
|
|
35
36
|
selectionConstraintResize: Indices;
|
|
36
37
|
addSectionButton: Indices;
|
|
@@ -1,9 +1,5 @@
|
|
|
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
|
-
}>;
|
|
8
4
|
declare function createManagedPropsList(sections: Record<string, Section>, parentPath?: string): ManagedPropsList;
|
|
9
5
|
export { createManagedPropsList };
|
|
@@ -2,23 +2,23 @@ import { Prop } from "../props-builder.js";
|
|
|
2
2
|
import type { PropertiesPanelDisplay } from "@superblocksteam/library-shared/props";
|
|
3
3
|
import type { TextStyleWithVariant } from "@superblocksteam/library-shared/types";
|
|
4
4
|
export declare const createTextStyleCompositeBase: () => {
|
|
5
|
-
variant: Prop<string, false
|
|
5
|
+
variant: Prop<string, false>;
|
|
6
6
|
textColor: import("../props-builder.js").CompositeProp<{
|
|
7
|
-
default: Prop<string, false
|
|
7
|
+
default: Prop<string, false>;
|
|
8
8
|
}>;
|
|
9
|
-
fontFamily: Prop<string, false
|
|
10
|
-
fontSize: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false
|
|
11
|
-
fontWeight: Prop<number, false
|
|
12
|
-
fontStyle: Prop<string, false
|
|
13
|
-
lineHeight: Prop<string, false
|
|
14
|
-
letterSpacing: Prop<number, false
|
|
15
|
-
textTransform: Prop<string, false
|
|
9
|
+
fontFamily: Prop<string, false>;
|
|
10
|
+
fontSize: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
11
|
+
fontWeight: Prop<number, false>;
|
|
12
|
+
fontStyle: Prop<string, false>;
|
|
13
|
+
lineHeight: Prop<string, false>;
|
|
14
|
+
letterSpacing: Prop<number, false>;
|
|
15
|
+
textTransform: Prop<string, false>;
|
|
16
16
|
};
|
|
17
|
-
export declare const basePropertiesPaneDisplay: PropertiesPanelDisplay<
|
|
17
|
+
export declare const basePropertiesPaneDisplay: PropertiesPanelDisplay<string>;
|
|
18
18
|
export declare const textStyleProp: ({ baseProp, propertiesPanel, }?: {
|
|
19
19
|
baseProp?: ReturnType<typeof createTextStyleCompositeBase>;
|
|
20
20
|
propertiesPanel?: Omit<Partial<PropertiesPanelDisplay<TextStyleWithVariant, "TEXT_STYLE">>, "controlType">;
|
|
21
21
|
}) => Prop<TextStyleWithVariant>;
|
|
22
|
-
export declare const colorProp: (schema: Omit<Partial<PropertiesPanelDisplay<string, "COLOR_PICKER">>, "controlType">) => Prop<string, false
|
|
23
|
-
export declare const labelTextStyle: () => Prop<TextStyleWithVariant, true
|
|
24
|
-
export declare const inputTextStyle: () => Prop<TextStyleWithVariant, true
|
|
22
|
+
export declare const colorProp: (schema: Omit<Partial<PropertiesPanelDisplay<string, "COLOR_PICKER">>, "controlType">) => Prop<string, false>;
|
|
23
|
+
export declare const labelTextStyle: () => Prop<TextStyleWithVariant, true>;
|
|
24
|
+
export declare const inputTextStyle: () => Prop<TextStyleWithVariant, true>;
|
|
@@ -3,6 +3,6 @@ import type { Dim } from "@superblocksteam/library-shared";
|
|
|
3
3
|
import type { PropertiesPanelDisplay } from "@superblocksteam/library-shared/props";
|
|
4
4
|
import type { BorderStyleBlock, PerCornerBorderRadius, PerSideBorder } from "@superblocksteam/library-shared/types";
|
|
5
5
|
export declare const createPerSideBorder: (border: BorderStyleBlock) => PerSideBorder;
|
|
6
|
-
export declare const border: (propertiesPanelConfig?: Partial<Partial<PropertiesPanelDisplay<PerSideBorder, "BORDER_CONTROL">>>) => Prop<PerSideBorder, false
|
|
6
|
+
export declare const border: (propertiesPanelConfig?: Partial<Partial<PropertiesPanelDisplay<PerSideBorder, "BORDER_CONTROL">>>) => Prop<PerSideBorder, false>;
|
|
7
7
|
export declare const createBorderRadiusObject: (borderRadius: Dim<"px" | "%">) => PerCornerBorderRadius;
|
|
8
|
-
export declare const borderRadius: (propertiesPanelConfig?: Partial<Partial<PropertiesPanelDisplay<PerCornerBorderRadius, "BORDER_RADIUS_CONTROL">>>) => Prop<PerCornerBorderRadius, true
|
|
8
|
+
export declare const borderRadius: (propertiesPanelConfig?: Partial<Partial<PropertiesPanelDisplay<PerCornerBorderRadius, "BORDER_RADIUS_CONTROL">>>) => Prop<PerCornerBorderRadius, true>;
|