mirror of
https://github.com/discourse/discourse.git
synced 2024-12-04 09:10:03 +08:00
d1cc60c435
Changes made using the ember-native-class-codemod, plus some manual tweaks
18 lines
618 B
JavaScript
18 lines
618 B
JavaScript
import { gte } from "@ember/object/computed";
|
|
import { classNames } from "@ember-decorators/component";
|
|
import SingleSelectComponent from "select-kit/components/single-select";
|
|
import { pluginApiIdentifiers, selectKitOptions } from "./select-kit";
|
|
|
|
@classNames("combobox", "combo-box")
|
|
@pluginApiIdentifiers(["combo-box"])
|
|
@selectKitOptions({
|
|
caretUpIcon: "caret-up",
|
|
caretDownIcon: "caret-down",
|
|
autoFilterable: "autoFilterable",
|
|
clearable: false,
|
|
headerComponent: "combo-box/combo-box-header",
|
|
})
|
|
export default class ComboBox extends SingleSelectComponent {
|
|
@gte("content.length", 10) autoFilterable;
|
|
}
|