Component API Reference (All Props and Methods)
This page is a consolidated API reference for all exported FlowBox UI components.
[NOTE!lightbulb/COMPONENT INTENT]
DCSourceConnection= connection-level choice,DCCatalogEntry= single entry,DCCatalogEntryPicker= multi-entry workflows.
DCSourceConnection
Props
dcapiurl: string = ''sourcetypefilter: string | string[] | null = nullinitialselection: string | null = nullonsourceselect: (connection: SourceConnection) => void = nullonitemsloaded: (connections: SourceConnection[]) => void = null
Methods
select(idOrConnection: string | SourceConnection): voidgetSelection(): SourceConnection | nullgetConnections(): SourceConnection[]
Typical usage
<DCSourceConnection
dcapiurl={$dcConfig?.url}
sourcetypefilter="MQTT"
initialselection={$values?.sourceConnectionId ?? ''}
onsourceselect={(conn) => $values.sourceConnectionId = conn?.id ?? ''}
/>
[WARNING!schedule/CONFIG INTEGRITY] If source changes, clear dependent selected catalog entries to avoid stale configuration.
DCCatalogEntry
Props
id?: stringdcapiurl: string = ''sourcetypefilter: string | string[] | null = nulldatatypefilter: DataType | DataType[] | null = nullnamefilter: string | string[] | null = nullinitialselection: string | null = nullonentryselect: (entry: CatalogEntry | null) => void = nullonitemsloaded: (filtered: CatalogEntry[], all: CatalogEntry[]) => void = nullonsearchmiss: (text: string) => void = null
Methods
setFilters(opts: { searchtext?: string | null; datasetfilter?: string | null }): voidselect(idOrEntry: string | CatalogEntry | null): voidgetSelection(): CatalogEntry | nullgetEntries(): CatalogEntry[]getAllEntries(): CatalogEntry[]reload(selectAfterReload?: string): void
Typical usage
<DCCatalogEntry
dcapiurl={$dcConfig?.url}
sourcetypefilter="PostgreSQL"
initialselection={$values?.catalogEntryId ?? ''}
onentryselect={(entry) => $values.catalogEntryId = entry?.id ?? ''}
/>
[NOTE!lightbulb/SURPRISING BEHAVIOR]
setFilterscan auto-select one match and clear on multi-match/no-match.
DCCatalogEntryPicker
Props
dcApiUrl: string = ''sourceConnectionId: string = ''selectedIds: string[] = [](bindable)entries: CatalogEntry[] = [](bindable)columns: string[] = DEFAULT_COLUMNSselectedColumnsDisplay: string[] = DEFAULT_SELECTED_COLUMNS_DISPLAYemptyMessage: string = 'No entries found for this source connection.'onSelectionChange: (ids: string[]) => void = nullonRemove: (id: string) => void = null
Methods
- No exported imperative methods.
Typical usage
<DCCatalogEntryPicker
dcApiUrl={$dcConfig?.url}
sourceConnectionId={$values?.sourceConnectionId}
bind:selectedIds={selectedEntryIds}
bind:entries={pickerEntries}
columns={['name', 'sourceParams.topic', 'dataType', 'metadata.unit', 'labels']}
selectedColumnsDisplay={['name', 'sourceParams.topic', 'dataType']}
onSelectionChange={(ids) => $values.entryIds = ids.join(',')}
onRemove={(id) => selectedEntryIds = selectedEntryIds.filter(x => x !== id)}
/>
[WARNING!monitoring/SCALING BEHAVIOR] Above 100 entries, picker switches to server-search mode; no search term means no rows.
Picker helper exports
From @industream/flowmaker-flowbox-ui-components:
COLUMN_DEFSDEFAULT_COLUMNSDEFAULT_SELECTED_COLUMNS_DISPLAYresolveColumnresolveValueresolveSearchText
Use these for column-level customization and shared rendering behavior.
[WARNING!public/GLOBAL STATE HAZARD]
COLUMN_DEFSis mutable global state; conflicting overrides in different forms can change rendering unexpectedly.
Reference
sdk/config/flowbox-ui-components/src/index.tssdk/config/flowbox-ui-components/src/DCSourceConnection.sveltesdk/config/flowbox-ui-components/src/DCCatalogEntry.sveltesdk/config/flowbox-ui-components/src/DCCatalogEntryPicker/DCCatalogEntryPicker.svelte