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 */
15
16/**
17 * Indicates form info
18 */
19export class CardItemInfo {
20  /**
21   * Indicates form id
22   */
23  cardId: number | undefined;
24
25  /**
26   * Indicates form bundleName.
27   */
28  bundleName: string | undefined;
29
30  /**
31   * Indicates form abilityName.
32   */
33  abilityName: string | undefined;
34
35  /**
36   * Indicates form moduleName.
37   */
38  moduleName: string | undefined;
39
40  /**
41   * Indicates cardName.
42   */
43  cardName: string | undefined;
44
45  /**
46   * Indicates form dimension.
47   */
48  cardDimension: number | undefined;
49
50  /**
51   * Indicates form size.
52   */
53  area: number[] | undefined;
54
55  /**
56   * Indicates form description.
57   */
58  description = '';
59
60  /**
61   * Indicates form formConfigAbility.
62   */
63  formConfigAbility: string | undefined;
64
65  /**
66   * Indicates form of app labelId.
67   */
68  appLabelId: number | undefined;
69
70  /**
71   * Indicates form of app name.
72   */
73  appName: string | undefined;
74
75  /**
76   * Indicates form of support Dimensions.
77   */
78  supportDimensions: number[] | [];
79
80  /**
81   * GridLayoutItemInfo: total count of card
82   */
83  totalDimensionCount: number | undefined;
84  dragLayerWidth?: number;
85  dragLayerHeight?: number;
86}