• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2024-2025 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15/**
16 * @file
17 * @kit ArkUI
18 * @arkts 1.2
19 */
20
21
22// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION!
23
24import { memo, ComponentBuilder, __memo_context_type, __memo_id_type } from './../stateManagement/runtime'
25import { CommonMethod, DrawModifier, Rectangle, Callback_Array_TouchTestInfo_TouchResult, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, BorderImageOption, OutlineStyle, Callback_ClickEvent_Void, ClickEvent, Callback_Boolean_HoverEvent_Void, HoverEvent, AccessibilityCallback, Callback_MouseEvent_Void, MouseEvent, Callback_TouchEvent_Void, TouchEvent, Callback_KeyEvent_Void, KeyEvent, Callback_KeyEvent_Boolean, AnimateParam, TransitionOptions, TransitionEffect, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, DragEvent, CustomBuilder, DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, PreDragStatus, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, MotionPathOptions, ShadowOptions, ShadowStyle, ProgressMask, StateStyles, PixelStretchEffectOptions, AttributeModifier, GestureModifier, BackgroundBrightnessOptions, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, Callback_TouchEvent_HitTestMode, SizeChangeCallback, SafeAreaType, SafeAreaEdge, Literal_Alignment_align, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from './common'
26import { VisualEffect, Filter, UniformDataType, Blender, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font, PixelMap } from './units'
27import { ComponentContent } from './../ComponentContent'
28import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from './enums'
29import { LengthMetrics } from './../Graphics'
30import { CircleShape, EllipseShape, PathShape, RectShape } from './../../../api/@ohos.arkui.shape'
31import { ResizableOptions } from './image'
32import { Resource } from './../../../api/global/resource'
33import { Callback_Void } from './abilityComponent'
34import { FocusBoxStyle, FocusPriority } from './focus'
35import { GestureInfo, BaseGestureEvent, GestureJudgeResult, GestureType, GestureMask } from './gesture'
36export enum IndexerAlign {
37    LEFT = 0,
38    Left = 0,
39    RIGHT = 1,
40    Right = 1,
41    START = 2,
42    END = 3
43}
44export interface AlphabetIndexerOptions {
45    arrayValue: Array<string>;
46    selected: number;
47}
48export type AlphabetIndexerInterface = (options: AlphabetIndexerOptions) => AlphabetIndexerAttribute;
49export type OnAlphabetIndexerSelectCallback = (index: number) => void;
50export type OnAlphabetIndexerPopupSelectCallback = (index: number) => void;
51export type OnAlphabetIndexerRequestPopupDataCallback = (index: number) => Array<string>;
52export type Callback_Number_Void = (index: number) => void;
53export interface AlphabetIndexerAttribute extends CommonMethod {
54    @memo
55    onSelected(value: ((index: number) => void)): this;
56    @memo
57    color(value: ResourceColor): this;
58    @memo
59    selectedColor(value: ResourceColor): this;
60    @memo
61    popupColor(value: ResourceColor): this;
62    @memo
63    selectedBackgroundColor(value: ResourceColor): this;
64    @memo
65    popupBackground(value: ResourceColor): this;
66    @memo
67    popupSelectedColor(value: ResourceColor): this;
68    @memo
69    popupUnselectedColor(value: ResourceColor): this;
70    @memo
71    popupItemBackgroundColor(value: ResourceColor): this;
72    @memo
73    usingPopup(value: boolean): this;
74    @memo
75    selectedFont(value: Font): this;
76    @memo
77    popupFont(value: Font): this;
78    @memo
79    popupItemFont(value: Font): this;
80    @memo
81    itemSize(value: string | number): this;
82    @memo
83    font(value: Font): this;
84    @memo
85    onSelect(value: OnAlphabetIndexerSelectCallback): this;
86    @memo
87    onRequestPopupData(value: OnAlphabetIndexerRequestPopupDataCallback): this;
88    @memo
89    onPopupSelect(value: OnAlphabetIndexerPopupSelectCallback): this;
90    @memo
91    selected(value: number): this;
92    @memo
93    popupPosition(value: Position): this;
94    @memo
95    autoCollapse(value: boolean): this;
96    @memo
97    popupItemBorderRadius(value: number): this;
98    @memo
99    itemBorderRadius(value: number): this;
100    @memo
101    popupBackgroundBlurStyle(value: BlurStyle): this;
102    @memo
103    popupTitleBackground(value: ResourceColor): this;
104    @memo
105    enableHapticFeedback(value: boolean): this;
106}
107@memo
108@ComponentBuilder
109export declare function AlphabetIndexer(
110    options: AlphabetIndexerOptions,
111    @memo
112    content_?: () => void,
113): AlphabetIndexerAttribute
114