From 52d7ace57ae06f085be5dd93d8fa8418278cb775 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-=C3=89tienne=20Lord?= <7397743+pelord@users.noreply.github.com> Date: Mon, 4 Dec 2023 09:46:49 -0500 Subject: [PATCH] feat(common): enhance dialog components (select, checkbox, form based) * fix(common): json dialog service with undefined ignorekeys * feat(common): add a dialog to select values * wip * feat(common): enhance the confirm dialog with a yes no option * feat(common): form field, allow multiple selections * feat(common): add a dialog to select value from a scrolling list * feat(common): add a dialog to select value from checkboxes or radio * wip * wip * feat(common): enhance text field to handle password type * feat(common): add a dialog based on igo-form * feat(demo): add a dialog example section * chore(common): delete code, remplaced bu form-dialog component * chore(demo): merge conflicts resolution * chore(common): changes based on review comments * chore(common): review comments * wip * wip * chore(common): confirm dialog optional options now have an interface * chore(form-dialog): css ng-deep removal (review comment) * chore(common): form-dialog optional options now have an interface * chore(common): form dialog data is now mandatory * chore(common): form dialog, use a behaviorSubject to handle field content * chore(common): select value review comments * chore(common): form-dialog reviews * chore(common): add select-value-dialog dialog options * chore(demo): changes based on review * chore(common): form field text icon to icon-button * wip --- .../confirm-dialog.component.html | 14 +- .../confirm-dialog.component.ts | 3 + .../confirm-dialog.interface.ts | 4 + .../confirm-dialog/confirm-dialog.service.ts | 27 ++- .../common/src/lib/confirm-dialog/index.ts | 1 + .../form-dialog/form-dialog.component.html | 35 ++++ .../form-dialog/form-dialog.component.scss | 15 ++ .../lib/form-dialog/form-dialog.component.ts | 81 ++++++++ .../lib/form-dialog/form-dialog.interface.ts | 23 +++ .../src/lib/form-dialog/form-dialog.module.ts | 35 ++++ .../lib/form-dialog/form-dialog.service.ts | 33 ++++ packages/common/src/lib/form-dialog/index.ts | 3 + .../form-field-select.component.html | 1 + .../form-field/form-field-select.component.ts | 5 + .../form-field/form-field-text.component.html | 14 +- .../form-field/form-field-text.component.ts | 11 +- .../lib/form/form-field/form-field.module.ts | 4 +- .../src/lib/form/shared/form.interfaces.ts | 4 + .../common/src/lib/form/shared/form.utils.ts | 3 +- .../lib/json-dialog/json-dialog.service.ts | 2 +- .../src/lib/select-value-dialog/index.ts | 4 + ...ct-value-check-radio-dialog.component.html | 43 ++++ ...ct-value-check-radio-dialog.component.scss | 12 ++ ...lect-value-check-radio-dialog.component.ts | 88 +++++++++ .../select-value-dialog.enums.ts | 4 + .../select-value-dialog.interface.ts | 20 ++ .../select-value-dialog.module.ts | 38 ++++ .../select-value-dialog.service.ts | 33 ++++ packages/common/src/locale/en.common.json | 15 ++ packages/common/src/locale/fr.common.json | 15 ++ packages/common/src/public_api.ts | 4 + projects/demo/src/app/app.component.html | 1 + projects/demo/src/app/app.module.ts | 2 + .../common/dialog/dialog-routing.module.ts | 12 ++ .../app/common/dialog/dialog.component.html | 54 +++++ .../app/common/dialog/dialog.component.scss | 28 +++ .../src/app/common/dialog/dialog.component.ts | 185 ++++++++++++++++++ .../src/app/common/dialog/dialog.module.ts | 32 +++ .../src/app/common/form/form.component.ts | 4 +- 39 files changed, 889 insertions(+), 23 deletions(-) create mode 100644 packages/common/src/lib/confirm-dialog/confirm-dialog.interface.ts create mode 100644 packages/common/src/lib/form-dialog/form-dialog.component.html create mode 100644 packages/common/src/lib/form-dialog/form-dialog.component.scss create mode 100644 packages/common/src/lib/form-dialog/form-dialog.component.ts create mode 100644 packages/common/src/lib/form-dialog/form-dialog.interface.ts create mode 100644 packages/common/src/lib/form-dialog/form-dialog.module.ts create mode 100644 packages/common/src/lib/form-dialog/form-dialog.service.ts create mode 100644 packages/common/src/lib/form-dialog/index.ts create mode 100644 packages/common/src/lib/select-value-dialog/index.ts create mode 100644 packages/common/src/lib/select-value-dialog/select-value-check-radio-dialog.component.html create mode 100644 packages/common/src/lib/select-value-dialog/select-value-check-radio-dialog.component.scss create mode 100644 packages/common/src/lib/select-value-dialog/select-value-check-radio-dialog.component.ts create mode 100644 packages/common/src/lib/select-value-dialog/select-value-dialog.enums.ts create mode 100644 packages/common/src/lib/select-value-dialog/select-value-dialog.interface.ts create mode 100644 packages/common/src/lib/select-value-dialog/select-value-dialog.module.ts create mode 100644 packages/common/src/lib/select-value-dialog/select-value-dialog.service.ts create mode 100644 projects/demo/src/app/common/dialog/dialog-routing.module.ts create mode 100644 projects/demo/src/app/common/dialog/dialog.component.html create mode 100644 projects/demo/src/app/common/dialog/dialog.component.scss create mode 100644 projects/demo/src/app/common/dialog/dialog.component.ts create mode 100644 projects/demo/src/app/common/dialog/dialog.module.ts diff --git a/packages/common/src/lib/confirm-dialog/confirm-dialog.component.html b/packages/common/src/lib/confirm-dialog/confirm-dialog.component.html index abdfa9d646..0b945b8332 100644 --- a/packages/common/src/lib/confirm-dialog/confirm-dialog.component.html +++ b/packages/common/src/lib/confirm-dialog/confirm-dialog.component.html @@ -1,12 +1,14 @@