mirror of
https://github.com/rio-labs/rio.git
synced 2026-01-25 14:58:30 -06:00
renamed "file chooser" to "pick file"
This commit is contained in:
@@ -20,7 +20,7 @@ import { DevToolsConnectorComponent } from './components/devToolsConnector';
|
||||
import { DialogContainerComponent } from './components/dialog_container';
|
||||
import { DrawerComponent } from './components/drawer';
|
||||
import { DropdownComponent } from './components/dropdown';
|
||||
import { FileChooserAreaComponent } from './components/fileChooserArea';
|
||||
import { FilePickerAreaComponent } from './components/FilePickerArea';
|
||||
import { FlowComponent as FlowContainerComponent } from './components/flowContainer';
|
||||
import { FundamentalRootComponent } from './components/fundamentalRootComponent';
|
||||
import { GridComponent } from './components/grid';
|
||||
@@ -82,7 +82,7 @@ const COMPONENT_CLASSES = {
|
||||
'DialogContainer-builtin': DialogContainerComponent,
|
||||
'Drawer-builtin': DrawerComponent,
|
||||
'Dropdown-builtin': DropdownComponent,
|
||||
'FileChooserArea-builtin': FileChooserAreaComponent,
|
||||
'FilePickerArea-builtin': FilePickerAreaComponent,
|
||||
'FlowContainer-builtin': FlowContainerComponent,
|
||||
'FundamentalRootComponent-builtin': FundamentalRootComponent,
|
||||
'Grid-builtin': GridComponent,
|
||||
|
||||
@@ -79,14 +79,14 @@ const CATEGORY_TO_METADATA = {
|
||||
video: ['videos', 'material/movie'],
|
||||
};
|
||||
|
||||
type FileChooserAreaState = ComponentState & {
|
||||
_type_: 'FileChooserArea-builtin';
|
||||
type FilePickerAreaState = ComponentState & {
|
||||
_type_: 'FilePickerArea-builtin';
|
||||
content?: string | null;
|
||||
file_types?: string[];
|
||||
};
|
||||
|
||||
export class FileChooserAreaComponent extends ComponentBase {
|
||||
state: Required<FileChooserAreaState>;
|
||||
export class FilePickerAreaComponent extends ComponentBase {
|
||||
state: Required<FilePickerAreaState>;
|
||||
|
||||
private fileInput: HTMLInputElement;
|
||||
private iconElement: HTMLElement;
|
||||
@@ -211,7 +211,7 @@ export class FileChooserAreaComponent extends ComponentBase {
|
||||
}
|
||||
|
||||
updateElement(
|
||||
deltaState: FileChooserAreaState,
|
||||
deltaState: FilePickerAreaState,
|
||||
latentComponents: Set<ComponentBase>
|
||||
): void {
|
||||
super.updateElement(deltaState, latentComponents);
|
||||
|
||||
Reference in New Issue
Block a user