From ab7d9f3a569630dde2f0788e1ccf1b33836f3358 Mon Sep 17 00:00:00 2001 From: li-li-wang Date: Thu, 14 Aug 2025 10:05:18 +0800 Subject: [PATCH] del location button 0728 Signed-off-by: li-li-wang --- api/@internal/component/ets/index-full.d.ts | 1 - .../component/ets/location_button.d.ts | 537 ------------------ api/arkui/component/locationButton.d.ets | 73 --- .../config/arkui_config.json | 1 - build-tools/dts_parser/kit.json | 1 - 5 files changed, 613 deletions(-) delete mode 100644 api/@internal/component/ets/location_button.d.ts delete mode 100644 api/arkui/component/locationButton.d.ets diff --git a/api/@internal/component/ets/index-full.d.ts b/api/@internal/component/ets/index-full.d.ts index ba50d08873..2423154475 100644 --- a/api/@internal/component/ets/index-full.d.ts +++ b/api/@internal/component/ets/index-full.d.ts @@ -64,7 +64,6 @@ /// /// /// -/// /// /// /// diff --git a/api/@internal/component/ets/location_button.d.ts b/api/@internal/component/ets/location_button.d.ts deleted file mode 100644 index b6c3c31d04..0000000000 --- a/api/@internal/component/ets/location_button.d.ts +++ /dev/null @@ -1,537 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * @file - * @kit ArkUI - */ - -/** - * Enumerates the icon styles. - * - * @enum { number } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 10 - */ -/** - * Enumerates the icon styles. - * - * @enum { number } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 11 - * @deprecated since 15 - */ -declare enum LocationIconStyle { - /** - * Icon filled with the specified color. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 10 - */ - /** - * Icon filled with the specified color. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 11 - * @deprecated since 15 - */ - FULL_FILLED = 0, - - /** - * Icon rendered as lines. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 10 - */ - /** - * Icon rendered as lines. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 11 - * @deprecated since 15 - */ - LINES = 1 -} - -/** - * Enumerates the text that can be displayed on the location button. - * - * @enum { number } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 10 - */ -/** - * Enumerates the text that can be displayed on the location button. - * - * @enum { number } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 11 - * @deprecated since 15 - */ -declare enum LocationDescription { - /** - * Current Location - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 10 - */ - /** - * Current Location - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 11 - * @deprecated since 15 - */ - CURRENT_LOCATION = 0, - - /** - * Add Location - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 10 - */ - /** - * Add Location - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 11 - * @deprecated since 15 - */ - ADD_LOCATION = 1, - - /** - * Select Location - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 10 - */ - /** - * Select Location - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 11 - * @deprecated since 15 - */ - SELECT_LOCATION = 2, - - /** - * Share Location - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 10 - */ - /** - * Share Location - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 11 - * @deprecated since 15 - */ - SHARE_LOCATION = 3, - - /** - * Send Location - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 10 - */ - /** - * Send Location - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 11 - * @deprecated since 15 - */ - SEND_LOCATION = 4, - - /** - * Locating - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 10 - */ - /** - * Locating - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 11 - * @deprecated since 15 - */ - LOCATING = 5, - - /** - * Location - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 10 - */ - /** - * Location - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 11 - * @deprecated since 15 - */ - LOCATION = 6, - - /** - * Send Current Location - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 10 - */ - /** - * Send Current Location - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 11 - * @deprecated since 15 - */ - SEND_CURRENT_LOCATION = 7, - - /** - * Relocation - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 10 - */ - /** - * Relocation - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 11 - * @deprecated since 15 - */ - RELOCATION = 8, - - /** - * Punch In - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 10 - */ - /** - * Punch In - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 11 - * @deprecated since 15 - */ - PUNCH_IN = 9, - - /** - * Current Position - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 10 - */ - /** - * Current Position - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 11 - * @deprecated since 15 - */ - CURRENT_POSITION = 10 -} - -/** - * Declares the interface for setting the location button options. - * - * @interface LocationButtonOptions - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 10 - */ -/** - * Declares the interface for setting the location button options. - * - * @interface LocationButtonOptions - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 11 - * @deprecated since 15 - */ -declare interface LocationButtonOptions { - /** - * Style of the icon to be drawn. - * - * @type { ?LocationIconStyle } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 10 - */ - /** - * Style of the icon to be drawn. - * - * @type { ?LocationIconStyle } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 11 - * @deprecated since 15 - */ - icon?: LocationIconStyle; - - /** - * Text to be displayed on the button. - * - * @type { ?LocationDescription } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 10 - */ - /** - * Text to be displayed on the button. - * - * @type { ?LocationDescription } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 11 - * @deprecated since 15 - */ - text?: LocationDescription; - - /** - * Type of the button. - * - * @type { ?ButtonType } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 10 - */ - /** - * Type of the button. - * - * @type { ?ButtonType } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 11 - * @deprecated since 15 - */ - buttonType?: ButtonType; -} - -/** - * Enumerates the click event results of the location button. - * - * @enum { number } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 10 - */ -/** - * Enumerates the click event results of the location button. - * - * @enum { number } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 11 - * @deprecated since 15 - */ -declare enum LocationButtonOnClickResult { - /** - * Success. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 10 - */ - /** - * Success. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 11 - * @deprecated since 15 - */ - SUCCESS = 0, - - /** - * Failure because the application is not temporarily authorized for accessing location data. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 10 - */ - /** - * Failure because the application is not temporarily authorized for accessing location data. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 11 - * @deprecated since 15 - */ - TEMPORARY_AUTHORIZATION_FAILED = 1 -} - -/** - * Defines the interface for setting a location button. - * - * @interface LocationButtonInterface - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 10 - */ -/** - * Defines the interface for setting a location button. - * - * @interface LocationButtonInterface - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 11 - * @deprecated since 15 - */ -interface LocationButtonInterface { - /** - * Creates a location button. - * - * @returns { LocationButtonAttribute } TReturns the attribute of the location button. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 10 - */ - /** - * Creates a location button. - * - * @returns { LocationButtonAttribute } TReturns the attribute of the location button. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 11 - * @deprecated since 15 - */ - (): LocationButtonAttribute; - - /** - * Creates a location button with the specified composition. - * If an attribute is not set, the corresponding element will not be drawn. - * - * @param { LocationButtonOptions } options - Indicates the options of the location button. - * @returns { LocationButtonAttribute } Returns the attribute of the location button. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 10 - */ - /** - * Creates a location button with the specified composition. - * If an attribute is not set, the corresponding element will not be drawn. - * - * @param { LocationButtonOptions } options - Indicates the options of the location button. - * @returns { LocationButtonAttribute } Returns the attribute of the location button. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 11 - * @deprecated since 15 - */ - (options: LocationButtonOptions): LocationButtonAttribute; -} - -/** - * Callback function when the location button is clicked. - * - * @typedef { function } LocationButtonCallback - * @param { ClickEvent } event - The click event. - * @param { LocationButtonOnClickResult } result - The result of click event. - * @param { BusinessError } [error] - The error code and message of click event. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 18 - */ -type LocationButtonCallback = (event: ClickEvent, result: LocationButtonOnClickResult, error?: BusinessError) => void; - -/** - * Defines the attributes of the location button. - * - * @extends SecurityComponentMethod - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 10 - */ -/** - * Defines the attributes of the location button. - * - * @extends SecurityComponentMethod - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 11 - * @deprecated since 15 - */ -declare class LocationButtonAttribute extends SecurityComponentMethod { - /** - * Called when the location button is clicked. - * - * @param { function } event - * @returns { LocationButtonAttribute } Returns the attribute of the location button. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 10 - */ - /** - * Called when the location button is clicked. - * - * @param { function } event - * @returns { LocationButtonAttribute } Returns the attribute of the location button. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 11 - */ - /** - * Called when the location button is clicked. - * - * @param { LocationButtonCallback } event - * @returns { LocationButtonAttribute } Returns the attribute of the location button. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 18 - */ - onClick(event: LocationButtonCallback): LocationButtonAttribute; -} - -/** - * Defines a button that interacts with the security component service to - * request the authorization for accessing location data. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 10 - */ -/** - * Defines a button that interacts with the security component service to - * request the authorization for accessing location data. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 11 - * @deprecated since 15 - * @useinstead ohos.abilityAccessCtrl#requestPermissionsFromUser - */ -declare const LocationButton: LocationButtonInterface; - -/** - * Defines a location button instance for secure access. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 10 - */ -/** - * Defines a location button instance for secure access. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 11 - * @deprecated since 15 - */ -declare const LocationButtonInstance: LocationButtonAttribute; diff --git a/api/arkui/component/locationButton.d.ets b/api/arkui/component/locationButton.d.ets deleted file mode 100644 index 4d81036abf..0000000000 --- a/api/arkui/component/locationButton.d.ets +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright (c) 2024-2025 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * @file - * @kit ArkUI - * @arkts 1.2 - */ - - -// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! - -import { memo, ComponentBuilder, __memo_context_type, __memo_id_type } from './../stateManagement/runtime' -import { ButtonType } from './button' -import { ClickEvent } from './common' -import { SecurityComponentMethod, SecurityComponentLayoutDirection } from './securityComponent' -import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions } from './units' -import { FontStyle, FontWeight, BorderStyle } from './enums' -import { Resource } from './../../../api/global/resource' -export enum LocationIconStyle { - FULL_FILLED = 0, - LINES = 1 -} -export enum LocationDescription { - CURRENT_LOCATION = 0, - ADD_LOCATION = 1, - SELECT_LOCATION = 2, - SHARE_LOCATION = 3, - SEND_LOCATION = 4, - LOCATING = 5, - LOCATION = 6, - SEND_CURRENT_LOCATION = 7, - RELOCATION = 8, - PUNCH_IN = 9, - CURRENT_POSITION = 10 -} -export interface LocationButtonOptions { - icon?: LocationIconStyle; - text?: LocationDescription; - buttonType?: ButtonType; -} -export enum LocationButtonOnClickResult { - SUCCESS = 0, - TEMPORARY_AUTHORIZATION_FAILED = 1 -} -export interface LocationButtonInterface { - invoke(): LocationButtonAttribute; - -} -export type Callback_ClickEvent_LocationButtonOnClickResult_Void = (event: ClickEvent, - result: LocationButtonOnClickResult) => void; -export interface LocationButtonAttribute extends SecurityComponentMethod { - @memo - onClick(value: ((event: ClickEvent,result: LocationButtonOnClickResult) => void)): this; -} -@memo -@ComponentBuilder -export declare function LocationButton( - options?: LocationButtonOptions | undefined, - @memo - content_?: () => void, -): LocationButtonAttribute diff --git a/build-tools/arkui_transformer/config/arkui_config.json b/build-tools/arkui_transformer/config/arkui_config.json index 890f2d737f..78b303b561 100644 --- a/build-tools/arkui_transformer/config/arkui_config.json +++ b/build-tools/arkui_transformer/config/arkui_config.json @@ -119,7 +119,6 @@ "WaterFlow", "FlowItem", "ImageSpan", - "LocationButton", "PasteButton", "SaveButton", "UIExtensionComponent", diff --git a/build-tools/dts_parser/kit.json b/build-tools/dts_parser/kit.json index 4f61dd0c67..08c2d2f65e 100644 --- a/build-tools/dts_parser/kit.json +++ b/build-tools/dts_parser/kit.json @@ -59,7 +59,6 @@ { "filePath": "@internal/component/ets/list_item.d.ts", "kitName": "ArkUI", "subSystem": "ArkUI开发框架" }, { "filePath": "@internal/component/ets/list_item_group.d.ts", "kitName": "ArkUI", "subSystem": "ArkUI开发框架" }, { "filePath": "@internal/component/ets/loading_progress.d.ts", "kitName": "ArkUI", "subSystem": "ArkUI开发框架" }, - { "filePath": "@internal/component/ets/location_button.d.ts", "kitName": "ArkUI", "subSystem": "ArkUI开发框架" }, { "filePath": "@internal/component/ets/marquee.d.ts", "kitName": "ArkUI", "subSystem": "ArkUI开发框架" }, { "filePath": "@internal/component/ets/matrix2d.d.ts", "kitName": "ArkUI", "subSystem": "ArkUI开发框架" }, { "filePath": "@internal/component/ets/media_cached_image.d.ts", "kitName": "ArkUI", "subSystem": "ArkUI开发框架" }, -- Gitee