@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
|
@@ -7,73 +7,46 @@ import {
|
|
|
7
7
|
OnChanges,
|
|
8
8
|
SimpleChanges,
|
|
9
9
|
NO_ERRORS_SCHEMA,
|
|
10
|
-
ComponentFactoryResolver,
|
|
11
10
|
ViewChild,
|
|
12
11
|
ViewContainerRef,
|
|
13
12
|
TemplateRef,
|
|
14
13
|
OnDestroy,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
import { NgIf } from
|
|
18
|
-
import { ProgressBarModule } from
|
|
19
|
-
import { DropiModalComponent } from
|
|
20
|
-
import { PTemplateDirective } from
|
|
21
|
-
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
TranslateStore,
|
|
26
|
-
} from '@ngx-translate/core';
|
|
27
|
-
import { NgPrimeModule } from '@app/ngprime.module';
|
|
28
|
-
import { LoadingType } from '@app/utilities/enums/ui/alert-modal.enum';
|
|
29
|
-
import { Subject, Subscription } from 'rxjs';
|
|
30
|
-
import { TemplateAlertModalService } from '@app/ui/alert-modal/services/template-alert-modal.service';
|
|
31
|
-
import { takeUntil } from 'rxjs/operators';
|
|
32
|
-
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
|
|
33
|
-
import { HttpClient } from '@angular/common/http';
|
|
34
|
-
import { SettingsService } from '@app/services/setting.service';
|
|
35
|
-
import { ButtonComponent } from '../dropi-button/dropi-button.component';
|
|
14
|
+
Inject,
|
|
15
|
+
} from "@angular/core";
|
|
16
|
+
import { NgIf } from "@angular/common";
|
|
17
|
+
import { ProgressBarModule } from "primeng/progressbar";
|
|
18
|
+
import { DropiModalComponent } from "../dropi-modal/dropi-modal.component";
|
|
19
|
+
import { PTemplateDirective } from "../dropi-modal/p-template.directive";
|
|
20
|
+
import { TranslateModule, TranslateService } from "@ngx-translate/core";
|
|
21
|
+
import { Subject } from "rxjs";
|
|
22
|
+
import { takeUntil } from "rxjs/operators";
|
|
23
|
+
import { ButtonComponent } from "../dropi-button/dropi-button.component";
|
|
36
24
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
25
|
+
export enum LoadingType {
|
|
26
|
+
Bowling = "bowling",
|
|
27
|
+
Heart = "heart",
|
|
40
28
|
}
|
|
41
|
-
|
|
29
|
+
|
|
42
30
|
export interface ModalParams {
|
|
43
31
|
tittle: string;
|
|
44
|
-
type?:
|
|
32
|
+
type?: "question" | "warning" | "success" | "error" | "loading";
|
|
45
33
|
message: string;
|
|
46
|
-
primaryButton?: string;
|
|
34
|
+
primaryButton?: string;
|
|
47
35
|
secondaryButton?: string;
|
|
48
|
-
loadingType?: LoadingType;
|
|
49
|
-
loadingTitle?: string;
|
|
50
|
-
loadingMessage?: string;
|
|
51
|
-
withLoadingProgressBar?: boolean;
|
|
52
|
-
closable?: boolean;
|
|
53
|
-
displayButtons?: boolean;
|
|
54
|
-
applyCountRegresive?: boolean;
|
|
55
|
-
timer?: number;
|
|
36
|
+
loadingType?: LoadingType;
|
|
37
|
+
loadingTitle?: string;
|
|
38
|
+
loadingMessage?: string;
|
|
39
|
+
withLoadingProgressBar?: boolean;
|
|
40
|
+
closable?: boolean;
|
|
41
|
+
displayButtons?: boolean;
|
|
42
|
+
applyCountRegresive?: boolean;
|
|
43
|
+
timer?: number;
|
|
56
44
|
}
|
|
57
45
|
|
|
58
|
-
// Ejemplo de uso del componente AlertModalComponent:
|
|
59
|
-
// <app-alert-modal
|
|
60
|
-
// [visible]="true"
|
|
61
|
-
// [loading]="false" // definir y manejar el estado de carga cuando tiene espera
|
|
62
|
-
// [params]="{
|
|
63
|
-
// tittle: 'Título',
|
|
64
|
-
// message: 'Mensaje',
|
|
65
|
-
// type: 'question',
|
|
66
|
-
// secondaryButton: 'Cancelar'
|
|
67
|
-
// }"
|
|
68
|
-
// (primaryButtonEvent)="orderSuccess($event)" // funcion cuando se presiona el botón primario
|
|
69
|
-
// (secondaryButtonEvent)="cancel($event)" // funcion cuando se presiona el botón secundario
|
|
70
|
-
// (modalOpenChange)="restartAlertParams($event)" // función cuando se cierra el modal
|
|
71
|
-
// ></app-alert-modal>
|
|
72
|
-
|
|
73
46
|
@Component({
|
|
74
|
-
selector:
|
|
75
|
-
templateUrl:
|
|
76
|
-
styleUrls: [
|
|
47
|
+
selector: "app-alert-modal",
|
|
48
|
+
templateUrl: "./alert-modal.component.html",
|
|
49
|
+
styleUrls: ["./alert-modal.component.scss"],
|
|
77
50
|
standalone: true,
|
|
78
51
|
imports: [
|
|
79
52
|
DropiModalComponent,
|
|
@@ -94,7 +67,7 @@ export class AlertModalComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
94
67
|
@Input() baseZIndex: number = 0;
|
|
95
68
|
@Output() modalOpenChange = new EventEmitter<boolean>();
|
|
96
69
|
@Output() primaryButtonEvent = new EventEmitter<boolean>();
|
|
97
|
-
@ViewChild(
|
|
70
|
+
@ViewChild("modalContainer", { read: ViewContainerRef, static: true })
|
|
98
71
|
modalContainer!: ViewContainerRef;
|
|
99
72
|
@Output() secondaryButtonEvent = new EventEmitter<boolean>();
|
|
100
73
|
@Output() onHide = new EventEmitter();
|
|
@@ -111,34 +84,29 @@ export class AlertModalComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
111
84
|
secondaryButton: string;
|
|
112
85
|
sourceAnimation: string;
|
|
113
86
|
loadingType: LoadingType = LoadingType.Bowling;
|
|
114
|
-
loadingTitle: string =
|
|
115
|
-
loadingMessage: string =
|
|
87
|
+
loadingTitle: string = "Cargando...";
|
|
88
|
+
loadingMessage: string = "Por favor, espere un momento";
|
|
116
89
|
withLoadingProgressBar: boolean = false;
|
|
117
90
|
loadingAnimation = {
|
|
118
|
-
path:
|
|
119
|
-
width:
|
|
120
|
-
height:
|
|
121
|
-
marginBottom:
|
|
91
|
+
path: "/assets/lottie-files/loading.json",
|
|
92
|
+
width: "300px",
|
|
93
|
+
height: "300px",
|
|
94
|
+
marginBottom: "0px",
|
|
122
95
|
};
|
|
123
96
|
|
|
124
|
-
|
|
125
|
-
brandName: string;
|
|
126
|
-
|
|
97
|
+
brandName: string = "dropi";
|
|
127
98
|
imageWhiteBrand: string;
|
|
128
|
-
|
|
129
99
|
interval: any;
|
|
130
100
|
countRegresive: number = 0;
|
|
131
101
|
|
|
132
102
|
constructor(
|
|
133
|
-
private templateService:
|
|
134
|
-
private settingService:
|
|
135
|
-
private translateService: TranslateService,
|
|
103
|
+
@Inject("TemplateAlertModalService") private templateService: any,
|
|
104
|
+
@Inject("SettingsService") private settingService: any,
|
|
105
|
+
@Inject(TranslateService) private translateService: TranslateService,
|
|
136
106
|
) {
|
|
137
|
-
this.brandName = this.settingService
|
|
107
|
+
this.brandName = this.settingService?.getBrandInfo()
|
|
138
108
|
? this.settingService.getBrandInfo()?.name.toLowerCase()
|
|
139
|
-
:
|
|
140
|
-
// private sanitizer: DomSanitizer,
|
|
141
|
-
// private componentFactoryResolver: ComponentFactoryResolver,
|
|
109
|
+
: "dropi";
|
|
142
110
|
}
|
|
143
111
|
|
|
144
112
|
ngOnInit(): void {
|
|
@@ -146,9 +114,9 @@ export class AlertModalComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
146
114
|
this.decideAnimation();
|
|
147
115
|
this.decideLoadingAnimation();
|
|
148
116
|
|
|
149
|
-
this.templateService
|
|
150
|
-
|
|
151
|
-
|
|
117
|
+
this.templateService?.currentTemplate$
|
|
118
|
+
?.pipe(takeUntil(this.destroy$))
|
|
119
|
+
?.subscribe(({ template, context }) => {
|
|
152
120
|
this.alertTemplate = template;
|
|
153
121
|
this.contextTemplate = context;
|
|
154
122
|
});
|
|
@@ -166,14 +134,20 @@ export class AlertModalComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
166
134
|
this.tittle = this.params.tittle;
|
|
167
135
|
this.type = this.params.type;
|
|
168
136
|
this.message = this.params.message;
|
|
169
|
-
this.primaryButton = this.params.primaryButton
|
|
137
|
+
this.primaryButton = this.params.primaryButton
|
|
138
|
+
? this.params.primaryButton
|
|
139
|
+
: "Aceptar";
|
|
170
140
|
this.secondaryButton = this.params?.secondaryButton;
|
|
171
141
|
this.displayButtons = this.params?.displayButtons == false ? false : true;
|
|
172
|
-
this.loadingType = this.params.loadingType
|
|
173
|
-
|
|
142
|
+
this.loadingType = this.params.loadingType
|
|
143
|
+
? this.params.loadingType
|
|
144
|
+
: LoadingType.Bowling;
|
|
145
|
+
this.loadingTitle = this.params.loadingTitle
|
|
146
|
+
? this.params.loadingTitle
|
|
147
|
+
: "Cargando...";
|
|
174
148
|
this.loadingMessage = this.params.loadingMessage
|
|
175
149
|
? this.params.loadingMessage
|
|
176
|
-
:
|
|
150
|
+
: "Por favor, espere un momento";
|
|
177
151
|
this.withLoadingProgressBar = this.params.withLoadingProgressBar
|
|
178
152
|
? this.params.withLoadingProgressBar
|
|
179
153
|
: false;
|
|
@@ -184,8 +158,7 @@ export class AlertModalComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
184
158
|
}
|
|
185
159
|
|
|
186
160
|
closeModal(): void {
|
|
187
|
-
this.visible = false;
|
|
188
|
-
// No emitimos modalOpenChange todavía para evitar que el padre destruya el componente (si usa *ngIf)
|
|
161
|
+
this.visible = false;
|
|
189
162
|
}
|
|
190
163
|
|
|
191
164
|
primaryButtonAction(): void {
|
|
@@ -202,20 +175,20 @@ export class AlertModalComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
202
175
|
|
|
203
176
|
decideAnimation() {
|
|
204
177
|
switch (this.type) {
|
|
205
|
-
case
|
|
206
|
-
this.sourceAnimation =
|
|
178
|
+
case "question":
|
|
179
|
+
this.sourceAnimation = "/assets/lottie-files/question.json";
|
|
207
180
|
break;
|
|
208
|
-
case
|
|
209
|
-
this.sourceAnimation =
|
|
181
|
+
case "warning":
|
|
182
|
+
this.sourceAnimation = "/assets/lottie-files/warning.json";
|
|
210
183
|
break;
|
|
211
|
-
case
|
|
212
|
-
this.sourceAnimation =
|
|
184
|
+
case "success":
|
|
185
|
+
this.sourceAnimation = "/assets/lottie-files/success.json";
|
|
213
186
|
break;
|
|
214
|
-
case
|
|
215
|
-
this.sourceAnimation =
|
|
187
|
+
case "error":
|
|
188
|
+
this.sourceAnimation = "/assets/lottie-files/failure.json";
|
|
216
189
|
break;
|
|
217
190
|
default:
|
|
218
|
-
this.sourceAnimation =
|
|
191
|
+
this.sourceAnimation = "";
|
|
219
192
|
break;
|
|
220
193
|
}
|
|
221
194
|
}
|
|
@@ -224,70 +197,67 @@ export class AlertModalComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
224
197
|
switch (this.loadingType) {
|
|
225
198
|
case LoadingType.Bowling:
|
|
226
199
|
const path =
|
|
227
|
-
this.brandName.toLowerCase() ===
|
|
228
|
-
?
|
|
229
|
-
:
|
|
200
|
+
this.brandName.toLowerCase() === "dropi"
|
|
201
|
+
? "/assets/lottie-files/loading.json"
|
|
202
|
+
: "/assets/lottie-files/loading-mb.json";
|
|
230
203
|
this.loadingAnimation = {
|
|
231
204
|
path,
|
|
232
|
-
width:
|
|
233
|
-
height:
|
|
234
|
-
marginBottom:
|
|
205
|
+
width: "300px",
|
|
206
|
+
height: "300px",
|
|
207
|
+
marginBottom: "0px",
|
|
235
208
|
};
|
|
236
209
|
break;
|
|
237
210
|
case LoadingType.Heart:
|
|
238
211
|
this.loadingAnimation = {
|
|
239
|
-
path:
|
|
240
|
-
width:
|
|
241
|
-
height:
|
|
242
|
-
marginBottom:
|
|
212
|
+
path: "/assets/lottie-files/heart.json",
|
|
213
|
+
width: "180px",
|
|
214
|
+
height: "180px",
|
|
215
|
+
marginBottom: "15px",
|
|
243
216
|
};
|
|
244
217
|
break;
|
|
245
218
|
}
|
|
246
219
|
}
|
|
247
220
|
|
|
248
|
-
// src\assets\img\white-brands-events
|
|
249
221
|
decideImgWhiteBrand() {
|
|
250
222
|
switch (this.type) {
|
|
251
|
-
case
|
|
223
|
+
case "question":
|
|
252
224
|
return `/assets/img/white-brands-events/info.png`;
|
|
253
|
-
case
|
|
225
|
+
case "warning":
|
|
254
226
|
return `/assets/img/white-brands-events/warning.png`;
|
|
255
|
-
case
|
|
227
|
+
case "success":
|
|
256
228
|
return `/assets/img/white-brands-events/success.png`;
|
|
257
|
-
case
|
|
229
|
+
case "error":
|
|
258
230
|
return `/assets/img/white-brands-events/error.png`;
|
|
259
231
|
default:
|
|
260
|
-
return
|
|
232
|
+
return "";
|
|
261
233
|
}
|
|
262
234
|
}
|
|
263
235
|
|
|
264
236
|
startCountRegresive() {
|
|
265
237
|
if (this.interval) {
|
|
266
|
-
clearInterval(this.interval);
|
|
238
|
+
clearInterval(this.interval);
|
|
267
239
|
}
|
|
268
240
|
|
|
269
|
-
this.countRegresive = this.params.timer;
|
|
241
|
+
this.countRegresive = this.params.timer;
|
|
270
242
|
|
|
271
243
|
this.interval = setInterval(() => {
|
|
272
|
-
console.log('Regresiva:', this.countRegresive); // Depuración
|
|
273
244
|
this.countRegresive--;
|
|
274
245
|
if (this.countRegresive <= 0) {
|
|
275
|
-
clearInterval(this.interval);
|
|
246
|
+
clearInterval(this.interval);
|
|
276
247
|
}
|
|
277
248
|
}, 1000);
|
|
278
249
|
}
|
|
279
250
|
|
|
280
251
|
ngOnDestroy() {
|
|
281
|
-
this.destroy$.next();
|
|
282
|
-
this.destroy$.complete();
|
|
252
|
+
this.destroy$.next();
|
|
253
|
+
this.destroy$.complete();
|
|
283
254
|
}
|
|
284
255
|
|
|
285
256
|
onHideModal() {
|
|
286
|
-
this.modalOpenChange.emit(false);
|
|
257
|
+
this.modalOpenChange.emit(false);
|
|
287
258
|
this.onHide.emit();
|
|
288
259
|
}
|
|
289
260
|
|
|
290
|
-
//metodo para validar si llega un sólo mensaje string o un array de strings
|
|
291
261
|
isArray(value: any): boolean {
|
|
292
262
|
return Array.isArray(value);
|
|
293
263
|
}
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
.alertx-warning {
|
|
2
|
+
color: #664d03;
|
|
3
|
+
background-color: #ffecb5;
|
|
4
|
+
border-color: #fbe9c9;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.alertx {
|
|
8
|
+
position: relative;
|
|
9
|
+
padding: 0.75rem 0.5rem;
|
|
10
|
+
margin-bottom: 1rem;
|
|
11
|
+
border: 1px solid transparent;
|
|
12
|
+
border-radius: 0.25rem;
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: row;
|
|
15
|
+
align-items: center;
|
|
16
|
+
flex-wrap: wrap;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.alertx-text {
|
|
20
|
+
font-weight: 500;
|
|
21
|
+
margin-right: 0.3rem;
|
|
22
|
+
font-size: 14px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.alertx-text-underline {
|
|
26
|
+
font-weight: 300;
|
|
27
|
+
margin-right: 1.3rem;
|
|
28
|
+
font-size: 14px;
|
|
29
|
+
text-decoration: underline;
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.alertx-text-underline2 {
|
|
34
|
+
font-weight: 300;
|
|
35
|
+
font-size: 14px;
|
|
36
|
+
text-decoration: underline;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.alertx-failed {
|
|
41
|
+
color: #842029;
|
|
42
|
+
background-color: #f8d7da;
|
|
43
|
+
border-color: #f5c2c7;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.alertx.alertx-warning {
|
|
47
|
+
border-radius: 8px;
|
|
48
|
+
border: 1px solid var(--Warning-warning-400, #f4c370);
|
|
49
|
+
background: var(--Warning-warning-50, #fef8ed);
|
|
50
|
+
}
|
|
51
|
+
.alertx {
|
|
52
|
+
position: relative;
|
|
53
|
+
padding: 8px 12px;
|
|
54
|
+
margin-bottom: 1rem;
|
|
55
|
+
border: 1px solid transparent;
|
|
56
|
+
border-radius: 0.25rem;
|
|
57
|
+
display: flex;
|
|
58
|
+
flex-direction: row;
|
|
59
|
+
align-items: center;
|
|
60
|
+
flex-wrap: wrap;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.alertx-text-gray {
|
|
64
|
+
font-weight: 500;
|
|
65
|
+
margin-right: 0.3rem;
|
|
66
|
+
font-size: 14px;
|
|
67
|
+
color: #7b8190;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.alertx-text2 {
|
|
71
|
+
font-weight: 400;
|
|
72
|
+
font-size: 14px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.btnx-warning {
|
|
76
|
+
color: #fff;
|
|
77
|
+
background-color: #f1b44c;
|
|
78
|
+
border-color: #f1b44c;
|
|
79
|
+
font-weight: 500;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.contentcustom {
|
|
83
|
+
display: flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
flex-wrap: wrap;
|
|
86
|
+
justify-content: space-between;
|
|
87
|
+
gap: 10px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.imgTutorial {
|
|
91
|
+
object-fit: contain;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@media (max-width: 550px) {
|
|
95
|
+
.btnx-warning {
|
|
96
|
+
margin-top: 0.5rem;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.contentcustom {
|
|
100
|
+
display: flex;
|
|
101
|
+
flex-direction: column;
|
|
102
|
+
align-items: flex-end;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.disabledElement {
|
|
107
|
+
opacity: 0.4;
|
|
108
|
+
pointer-events: none;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.alertx-warning1 {
|
|
112
|
+
color: #664d03;
|
|
113
|
+
background-color: #ffecb5;
|
|
114
|
+
border-color: #fbe9c9;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.alertx-gray {
|
|
118
|
+
color: #495057;
|
|
119
|
+
background-color: #f5f6f8;
|
|
120
|
+
border-color: #ced4da;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.alertx1 {
|
|
124
|
+
position: relative;
|
|
125
|
+
padding: 0.75rem 0.5rem;
|
|
126
|
+
margin-bottom: 1rem;
|
|
127
|
+
border: 1px solid transparent;
|
|
128
|
+
border-radius: 0.25rem;
|
|
129
|
+
display: flex;
|
|
130
|
+
flex-direction: row;
|
|
131
|
+
align-items: center;
|
|
132
|
+
flex-wrap: wrap;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.alertx-text1 {
|
|
136
|
+
font-weight: 500;
|
|
137
|
+
margin-left: 0.6rem;
|
|
138
|
+
margin-right: 1.3rem;
|
|
139
|
+
font-size: 14px;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.btnx-warning1 {
|
|
143
|
+
color: #fff;
|
|
144
|
+
font-weight: 500;
|
|
145
|
+
border-radius: 8px;
|
|
146
|
+
background: var(--Warning-warning-500, #f1b44c);
|
|
147
|
+
padding: 6px 10px;
|
|
148
|
+
font-size: 13px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.btnx-gray {
|
|
152
|
+
color: #fff;
|
|
153
|
+
background-color: #74788d;
|
|
154
|
+
border-color: #74788d;
|
|
155
|
+
font-weight: 500;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.iframeVideo {
|
|
159
|
+
border-radius: 15px;
|
|
160
|
+
margin-top: 1rem;
|
|
161
|
+
width: 100%;
|
|
162
|
+
height: 100%;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
:host ::ng-deep .alert-modal-yt {
|
|
166
|
+
.p-dialog {
|
|
167
|
+
background-color: white !important;
|
|
168
|
+
box-shadow: 0px 20px 25px 0px rgba(0, 0, 0, 0.1);
|
|
169
|
+
border-radius: 8px !important;
|
|
170
|
+
width: 70dvw;
|
|
171
|
+
box-sizing: border-box;
|
|
172
|
+
padding: 32px;
|
|
173
|
+
margin: 0 20px;
|
|
174
|
+
transition: all 0.3s ease-in-out;
|
|
175
|
+
height: auto;
|
|
176
|
+
}
|
|
177
|
+
.p-dialog-content {
|
|
178
|
+
padding: 0px;
|
|
179
|
+
overflow: hidden;
|
|
180
|
+
}
|
|
181
|
+
.p-dialog-header {
|
|
182
|
+
position: absolute;
|
|
183
|
+
right: -10px;
|
|
184
|
+
top: -10px;
|
|
185
|
+
background: transparent;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
:host ::ng-deep .alert-modal2 {
|
|
190
|
+
.p-dialog {
|
|
191
|
+
background-color: white !important;
|
|
192
|
+
box-shadow: 0px 20px 25px 0px rgba(0, 0, 0, 0.1);
|
|
193
|
+
border-radius: 8px !important;
|
|
194
|
+
width: 70dvw;
|
|
195
|
+
box-sizing: border-box;
|
|
196
|
+
padding: 32px;
|
|
197
|
+
margin: 0 20px;
|
|
198
|
+
transition: all 0.3s ease-in-out;
|
|
199
|
+
height: auto;
|
|
200
|
+
}
|
|
201
|
+
.p-dialog-content {
|
|
202
|
+
padding: 0px;
|
|
203
|
+
overflow: hidden;
|
|
204
|
+
}
|
|
205
|
+
.p-dialog-header {
|
|
206
|
+
position: absolute;
|
|
207
|
+
right: -10px;
|
|
208
|
+
top: -10px;
|
|
209
|
+
background: transparent;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
@media (max-width: 550px) {
|
|
214
|
+
.alert-reason1 {
|
|
215
|
+
margin-right: 2rem;
|
|
216
|
+
margin-left: 2rem;
|
|
217
|
+
}
|
|
218
|
+
.btnx-warning1 {
|
|
219
|
+
margin-top: 0.5rem;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.btnx-gray {
|
|
223
|
+
margin-top: 0.5rem;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Component,
|
|
3
|
+
Input,
|
|
4
|
+
Output,
|
|
5
|
+
EventEmitter,
|
|
6
|
+
OnInit,
|
|
7
|
+
Inject,
|
|
8
|
+
CUSTOM_ELEMENTS_SCHEMA,
|
|
9
|
+
} from "@angular/core";
|
|
10
|
+
import { CommonModule } from "@angular/common";
|
|
11
|
+
|
|
12
|
+
@Component({
|
|
13
|
+
selector: "app-alert-validation",
|
|
14
|
+
standalone: true,
|
|
15
|
+
imports: [CommonModule],
|
|
16
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
17
|
+
templateUrl: "./alert-validation.component.html",
|
|
18
|
+
styleUrls: ["./alert-validation.component.scss"],
|
|
19
|
+
})
|
|
20
|
+
export class AlertValidationComponent implements OnInit {
|
|
21
|
+
@Input() public visible: boolean = false;
|
|
22
|
+
@Input() public visibleSupport: boolean = false;
|
|
23
|
+
@Input() public message: string = "";
|
|
24
|
+
@Input() public routeLink?: string;
|
|
25
|
+
@Input() public status: any;
|
|
26
|
+
@Input() public isBillingDataCompleted: boolean = true;
|
|
27
|
+
@Input() public messageAlertObject: any;
|
|
28
|
+
@Input() public visibleTutorial: boolean = false;
|
|
29
|
+
|
|
30
|
+
constructor(@Inject("Router") private router: any) {}
|
|
31
|
+
|
|
32
|
+
ngOnInit(): void {}
|
|
33
|
+
|
|
34
|
+
public navigate(): void {
|
|
35
|
+
if (this.routeLink && this.router) {
|
|
36
|
+
this.router.navigate([this.routeLink]);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
public goValidate(): void {}
|
|
41
|
+
public openModal2(): void {}
|
|
42
|
+
public closeModal(): void {}
|
|
43
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<div class="betta-tag pulse">Beta</div>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.betta-tag {
|
|
2
|
+
position: absolute;
|
|
3
|
+
background-color: #34c38f;
|
|
4
|
+
padding: 1px 4px;
|
|
5
|
+
border-radius: 4px;
|
|
6
|
+
border: 1px solid #ffffff;
|
|
7
|
+
font-size: 10px;
|
|
8
|
+
color: #ffffff;
|
|
9
|
+
z-index: 9;
|
|
10
|
+
right: -6px;
|
|
11
|
+
top: -10px;
|
|
12
|
+
font-weight: 600;
|
|
13
|
+
animation: pulse 1s infinite;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@keyframes pulse {
|
|
17
|
+
0% {
|
|
18
|
+
transform: scale(1);
|
|
19
|
+
}
|
|
20
|
+
50% {
|
|
21
|
+
transform: scale(1.1);
|
|
22
|
+
}
|
|
23
|
+
100% {
|
|
24
|
+
transform: scale(1);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
<
|
|
2
|
-
class="
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
></
|
|
1
|
+
<div class="breadcrumb-container">
|
|
2
|
+
<ul class="breadcrumb-list">
|
|
3
|
+
<li class="breadcrumb-item home" *ngIf="home">
|
|
4
|
+
<a [href]="home.routerLink">
|
|
5
|
+
<i [class]="home.icon"></i>
|
|
6
|
+
</a>
|
|
7
|
+
</li>
|
|
8
|
+
<li class="breadcrumb-item" *ngFor="let item of items">
|
|
9
|
+
<span class="separator">/</span>
|
|
10
|
+
<a [href]="item.routerLink">{{ item.label }}</a>
|
|
11
|
+
</li>
|
|
12
|
+
</ul>
|
|
13
|
+
</div>
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
width: 12px;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
/*
|
|
31
32
|
:host ::ng-deep .card-icon {
|
|
32
33
|
background-image: url('../../../assets/img/icons/card.svg');
|
|
33
34
|
width: 20px;
|
|
@@ -39,8 +40,14 @@
|
|
|
39
40
|
display: none;
|
|
40
41
|
}
|
|
41
42
|
}
|
|
43
|
+
*/
|
|
42
44
|
|
|
43
45
|
// color #A3A6B8 breadcrum disable color
|
|
44
|
-
:host
|
|
46
|
+
:host
|
|
47
|
+
::ng-deep
|
|
48
|
+
.breadcumb-list
|
|
49
|
+
.p-breadcrumb
|
|
50
|
+
li.p-disabled
|
|
51
|
+
span.p-menuitem-text {
|
|
45
52
|
color: #a3a6b8;
|
|
46
53
|
}
|