@dropi/ui-components 1.0.0
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/.gitignore +13 -0
- package/CONTRIBUTING.md +188 -0
- package/MIGRATION_STEPS.md +39 -0
- package/PUBLISH_CHECKLIST.md +97 -0
- package/QUICK_START.md +108 -0
- package/README.md +146 -0
- package/jest.config.ts +21 -0
- package/ng-package.json +8 -0
- package/package.json +66 -0
- package/project.json +48 -0
- package/publish.sh +113 -0
- package/src/components-source/accordion/accordion-item/accordion-item.component.html +12 -0
- package/src/components-source/accordion/accordion-item/accordion-item.component.scss +47 -0
- package/src/components-source/accordion/accordion-item/accordion-item.component.spec.ts +122 -0
- package/src/components-source/accordion/accordion-item/accordion-item.component.ts +42 -0
- package/src/components-source/accordion/accordion.component.html +3 -0
- package/src/components-source/accordion/accordion.component.scss +5 -0
- package/src/components-source/accordion/accordion.component.spec.ts +243 -0
- package/src/components-source/accordion/accordion.component.stories.ts +111 -0
- package/src/components-source/accordion/accordion.component.ts +43 -0
- package/src/components-source/alert/alert.component.html +28 -0
- package/src/components-source/alert/alert.component.scss +154 -0
- package/src/components-source/alert/alert.component.spec.ts +185 -0
- package/src/components-source/alert/alert.component.stories.ts +310 -0
- package/src/components-source/alert/alert.component.ts +203 -0
- package/src/components-source/alert-legacy/alert.component.html +21 -0
- package/src/components-source/alert-legacy/alert.component.scss +42 -0
- package/src/components-source/alert-legacy/alert.component.spec.ts +159 -0
- package/src/components-source/alert-legacy/alert.component.ts +33 -0
- package/src/components-source/alert-modal/alert-modal.component.html +124 -0
- package/src/components-source/alert-modal/alert-modal.component.scss +203 -0
- package/src/components-source/alert-modal/alert-modal.component.spec.ts +557 -0
- package/src/components-source/alert-modal/alert-modal.component.stories.ts +295 -0
- package/src/components-source/alert-modal/alert-modal.component.ts +294 -0
- package/src/components-source/alert-modal/services/template-alert-modal.service.ts +75 -0
- package/src/components-source/badge/badge.component.html +49 -0
- package/src/components-source/badge/badge.component.scss +57 -0
- package/src/components-source/badge/badge.component.spec.ts +181 -0
- package/src/components-source/badge/badge.component.ts +21 -0
- package/src/components-source/breadcrumb/breadcrumb.component.html +5 -0
- package/src/components-source/breadcrumb/breadcrumb.component.scss +46 -0
- package/src/components-source/breadcrumb/breadcrumb.component.spec.ts +279 -0
- package/src/components-source/breadcrumb/breadcrumb.component.ts +24 -0
- package/src/components-source/card-product/card-product.component.html +173 -0
- package/src/components-source/card-product/card-product.component.spec.ts +601 -0
- package/src/components-source/card-product/card-product.component.stories.ts +322 -0
- package/src/components-source/card-product/card-product.component.ts +1101 -0
- package/src/components-source/card-section/card-section.component.html +22 -0
- package/src/components-source/card-section/card-section.component.scss +14 -0
- package/src/components-source/card-section/card-section.component.spec.ts +333 -0
- package/src/components-source/card-section/card-section.component.stories.ts +141 -0
- package/src/components-source/card-section/card-section.component.ts +35 -0
- package/src/components-source/checkbox-selection-list/checkbox-selection-list.component.html +38 -0
- package/src/components-source/checkbox-selection-list/checkbox-selection-list.component.scss +147 -0
- package/src/components-source/checkbox-selection-list/checkbox-selection-list.component.spec.ts +555 -0
- package/src/components-source/checkbox-selection-list/checkbox-selection-list.component.stories.ts +157 -0
- package/src/components-source/checkbox-selection-list/checkbox-selection-list.component.ts +219 -0
- package/src/components-source/city-selector/city-selector.component.html +22 -0
- package/src/components-source/city-selector/city-selector.component.scss +1 -0
- package/src/components-source/city-selector/city-selector.component.spec.ts +278 -0
- package/src/components-source/city-selector/city-selector.component.stories.ts +200 -0
- package/src/components-source/city-selector/city-selector.component.ts +151 -0
- package/src/components-source/color-picker/color-picker.component.html +54 -0
- package/src/components-source/color-picker/color-picker.component.scss +203 -0
- package/src/components-source/color-picker/color-picker.component.spec.ts +148 -0
- package/src/components-source/color-picker/color-picker.component.stories.ts +70 -0
- package/src/components-source/color-picker/color-picker.component.ts +353 -0
- package/src/components-source/country-flags/country-flags.component.html +10 -0
- package/src/components-source/country-flags/country-flags.component.scss +34 -0
- package/src/components-source/country-flags/country-flags.component.spec.ts +78 -0
- package/src/components-source/country-flags/country-flags.component.ts +18 -0
- package/src/components-source/date-picker/date-picker.component.html +35 -0
- package/src/components-source/date-picker/date-picker.component.scss +388 -0
- package/src/components-source/date-picker/date-picker.component.spec.ts +510 -0
- package/src/components-source/date-picker/date-picker.component.stories.ts +444 -0
- package/src/components-source/date-picker/date-picker.component.ts +313 -0
- package/src/components-source/date-picker/date-picker.stories.spec.ts +150 -0
- package/src/components-source/date-picker-range/date-picker-range.component.html +45 -0
- package/src/components-source/date-picker-range/date-picker-range.component.scss +229 -0
- package/src/components-source/date-picker-range/date-picker-range.component.spec.ts +555 -0
- package/src/components-source/date-picker-range/date-picker-range.component.ts +254 -0
- package/src/components-source/dropi-avatars/dropi-avatars.component.html +17 -0
- package/src/components-source/dropi-avatars/dropi-avatars.component.scss +58 -0
- package/src/components-source/dropi-avatars/dropi-avatars.component.spec.ts +403 -0
- package/src/components-source/dropi-avatars/dropi-avatars.component.ts +24 -0
- package/src/components-source/dropi-badge/dropi-badge.component.html +12 -0
- package/src/components-source/dropi-badge/dropi-badge.component.scss +50 -0
- package/src/components-source/dropi-badge/dropi-badge.component.spec.ts +108 -0
- package/src/components-source/dropi-badge/dropi-badge.component.stories.ts +140 -0
- package/src/components-source/dropi-badge/dropi-badge.component.ts +39 -0
- package/src/components-source/dropi-banner-external/dropi-banner-external.component.html +67 -0
- package/src/components-source/dropi-banner-external/dropi-banner-external.component.scss +46 -0
- package/src/components-source/dropi-banner-external/dropi-banner-external.component.spec.ts +170 -0
- package/src/components-source/dropi-banner-external/dropi-banner-external.component.stories.ts +203 -0
- package/src/components-source/dropi-banner-external/dropi-banner-external.component.ts +204 -0
- package/src/components-source/dropi-breadcrumb/dropi-breadcrumb.component.html +65 -0
- package/src/components-source/dropi-breadcrumb/dropi-breadcrumb.component.scss +65 -0
- package/src/components-source/dropi-breadcrumb/dropi-breadcrumb.component.spec.ts +125 -0
- package/src/components-source/dropi-breadcrumb/dropi-breadcrumb.component.ts +38 -0
- package/src/components-source/dropi-breadcrumb/dropi-breadcrumb.stories.ts +133 -0
- package/src/components-source/dropi-button/dropi-button.component.html +37 -0
- package/src/components-source/dropi-button/dropi-button.component.scss +266 -0
- package/src/components-source/dropi-button/dropi-button.component.spec.ts +264 -0
- package/src/components-source/dropi-button/dropi-button.component.stories.ts +221 -0
- package/src/components-source/dropi-button/dropi-button.component.ts +82 -0
- package/src/components-source/dropi-card-checkbox/dropi-card-checkbox.component.html +24 -0
- package/src/components-source/dropi-card-checkbox/dropi-card-checkbox.component.scss +85 -0
- package/src/components-source/dropi-card-checkbox/dropi-card-checkbox.component.spec.ts +157 -0
- package/src/components-source/dropi-card-checkbox/dropi-card-checkbox.component.stories.ts +209 -0
- package/src/components-source/dropi-card-checkbox/dropi-card-checkbox.component.ts +41 -0
- package/src/components-source/dropi-carousel/dropi-carousel.component.html +57 -0
- package/src/components-source/dropi-carousel/dropi-carousel.component.scss +156 -0
- package/src/components-source/dropi-carousel/dropi-carousel.component.spec.ts +224 -0
- package/src/components-source/dropi-carousel/dropi-carousel.component.ts +266 -0
- package/src/components-source/dropi-carousel/dropi-carousel.stories.ts +365 -0
- package/src/components-source/dropi-checkbox/dropi-checkbox.component.css +39 -0
- package/src/components-source/dropi-checkbox/dropi-checkbox.component.html +18 -0
- package/src/components-source/dropi-checkbox/dropi-checkbox.component.spec.ts +155 -0
- package/src/components-source/dropi-checkbox/dropi-checkbox.component.stories.ts +101 -0
- package/src/components-source/dropi-checkbox/dropi-checkbox.component.ts +25 -0
- package/src/components-source/dropi-chips/dropi-chips.component.html +10 -0
- package/src/components-source/dropi-chips/dropi-chips.component.scss +54 -0
- package/src/components-source/dropi-chips/dropi-chips.component.spec.ts +356 -0
- package/src/components-source/dropi-chips/dropi-chips.component.stories.ts +275 -0
- package/src/components-source/dropi-chips/dropi-chips.component.ts +100 -0
- package/src/components-source/dropi-country-selector/countries.data.ts +239 -0
- package/src/components-source/dropi-country-selector/dropi-country-selector.component.html +59 -0
- package/src/components-source/dropi-country-selector/dropi-country-selector.component.scss +126 -0
- package/src/components-source/dropi-country-selector/dropi-country-selector.component.spec.ts +244 -0
- package/src/components-source/dropi-country-selector/dropi-country-selector.component.stories.ts +117 -0
- package/src/components-source/dropi-country-selector/dropi-country-selector.component.ts +179 -0
- package/src/components-source/dropi-drawer/dropi-drawer.component.html +23 -0
- package/src/components-source/dropi-drawer/dropi-drawer.component.scss +88 -0
- package/src/components-source/dropi-drawer/dropi-drawer.component.spec.ts +84 -0
- package/src/components-source/dropi-drawer/dropi-drawer.component.ts +90 -0
- package/src/components-source/dropi-dropdown/dropi-dropdown.component.html +30 -0
- package/src/components-source/dropi-dropdown/dropi-dropdown.component.scss +58 -0
- package/src/components-source/dropi-dropdown/dropi-dropdown.component.spec.ts +213 -0
- package/src/components-source/dropi-dropdown/dropi-dropdown.component.stories.ts +143 -0
- package/src/components-source/dropi-dropdown/dropi-dropdown.component.ts +53 -0
- package/src/components-source/dropi-favorite-button/dropi-favorite-button.component.html +23 -0
- package/src/components-source/dropi-favorite-button/dropi-favorite-button.component.scss +21 -0
- package/src/components-source/dropi-favorite-button/dropi-favorite-button.component.spec.ts +240 -0
- package/src/components-source/dropi-favorite-button/dropi-favorite-button.component.ts +31 -0
- package/src/components-source/dropi-file-upload/card-view/card-view.component.html +154 -0
- package/src/components-source/dropi-file-upload/card-view/card-view.component.scss +118 -0
- package/src/components-source/dropi-file-upload/card-view/card-view.component.ts +72 -0
- package/src/components-source/dropi-file-upload/drop-zone/drop-zone.coment.stories.ts +179 -0
- package/src/components-source/dropi-file-upload/drop-zone/drop-zone.component.html +111 -0
- package/src/components-source/dropi-file-upload/drop-zone/drop-zone.component.scss +90 -0
- package/src/components-source/dropi-file-upload/drop-zone/drop-zone.component.ts +172 -0
- package/src/components-source/dropi-file-upload/dropi-file-upload.component.html +42 -0
- package/src/components-source/dropi-file-upload/dropi-file-upload.component.scss +31 -0
- package/src/components-source/dropi-file-upload/dropi-file-upload.component.spec.ts +398 -0
- package/src/components-source/dropi-file-upload/dropi-file-upload.component.stories.ts +139 -0
- package/src/components-source/dropi-file-upload/dropi-file-upload.component.ts +329 -0
- package/src/components-source/dropi-file-upload/file-list/file-list.component.html +51 -0
- package/src/components-source/dropi-file-upload/file-list/file-list.component.scss +60 -0
- package/src/components-source/dropi-file-upload/file-list/file-list.component.ts +84 -0
- package/src/components-source/dropi-file-upload/grid-view/grid-view.component.html +77 -0
- package/src/components-source/dropi-file-upload/grid-view/grid-view.component.scss +85 -0
- package/src/components-source/dropi-file-upload/grid-view/grid-view.component.ts +35 -0
- package/src/components-source/dropi-ilustration-icon/dropi-ilustration-icon.component.html +38 -0
- package/src/components-source/dropi-ilustration-icon/dropi-ilustration-icon.component.scss +59 -0
- package/src/components-source/dropi-ilustration-icon/dropi-ilustration-icon.component.spec.ts +214 -0
- package/src/components-source/dropi-ilustration-icon/dropi-ilustration-icon.component.ts +65 -0
- package/src/components-source/dropi-image-overlay/dropi-image-overlay.component.html +54 -0
- package/src/components-source/dropi-image-overlay/dropi-image-overlay.component.scss +210 -0
- package/src/components-source/dropi-image-overlay/dropi-image-overlay.component.spec.ts +145 -0
- package/src/components-source/dropi-image-overlay/dropi-image-overlay.component.ts +76 -0
- package/src/components-source/dropi-image-overlay/dropi-image-overlay.stories.ts +267 -0
- package/src/components-source/dropi-languages-selector/dropi-languages-selector.component.html +17 -0
- package/src/components-source/dropi-languages-selector/dropi-languages-selector.component.scss +82 -0
- package/src/components-source/dropi-languages-selector/dropi-languages-selector.component.spec.ts +152 -0
- package/src/components-source/dropi-languages-selector/dropi-languages-selector.component.ts +41 -0
- package/src/components-source/dropi-logo/dropi-logo.component.html +3 -0
- package/src/components-source/dropi-logo/dropi-logo.component.scss +20 -0
- package/src/components-source/dropi-logo/dropi-logo.component.spec.ts +274 -0
- package/src/components-source/dropi-logo/dropi-logo.component.ts +24 -0
- package/src/components-source/dropi-modal/dropi-modal-stack.service.ts +75 -0
- package/src/components-source/dropi-modal/dropi-modal.component.html +55 -0
- package/src/components-source/dropi-modal/dropi-modal.component.scss +274 -0
- package/src/components-source/dropi-modal/dropi-modal.component.spec.ts +46 -0
- package/src/components-source/dropi-modal/dropi-modal.component.stories.ts +392 -0
- package/src/components-source/dropi-modal/dropi-modal.component.ts +392 -0
- package/src/components-source/dropi-modal/p-template.directive.ts +11 -0
- package/src/components-source/dropi-navbar/dropi-navbar.component.html +41 -0
- package/src/components-source/dropi-navbar/dropi-navbar.component.scss +227 -0
- package/src/components-source/dropi-navbar/dropi-navbar.component.spec.ts +110 -0
- package/src/components-source/dropi-navbar/dropi-navbar.component.ts +52 -0
- package/src/components-source/dropi-paginator/dropi-paginator.component.html +64 -0
- package/src/components-source/dropi-paginator/dropi-paginator.component.scss +43 -0
- package/src/components-source/dropi-paginator/dropi-paginator.component.spec.ts +285 -0
- package/src/components-source/dropi-paginator/dropi-paginator.component.stories.ts +345 -0
- package/src/components-source/dropi-paginator/dropi-paginator.component.ts +85 -0
- package/src/components-source/dropi-phone-input/dropi-phone-input.component.html +93 -0
- package/src/components-source/dropi-phone-input/dropi-phone-input.component.scss +224 -0
- package/src/components-source/dropi-phone-input/dropi-phone-input.component.spec.ts +376 -0
- package/src/components-source/dropi-phone-input/dropi-phone-input.component.ts +203 -0
- package/src/components-source/dropi-phone-input/numeric-input.directive.ts +17 -0
- package/src/components-source/dropi-radio-button/dropi-radio-button.component.html +8 -0
- package/src/components-source/dropi-radio-button/dropi-radio-button.component.scss +33 -0
- package/src/components-source/dropi-radio-button/dropi-radio-button.component.spec.ts +225 -0
- package/src/components-source/dropi-radio-button/dropi-radio-button.component.ts +48 -0
- package/src/components-source/dropi-search/dropi-search.component.html +124 -0
- package/src/components-source/dropi-search/dropi-search.component.scss +116 -0
- package/src/components-source/dropi-search/dropi-search.component.spec.ts +483 -0
- package/src/components-source/dropi-search/dropi-search.component.stories.ts +267 -0
- package/src/components-source/dropi-search/dropi-search.component.ts +230 -0
- package/src/components-source/dropi-select/dropi-select.component.html +158 -0
- package/src/components-source/dropi-select/dropi-select.component.scss +275 -0
- package/src/components-source/dropi-select/dropi-select.component.spec.ts +386 -0
- package/src/components-source/dropi-select/dropi-select.component.stories.ts +686 -0
- package/src/components-source/dropi-select/dropi-select.component.ts +465 -0
- package/src/components-source/dropi-skeleton/dropi-skeleton.component.html +10 -0
- package/src/components-source/dropi-skeleton/dropi-skeleton.component.scss +28 -0
- package/src/components-source/dropi-skeleton/dropi-skeleton.component.spec.ts +273 -0
- package/src/components-source/dropi-skeleton/dropi-skeleton.component.stories.ts +145 -0
- package/src/components-source/dropi-skeleton/dropi-skeleton.component.ts +30 -0
- package/src/components-source/dropi-steps/dropi-steps.component.html +29 -0
- package/src/components-source/dropi-steps/dropi-steps.component.scss +110 -0
- package/src/components-source/dropi-steps/dropi-steps.component.spec.ts +228 -0
- package/src/components-source/dropi-steps/dropi-steps.component.stories.ts +231 -0
- package/src/components-source/dropi-steps/dropi-steps.component.ts +98 -0
- package/src/components-source/dropi-switch/dropi-switch.component.html +4 -0
- package/src/components-source/dropi-switch/dropi-switch.component.scss +50 -0
- package/src/components-source/dropi-switch/dropi-switch.component.spec.ts +105 -0
- package/src/components-source/dropi-switch/dropi-switch.component.stories.ts +106 -0
- package/src/components-source/dropi-switch/dropi-switch.component.ts +22 -0
- package/src/components-source/dropi-table/dropi-table.component.html +395 -0
- package/src/components-source/dropi-table/dropi-table.component.scss +506 -0
- package/src/components-source/dropi-table/dropi-table.component.spec.ts +578 -0
- package/src/components-source/dropi-table/dropi-table.component.stories.ts +313 -0
- package/src/components-source/dropi-table/dropi-table.component.ts +580 -0
- package/src/components-source/dropi-tag/dropi-tag.component.html +17 -0
- package/src/components-source/dropi-tag/dropi-tag.component.scss +50 -0
- package/src/components-source/dropi-tag/dropi-tag.component.spec.ts +267 -0
- package/src/components-source/dropi-tag/dropi-tag.component.stories.ts +290 -0
- package/src/components-source/dropi-tag/dropi-tag.component.ts +92 -0
- package/src/components-source/dropi-text-area/droip-text-area.component.stories.ts +138 -0
- package/src/components-source/dropi-text-area/dropi-text-area.component.html +63 -0
- package/src/components-source/dropi-text-area/dropi-text-area.component.scss +106 -0
- package/src/components-source/dropi-text-area/dropi-text-area.component.spec.ts +507 -0
- package/src/components-source/dropi-text-area/dropi-text-area.component.ts +80 -0
- package/src/components-source/dropi-tooltip/dropi-tooltip.component.html +70 -0
- package/src/components-source/dropi-tooltip/dropi-tooltip.component.scss +250 -0
- package/src/components-source/dropi-tooltip/dropi-tooltip.component.spec.ts +423 -0
- package/src/components-source/dropi-tooltip/dropi-tooltip.component.ts +153 -0
- package/src/components-source/dropi-youtube-lazy-video/dropi-youtube-lazy-video.component.html +20 -0
- package/src/components-source/dropi-youtube-lazy-video/dropi-youtube-lazy-video.component.scss +63 -0
- package/src/components-source/dropi-youtube-lazy-video/dropi-youtube-lazy-video.component.spec.ts +121 -0
- package/src/components-source/dropi-youtube-lazy-video/dropi-youtube-lazy-video.component.ts +43 -0
- package/src/components-source/dropi-youtube-lazy-video/dropi-youtube-lazy-video.stories.ts +125 -0
- package/src/components-source/empty-state/empty-state.component.html +30 -0
- package/src/components-source/empty-state/empty-state.component.scss +76 -0
- package/src/components-source/empty-state/empty-state.component.spec.ts +244 -0
- package/src/components-source/empty-state/empty-state.component.stories.ts +198 -0
- package/src/components-source/empty-state/empty-state.component.ts +34 -0
- package/src/components-source/file-upload-progress-bar/file-upload-progress-bar.component.html +81 -0
- package/src/components-source/file-upload-progress-bar/file-upload-progress-bar.component.scss +86 -0
- package/src/components-source/file-upload-progress-bar/file-upload-progress-bar.component.spec.ts +27 -0
- package/src/components-source/file-upload-progress-bar/file-upload-progress-bar.component.stories.ts +149 -0
- package/src/components-source/file-upload-progress-bar/file-upload-progress-bar.component.ts +89 -0
- package/src/components-source/foundations/dropi-border-radius-demo/dropi-border-radius-demo.component.scss +32 -0
- package/src/components-source/foundations/dropi-border-radius-demo/dropi-border-radius-demo.component.ts +17 -0
- package/src/components-source/foundations/foundations.component.html +183 -0
- package/src/components-source/foundations/foundations.component.scss +31 -0
- package/src/components-source/foundations/foundations.component.ts +26 -0
- package/src/components-source/icon/icon-names.const.ts +270 -0
- package/src/components-source/icon/icon.component.html +3 -0
- package/src/components-source/icon/icon.component.scss +4 -0
- package/src/components-source/icon/icon.component.spec.ts +304 -0
- package/src/components-source/icon/icon.component.ts +53 -0
- package/src/components-source/index.ts +89 -0
- package/src/components-source/input/input.component.html +97 -0
- package/src/components-source/input/input.component.scss +149 -0
- package/src/components-source/input/input.component.spec.ts +243 -0
- package/src/components-source/input/input.component.stories.ts +269 -0
- package/src/components-source/input/input.component.ts +119 -0
- package/src/components-source/lottie-loader/lottie-loader.component.html +16 -0
- package/src/components-source/lottie-loader/lottie-loader.component.scss +32 -0
- package/src/components-source/lottie-loader/lottie-loader.component.spec.ts +103 -0
- package/src/components-source/lottie-loader/lottie-loader.component.ts +20 -0
- package/src/components-source/otp-send-code/mock-otp-services.ts +214 -0
- package/src/components-source/otp-send-code/otp-send-code.component.html +151 -0
- package/src/components-source/otp-send-code/otp-send-code.component.scss +156 -0
- package/src/components-source/otp-send-code/otp-send-code.component.spec.ts +419 -0
- package/src/components-source/otp-send-code/otp-send-code.component.stories.ts +190 -0
- package/src/components-source/otp-send-code/otp-send-code.component.ts +659 -0
- package/src/components-source/radio-selection-list/radio-selection-list.component.html +107 -0
- package/src/components-source/radio-selection-list/radio-selection-list.component.scss +280 -0
- package/src/components-source/radio-selection-list/radio-selection-list.component.spec.ts +243 -0
- package/src/components-source/radio-selection-list/radio-selection-list.component.stories.ts +313 -0
- package/src/components-source/radio-selection-list/radio-selection-list.component.ts +143 -0
- package/src/components-source/read-more/read-more.component.html +14 -0
- package/src/components-source/read-more/read-more.component.scss +16 -0
- package/src/components-source/read-more/read-more.component.spec.ts +272 -0
- package/src/components-source/read-more/read-more.component.stories.ts +131 -0
- package/src/components-source/read-more/read-more.component.ts +88 -0
- package/src/components-source/sidebar/sidebar.component.html +42 -0
- package/src/components-source/sidebar/sidebar.component.scss +70 -0
- package/src/components-source/sidebar/sidebar.component.spec.ts +354 -0
- package/src/components-source/sidebar/sidebar.component.stories.ts +145 -0
- package/src/components-source/sidebar/sidebar.component.ts +105 -0
- package/src/components-source/simple-stepper/simple-stepper.component.html +17 -0
- package/src/components-source/simple-stepper/simple-stepper.component.scss +117 -0
- package/src/components-source/simple-stepper/simple-stepper.component.spec.ts +348 -0
- package/src/components-source/simple-stepper/simple-stepper.component.stories.ts +104 -0
- package/src/components-source/simple-stepper/simple-stepper.component.ts +69 -0
- package/src/components-source/storybook-doc-components/avatars-storybook/avatars-storybook.component.html +192 -0
- package/src/components-source/storybook-doc-components/avatars-storybook/avatars-storybook.component.scss +15 -0
- package/src/components-source/storybook-doc-components/avatars-storybook/avatars-storybook.component.ts +17 -0
- package/src/components-source/storybook-doc-components/border-radius-storybook/border-radius-storybook.component.html +22 -0
- package/src/components-source/storybook-doc-components/border-radius-storybook/border-radius-storybook.component.scss +0 -0
- package/src/components-source/storybook-doc-components/border-radius-storybook/border-radius-storybook.component.ts +54 -0
- package/src/components-source/storybook-doc-components/breakpoints-and-grids-storybook/breakpoints-and-grids-storybook.component.css +81 -0
- package/src/components-source/storybook-doc-components/breakpoints-and-grids-storybook/breakpoints-and-grids-storybook.component.html +143 -0
- package/src/components-source/storybook-doc-components/breakpoints-and-grids-storybook/breakpoints-and-grids-storybook.component.ts +97 -0
- package/src/components-source/storybook-doc-components/colors-storybook/colors-storybook.component.css +10 -0
- package/src/components-source/storybook-doc-components/colors-storybook/colors-storybook.component.html +63 -0
- package/src/components-source/storybook-doc-components/colors-storybook/colors-storybook.component.ts +542 -0
- package/src/components-source/storybook-doc-components/dropi-modal/dropi-modal.component.html +132 -0
- package/src/components-source/storybook-doc-components/dropi-modal/dropi-modal.component.scss +15 -0
- package/src/components-source/storybook-doc-components/dropi-modal/dropi-modal.component.ts +67 -0
- package/src/components-source/storybook-doc-components/dropi-toast/dropi-toast.component.html +156 -0
- package/src/components-source/storybook-doc-components/dropi-toast/dropi-toast.component.scss +13 -0
- package/src/components-source/storybook-doc-components/dropi-toast/dropi-toast.component.ts +55 -0
- package/src/components-source/storybook-doc-components/flags-storybook/flags-storybook.component.css +0 -0
- package/src/components-source/storybook-doc-components/flags-storybook/flags-storybook.component.html +99 -0
- package/src/components-source/storybook-doc-components/flags-storybook/flags-storybook.component.ts +19 -0
- package/src/components-source/storybook-doc-components/icons-storybook/icons-storybook.component.css +82 -0
- package/src/components-source/storybook-doc-components/icons-storybook/icons-storybook.component.html +111 -0
- package/src/components-source/storybook-doc-components/icons-storybook/icons-storybook.component.ts +196 -0
- package/src/components-source/storybook-doc-components/logo-storybook/logo-foundations.component.ts +19 -0
- package/src/components-source/storybook-doc-components/logo-storybook/logo-storybook.component.css +0 -0
- package/src/components-source/storybook-doc-components/logo-storybook/logo-storybook.component.html +104 -0
- package/src/components-source/storybook-doc-components/lustration-storybook/lustration-storybook.component.css +0 -0
- package/src/components-source/storybook-doc-components/lustration-storybook/lustration-storybook.component.html +218 -0
- package/src/components-source/storybook-doc-components/lustration-storybook/lustration-storybook.component.ts +20 -0
- package/src/components-source/storybook-doc-components/shadow-storybook/shadow-storybook.component.html +21 -0
- package/src/components-source/storybook-doc-components/shadow-storybook/shadow-storybook.component.scss +0 -0
- package/src/components-source/storybook-doc-components/shadow-storybook/shadow-storybook.component.ts +66 -0
- package/src/components-source/storybook-doc-components/spacing-storybook/spacing-storybook.component.html +33 -0
- package/src/components-source/storybook-doc-components/spacing-storybook/spacing-storybook.component.scss +0 -0
- package/src/components-source/storybook-doc-components/spacing-storybook/spacing-storybook.component.ts +37 -0
- package/src/components-source/storybook-doc-components/story-page/story-page.component.html +74 -0
- package/src/components-source/storybook-doc-components/story-page/story-page.component.scss +103 -0
- package/src/components-source/storybook-doc-components/story-page/story-page.component.ts +424 -0
- package/src/components-source/storybook-doc-components/template-breakpoint-storybook/template-breakpoint-storybook.component.html +35 -0
- package/src/components-source/storybook-doc-components/template-breakpoint-storybook/template-breakpoint-storybook.component.scss +64 -0
- package/src/components-source/storybook-doc-components/template-breakpoint-storybook/template-breakpoint-storybook.component.ts +71 -0
- package/src/components-source/storybook-doc-components/tillte-table-documentation/tillte-table-documentation.component.html +44 -0
- package/src/components-source/storybook-doc-components/tillte-table-documentation/tillte-table-documentation.component.scss +270 -0
- package/src/components-source/storybook-doc-components/tillte-table-documentation/tillte-table-documentation.component.ts +153 -0
- package/src/components-source/tabs/tabs.component.html +26 -0
- package/src/components-source/tabs/tabs.component.scss +62 -0
- package/src/components-source/tabs/tabs.component.spec.ts +212 -0
- package/src/components-source/tabs/tabs.component.stories.ts +203 -0
- package/src/components-source/tabs/tabs.component.ts +138 -0
- package/src/components-source/tag-type-product/tag-type-product.component.html +1 -0
- package/src/components-source/tag-type-product/tag-type-product.component.scss +10 -0
- package/src/components-source/tag-type-product/tag-type-product.component.spec.ts +38 -0
- package/src/components-source/tag-type-product/tag-type-product.component.ts +9 -0
- package/src/components-source/toast/toast.component.html +37 -0
- package/src/components-source/toast/toast.component.scss +142 -0
- package/src/components-source/toast/toast.component.spec.ts +368 -0
- package/src/components-source/toast/toast.component.ts +59 -0
- package/src/components-source/toast/toast.stories.ts +69 -0
- package/src/components-source/tooltip/tooltip.component.html +46 -0
- package/src/components-source/tooltip/tooltip.component.scss +44 -0
- package/src/components-source/tooltip/tooltip.component.spec.ts +327 -0
- package/src/components-source/tooltip/tooltip.component.ts +24 -0
- package/src/components-source/ui-dropi.module.ts +125 -0
- package/src/components-source/ui-inventory.json +1138 -0
- package/src/components-source/vertical-steps/vertical-steps.component.html +35 -0
- package/src/components-source/vertical-steps/vertical-steps.component.scss +143 -0
- package/src/components-source/vertical-steps/vertical-steps.component.spec.ts +121 -0
- package/src/components-source/vertical-steps/vertical-steps.component.stories.ts +216 -0
- package/src/components-source/vertical-steps/vertical-steps.component.ts +151 -0
- package/src/index.ts +31 -0
- package/src/lib/bootstrap.ts +28 -0
- package/src/lib/dropi-ui-elements/dropi-ui-elements.component.html +1 -0
- package/src/lib/dropi-ui-elements/dropi-ui-elements.component.scss +0 -0
- package/src/lib/dropi-ui-elements/dropi-ui-elements.component.spec.ts +21 -0
- package/src/lib/dropi-ui-elements/dropi-ui-elements.component.ts +9 -0
- package/src/lib/elements-registry.ts +66 -0
- package/src/lib/elements.module.ts +22 -0
- package/src/styles.scss +152 -0
- package/src/test-setup.ts +6 -0
- package/tsconfig.json +28 -0
- package/tsconfig.lib.json +18 -0
- package/tsconfig.lib.prod.json +9 -0
- package/tsconfig.spec.json +12 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed, fakeAsync, tick } from '@angular/core/testing';
|
|
2
|
+
import { AlertComponent2 } from './alert.component';
|
|
3
|
+
|
|
4
|
+
describe('AlertComponent2 (AlertLegacy)', () => {
|
|
5
|
+
let component: AlertComponent2;
|
|
6
|
+
let fixture: ComponentFixture<AlertComponent2>;
|
|
7
|
+
|
|
8
|
+
beforeEach(async () => {
|
|
9
|
+
await TestBed.configureTestingModule({
|
|
10
|
+
imports: [AlertComponent2],
|
|
11
|
+
}).compileComponents();
|
|
12
|
+
|
|
13
|
+
fixture = TestBed.createComponent(AlertComponent2);
|
|
14
|
+
component = fixture.componentInstance;
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
describe('Inicialización del componente', () => {
|
|
18
|
+
it('should create', () => {
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
expect(component).toBeTruthy();
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
it('should initialize with default values', () => {
|
|
24
|
+
expect(component.visible).toBe(false);
|
|
25
|
+
expect(component.message).toBe('');
|
|
26
|
+
expect(component.type).toBe('success');
|
|
27
|
+
expect(component.autoClose).toBe(false);
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
describe('Propiedad visible', () => {
|
|
32
|
+
it('should accept true value', () => {
|
|
33
|
+
component.visible = true;
|
|
34
|
+
expect(component.visible).toBe(true);
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
it('should accept false value', () => {
|
|
38
|
+
component.visible = false;
|
|
39
|
+
expect(component.visible).toBe(false);
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
describe('Propiedad message', () => {
|
|
44
|
+
it('should accept message string', () => {
|
|
45
|
+
component.message = 'Test message';
|
|
46
|
+
expect(component.message).toBe('Test message');
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
it('should accept empty string', () => {
|
|
50
|
+
component.message = '';
|
|
51
|
+
expect(component.message).toBe('');
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
describe('Propiedad type', () => {
|
|
56
|
+
it('should accept "success" type', () => {
|
|
57
|
+
component.type = 'success';
|
|
58
|
+
expect(component.type).toBe('success');
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
it('should accept "error" type', () => {
|
|
62
|
+
component.type = 'error';
|
|
63
|
+
expect(component.type).toBe('error');
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
it('should accept "warning" type', () => {
|
|
67
|
+
component.type = 'warning';
|
|
68
|
+
expect(component.type).toBe('warning');
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
it('should accept "info" type', () => {
|
|
72
|
+
component.type = 'info';
|
|
73
|
+
expect(component.type).toBe('info');
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
describe('Propiedad autoClose', () => {
|
|
78
|
+
it('should accept true value', () => {
|
|
79
|
+
component.autoClose = true;
|
|
80
|
+
expect(component.autoClose).toBe(true);
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
it('should accept false value', () => {
|
|
84
|
+
component.autoClose = false;
|
|
85
|
+
expect(component.autoClose).toBe(false);
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
describe('ngOnInit', () => {
|
|
90
|
+
it('should call closeAlertAfterTimeout when autoClose is true', () => {
|
|
91
|
+
const spy = jest.spyOn(component, 'closeAlertAfterTimeout');
|
|
92
|
+
component.autoClose = true;
|
|
93
|
+
fixture.detectChanges();
|
|
94
|
+
expect(spy).toHaveBeenCalled();
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
it('should not call closeAlertAfterTimeout when autoClose is false', () => {
|
|
98
|
+
const spy = jest.spyOn(component, 'closeAlertAfterTimeout');
|
|
99
|
+
component.autoClose = false;
|
|
100
|
+
fixture.detectChanges();
|
|
101
|
+
expect(spy).not.toHaveBeenCalled();
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
describe('Método closeAlert', () => {
|
|
106
|
+
it('should set visible to false', () => {
|
|
107
|
+
component.visible = true;
|
|
108
|
+
component.closeAlert();
|
|
109
|
+
expect(component.visible).toBe(false);
|
|
110
|
+
});
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
describe('Método closeAlertAfterTimeout', () => {
|
|
114
|
+
beforeEach(() => {
|
|
115
|
+
jest.useFakeTimers();
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
afterEach(() => {
|
|
119
|
+
jest.useRealTimers();
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
it('should call closeAlert after 7000ms', () => {
|
|
123
|
+
const spy = jest.spyOn(component, 'closeAlert');
|
|
124
|
+
component.visible = true;
|
|
125
|
+
component.closeAlertAfterTimeout();
|
|
126
|
+
|
|
127
|
+
expect(spy).not.toHaveBeenCalled();
|
|
128
|
+
|
|
129
|
+
jest.advanceTimersByTime(7000);
|
|
130
|
+
|
|
131
|
+
expect(spy).toHaveBeenCalled();
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
it('should not close before 7000ms', () => {
|
|
135
|
+
const spy = jest.spyOn(component, 'closeAlert');
|
|
136
|
+
component.visible = true;
|
|
137
|
+
component.closeAlertAfterTimeout();
|
|
138
|
+
|
|
139
|
+
jest.advanceTimersByTime(6999);
|
|
140
|
+
|
|
141
|
+
expect(spy).not.toHaveBeenCalled();
|
|
142
|
+
});
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
describe('Integración', () => {
|
|
146
|
+
it('should work with all properties set', () => {
|
|
147
|
+
component.visible = true;
|
|
148
|
+
component.message = 'Integration test message';
|
|
149
|
+
component.type = 'warning';
|
|
150
|
+
component.autoClose = false;
|
|
151
|
+
|
|
152
|
+
fixture.detectChanges();
|
|
153
|
+
|
|
154
|
+
expect(component.visible).toBe(true);
|
|
155
|
+
expect(component.message).toBe('Integration test message');
|
|
156
|
+
expect(component.type).toBe('warning');
|
|
157
|
+
});
|
|
158
|
+
});
|
|
159
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Component, Input, OnInit } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'dropi-alert-legacy',
|
|
6
|
+
standalone: true,
|
|
7
|
+
imports: [CommonModule],
|
|
8
|
+
templateUrl: './alert.component.html',
|
|
9
|
+
styleUrls: ['./alert.component.scss'],
|
|
10
|
+
})
|
|
11
|
+
export class AlertComponent2 implements OnInit {
|
|
12
|
+
@Input() visible: boolean = false;
|
|
13
|
+
@Input() message: string = '';
|
|
14
|
+
@Input() type: 'success' | 'error' | 'warning' | 'info' = 'success';
|
|
15
|
+
@Input() autoClose: boolean = false;
|
|
16
|
+
|
|
17
|
+
ngOnInit() {
|
|
18
|
+
console.log('AlertComponent initialized', this.autoClose);
|
|
19
|
+
if (this.autoClose) {
|
|
20
|
+
this.closeAlertAfterTimeout();
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
closeAlert() {
|
|
25
|
+
this.visible = false;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
closeAlertAfterTimeout() {
|
|
29
|
+
setTimeout(() => {
|
|
30
|
+
this.closeAlert();
|
|
31
|
+
}, 7000);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
<dropi-modal
|
|
2
|
+
styleClass="dropi-alert-modal"
|
|
3
|
+
[(visible)]="visible"
|
|
4
|
+
[modal]="true"
|
|
5
|
+
[closable]="params?.closable ? true : false"
|
|
6
|
+
[dismissableMask]="false"
|
|
7
|
+
[closeOnEscape]="false"
|
|
8
|
+
[showHeader]="false"
|
|
9
|
+
transitionOptions="300ms"
|
|
10
|
+
[showHeader]="params?.closable ? true : false"
|
|
11
|
+
[autoZIndex]="true"
|
|
12
|
+
[baseZIndex]="baseZIndex"
|
|
13
|
+
(onHide)="onHideModal()"
|
|
14
|
+
>
|
|
15
|
+
<ng-template pTemplate="content">
|
|
16
|
+
<div class="body-alert" *ngIf="!loading">
|
|
17
|
+
<div class="header-alert">
|
|
18
|
+
<div class="lottie-img" *ngIf="visible && brandName === 'dropi'">
|
|
19
|
+
<dotlottie-player
|
|
20
|
+
[src]="sourceAnimation"
|
|
21
|
+
background="transparent"
|
|
22
|
+
speed="1"
|
|
23
|
+
style="width: 100%; height: auto"
|
|
24
|
+
loop
|
|
25
|
+
autoplay
|
|
26
|
+
></dotlottie-player>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="wb-img" *ngIf="visible && brandName !== 'dropi'">
|
|
29
|
+
<img [src]="imageWhiteBrand" alt="logo" />
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
<div class="content-alert">
|
|
33
|
+
<h2>{{ tittle | translate }}</h2>
|
|
34
|
+
<ng-container *ngIf="isArray(message)">
|
|
35
|
+
<p *ngFor="let m of message">{{ m | translate }}</p>
|
|
36
|
+
</ng-container>
|
|
37
|
+
|
|
38
|
+
<p *ngIf="!isArray(message)">
|
|
39
|
+
{{ message | translate }}
|
|
40
|
+
</p>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<ng-container *ngIf="alertTemplate">
|
|
44
|
+
<ng-container
|
|
45
|
+
*ngTemplateOutlet="alertTemplate; context: { $implicit: contextTemplate }"
|
|
46
|
+
></ng-container>
|
|
47
|
+
</ng-container>
|
|
48
|
+
|
|
49
|
+
<div class="actions" *ngIf="displayButtons">
|
|
50
|
+
<dropi-button
|
|
51
|
+
*ngIf="secondaryButton"
|
|
52
|
+
[text]="secondaryButton | translate"
|
|
53
|
+
severity="secondary"
|
|
54
|
+
(onClick)="secondaryButtonAction()"
|
|
55
|
+
></dropi-button>
|
|
56
|
+
<dropi-button
|
|
57
|
+
[text]="primaryButton | translate"
|
|
58
|
+
(onClick)="primaryButtonAction()"
|
|
59
|
+
></dropi-button>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
<!-- <div class="actions" *ngIf="displayButtons">
|
|
63
|
+
<button
|
|
64
|
+
*ngIf="secondaryButton"
|
|
65
|
+
class="btn btn-secondary"
|
|
66
|
+
(click)="secondaryButtonAction()"
|
|
67
|
+
data-cy="alert-modal-secondary-button"
|
|
68
|
+
>
|
|
69
|
+
{{ secondaryButton | translate }}
|
|
70
|
+
</button>
|
|
71
|
+
<button
|
|
72
|
+
class="btn btn-primary"
|
|
73
|
+
(click)="primaryButtonAction()"
|
|
74
|
+
data-cy="alert-modal-primary-button"
|
|
75
|
+
>
|
|
76
|
+
{{ primaryButton | translate }}
|
|
77
|
+
</button>
|
|
78
|
+
</div> -->
|
|
79
|
+
</div>
|
|
80
|
+
|
|
81
|
+
<div class="body-alert-loading" *ngIf="loading">
|
|
82
|
+
<div class="header-alert" [style]="{ 'margin-bottom': loadingAnimation.marginBottom }">
|
|
83
|
+
<div class="lottie-img" *ngIf="visible && loading">
|
|
84
|
+
<dotlottie-player
|
|
85
|
+
*ngIf="loading && brandName === 'dropi'"
|
|
86
|
+
[src]="loadingAnimation.path"
|
|
87
|
+
background="transparent"
|
|
88
|
+
speed="1"
|
|
89
|
+
[style]="{
|
|
90
|
+
width: loadingAnimation.width,
|
|
91
|
+
height: loadingAnimation.height,
|
|
92
|
+
}"
|
|
93
|
+
loop
|
|
94
|
+
autoplay
|
|
95
|
+
></dotlottie-player>
|
|
96
|
+
<dotlottie-player
|
|
97
|
+
*ngIf="loading && brandName !== 'dropi' && params.type == 'loading'"
|
|
98
|
+
[src]="'/assets/lottie-files/loading-mb.json'"
|
|
99
|
+
background="transparent"
|
|
100
|
+
speed="1"
|
|
101
|
+
style="width: 300px; height: auto"
|
|
102
|
+
loop
|
|
103
|
+
autoplay
|
|
104
|
+
></dotlottie-player>
|
|
105
|
+
</div>
|
|
106
|
+
<div class="wb-img" *ngIf="visible && brandName !== 'dropi' && params.type !== 'loading'">
|
|
107
|
+
<img [src]="imageWhiteBrand" alt="logo" />
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
<div class="content-alert">
|
|
111
|
+
<p-progressBar *ngIf="withLoadingProgressBar" mode="indeterminate" color="#F49A3D" />
|
|
112
|
+
<h2>
|
|
113
|
+
{{ loadingTitle | translate }}
|
|
114
|
+
</h2>
|
|
115
|
+
<p>
|
|
116
|
+
{{ loadingMessage | translate }}
|
|
117
|
+
</p>
|
|
118
|
+
<h5 *ngIf="params.applyCountRegresive">
|
|
119
|
+
{{ 'in' | translate }} {{ countRegresive }} {{ 'seconds' | translate }}
|
|
120
|
+
</h5>
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
</ng-template>
|
|
124
|
+
</dropi-modal>
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
::ng-deep .dropi-modal-root {
|
|
2
|
+
&.dropi-modal-root--open .dropi-modal__panel.dropi-alert-modal {
|
|
3
|
+
@media screen and (max-width: 768px) {
|
|
4
|
+
transform: translateY(0%) !important;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
// --closing debe ir después de --open para ganar en especificidad cuando ambas están presentes
|
|
9
|
+
&.dropi-modal-root--closing .dropi-modal__panel.dropi-alert-modal {
|
|
10
|
+
@media screen and (max-width: 768px) {
|
|
11
|
+
transform: translateY(100%) !important;
|
|
12
|
+
opacity: 1 !important;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// Cuando --open y --closing están ambos presentes, --closing debe ganar
|
|
17
|
+
&.dropi-modal-root--open.dropi-modal-root--closing .dropi-modal__panel.dropi-alert-modal {
|
|
18
|
+
@media screen and (max-width: 768px) {
|
|
19
|
+
transform: translateY(100%) !important;
|
|
20
|
+
opacity: 1 !important;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.dropi-modal__panel.dropi-alert-modal {
|
|
25
|
+
width: 440px !important;
|
|
26
|
+
min-height: 280px !important;
|
|
27
|
+
overflow: hidden !important;
|
|
28
|
+
|
|
29
|
+
.dropi-modal__content {
|
|
30
|
+
overflow: hidden !important;
|
|
31
|
+
display: flex;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
align-items: center;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@media screen and (max-width: 768px) {
|
|
37
|
+
width: 100% !important;
|
|
38
|
+
max-width: 100% !important;
|
|
39
|
+
height: auto !important;
|
|
40
|
+
padding-bottom: 30px !important;
|
|
41
|
+
position: absolute !important;
|
|
42
|
+
bottom: 0px !important;
|
|
43
|
+
border-radius: 10px 10px 0 0 !important;
|
|
44
|
+
|
|
45
|
+
transform: translateY(100%) !important;
|
|
46
|
+
transition: transform 0.3s cubic-bezier(0, 0, 0.2, 1) !important;
|
|
47
|
+
opacity: 1 !important;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.dropi-modal-container {
|
|
51
|
+
width: 460px;
|
|
52
|
+
max-width: 460px;
|
|
53
|
+
height: auto !important;
|
|
54
|
+
|
|
55
|
+
@media (max-width: 768px) {
|
|
56
|
+
width: calc(100% - 32px);
|
|
57
|
+
max-width: calc(100% - 32px);
|
|
58
|
+
height: auto !important;
|
|
59
|
+
margin: 16px;
|
|
60
|
+
top: 50% !important;
|
|
61
|
+
transform: translateY(-50%) !important;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.dropi-modal-content {
|
|
66
|
+
@media (max-width: 768px) {
|
|
67
|
+
max-height: calc(100vh - 32px);
|
|
68
|
+
overflow-y: auto;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.p-dialog {
|
|
73
|
+
background-color: white !important;
|
|
74
|
+
box-shadow: 0px 20px 25px 0px rgba(0, 0, 0, 0.1);
|
|
75
|
+
border-radius: 8px !important;
|
|
76
|
+
max-width: 460px;
|
|
77
|
+
width: 100%;
|
|
78
|
+
box-sizing: border-box;
|
|
79
|
+
padding: 32px;
|
|
80
|
+
margin: 0 20px;
|
|
81
|
+
transition: all 0.3s ease-in-out;
|
|
82
|
+
height: auto;
|
|
83
|
+
|
|
84
|
+
@media (max-width: 768px) {
|
|
85
|
+
padding: 24px;
|
|
86
|
+
margin: 0;
|
|
87
|
+
border-radius: 12px !important;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
.p-dialog-content {
|
|
91
|
+
padding: 0px;
|
|
92
|
+
overflow: hidden;
|
|
93
|
+
}
|
|
94
|
+
.p-dialog-header {
|
|
95
|
+
position: absolute;
|
|
96
|
+
right: -10px;
|
|
97
|
+
top: -10px;
|
|
98
|
+
background: transparent;
|
|
99
|
+
}
|
|
100
|
+
.p-progressbar {
|
|
101
|
+
height: 6px;
|
|
102
|
+
border-radius: 4px;
|
|
103
|
+
margin-bottom: 25px;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.lottie-img {
|
|
109
|
+
margin-top: -8px;
|
|
110
|
+
margin-bottom: 8px;
|
|
111
|
+
min-height: 100px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.wb-img {
|
|
115
|
+
display: flex;
|
|
116
|
+
justify-content: center;
|
|
117
|
+
margin-top: 4px !important;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.body-alert {
|
|
121
|
+
display: flex;
|
|
122
|
+
flex-direction: column;
|
|
123
|
+
justify-content: center;
|
|
124
|
+
align-items: center;
|
|
125
|
+
gap: 12px;
|
|
126
|
+
overflow: hidden;
|
|
127
|
+
}
|
|
128
|
+
.header-alert {
|
|
129
|
+
width: 120px;
|
|
130
|
+
}
|
|
131
|
+
.content-alert {
|
|
132
|
+
text-align: center;
|
|
133
|
+
h2 {
|
|
134
|
+
color: var(--Gray-Gray-1, #1f2937);
|
|
135
|
+
font-size: 19px;
|
|
136
|
+
font-weight: 600;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
p {
|
|
140
|
+
color: var(--Gray-Gray-2, #74798d);
|
|
141
|
+
font-size: 14px;
|
|
142
|
+
margin-bottom: 8px;
|
|
143
|
+
overflow-wrap: anywhere;
|
|
144
|
+
max-height: 100px;
|
|
145
|
+
overflow: auto;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.actions {
|
|
150
|
+
display: flex;
|
|
151
|
+
gap: 10px;
|
|
152
|
+
width: 100%;
|
|
153
|
+
|
|
154
|
+
dropi-button {
|
|
155
|
+
flex: 1;
|
|
156
|
+
display: flex;
|
|
157
|
+
justify-content: center;
|
|
158
|
+
|
|
159
|
+
::ng-deep .btn {
|
|
160
|
+
width: 100%;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@media (max-width: 768px) {
|
|
165
|
+
flex-direction: column;
|
|
166
|
+
|
|
167
|
+
dropi-button {
|
|
168
|
+
width: 100%;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.body-alert-loading .header-alert {
|
|
174
|
+
width: 100%;
|
|
175
|
+
display: flex;
|
|
176
|
+
align-items: center;
|
|
177
|
+
justify-content: center;
|
|
178
|
+
height: 160px;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
button {
|
|
182
|
+
flex: 1;
|
|
183
|
+
outline: none;
|
|
184
|
+
border-radius: 8px;
|
|
185
|
+
display: flex;
|
|
186
|
+
align-items: center;
|
|
187
|
+
gap: 8px;
|
|
188
|
+
justify-content: center;
|
|
189
|
+
&.btn-primary {
|
|
190
|
+
background: var(--Primary-Naranja, #ff9333);
|
|
191
|
+
border: navajowhite;
|
|
192
|
+
height: 40px;
|
|
193
|
+
padding: 8px 20px 8px 16px;
|
|
194
|
+
|
|
195
|
+
font-weight: 600;
|
|
196
|
+
}
|
|
197
|
+
&.btn-secondary {
|
|
198
|
+
background: #fff;
|
|
199
|
+
color: var(--Primary-Naranja, #ff9333);
|
|
200
|
+
border: 1px solid;
|
|
201
|
+
font-weight: 500;
|
|
202
|
+
}
|
|
203
|
+
}
|