@dropi/ui-components 1.0.12 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +55 -36
- package/dist/README.md +58 -38
- package/dist/components-source/accordion/accordion-item/accordion-item.component.d.ts +31 -0
- package/dist/components-source/accordion/accordion.component.d.ts +26 -0
- package/dist/components-source/alert/alert.component.d.ts +32 -0
- package/dist/components-source/alert-modal/alert-modal.component.d.ts +78 -0
- package/dist/components-source/alert-validation/alert-validation.component.d.ts +21 -0
- package/dist/components-source/badge/badge.component.d.ts +12 -0
- package/dist/components-source/beta-tag/beta-tag.component.d.ts +5 -0
- package/dist/components-source/breadcrumb/breadcrumb.component.d.ts +11 -0
- package/dist/components-source/card-product/card-product.component.d.ts +204 -0
- package/dist/components-source/card-section/card-section.component.d.ts +31 -0
- package/dist/components-source/checkbox-selection-list/checkbox-selection-list.component.d.ts +26 -0
- package/dist/components-source/city-selector/city-selector.component.d.ts +17 -0
- package/dist/components-source/color-picker/color-picker.component.d.ts +73 -0
- package/dist/components-source/confirm-dialog/confirm-dialog.component.d.ts +10 -0
- package/dist/components-source/country-flags/country-flags.component.d.ts +12 -0
- package/dist/components-source/date-picker/date-picker.component.d.ts +27 -0
- package/dist/components-source/date-picker-range/date-picker-range.component.d.ts +26 -0
- package/dist/components-source/dropi-avatars/dropi-avatars.component.d.ts +11 -0
- package/dist/components-source/dropi-badge/dropi-badge.component.d.ts +29 -0
- package/dist/components-source/dropi-banner-external/dropi-banner-external.component.d.ts +19 -0
- package/dist/components-source/dropi-breadcrumb/dropi-breadcrumb.component.d.ts +22 -0
- package/dist/components-source/dropi-card-checkbox/dropi-card-checkbox.component.d.ts +20 -0
- package/dist/components-source/dropi-carousel/dropi-carousel.component.d.ts +52 -0
- package/dist/components-source/dropi-checkbox/dropi-checkbox.component.d.ts +11 -0
- package/dist/components-source/dropi-chips/dropi-chips.component.d.ts +17 -0
- package/dist/components-source/dropi-country-selector/countries.data.d.ts +6 -0
- package/dist/components-source/dropi-country-selector/dropi-country-selector.component.d.ts +90 -0
- package/dist/components-source/dropi-drawer/dropi-drawer.component.d.ts +20 -0
- package/dist/components-source/dropi-dropdown/dropi-dropdown.component.d.ts +20 -0
- package/dist/components-source/dropi-favorite-button/dropi-favorite-button.component.d.ts +12 -0
- package/dist/components-source/dropi-file-upload/card-view/card-view.component.d.ts +19 -0
- package/dist/components-source/dropi-file-upload/drop-zone/drop-zone.component.d.ts +38 -0
- package/dist/components-source/dropi-file-upload/dropi-file-upload.component.d.ts +18 -0
- package/dist/components-source/dropi-file-upload/file-list/file-list.component.d.ts +39 -0
- package/dist/components-source/dropi-file-upload/grid-view/grid-view.component.d.ts +15 -0
- package/dist/components-source/dropi-ilustration-icon/dropi-ilustration-icon.component.d.ts +20 -0
- package/dist/components-source/dropi-image-overlay/dropi-image-overlay.component.d.ts +8 -0
- package/dist/components-source/dropi-languages-selector/dropi-languages-selector.component.d.ts +18 -0
- package/dist/components-source/dropi-logo/dropi-logo.component.d.ts +12 -0
- package/dist/components-source/dropi-modal/dropi-modal.component.d.ts +34 -0
- package/dist/components-source/dropi-modal/p-template.directive.d.ts +9 -0
- package/dist/components-source/dropi-navbar/dropi-navbar.component.d.ts +20 -0
- package/dist/components-source/dropi-paginator/dropi-paginator.component.d.ts +21 -0
- package/dist/components-source/dropi-phone-input/dropi-phone-input.component.d.ts +55 -0
- package/dist/components-source/dropi-radio-button/dropi-radio-button.component.d.ts +17 -0
- package/dist/components-source/dropi-search/dropi-search.component.d.ts +40 -0
- package/dist/components-source/dropi-select/dropi-select.component.d.ts +34 -0
- package/dist/components-source/dropi-skeleton/dropi-skeleton.component.d.ts +14 -0
- package/dist/components-source/dropi-steps/dropi-steps.component.d.ts +64 -0
- package/dist/components-source/dropi-switch/dropi-switch.component.d.ts +11 -0
- package/dist/components-source/dropi-table/dropi-table.component.d.ts +82 -0
- package/dist/components-source/dropi-tag/dropi-tag.component.d.ts +15 -0
- package/dist/components-source/dropi-text-area/dropi-text-area.component.d.ts +14 -0
- package/dist/components-source/dropi-tooltip/dropi-tooltip.component.d.ts +28 -0
- package/dist/components-source/dropi-youtube-lazy-video/dropi-youtube-lazy-video.component.d.ts +16 -0
- package/dist/components-source/empty/empty.component.d.ts +9 -0
- package/dist/components-source/empty-state/empty-state.component.d.ts +17 -0
- package/dist/components-source/file-upload-progress-bar/file-upload-progress-bar.component.d.ts +30 -0
- package/dist/components-source/index.d.ts +85 -0
- package/dist/components-source/input/input.component.d.ts +33 -0
- package/dist/components-source/lottie-loader/lottie-loader.component.d.ts +9 -0
- package/dist/components-source/otp-send-code/otp-send-code.component.d.ts +83 -0
- package/dist/components-source/radio-selection-list/radio-selection-list.component.d.ts +30 -0
- package/dist/components-source/read-more/read-more.component.d.ts +60 -0
- package/dist/components-source/sidebar/sidebar.component.d.ts +27 -0
- package/dist/components-source/simple-stepper/simple-stepper.component.d.ts +21 -0
- package/dist/components-source/spinner/spinner.component.d.ts +9 -0
- package/dist/components-source/tabs/tabs.component.d.ts +27 -0
- package/dist/components-source/tag-type-product/tag-type-product.component.d.ts +5 -0
- package/dist/components-source/toast/toast.component.d.ts +21 -0
- package/dist/components-source/toggle/input-toggle.component.d.ts +11 -0
- package/dist/components-source/tooltip/tooltip.component.d.ts +15 -0
- package/dist/components-source/vertical-steps/vertical-steps.component.d.ts +27 -0
- package/dist/esm2022/components-source/accordion/accordion-item/accordion-item.component.mjs +51 -0
- package/dist/esm2022/components-source/accordion/accordion.component.mjs +46 -0
- package/dist/esm2022/components-source/alert/alert.component.mjs +114 -0
- package/dist/esm2022/components-source/alert-modal/alert-modal.component.mjs +247 -0
- package/dist/esm2022/components-source/alert-validation/alert-validation.component.mjs +53 -0
- package/dist/esm2022/components-source/badge/badge.component.mjs +23 -0
- package/dist/esm2022/components-source/beta-tag/beta-tag.component.mjs +11 -0
- package/dist/esm2022/components-source/breadcrumb/breadcrumb.component.mjs +26 -0
- package/dist/esm2022/components-source/card-product/card-product.component.mjs +534 -0
- package/dist/esm2022/components-source/card-section/card-section.component.mjs +91 -0
- package/dist/esm2022/components-source/checkbox-selection-list/checkbox-selection-list.component.mjs +79 -0
- package/dist/esm2022/components-source/city-selector/city-selector.component.mjs +53 -0
- package/dist/esm2022/components-source/color-picker/color-picker.component.mjs +320 -0
- package/dist/esm2022/components-source/confirm-dialog/confirm-dialog.component.mjs +27 -0
- package/dist/esm2022/components-source/country-flags/country-flags.component.mjs +27 -0
- package/dist/esm2022/components-source/date-picker/date-picker.component.mjs +73 -0
- package/dist/esm2022/components-source/date-picker-range/date-picker-range.component.mjs +67 -0
- package/dist/esm2022/components-source/dropi-avatars/dropi-avatars.component.mjs +31 -0
- package/dist/esm2022/components-source/dropi-badge/dropi-badge.component.mjs +45 -0
- package/dist/esm2022/components-source/dropi-banner-external/dropi-banner-external.component.mjs +39 -0
- package/dist/esm2022/components-source/dropi-breadcrumb/dropi-breadcrumb.component.mjs +45 -0
- package/dist/esm2022/components-source/dropi-card-checkbox/dropi-card-checkbox.component.mjs +53 -0
- package/dist/esm2022/components-source/dropi-carousel/dropi-carousel.component.mjs +243 -0
- package/dist/esm2022/components-source/dropi-checkbox/dropi-checkbox.component.mjs +31 -0
- package/dist/esm2022/components-source/dropi-chips/dropi-chips.component.mjs +38 -0
- package/dist/esm2022/components-source/dropi-country-selector/countries.data.mjs +254 -0
- package/dist/esm2022/components-source/dropi-country-selector/dropi-country-selector.component.mjs +183 -0
- package/dist/esm2022/components-source/dropi-drawer/dropi-drawer.component.mjs +69 -0
- package/dist/esm2022/components-source/dropi-dropdown/dropi-dropdown.component.mjs +59 -0
- package/dist/esm2022/components-source/dropi-favorite-button/dropi-favorite-button.component.mjs +33 -0
- package/dist/esm2022/components-source/dropi-file-upload/card-view/card-view.component.mjs +47 -0
- package/dist/esm2022/components-source/dropi-file-upload/drop-zone/drop-zone.component.mjs +115 -0
- package/dist/esm2022/components-source/dropi-file-upload/dropi-file-upload.component.mjs +66 -0
- package/dist/esm2022/components-source/dropi-file-upload/file-list/file-list.component.mjs +95 -0
- package/dist/esm2022/components-source/dropi-file-upload/grid-view/grid-view.component.mjs +37 -0
- package/dist/esm2022/components-source/dropi-ilustration-icon/dropi-ilustration-icon.component.mjs +59 -0
- package/dist/esm2022/components-source/dropi-image-overlay/dropi-image-overlay.component.mjs +31 -0
- package/dist/esm2022/components-source/dropi-languages-selector/dropi-languages-selector.component.mjs +38 -0
- package/dist/esm2022/components-source/dropi-logo/dropi-logo.component.mjs +27 -0
- package/dist/esm2022/components-source/dropi-modal/dropi-modal.component.mjs +92 -0
- package/dist/esm2022/components-source/dropi-modal/p-template.directive.mjs +22 -0
- package/dist/esm2022/components-source/dropi-navbar/dropi-navbar.component.mjs +51 -0
- package/dist/esm2022/components-source/dropi-paginator/dropi-paginator.component.mjs +89 -0
- package/dist/esm2022/components-source/dropi-phone-input/dropi-phone-input.component.mjs +155 -0
- package/dist/esm2022/components-source/dropi-radio-button/dropi-radio-button.component.mjs +48 -0
- package/dist/esm2022/components-source/dropi-search/dropi-search.component.mjs +104 -0
- package/dist/esm2022/components-source/dropi-select/dropi-select.component.mjs +96 -0
- package/dist/esm2022/components-source/dropi-skeleton/dropi-skeleton.component.mjs +39 -0
- package/dist/esm2022/components-source/dropi-steps/dropi-steps.component.mjs +97 -0
- package/dist/esm2022/components-source/dropi-switch/dropi-switch.component.mjs +22 -0
- package/dist/esm2022/components-source/dropi-table/dropi-table.component.mjs +333 -0
- package/dist/esm2022/components-source/dropi-tag/dropi-tag.component.mjs +36 -0
- package/dist/esm2022/components-source/dropi-text-area/dropi-text-area.component.mjs +53 -0
- package/dist/esm2022/components-source/dropi-tooltip/dropi-tooltip.component.mjs +78 -0
- package/dist/esm2022/components-source/dropi-youtube-lazy-video/dropi-youtube-lazy-video.component.mjs +46 -0
- package/dist/esm2022/components-source/empty/empty.component.mjs +18 -0
- package/dist/esm2022/components-source/empty-state/empty-state.component.mjs +62 -0
- package/dist/esm2022/components-source/file-upload-progress-bar/file-upload-progress-bar.component.mjs +91 -0
- package/dist/esm2022/components-source/index.mjs +107 -0
- package/dist/esm2022/components-source/input/input.component.mjs +104 -0
- package/dist/esm2022/components-source/lottie-loader/lottie-loader.component.mjs +25 -0
- package/dist/esm2022/components-source/otp-send-code/otp-send-code.component.mjs +201 -0
- package/dist/esm2022/components-source/radio-selection-list/radio-selection-list.component.mjs +89 -0
- package/dist/esm2022/components-source/read-more/read-more.component.mjs +91 -0
- package/dist/esm2022/components-source/sidebar/sidebar.component.mjs +88 -0
- package/dist/esm2022/components-source/simple-stepper/simple-stepper.component.mjs +60 -0
- package/dist/esm2022/components-source/spinner/spinner.component.mjs +19 -0
- package/dist/esm2022/components-source/tabs/tabs.component.mjs +83 -0
- package/dist/esm2022/components-source/tag-type-product/tag-type-product.component.mjs +11 -0
- package/dist/esm2022/components-source/toast/toast.component.mjs +47 -0
- package/dist/esm2022/components-source/toggle/input-toggle.component.mjs +36 -0
- package/dist/esm2022/components-source/tooltip/tooltip.component.mjs +34 -0
- package/dist/esm2022/components-source/vertical-steps/vertical-steps.component.mjs +75 -0
- package/dist/esm2022/lib/elements-registry.mjs +343 -2
- package/dist/esm2022/utilities/interfaces/ui/dropi-table.interface.mjs +2 -0
- package/dist/esm2022/utilities/interfaces/ui/input-interface.mjs +2 -0
- package/dist/esm2022/utilities/interfaces/ui/select-interface.mjs +2 -0
- package/dist/esm2022/utilities/interfaces/ui/selection-list-interface.mjs +2 -0
- package/dist/esm2022/utilities/interfaces/ui/upload.model.mjs +5 -0
- package/dist/fesm2022/dropi-ui-components.mjs +5913 -2
- package/dist/fesm2022/dropi-ui-components.mjs.map +1 -1
- package/dist/utilities/interfaces/ui/dropi-table.interface.d.ts +45 -0
- package/dist/utilities/interfaces/ui/input-interface.d.ts +33 -0
- package/dist/utilities/interfaces/ui/select-interface.d.ts +8 -0
- package/dist/utilities/interfaces/ui/selection-list-interface.d.ts +24 -0
- package/dist/utilities/interfaces/ui/upload.model.d.ts +30 -0
- package/package.json +18 -6
- package/src/components-source/alert/alert.component.ts +12 -129
- package/src/components-source/alert-modal/alert-modal.component.ts +84 -114
- package/src/components-source/alert-validation/alert-validation.component.html +8 -0
- package/src/components-source/alert-validation/alert-validation.component.scss +225 -0
- package/src/components-source/alert-validation/alert-validation.component.ts +43 -0
- package/src/components-source/beta-tag/beta-tag.component.html +1 -0
- package/src/components-source/beta-tag/beta-tag.component.scss +26 -0
- package/src/components-source/beta-tag/beta-tag.component.ts +11 -0
- package/src/components-source/breadcrumb/breadcrumb.component.html +13 -5
- package/src/components-source/breadcrumb/breadcrumb.component.scss +8 -1
- package/src/components-source/breadcrumb/breadcrumb.component.spec.ts +26 -26
- package/src/components-source/breadcrumb/breadcrumb.component.ts +10 -12
- package/src/components-source/card-product/card-product.component.spec.ts +9 -9
- package/src/components-source/card-product/card-product.component.stories.ts +2 -2
- package/src/components-source/card-product/card-product.component.ts +294 -818
- package/src/components-source/card-section/card-section.component.html +7 -7
- package/src/components-source/card-section/card-section.component.ts +41 -15
- package/src/components-source/checkbox-selection-list/checkbox-selection-list.component.ts +42 -179
- package/src/components-source/city-selector/city-selector.component.ts +37 -137
- package/src/components-source/confirm-dialog/confirm-dialog.component.html +26 -0
- package/src/components-source/confirm-dialog/confirm-dialog.component.scss +55 -0
- package/src/components-source/confirm-dialog/confirm-dialog.component.ts +22 -0
- package/src/components-source/country-flags/country-flags.component.ts +20 -12
- package/src/components-source/date-picker/date-picker.component.ts +32 -292
- package/src/components-source/date-picker-range/date-picker-range.component.html +15 -7
- package/src/components-source/date-picker-range/date-picker-range.component.ts +42 -235
- package/src/components-source/dropi-banner-external/dropi-banner-external.component.ts +24 -185
- package/src/components-source/dropi-breadcrumb/dropi-breadcrumb.component.html +21 -21
- package/src/components-source/dropi-breadcrumb/dropi-breadcrumb.component.spec.ts +9 -9
- package/src/components-source/dropi-breadcrumb/dropi-breadcrumb.component.ts +41 -23
- package/src/components-source/dropi-breadcrumb/dropi-breadcrumb.stories.ts +12 -12
- package/src/components-source/dropi-chips/dropi-chips.component.ts +22 -87
- package/src/components-source/dropi-country-selector/countries.data.ts +256 -236
- package/src/components-source/dropi-country-selector/dropi-country-selector.component.ts +37 -25
- package/src/components-source/dropi-drawer/dropi-drawer.component.ts +91 -78
- package/src/components-source/dropi-dropdown/dropi-dropdown.component.ts +44 -47
- package/src/components-source/dropi-file-upload/card-view/card-view.component.ts +33 -53
- package/src/components-source/dropi-file-upload/drop-zone/drop-zone.component.ts +52 -123
- package/src/components-source/dropi-file-upload/dropi-file-upload.component.ts +38 -294
- package/src/components-source/dropi-file-upload/file-list/file-list.component.ts +62 -43
- package/src/components-source/dropi-file-upload/grid-view/grid-view.component.ts +23 -22
- package/src/components-source/dropi-ilustration-icon/dropi-ilustration-icon.component.scss +6 -2
- package/src/components-source/dropi-image-overlay/dropi-image-overlay.component.ts +16 -71
- package/src/components-source/dropi-modal/dropi-modal.component.ts +56 -372
- package/src/components-source/dropi-navbar/dropi-navbar.component.ts +17 -17
- package/src/components-source/dropi-paginator/dropi-paginator.component.html +18 -7
- package/src/components-source/dropi-paginator/dropi-paginator.component.ts +40 -32
- package/src/components-source/dropi-phone-input/dropi-phone-input.component.html +78 -79
- package/src/components-source/dropi-phone-input/dropi-phone-input.component.ts +29 -85
- package/src/components-source/dropi-search/dropi-search.component.ts +59 -222
- package/src/components-source/dropi-select/dropi-select.component.html +82 -131
- package/src/components-source/dropi-select/dropi-select.component.ts +60 -423
- package/src/components-source/dropi-table/dropi-table.component.html +40 -23
- package/src/components-source/dropi-table/dropi-table.component.ts +130 -374
- package/src/components-source/dropi-tag/dropi-tag.component.ts +20 -90
- package/src/components-source/dropi-text-area/dropi-text-area.component.ts +22 -48
- package/src/components-source/dropi-tooltip/dropi-tooltip.component.ts +40 -129
- package/src/components-source/empty/empty.component.html +3 -0
- package/src/components-source/empty/empty.component.scss +0 -0
- package/src/components-source/empty/empty.component.ts +16 -0
- package/src/components-source/empty-state/empty-state.component.ts +47 -19
- package/src/components-source/index.ts +82 -37
- package/src/components-source/input/input.component.html +79 -63
- package/src/components-source/input/input.component.ts +51 -97
- package/src/components-source/lottie-loader/lottie-loader.component.ts +13 -16
- package/src/components-source/otp-send-code/otp-send-code.component.ts +60 -528
- package/src/components-source/radio-selection-list/radio-selection-list.component.ts +36 -97
- package/src/components-source/sidebar/sidebar.component.spec.ts +11 -11
- package/src/components-source/sidebar/sidebar.component.stories.ts +3 -3
- package/src/components-source/sidebar/sidebar.component.ts +51 -47
- package/src/components-source/simple-stepper/simple-stepper.component.ts +20 -35
- package/src/components-source/spinner/spinner.component.html +6 -0
- package/src/components-source/spinner/spinner.component.scss +15 -0
- package/src/components-source/spinner/spinner.component.ts +17 -0
- package/src/components-source/tabs/tabs.component.spec.ts +8 -8
- package/src/components-source/tabs/tabs.component.stories.ts +5 -5
- package/src/components-source/tabs/tabs.component.ts +41 -83
- package/src/components-source/toast/toast.component.ts +40 -46
- package/src/components-source/toggle/input-toggle.component.html +34 -0
- package/src/components-source/toggle/input-toggle.component.scss +0 -0
- package/src/components-source/toggle/input-toggle.component.ts +27 -0
- package/src/components-source/toggle/inputToggleConfig.ts +11 -0
- package/src/components-source/tooltip/tooltip.component.html +22 -11
- package/src/components-source/tooltip/tooltip.component.ts +28 -13
- package/src/components-source/vertical-steps/vertical-steps.component.ts +16 -78
- package/src/lib/elements-registry.ts +413 -1
- package/src/lib/router-stub.ts +7 -0
- package/src/libreria work space.code-workspace +11 -8
- package/src/utilities/interfaces/ui/dropi-table.interface.ts +60 -0
- package/src/utilities/interfaces/ui/input-interface.ts +34 -0
- package/src/utilities/interfaces/ui/select-interface.ts +8 -0
- package/src/utilities/interfaces/ui/selection-list-interface.ts +15 -0
- package/src/utilities/interfaces/ui/upload.model.ts +41 -0
|
@@ -8,76 +8,121 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
// Date Pickers
|
|
11
|
-
export { DatePickerRangeComponent } from
|
|
12
|
-
export { DatePickerComponent } from
|
|
11
|
+
export { DatePickerRangeComponent } from "./date-picker-range/date-picker-range.component";
|
|
12
|
+
export { DatePickerComponent } from "./date-picker/date-picker.component";
|
|
13
13
|
|
|
14
14
|
// Tooltips
|
|
15
|
-
export { TooltipComponent } from
|
|
16
|
-
export { DropiTooltipComponent } from
|
|
15
|
+
export { TooltipComponent } from "./tooltip/tooltip.component";
|
|
16
|
+
export { DropiTooltipComponent } from "./dropi-tooltip/dropi-tooltip.component";
|
|
17
17
|
|
|
18
18
|
// Tags & Badges
|
|
19
|
-
export { TagTypeProductComponent } from
|
|
20
|
-
export { DropiTagComponent } from
|
|
21
|
-
export { DropiChipsComponent } from
|
|
19
|
+
export { TagTypeProductComponent } from "./tag-type-product/tag-type-product.component";
|
|
20
|
+
export { DropiTagComponent } from "./dropi-tag/dropi-tag.component";
|
|
21
|
+
export { DropiChipsComponent } from "./dropi-chips/dropi-chips.component";
|
|
22
|
+
|
|
23
|
+
// Banners
|
|
24
|
+
export { DropiBannerExternalComponent } from "./dropi-banner-external/dropi-banner-external.component";
|
|
25
|
+
export { AlertValidationComponent } from "./alert-validation/alert-validation.component";
|
|
26
|
+
export { BetaTagComponent } from "./beta-tag/beta-tag.component";
|
|
22
27
|
|
|
23
28
|
// Modals & Alerts
|
|
24
|
-
export { AlertModalComponent } from
|
|
25
|
-
export { AlertComponent } from
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
29
|
+
export { AlertModalComponent } from "./alert-modal/alert-modal.component";
|
|
30
|
+
export { AlertComponent } from "./alert/alert.component";
|
|
31
|
+
export { ConfirmDialogComponent } from "./confirm-dialog/confirm-dialog.component";
|
|
32
|
+
export { DropiModalComponent } from "./dropi-modal/dropi-modal.component";
|
|
33
|
+
export { PTemplateDirective } from "./dropi-modal/p-template.directive";
|
|
28
34
|
|
|
29
35
|
// Steppers & Navigation
|
|
30
|
-
export { SimpleStepperComponent } from
|
|
31
|
-
export { BreadcrumbComponent } from
|
|
32
|
-
export { TabsComponent } from
|
|
33
|
-
export { DropiStepsComponent } from
|
|
34
|
-
export { VerticalStepsComponent } from
|
|
35
|
-
export type {
|
|
36
|
+
export { SimpleStepperComponent } from "./simple-stepper/simple-stepper.component";
|
|
37
|
+
export { BreadcrumbComponent } from "./breadcrumb/breadcrumb.component";
|
|
38
|
+
export { TabsComponent } from "./tabs/tabs.component";
|
|
39
|
+
export { DropiStepsComponent } from "./dropi-steps/dropi-steps.component";
|
|
40
|
+
export { VerticalStepsComponent } from "./vertical-steps/vertical-steps.component";
|
|
41
|
+
export type {
|
|
42
|
+
VerticalStep,
|
|
43
|
+
VerticalStepState,
|
|
44
|
+
} from "./vertical-steps/vertical-steps.component";
|
|
45
|
+
export { DropiPaginatorComponent } from "./dropi-paginator/dropi-paginator.component";
|
|
46
|
+
export { DropiBreadcrumbComponent } from "./dropi-breadcrumb/dropi-breadcrumb.component";
|
|
47
|
+
export { DropiLanguagesSelectorComponent } from "./dropi-languages-selector/dropi-languages-selector.component";
|
|
36
48
|
|
|
37
49
|
// Selectors
|
|
38
|
-
export { CitySelectorComponent } from
|
|
39
|
-
export { DropiSelectComponent } from
|
|
50
|
+
export { CitySelectorComponent } from "./city-selector/city-selector.component";
|
|
51
|
+
export { DropiSelectComponent } from "./dropi-select/dropi-select.component";
|
|
40
52
|
|
|
41
53
|
// Lists & Selection
|
|
42
|
-
export { RadioSelectionListComponent } from
|
|
43
|
-
export { CheckboxSelectionListComponent } from
|
|
54
|
+
export { RadioSelectionListComponent } from "./radio-selection-list/radio-selection-list.component";
|
|
55
|
+
export { CheckboxSelectionListComponent } from "./checkbox-selection-list/checkbox-selection-list.component";
|
|
56
|
+
export { DropiCheckboxComponent } from "./dropi-checkbox/dropi-checkbox.component";
|
|
57
|
+
export { DropiRadioButtonComponent } from "./dropi-radio-button/dropi-radio-button.component";
|
|
44
58
|
|
|
45
59
|
// Loaders & Feedback
|
|
46
|
-
export { LottieLoaderComponent } from
|
|
47
|
-
export { ToastComponent } from
|
|
60
|
+
export { LottieLoaderComponent } from "./lottie-loader/lottie-loader.component";
|
|
61
|
+
export { ToastComponent } from "./toast/toast.component";
|
|
62
|
+
export { FileUploadProgressBarComponent } from "./file-upload-progress-bar/file-upload-progress-bar.component";
|
|
63
|
+
export { DropiIlustrationIconComponent } from "./dropi-ilustration-icon/dropi-ilustration-icon.component";
|
|
64
|
+
export { SpinnerComponent } from "./spinner/spinner.component";
|
|
48
65
|
|
|
49
66
|
// Accordion
|
|
50
|
-
export { AccordionComponent } from
|
|
51
|
-
export { AccordionItemComponent } from
|
|
67
|
+
export { AccordionComponent } from "./accordion/accordion.component";
|
|
68
|
+
export { AccordionItemComponent } from "./accordion/accordion-item/accordion-item.component";
|
|
52
69
|
|
|
53
70
|
// Text & Content
|
|
54
|
-
export { ReadMoreComponent } from
|
|
71
|
+
export { ReadMoreComponent } from "./read-more/read-more.component";
|
|
72
|
+
export { EmptyComponent } from "./empty/empty.component";
|
|
55
73
|
|
|
56
74
|
// Icons & Images
|
|
57
|
-
export { IconComponent } from
|
|
58
|
-
export { DropiImageOverlayComponent } from
|
|
75
|
+
export { IconComponent } from "./icon/icon.component";
|
|
76
|
+
export { DropiImageOverlayComponent } from "./dropi-image-overlay/dropi-image-overlay.component";
|
|
77
|
+
export { DropiLogoComponent } from "./dropi-logo/dropi-logo.component";
|
|
78
|
+
export { DropiAvatarsComponent } from "./dropi-avatars/dropi-avatars.component";
|
|
79
|
+
export { CountryFlagsComponent } from "./country-flags/country-flags.component";
|
|
59
80
|
|
|
60
81
|
// Form Controls
|
|
61
|
-
export { InputComponent } from
|
|
62
|
-
export { DropiSwitchComponent } from
|
|
63
|
-
export { DropiSearchComponent } from
|
|
64
|
-
export { OtpSendCodeComponent } from
|
|
82
|
+
export { InputComponent } from "./input/input.component";
|
|
83
|
+
export { DropiSwitchComponent } from "./dropi-switch/dropi-switch.component";
|
|
84
|
+
export { DropiSearchComponent } from "./dropi-search/dropi-search.component";
|
|
85
|
+
export { OtpSendCodeComponent } from "./otp-send-code/otp-send-code.component";
|
|
86
|
+
export { DropiTextAreaComponent } from "./dropi-text-area/dropi-text-area.component";
|
|
87
|
+
export { DropiPhoneInputComponent } from "./dropi-phone-input/dropi-phone-input.component";
|
|
88
|
+
export { InputToggleComponent } from "./toggle/input-toggle.component";
|
|
89
|
+
|
|
90
|
+
// Multimedia
|
|
91
|
+
export { DropiCarouselComponent } from "./dropi-carousel/dropi-carousel.component";
|
|
92
|
+
export { DropiYoutubeLazyVideoComponent } from "./dropi-youtube-lazy-video/dropi-youtube-lazy-video.component";
|
|
65
93
|
|
|
66
94
|
// Buttons
|
|
67
95
|
export {
|
|
68
96
|
ButtonComponent,
|
|
69
97
|
ButtonComponent as DropiButtonComponent,
|
|
70
|
-
} from
|
|
98
|
+
} from "./dropi-button/dropi-button.component";
|
|
71
99
|
|
|
72
100
|
// Tables
|
|
73
|
-
export { DropiTableComponent } from
|
|
101
|
+
export { DropiTableComponent } from "./dropi-table/dropi-table.component";
|
|
102
|
+
|
|
103
|
+
// Elements
|
|
104
|
+
export { DropiFavoriteButtonComponent } from "./dropi-favorite-button/dropi-favorite-button.component";
|
|
105
|
+
export { DropiCardCheckboxComponent } from "./dropi-card-checkbox/dropi-card-checkbox.component";
|
|
106
|
+
export { CardSectionComponent } from "./card-section/card-section.component";
|
|
107
|
+
export { CardProductComponent } from "./card-product/card-product.component";
|
|
108
|
+
export { ColorPickerComponent } from "./color-picker/color-picker.component";
|
|
109
|
+
export { DropiBadgeComponent } from "./dropi-badge/dropi-badge.component";
|
|
110
|
+
export { BadgeComponent } from "./badge/badge.component";
|
|
111
|
+
export { DropiSkeletonComponent } from "./dropi-skeleton/dropi-skeleton.component";
|
|
112
|
+
export { EmptyStateComponent } from "./empty-state/empty-state.component";
|
|
74
113
|
|
|
75
114
|
// File Upload
|
|
76
|
-
export { DropiFileUploadComponent } from
|
|
77
|
-
export { DropZoneComponent } from
|
|
115
|
+
export { DropiFileUploadComponent } from "./dropi-file-upload/dropi-file-upload.component";
|
|
116
|
+
export { DropZoneComponent } from "./dropi-file-upload/drop-zone/drop-zone.component";
|
|
78
117
|
|
|
79
118
|
// Country Selector
|
|
80
|
-
export { DropiCountrySelectorComponent } from
|
|
119
|
+
export { DropiCountrySelectorComponent } from "./dropi-country-selector/dropi-country-selector.component";
|
|
120
|
+
|
|
121
|
+
// Containers
|
|
122
|
+
export { DropiDrawerComponent } from "./dropi-drawer/dropi-drawer.component";
|
|
123
|
+
export { SidebarComponent } from "./sidebar/sidebar.component";
|
|
124
|
+
export { DropiNavBarComponent } from "./dropi-navbar/dropi-navbar.component";
|
|
125
|
+
export { DropiDropdownComponent } from "./dropi-dropdown/dropi-dropdown.component";
|
|
81
126
|
|
|
82
127
|
/**
|
|
83
128
|
* Array con todos los componentes UI para importar en módulos
|
|
@@ -1,97 +1,113 @@
|
|
|
1
1
|
<div
|
|
2
|
+
class="dropi-input-container"
|
|
2
3
|
[ngClass]="{
|
|
3
|
-
'
|
|
4
|
+
'dropi-input--error':
|
|
5
|
+
inputProperties.formControl.invalid &&
|
|
6
|
+
inputProperties.formControl.touched,
|
|
7
|
+
'dropi-input--disabled': disabled || inputProperties.formControl.disabled,
|
|
8
|
+
'dropi-input--with-icon-right':
|
|
9
|
+
inputProperties.icon && inputProperties.iconPos === 'right',
|
|
10
|
+
'dropi-input--with-icon-left':
|
|
11
|
+
inputProperties.icon && inputProperties.iconPos === 'left',
|
|
4
12
|
}"
|
|
5
13
|
>
|
|
6
|
-
<div class="
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
*ngIf="
|
|
10
|
-
>*</span
|
|
14
|
+
<div class="input-wrapper">
|
|
15
|
+
<div
|
|
16
|
+
class="icon-container left"
|
|
17
|
+
*ngIf="inputProperties.icon && inputProperties.iconPos === 'left'"
|
|
11
18
|
>
|
|
12
|
-
</div>
|
|
13
|
-
<div class="form-group">
|
|
14
|
-
<div class="input-container">
|
|
15
19
|
<app-icon
|
|
16
|
-
*ngIf="inputProperties.icon && inputProperties.formControl.value"
|
|
17
|
-
class="icon-input"
|
|
18
20
|
[name]="inputProperties.icon"
|
|
19
|
-
[color]="inputProperties.iconColor"
|
|
20
|
-
width="20px"
|
|
21
|
-
height="20px"
|
|
22
|
-
></app-icon>
|
|
23
|
-
|
|
24
|
-
<app-icon
|
|
25
|
-
*ngIf="inputProperties.isPasswordInput"
|
|
26
|
-
class="icon-input-password"
|
|
27
|
-
[name]="showPassword ? 'Eye' : 'Eye-crossed'"
|
|
28
21
|
width="20px"
|
|
29
22
|
height="20px"
|
|
30
23
|
color="Gray-Gray-500"
|
|
31
|
-
(click)="showOrHidePassword()"
|
|
32
24
|
></app-icon>
|
|
25
|
+
</div>
|
|
33
26
|
|
|
27
|
+
<div class="input-field-wrapper">
|
|
34
28
|
<input
|
|
35
|
-
|
|
36
|
-
class="
|
|
37
|
-
[id]="inputProperties.id ? inputProperties.id : inputProperties.label"
|
|
38
|
-
[attr.data-cy]="inputProperties.dataCy"
|
|
39
|
-
type="text"
|
|
29
|
+
[type]="showPassword ? 'text' : inputProperties.type || 'text'"
|
|
30
|
+
class="dropi-input Body-M-Regular"
|
|
40
31
|
[ngClass]="{
|
|
41
|
-
'form-control-valid': inputProperties.formControl.valid,
|
|
42
|
-
'form-control-invalid':
|
|
43
|
-
inputProperties.formControl.invalid && inputProperties.formControl.dirty,
|
|
44
|
-
'padding-icon': inputProperties.icon && inputProperties.formControl.value,
|
|
45
32
|
'text-password': inputProperties.isPasswordInput && !showPassword,
|
|
46
|
-
'fixed-label-input': fixedLabel
|
|
33
|
+
'fixed-label-input': fixedLabel,
|
|
47
34
|
}"
|
|
35
|
+
[id]="inputProperties.id ? inputProperties.id : inputProperties.label"
|
|
36
|
+
[attr.data-cy]="inputProperties.dataCy"
|
|
48
37
|
[formControl]="inputProperties.formControl"
|
|
49
38
|
[placeholder]="inputProperties.placeholder | translate"
|
|
39
|
+
[maxlength]="inputProperties.maxLength"
|
|
50
40
|
[attr.inputmode]="inputProperties.inputMode || 'text'"
|
|
41
|
+
[disabled]="disabled || inputProperties.formControl.disabled"
|
|
51
42
|
appThousandSeparator
|
|
52
|
-
[applyFormat]="
|
|
53
|
-
|
|
43
|
+
[applyFormat]="
|
|
44
|
+
!!(
|
|
45
|
+
inputProperties?.isMoneyInput ||
|
|
46
|
+
inputProperties?.isThousandSeparator
|
|
47
|
+
)
|
|
48
|
+
"
|
|
54
49
|
appOnlyNumbers
|
|
50
|
+
[showCurrency]="!!inputProperties?.isMoneyInput"
|
|
55
51
|
[applyOnlyNumbers]="!!inputProperties?.isNumericInput"
|
|
56
52
|
appOnlyLetters
|
|
57
53
|
[applyOnlyLetters]="!!inputProperties?.isLettersOnly"
|
|
58
|
-
[maxlength]="inputProperties?.maxLength"
|
|
59
54
|
/>
|
|
60
|
-
|
|
55
|
+
|
|
56
|
+
<label
|
|
57
|
+
class="Body-S-Regular label-bottom"
|
|
58
|
+
*ngIf="!fixedLabel"
|
|
59
|
+
[for]="inputProperties.label"
|
|
61
60
|
>{{ inputProperties.label | translate }}
|
|
62
61
|
<span
|
|
62
|
+
class="asterisk"
|
|
63
63
|
*ngIf="
|
|
64
|
-
isRequired() &&
|
|
64
|
+
isRequired() &&
|
|
65
|
+
showAsterisk &&
|
|
66
|
+
(!disabled || !inputProperties.formControl.disabled)
|
|
65
67
|
"
|
|
66
68
|
>*</span
|
|
67
|
-
></label
|
|
68
|
-
>
|
|
69
|
-
|
|
70
|
-
<div
|
|
71
|
-
*ngIf="
|
|
72
|
-
inputProperties.textHelper &&
|
|
73
|
-
(!inputProperties.showHelperOnlyOnError ||
|
|
74
|
-
(inputProperties.formControl.invalid && inputProperties.formControl.dirty))
|
|
75
|
-
"
|
|
76
|
-
class="form-control-helper"
|
|
77
|
-
>
|
|
78
|
-
<app-icon
|
|
79
|
-
*ngIf="inputProperties.formControl.invalid && inputProperties.formControl.dirty"
|
|
80
|
-
name="Warning-circle"
|
|
81
|
-
width="12px"
|
|
82
|
-
height="12px"
|
|
83
|
-
color="Error-Error-500"
|
|
84
|
-
></app-icon>
|
|
85
|
-
<span
|
|
86
|
-
*ngIf="inputProperties.textHelper"
|
|
87
|
-
[ngClass]="{
|
|
88
|
-
'disabled-helper': disabled,
|
|
89
|
-
'invalid-color':
|
|
90
|
-
inputProperties.formControl.invalid && inputProperties.formControl.dirty
|
|
91
|
-
}"
|
|
92
|
-
>{{ inputProperties.textHelper | translate }}</span
|
|
93
69
|
>
|
|
94
|
-
</
|
|
70
|
+
</label>
|
|
95
71
|
</div>
|
|
72
|
+
|
|
73
|
+
<div
|
|
74
|
+
class="icon-container right"
|
|
75
|
+
*ngIf="inputProperties.icon && inputProperties.iconPos === 'right'"
|
|
76
|
+
>
|
|
77
|
+
<app-icon
|
|
78
|
+
[name]="inputProperties.icon"
|
|
79
|
+
width="20px"
|
|
80
|
+
height="20px"
|
|
81
|
+
color="Gray-Gray-500"
|
|
82
|
+
></app-icon>
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
<div
|
|
86
|
+
class="icon-container right password-toggle"
|
|
87
|
+
*ngIf="inputProperties.type === 'password'"
|
|
88
|
+
>
|
|
89
|
+
<app-icon
|
|
90
|
+
[name]="showPassword ? 'Visibility-off' : 'Visibility'"
|
|
91
|
+
width="20px"
|
|
92
|
+
height="20px"
|
|
93
|
+
color="Gray-Gray-500"
|
|
94
|
+
(click)="showOrHidePassword()"
|
|
95
|
+
></app-icon>
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
|
|
99
|
+
<div
|
|
100
|
+
class="helper-text-container"
|
|
101
|
+
*ngIf="
|
|
102
|
+
inputProperties.textHelper &&
|
|
103
|
+
(!inputProperties.showHelperOnlyOnError ||
|
|
104
|
+
(inputProperties.formControl.invalid &&
|
|
105
|
+
inputProperties.formControl.touched))
|
|
106
|
+
"
|
|
107
|
+
>
|
|
108
|
+
<span class="helper-text Label-S-Regular">{{
|
|
109
|
+
(getErrorMessage() | translate) ||
|
|
110
|
+
(inputProperties.textHelper | translate)
|
|
111
|
+
}}</span>
|
|
96
112
|
</div>
|
|
97
113
|
</div>
|
|
@@ -1,126 +1,80 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Component,
|
|
3
3
|
Input,
|
|
4
|
-
OnChanges,
|
|
5
4
|
OnInit,
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
Inject,
|
|
6
|
+
CUSTOM_ELEMENTS_SCHEMA,
|
|
8
7
|
} from "@angular/core";
|
|
9
8
|
import { CommonModule } from "@angular/common";
|
|
10
|
-
import {
|
|
11
|
-
import { Validators, ReactiveFormsModule } from "@angular/forms";
|
|
12
|
-
import { IconComponent } from "../icon/icon.component";
|
|
13
|
-
import { ThousandSeparatorDirective } from "@app/utilities/directives/thousand-separator.directive";
|
|
9
|
+
import { ReactiveFormsModule } from "@angular/forms";
|
|
14
10
|
import { TranslateModule } from "@ngx-translate/core";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
11
|
+
import { InputProperties } from "../../utilities/interfaces/ui/input-interface";
|
|
12
|
+
import { IconComponent } from "../icon/icon.component";
|
|
13
|
+
import { Directive, Input as NgInput } from "@angular/core";
|
|
14
|
+
|
|
15
|
+
@Directive({
|
|
16
|
+
selector: "[appThousandSeparator]",
|
|
17
|
+
standalone: true,
|
|
18
|
+
})
|
|
19
|
+
export class ThousandSeparatorDirectiveStub {
|
|
20
|
+
@NgInput() applyFormat: boolean = false;
|
|
21
|
+
@NgInput() showCurrency: boolean = false;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@Directive({
|
|
25
|
+
selector: "[appOnlyNumbers]",
|
|
26
|
+
standalone: true,
|
|
27
|
+
})
|
|
28
|
+
export class OnlyNumbersDirectiveStub {
|
|
29
|
+
@NgInput() applyOnlyNumbers: boolean = false;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@Directive({
|
|
33
|
+
selector: "[appOnlyLetters]",
|
|
34
|
+
standalone: true,
|
|
35
|
+
})
|
|
36
|
+
export class OnlyLettersDirectiveStub {
|
|
37
|
+
@NgInput() applyOnlyLetters: boolean = false;
|
|
38
|
+
}
|
|
17
39
|
|
|
18
40
|
@Component({
|
|
19
|
-
selector: "
|
|
41
|
+
selector: "app-input",
|
|
20
42
|
standalone: true,
|
|
21
43
|
imports: [
|
|
22
44
|
CommonModule,
|
|
23
45
|
ReactiveFormsModule,
|
|
24
46
|
IconComponent,
|
|
25
|
-
ThousandSeparatorDirective,
|
|
26
47
|
TranslateModule,
|
|
27
|
-
|
|
28
|
-
|
|
48
|
+
ThousandSeparatorDirectiveStub,
|
|
49
|
+
OnlyNumbersDirectiveStub,
|
|
50
|
+
OnlyLettersDirectiveStub,
|
|
29
51
|
],
|
|
52
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
30
53
|
templateUrl: "./input.component.html",
|
|
31
54
|
styleUrls: ["./input.component.scss"],
|
|
32
55
|
})
|
|
33
|
-
export class InputComponent implements OnInit
|
|
34
|
-
/**
|
|
35
|
-
* Define las propiedades necesarias para un campo de entrada (`input`).
|
|
36
|
-
*
|
|
37
|
-
* Cada campo debe contener las siguientes propiedades:
|
|
38
|
-
* - `formControl`: Control de formulario asociado al campo.
|
|
39
|
-
* - `label`: Texto descriptivo que se mostrará como etiqueta.
|
|
40
|
-
* - `placeholder`: Texto de ejemplo dentro del campo.
|
|
41
|
-
* - `maxLength`: Número máximo de caracteres permitidos.
|
|
42
|
-
*
|
|
43
|
-
* Propiedades opcionales:
|
|
44
|
-
* - `textHelper`: Texto de ayuda que se mostrará debajo del campo.
|
|
45
|
-
* - `icon`: Nombre del icono a mostrar dentro del input.
|
|
46
|
-
* - `iconColor`: Color aplicado al icono del input.
|
|
47
|
-
* - `isMoneyInput`: Indica si debe aplicarse una directiva para separar valores.
|
|
48
|
-
* - `isPasswordInput: Indica si el input debe tener comportamiento de campo de contraseña`
|
|
49
|
-
* - `isNumericInput: Indica si el input solo acepta caracteres numericos`
|
|
50
|
-
* @type {InputProperties}
|
|
51
|
-
*/
|
|
56
|
+
export class InputComponent implements OnInit {
|
|
52
57
|
@Input() public inputProperties: InputProperties;
|
|
53
|
-
/**
|
|
54
|
-
* Indica si se debe mostrar deshabilitiado el input.
|
|
55
|
-
*
|
|
56
|
-
* Valor por defecto: `false`.
|
|
57
|
-
*
|
|
58
|
-
* @type {boolean}
|
|
59
|
-
*/
|
|
60
58
|
@Input() public disabled: boolean = false;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
*
|
|
66
|
-
* @type {boolean}
|
|
67
|
-
*/
|
|
68
|
-
@Input() public showObligatoryAsterisk: boolean = true;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Indica si se debe mostrar el label fijo en la parte superior del input
|
|
72
|
-
*
|
|
73
|
-
* Valor por defecto: `false`.
|
|
74
|
-
*
|
|
75
|
-
* @type {boolean}
|
|
76
|
-
*/
|
|
77
|
-
@Input() public fixedLabel: boolean = false;
|
|
78
|
-
/**
|
|
79
|
-
* Indica si se debe mostrar el asterisco de obligatorio basado en si es requerido el formControl y si showObligatoryAsterisk es true
|
|
80
|
-
*
|
|
81
|
-
* Valor por defecto: `false`.
|
|
82
|
-
*
|
|
83
|
-
* @type {boolean}
|
|
84
|
-
*/
|
|
85
|
-
public showAsterisk: boolean = false;
|
|
86
|
-
/**
|
|
87
|
-
* Indica si se debe ocultar los caracteres dentro del input
|
|
88
|
-
*
|
|
89
|
-
* Valor por defecto: `false`.
|
|
90
|
-
*
|
|
91
|
-
* @type {boolean}
|
|
92
|
-
*/
|
|
93
|
-
public showPassword: boolean = false;
|
|
94
|
-
|
|
95
|
-
ngOnInit() {
|
|
96
|
-
this.validateDisabled();
|
|
97
|
-
this.addObligatoryAsterisk();
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
ngOnChanges(changes: SimpleChanges): void {
|
|
101
|
-
if (changes["disabled"]) {
|
|
102
|
-
const disabledChange = changes["disabled"];
|
|
103
|
-
}
|
|
104
|
-
}
|
|
59
|
+
@Input() public showObligatoryAsterisk: boolean = false;
|
|
60
|
+
@Input() public showPassword = false;
|
|
61
|
+
@Input() public fixedLabel = false;
|
|
62
|
+
@Input() public showAsterisk = true;
|
|
105
63
|
|
|
106
|
-
|
|
107
|
-
this.showAsterisk =
|
|
108
|
-
this.showObligatoryAsterisk &&
|
|
109
|
-
this.inputProperties.formControl.hasValidator(Validators.required);
|
|
110
|
-
}
|
|
64
|
+
ngOnInit() {}
|
|
111
65
|
|
|
112
|
-
|
|
113
|
-
|
|
66
|
+
showOrHidePassword() {
|
|
67
|
+
this.showPassword = !this.showPassword;
|
|
114
68
|
}
|
|
115
69
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
}
|
|
70
|
+
isRequired(): boolean {
|
|
71
|
+
const control = this.inputProperties?.formControl;
|
|
72
|
+
if (!control || !control.validator) return false;
|
|
73
|
+
const validationResult = control.validator({} as any);
|
|
74
|
+
return !!validationResult?.["required"];
|
|
120
75
|
}
|
|
121
76
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
this.showPassword = !this.showPassword;
|
|
77
|
+
getErrorMessage() {
|
|
78
|
+
return "";
|
|
125
79
|
}
|
|
126
80
|
}
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
import { Component, Input,
|
|
2
|
-
import {
|
|
1
|
+
import { Component, Input, CUSTOM_ELEMENTS_SCHEMA } from "@angular/core";
|
|
2
|
+
import { CommonModule } from "@angular/common";
|
|
3
3
|
|
|
4
4
|
@Component({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
selector: "app-lottie-loader",
|
|
6
|
+
standalone: true,
|
|
7
|
+
imports: [CommonModule],
|
|
8
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
9
|
+
templateUrl: "./lottie-loader.component.html",
|
|
10
|
+
styleUrls: ["./lottie-loader.component.scss"],
|
|
10
11
|
})
|
|
11
|
-
export class LottieLoaderComponent
|
|
12
|
-
@Input()
|
|
13
|
-
@Input()
|
|
14
|
-
@Input() title: string =
|
|
15
|
-
@Input() message: string =
|
|
16
|
-
|
|
17
|
-
constructor() {}
|
|
18
|
-
|
|
19
|
-
ngOnInit(): void {}
|
|
12
|
+
export class LottieLoaderComponent {
|
|
13
|
+
@Input() loadingAnimation: string = "";
|
|
14
|
+
@Input() visible: boolean = false; // Añadido
|
|
15
|
+
@Input() title: string = ""; // Añadido
|
|
16
|
+
@Input() message: string = ""; // Añadido
|
|
20
17
|
}
|