/** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { TemplateRef } from '@angular/core'; import { VtsSafeAny } from '@ui-vts-kit/ng-vts/core/types'; export type VtsSelectModeType = 'default' | 'multiple' | 'tags'; export interface VtsSelectItemInterface { template?: TemplateRef | null; vtsLabel: string | null; vtsValue: VtsSafeAny | null; vtsDisabled?: boolean; vtsHide?: boolean; vtsCustomContent?: boolean; groupLabel?: string | TemplateRef | null; type?: string; key?: VtsSafeAny; } export interface VtsSelectOptionInterface { label: string | null | TemplateRef; value: VtsSafeAny | null; disabled?: boolean; hide?: boolean; groupLabel?: string | TemplateRef | null; } export type VtsSelectTopControlItemType = Partial & { contentTemplateOutlet: TemplateRef | null; contentTemplateOutletContext: VtsSafeAny; }; export type VtsFilterOptionType = (input: string, option: VtsSelectItemInterface) => boolean;