1/**
2 * Copyright (c) 2021-2022 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 */
15import { AppItemInfo } from './AppItemInfo';
16
17/**
18 * drag item info
19 */
20export class LauncherDragItemInfo {
21  isDragging: boolean = false;
22
23  constructor(isDragging?: boolean) {
24    this.isDragging = isDragging ? isDragging : false;
25  }
26
27  cardId?: number | undefined;
28  folderId?: string | undefined;
29  folderName?: string | undefined;
30  appList?: string[] | undefined;
31  keyName: string | undefined;
32  bundleName: string | undefined;
33  abilityName: string | undefined;
34  moduleName: string | undefined;
35  cardName?: string | undefined;
36  cardDimension?: number | undefined;
37  area: number[] | undefined;
38  description?: string = '';
39  formConfigAbility?: string | undefined;
40  appLabelId: number | undefined;
41  appName: string | undefined;
42  supportDimensions?: number[] | undefined;
43  appId: string | undefined;
44  appIconId: number | undefined;
45  isSystemApp: boolean | undefined;
46  isUninstallAble: boolean | undefined;
47  badgeNumber: number | undefined;
48  checked?: boolean | undefined;
49  installTime?: string | undefined;
50  typeId: number | undefined;
51  page: number | undefined;
52  column: number | undefined;
53  row: number | undefined;
54  bundleType?: number | undefined;
55  totalDimensionCount?: number | undefined;
56  layoutInfo?: AppItemInfo[][];
57  itemType?: number;
58  editable?: boolean;
59  enterEditing?: boolean;
60}