2022-06-17 22:43:13 +08:00
|
|
|
import { gte } from "@ember/object/computed";
|
2024-08-23 19:17:07 +08:00
|
|
|
import { classNames } from "@ember-decorators/component";
|
2023-10-11 02:38:59 +08:00
|
|
|
import SingleSelectComponent from "select-kit/components/single-select";
|
2024-08-23 19:17:07 +08:00
|
|
|
import { pluginApiIdentifiers, selectKitOptions } from "./select-kit";
|
2017-10-20 03:51:08 +08:00
|
|
|
|
2024-08-23 19:17:07 +08:00
|
|
|
@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;
|
|
|
|
}
|