From 0e67c7f13d8c0e1ada314f5d5f577d19d5d9ed38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87etin?= <69278826+cetincakiroglu@users.noreply.github.com> Date: Wed, 24 Apr 2024 14:01:07 +0300 Subject: [PATCH] Add deprecate text --- src/app/components/badge/badge.ts | 4 ++-- src/app/showcase/doc/apidoc/index.json | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/app/components/badge/badge.ts b/src/app/components/badge/badge.ts index 0833ce52730..16994fb0f71 100755 --- a/src/app/components/badge/badge.ts +++ b/src/app/components/badge/badge.ts @@ -27,7 +27,7 @@ export class BadgeDirective implements OnChanges, AfterViewInit { /** * Size of the badge, valid options are "large" and "xlarge". * @group Props - * @deprecated + * @deprecated use badgeSize instead. */ @Input() public set size(value: 'large' | 'xlarge') { this._size = value; @@ -237,7 +237,7 @@ export class Badge { /** * Size of the badge, valid options are "large" and "xlarge". * @group Props - * @deprecated + * @deprecated use badgeSize instead. */ @Input() public set size(value: 'large' | 'xlarge') { this._size = value; diff --git a/src/app/showcase/doc/apidoc/index.json b/src/app/showcase/doc/apidoc/index.json index 755a5317b33..e4177d2acb4 100644 --- a/src/app/showcase/doc/apidoc/index.json +++ b/src/app/showcase/doc/apidoc/index.json @@ -4470,6 +4470,14 @@ "type": "\"large\" | \"xlarge\"", "description": "Size of the badge, valid options are \"large\" and \"xlarge\"." }, + { + "name": "size", + "optional": false, + "readonly": false, + "type": "\"large\" | \"xlarge\"", + "description": "Size of the badge, valid options are \"large\" and \"xlarge\".", + "deprecated": "use badgeSize instead." + }, { "name": "severity", "optional": false, @@ -4534,6 +4542,14 @@ "type": "boolean", "default": "false", "description": "When specified, disables the component." + }, + { + "name": "size", + "optional": false, + "readonly": false, + "type": "\"large\" | \"xlarge\"", + "description": "Size of the badge, valid options are \"large\" and \"xlarge\".", + "deprecated": "use badgeSize instead." } ] }