From e924f5ecc6273c78377d375fb05d43fb3a1b7290 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87etin?= <92744169+mehmetcetin01140@users.noreply.github.com> Date: Thu, 16 Nov 2023 15:12:05 +0300 Subject: [PATCH 1/2] Fixed #14133 - InputGroup | New component created --- src/app/components/inputgroup/inputgroup.ts | 26 +++++ src/app/components/inputgroup/ng-package.json | 6 ++ src/app/components/inputgroup/public_api.ts | 1 + .../inputgroupaddon/inputgroupaddon.ts | 26 +++++ .../inputgroupaddon/ng-package.json | 6 ++ .../components/inputgroupaddon/public_api.ts | 1 + src/app/showcase/doc/inputgroup/basicdoc.ts | 96 ++++++++++--------- src/app/showcase/doc/inputgroup/buttondoc.ts | 71 +++++++------- .../showcase/doc/inputgroup/checkboxdoc.ts | 79 ++++++++------- src/app/showcase/doc/inputgroup/importdoc.ts | 5 +- .../doc/inputgroup/inputgroupddoc.module.ts | 4 +- .../showcase/doc/inputgroup/multipledoc.ts | 64 +++++++------ 12 files changed, 228 insertions(+), 157 deletions(-) create mode 100755 src/app/components/inputgroup/inputgroup.ts create mode 100644 src/app/components/inputgroup/ng-package.json create mode 100644 src/app/components/inputgroup/public_api.ts create mode 100755 src/app/components/inputgroupaddon/inputgroupaddon.ts create mode 100644 src/app/components/inputgroupaddon/ng-package.json create mode 100644 src/app/components/inputgroupaddon/public_api.ts diff --git a/src/app/components/inputgroup/inputgroup.ts b/src/app/components/inputgroup/inputgroup.ts new file mode 100755 index 00000000000..5e16fe8150c --- /dev/null +++ b/src/app/components/inputgroup/inputgroup.ts @@ -0,0 +1,26 @@ +import { CommonModule } from '@angular/common'; +import { Component, NgModule } from '@angular/core'; +import { SharedModule } from 'primeng/api'; +/** + * InputGroup displays text, icon, buttons and other content can be grouped next to an input. + * @group Components + */ +@Component({ + selector: 'p-inputGroup', + template: ` +
An InputGroup is created by wrapping the input and add-ons inside an element with a p-inputgroup class where add-ons also should be inside an element with .p-inputgroup-addon class
+A group is created by wrapping the input and add-ons with the InputGroup component. Each add-on element is defined as a child of InputGroupAddon component.
Buttons can be placed at either side of an input element.
Checkbox and RadioButton components can be combined with an input element under the same group.
Multiple add-ons can be placed inside the same group.