@dropi/ui 0.1.36 → 0.1.41
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/assets/icons/symbol/svg/sprite.css.svg +1 -1
- package/dist/cjs/dropi-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/dropi-alert.cjs.entry.js +1 -1
- package/dist/cjs/dropi-banner-external.cjs.entry.js +1 -1
- package/dist/cjs/dropi-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/dropi-button.cjs.entry.js +1 -1
- package/dist/cjs/dropi-card-product.cjs.entry.js +2 -2
- package/dist/cjs/dropi-card-section.cjs.entry.js +1 -1
- package/dist/cjs/dropi-checkbox-selection-list.cjs.entry.js +2 -2
- package/dist/cjs/dropi-chips.cjs.entry.js +1 -1
- package/dist/cjs/dropi-city-selector.cjs.entry.js +2 -2
- package/dist/cjs/dropi-country-selector.cjs.entry.js +1 -1
- package/dist/cjs/dropi-date-picker.cjs.entry.js +3 -3
- package/dist/cjs/dropi-drawer.cjs.entry.js +1 -1
- package/dist/cjs/dropi-favorite-button.cjs.entry.js +1 -1
- package/dist/cjs/dropi-file-upload-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/dropi-file-upload.cjs.entry.js +2 -2
- package/dist/cjs/dropi-icon.cjs.entry.js +18 -20
- package/dist/cjs/dropi-ilustration-icon.cjs.entry.js +1 -1
- package/dist/cjs/dropi-image-miniature.cjs.entry.js +1 -1
- package/dist/cjs/dropi-image-overlay.cjs.entry.js +1 -1
- package/dist/cjs/dropi-input_3.cjs.entry.js +11 -9
- package/dist/cjs/dropi-languages-selector.cjs.entry.js +1 -1
- package/dist/cjs/dropi-media-player.cjs.entry.js +2 -2
- package/dist/cjs/dropi-modal.cjs.entry.js +2 -2
- package/dist/cjs/dropi-navbar.cjs.entry.js +2 -2
- package/dist/cjs/dropi-otp-send-code.cjs.entry.js +14 -6
- package/dist/cjs/dropi-phone-input.cjs.entry.js +1 -1
- package/dist/cjs/dropi-radio-selection-list.cjs.entry.js +2 -2
- package/dist/cjs/dropi-search.cjs.entry.js +2 -2
- package/dist/cjs/dropi-select.cjs.entry.js +7 -7
- package/dist/cjs/dropi-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/dropi-steps.cjs.entry.js +1 -1
- package/dist/cjs/dropi-table.cjs.entry.js +5 -5
- package/dist/cjs/dropi-tabs.cjs.entry.js +1 -1
- package/dist/cjs/dropi-text-area.cjs.entry.js +1 -1
- package/dist/cjs/dropi-time-line.cjs.entry.js +1 -1
- package/dist/cjs/dropi-toast.cjs.entry.js +1 -1
- package/dist/cjs/dropi-tooltip-v2.cjs.entry.js +2 -2
- package/dist/cjs/dropi-ui.cjs.js +1 -1
- package/dist/cjs/dropi-vertical-steps.cjs.entry.js +1 -1
- package/dist/cjs/dropi-youtube-lazy-video.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/icons/symbol/svg/sprite.css.svg +1 -1
- package/dist/collection/components/dropi-accordion/dropi-accordion-item.js +1 -1
- package/dist/collection/components/dropi-alert/dropi-alert.js +1 -1
- package/dist/collection/components/dropi-banner-external/dropi-banner-external.js +1 -1
- package/dist/collection/components/dropi-breadcrumb/dropi-breadcrumb.js +2 -2
- package/dist/collection/components/dropi-button/dropi-button.js +1 -1
- package/dist/collection/components/dropi-card-product/dropi-card-product.js +2 -2
- package/dist/collection/components/dropi-card-section/dropi-card-section.js +1 -1
- package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.js +2 -2
- package/dist/collection/components/dropi-chips/dropi-chips.js +1 -1
- package/dist/collection/components/dropi-city-selector/dropi-city-selector.js +2 -2
- package/dist/collection/components/dropi-country-selector/dropi-country-selector.js +1 -1
- package/dist/collection/components/dropi-date-picker/dropi-date-picker.js +3 -3
- package/dist/collection/components/dropi-drawer/dropi-drawer.js +1 -1
- package/dist/collection/components/dropi-favorite-button/dropi-favorite-button.js +1 -1
- package/dist/collection/components/dropi-file-upload/dropi-file-upload.js +2 -2
- package/dist/collection/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.js +1 -1
- package/dist/collection/components/dropi-icon/dropi-icon.css +0 -2
- package/dist/collection/components/dropi-icon/dropi-icon.js +25 -27
- package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.js +1 -1
- package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.js +1 -1
- package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.js +1 -1
- package/dist/collection/components/dropi-input/dropi-input.css +13 -5
- package/dist/collection/components/dropi-input/dropi-input.js +9 -7
- package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.js +1 -1
- package/dist/collection/components/dropi-media-player/dropi-media-player.js +2 -2
- package/dist/collection/components/dropi-modal/dropi-modal.js +4 -4
- package/dist/collection/components/dropi-navbar/dropi-navbar.js +2 -2
- package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.js +29 -7
- package/dist/collection/components/dropi-paginator/dropi-paginator.js +2 -2
- package/dist/collection/components/dropi-phone-input/dropi-phone-input.js +1 -1
- package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.js +2 -2
- package/dist/collection/components/dropi-search/dropi-search.js +2 -2
- package/dist/collection/components/dropi-select/dropi-select.js +7 -7
- package/dist/collection/components/dropi-sidebar/dropi-sidebar.js +2 -2
- package/dist/collection/components/dropi-steps/dropi-steps.js +1 -1
- package/dist/collection/components/dropi-table/dropi-table.js +7 -7
- package/dist/collection/components/dropi-tabs/dropi-tabs.js +1 -1
- package/dist/collection/components/dropi-tag/dropi-tag.js +1 -1
- package/dist/collection/components/dropi-text-area/dropi-text-area.js +1 -1
- package/dist/collection/components/dropi-time-line/dropi-time-line.js +1 -1
- package/dist/collection/components/dropi-toast/dropi-toast.js +1 -1
- package/dist/collection/components/dropi-tooltip-v2/dropi-tooltip.js +2 -2
- package/dist/collection/components/dropi-vertical-steps/dropi-vertical-steps.js +1 -1
- package/dist/collection/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.js +1 -1
- package/dist/components/dropi-accordion-item.js +1 -1
- package/dist/components/dropi-alert-modal.js +1 -1
- package/dist/components/dropi-alert.js +1 -1
- package/dist/components/dropi-banner-external.js +1 -1
- package/dist/components/dropi-breadcrumb.js +1 -1
- package/dist/components/dropi-button.js +1 -1
- package/dist/components/dropi-card-product.js +1 -1
- package/dist/components/dropi-card-section.js +1 -1
- package/dist/components/dropi-checkbox-selection-list.js +1 -1
- package/dist/components/dropi-chips.js +1 -1
- package/dist/components/dropi-city-selector.js +1 -1
- package/dist/components/dropi-country-selector.js +1 -1
- package/dist/components/dropi-date-picker.js +1 -1
- package/dist/components/dropi-drawer.js +1 -1
- package/dist/components/dropi-empty-state.js +1 -1
- package/dist/components/dropi-favorite-button.js +1 -1
- package/dist/components/dropi-file-upload-progress-bar.js +1 -1
- package/dist/components/dropi-file-upload.js +1 -1
- package/dist/components/dropi-icon.js +1 -1
- package/dist/components/dropi-ilustration-icon.js +1 -1
- package/dist/components/dropi-image-miniature.js +1 -1
- package/dist/components/dropi-image-overlay.js +1 -1
- package/dist/components/dropi-input.js +1 -1
- package/dist/components/dropi-languages-selector.js +1 -1
- package/dist/components/dropi-media-player.js +1 -1
- package/dist/components/dropi-modal.js +1 -1
- package/dist/components/dropi-navbar.js +1 -1
- package/dist/components/dropi-otp-send-code.js +1 -1
- package/dist/components/dropi-paginator.js +1 -1
- package/dist/components/dropi-phone-input.js +1 -1
- package/dist/components/dropi-radio-selection-list.js +1 -1
- package/dist/components/dropi-search.js +1 -1
- package/dist/components/dropi-select.js +1 -1
- package/dist/components/dropi-sidebar.js +1 -1
- package/dist/components/dropi-steps.js +1 -1
- package/dist/components/dropi-table.js +1 -1
- package/dist/components/dropi-tabs.js +1 -1
- package/dist/components/dropi-tag.js +1 -1
- package/dist/components/dropi-text-area.js +1 -1
- package/dist/components/dropi-time-line.js +1 -1
- package/dist/components/dropi-toast.js +1 -1
- package/dist/components/dropi-tooltip-v2.js +1 -1
- package/dist/components/dropi-vertical-steps.js +1 -1
- package/dist/components/dropi-youtube-lazy-video.js +1 -1
- package/dist/components/p-2YgFOle2.js +1 -0
- package/dist/components/p-BDYn1JDe.js +1 -0
- package/dist/components/p-BKTMBQVw.js +1 -0
- package/dist/components/p-Btsw7sPN.js +1 -0
- package/dist/components/p-CgRY3n1J.js +1 -0
- package/dist/components/p-Cjq4FTif.js +1 -0
- package/dist/components/p-DfdhNT9F.js +1 -0
- package/dist/components/p-DvLWbKsf.js +1 -0
- package/dist/components/p-Dz9uN5Nw.js +1 -0
- package/dist/components/p-FAhcOdS-.js +1 -0
- package/dist/dropi-ui/dropi-accordion-item.entry.js +58 -0
- package/dist/dropi-ui/dropi-accordion-item.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-accordion.entry.js +20 -0
- package/dist/dropi-ui/dropi-accordion.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-alert-legacy.entry.js +40 -0
- package/dist/dropi-ui/dropi-alert-legacy.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-alert-modal.entry.js +129 -0
- package/dist/dropi-ui/dropi-alert-modal.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-alert.entry.js +65 -0
- package/dist/dropi-ui/dropi-alert.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-avatars.entry.js +32 -0
- package/dist/dropi-ui/dropi-avatars.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-badge-legacy.entry.js +31 -0
- package/dist/dropi-ui/dropi-badge-legacy.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-badge.entry.js +38 -0
- package/dist/dropi-ui/dropi-badge.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-banner-external.entry.js +64 -0
- package/dist/dropi-ui/dropi-banner-external.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-breadcrumb.entry.js +49 -0
- package/dist/dropi-ui/dropi-breadcrumb.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-button.entry.js +88 -0
- package/dist/dropi-ui/dropi-button.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-card-checkbox.entry.js +49 -0
- package/dist/dropi-ui/dropi-card-checkbox.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-card-product.entry.js +79 -0
- package/dist/dropi-ui/dropi-card-product.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-card-section.entry.js +39 -0
- package/dist/dropi-ui/dropi-card-section.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-carousel.entry.js +154 -0
- package/dist/dropi-ui/dropi-carousel.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-checkbox-selection-list.entry.js +74 -0
- package/dist/dropi-ui/dropi-checkbox-selection-list.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-checkbox.entry.js +37 -0
- package/dist/dropi-ui/dropi-checkbox.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-chips.entry.js +31 -0
- package/dist/dropi-ui/dropi-chips.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-city-selector.entry.js +105 -0
- package/dist/dropi-ui/dropi-city-selector.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-color-picker.entry.js +320 -0
- package/dist/dropi-ui/dropi-color-picker.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-country-flags.entry.js +38 -0
- package/dist/dropi-ui/dropi-country-flags.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-country-selector.entry.js +198 -0
- package/dist/dropi-ui/dropi-country-selector.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-date-picker-range.entry.js +116 -0
- package/dist/dropi-ui/dropi-date-picker-range.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-date-picker.entry.js +224 -0
- package/dist/dropi-ui/dropi-date-picker.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-drawer.entry.js +80 -0
- package/dist/dropi-ui/dropi-drawer.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-dropdown.entry.js +66 -0
- package/dist/dropi-ui/dropi-dropdown.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-empty-state.entry.js +37 -0
- package/dist/dropi-ui/dropi-empty-state.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-favorite-button.entry.js +28 -0
- package/dist/dropi-ui/dropi-favorite-button.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-file-upload-progress-bar.entry.js +78 -0
- package/dist/dropi-ui/dropi-file-upload-progress-bar.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-file-upload.entry.js +238 -0
- package/dist/dropi-ui/dropi-file-upload.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-icon.entry.js +66 -0
- package/dist/dropi-ui/dropi-icon.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-ilustration-icon.entry.js +40 -0
- package/dist/dropi-ui/dropi-ilustration-icon.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-image-miniature.entry.js +45 -0
- package/dist/dropi-ui/dropi-image-miniature.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-image-overlay.entry.js +64 -0
- package/dist/dropi-ui/dropi-image-overlay.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-input.entry.js +266 -0
- package/dist/dropi-ui/dropi-input.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-languages-selector.entry.js +62 -0
- package/dist/dropi-ui/dropi-languages-selector.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-logo.entry.js +38 -0
- package/dist/dropi-ui/dropi-logo.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-lottie-loader.entry.js +28 -0
- package/dist/dropi-ui/dropi-lottie-loader.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-media-player.entry.js +193 -0
- package/dist/dropi-ui/dropi-media-player.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-modal.entry.js +143 -0
- package/dist/dropi-ui/dropi-modal.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-navbar.entry.js +55 -0
- package/dist/dropi-ui/dropi-navbar.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-otp-send-code.entry.js +101 -0
- package/dist/dropi-ui/dropi-otp-send-code.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-paginator.entry.js +70 -0
- package/dist/dropi-ui/dropi-paginator.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-phone-input.entry.js +198 -0
- package/dist/dropi-ui/dropi-phone-input.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-radio-button.entry.js +48 -0
- package/dist/dropi-ui/dropi-radio-button.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-radio-selection-list.entry.js +61 -0
- package/dist/dropi-ui/dropi-radio-selection-list.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-read-more.entry.js +41 -0
- package/dist/dropi-ui/dropi-read-more.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-search.entry.js +125 -0
- package/dist/dropi-ui/dropi-search.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-select.entry.js +383 -0
- package/dist/dropi-ui/dropi-select.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-sidebar.entry.js +79 -0
- package/dist/dropi-ui/dropi-sidebar.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-simple-stepper.entry.js +54 -0
- package/dist/dropi-ui/dropi-simple-stepper.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-skeleton.entry.js +58 -0
- package/dist/dropi-ui/dropi-skeleton.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-steps.entry.js +53 -0
- package/dist/dropi-ui/dropi-steps.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-switch.entry.js +31 -0
- package/dist/dropi-ui/dropi-switch.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-table.entry.js +300 -0
- package/dist/dropi-ui/dropi-table.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-tabs.entry.js +52 -0
- package/dist/dropi-ui/dropi-tabs.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-tag-type-product.entry.js +20 -0
- package/dist/dropi-ui/dropi-tag-type-product.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-tag.entry.js +69 -0
- package/dist/dropi-ui/dropi-tag.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-text-area.entry.js +135 -0
- package/dist/dropi-ui/dropi-text-area.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-time-line.entry.js +35 -0
- package/dist/dropi-ui/dropi-time-line.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-toast.entry.js +57 -0
- package/dist/dropi-ui/dropi-toast.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-tooltip-v2.entry.js +132 -0
- package/dist/dropi-ui/dropi-tooltip-v2.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-tooltip.entry.js +22 -0
- package/dist/dropi-ui/dropi-tooltip.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-ui.css +311 -1
- package/dist/dropi-ui/dropi-ui.esm.js +50 -1
- package/dist/dropi-ui/dropi-ui.esm.js.map +1 -0
- package/dist/dropi-ui/dropi-vertical-steps.entry.js +56 -0
- package/dist/dropi-ui/dropi-vertical-steps.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-youtube-lazy-video.entry.js +34 -0
- package/dist/dropi-ui/dropi-youtube-lazy-video.entry.js.map +1 -0
- package/dist/dropi-ui/index-Cvp2LQOM.js +4585 -0
- package/dist/dropi-ui/index-Cvp2LQOM.js.map +1 -0
- package/dist/dropi-ui/index.esm.js +4 -0
- package/dist/dropi-ui/index.esm.js.map +1 -0
- package/dist/dropi-ui/{p-db38bf16.entry.js → p-01e4fe42.entry.js} +1 -1
- package/dist/dropi-ui/p-099f4475.entry.js +1 -0
- package/dist/dropi-ui/p-17b16a74.entry.js +1 -0
- package/dist/dropi-ui/p-1a07b3a6.entry.js +1 -0
- package/dist/dropi-ui/p-1cd4d630.entry.js +1 -0
- package/dist/dropi-ui/p-1d75dff6.entry.js +1 -0
- package/dist/dropi-ui/p-20a6a2aa.entry.js +1 -0
- package/dist/dropi-ui/p-256bf069.entry.js +1 -0
- package/dist/dropi-ui/p-25f0c2c9.entry.js +1 -0
- package/dist/dropi-ui/p-2d9978c1.entry.js +1 -0
- package/dist/dropi-ui/p-35b37d1a.entry.js +1 -0
- package/dist/dropi-ui/p-38ea66e4.entry.js +1 -0
- package/dist/dropi-ui/p-4e401fbc.entry.js +1 -0
- package/dist/dropi-ui/p-53d2905c.entry.js +1 -0
- package/dist/dropi-ui/p-54bfb072.entry.js +1 -0
- package/dist/dropi-ui/p-5915d227.entry.js +1 -0
- package/dist/dropi-ui/p-650a7679.entry.js +1 -0
- package/dist/dropi-ui/p-719a01cb.entry.js +1 -0
- package/dist/dropi-ui/p-7369b3b4.entry.js +1 -0
- package/dist/dropi-ui/{p-e3ad21f8.entry.js → p-77cd2fcb.entry.js} +1 -1
- package/dist/dropi-ui/p-7a18b7a0.entry.js +1 -0
- package/dist/dropi-ui/p-83887880.entry.js +1 -0
- package/dist/dropi-ui/p-83dbc407.entry.js +1 -0
- package/dist/dropi-ui/p-85c637bd.entry.js +1 -0
- package/dist/dropi-ui/{p-e6e766ed.entry.js → p-87cc4dcd.entry.js} +1 -1
- package/dist/dropi-ui/p-899089f0.entry.js +1 -0
- package/dist/dropi-ui/p-8c107dbe.entry.js +1 -0
- package/dist/dropi-ui/p-929bc2b6.entry.js +1 -0
- package/dist/dropi-ui/p-9ac8caea.entry.js +1 -0
- package/dist/dropi-ui/p-9b24e8fd.entry.js +1 -0
- package/dist/dropi-ui/p-9c73b4ce.entry.js +1 -0
- package/dist/dropi-ui/p-a580e8c8.entry.js +1 -0
- package/dist/dropi-ui/p-a9f93e82.entry.js +1 -0
- package/dist/dropi-ui/p-aa0f5964.entry.js +1 -0
- package/dist/dropi-ui/p-aadd5863.entry.js +1 -0
- package/dist/dropi-ui/p-b25faf92.entry.js +1 -0
- package/dist/dropi-ui/p-b605d3d9.entry.js +1 -0
- package/dist/dropi-ui/p-bbb5e0ae.entry.js +1 -0
- package/dist/dropi-ui/p-c4d2881d.entry.js +1 -0
- package/dist/dropi-ui/p-d1aeb373.entry.js +1 -0
- package/dist/dropi-ui/p-d724ced4.entry.js +1 -0
- package/dist/dropi-ui/p-dc53a798.entry.js +1 -0
- package/dist/dropi-ui/p-e1b3c9a3.entry.js +1 -0
- package/dist/dropi-ui/p-e3c120ba.entry.js +1 -0
- package/dist/dropi-ui/p-edf796ee.entry.js +1 -0
- package/dist/dropi-ui/p-f2527a45.entry.js +1 -0
- package/dist/dropi-ui/p-f6c9057d.entry.js +1 -0
- package/dist/dropi-ui/p-f7fd7832.entry.js +1 -0
- package/dist/dropi-ui/p-f9888cea.entry.js +1 -0
- package/dist/dropi-ui/p-ffd415a2.entry.js +1 -0
- package/dist/esm/dropi-accordion-item.entry.js +1 -1
- package/dist/esm/dropi-alert.entry.js +1 -1
- package/dist/esm/dropi-banner-external.entry.js +1 -1
- package/dist/esm/dropi-breadcrumb.entry.js +2 -2
- package/dist/esm/dropi-button.entry.js +1 -1
- package/dist/esm/dropi-card-product.entry.js +2 -2
- package/dist/esm/dropi-card-section.entry.js +1 -1
- package/dist/esm/dropi-checkbox-selection-list.entry.js +2 -2
- package/dist/esm/dropi-chips.entry.js +1 -1
- package/dist/esm/dropi-city-selector.entry.js +2 -2
- package/dist/esm/dropi-country-selector.entry.js +1 -1
- package/dist/esm/dropi-date-picker.entry.js +3 -3
- package/dist/esm/dropi-drawer.entry.js +1 -1
- package/dist/esm/dropi-favorite-button.entry.js +1 -1
- package/dist/esm/dropi-file-upload-progress-bar.entry.js +1 -1
- package/dist/esm/dropi-file-upload.entry.js +2 -2
- package/dist/esm/dropi-icon.entry.js +18 -20
- package/dist/esm/dropi-ilustration-icon.entry.js +1 -1
- package/dist/esm/dropi-image-miniature.entry.js +1 -1
- package/dist/esm/dropi-image-overlay.entry.js +1 -1
- package/dist/esm/dropi-input_3.entry.js +11 -9
- package/dist/esm/dropi-languages-selector.entry.js +1 -1
- package/dist/esm/dropi-media-player.entry.js +2 -2
- package/dist/esm/dropi-modal.entry.js +2 -2
- package/dist/esm/dropi-navbar.entry.js +2 -2
- package/dist/esm/dropi-otp-send-code.entry.js +14 -6
- package/dist/esm/dropi-phone-input.entry.js +1 -1
- package/dist/esm/dropi-radio-selection-list.entry.js +2 -2
- package/dist/esm/dropi-search.entry.js +2 -2
- package/dist/esm/dropi-select.entry.js +7 -7
- package/dist/esm/dropi-sidebar.entry.js +2 -2
- package/dist/esm/dropi-steps.entry.js +1 -1
- package/dist/esm/dropi-table.entry.js +5 -5
- package/dist/esm/dropi-tabs.entry.js +1 -1
- package/dist/esm/dropi-text-area.entry.js +1 -1
- package/dist/esm/dropi-time-line.entry.js +1 -1
- package/dist/esm/dropi-toast.entry.js +1 -1
- package/dist/esm/dropi-tooltip-v2.entry.js +2 -2
- package/dist/esm/dropi-ui.js +1 -1
- package/dist/esm/dropi-vertical-steps.entry.js +1 -1
- package/dist/esm/dropi-youtube-lazy-video.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/dropi-icon/dropi-icon.d.ts +4 -9
- package/dist/types/components/dropi-input/dropi-input.d.ts +1 -1
- package/dist/types/components/dropi-modal/dropi-modal.d.ts +1 -1
- package/dist/types/components/dropi-otp-send-code/dropi-otp-send-code.d.ts +3 -1
- package/dist/types/components/dropi-table/dropi-table.d.ts +1 -1
- package/dist/types/components.d.ts +39 -38
- package/hydrate/index.js +109 -101
- package/hydrate/index.mjs +109 -101
- package/package.json +1 -1
- package/scripts/setup.js +27 -5
- package/dist/components/p-B_Ace02i.js +0 -1
- package/dist/components/p-BrjO_JXp.js +0 -1
- package/dist/components/p-BwhxWL4p.js +0 -1
- package/dist/components/p-Bz2jXX3R.js +0 -1
- package/dist/components/p-D-vQQQNz.js +0 -1
- package/dist/components/p-D13d88W3.js +0 -1
- package/dist/components/p-I3w7xF7Q.js +0 -1
- package/dist/components/p-o5gyrbbD.js +0 -1
- package/dist/dropi-ui/p-00e5a2de.entry.js +0 -1
- package/dist/dropi-ui/p-0188e07a.entry.js +0 -1
- package/dist/dropi-ui/p-02710049.entry.js +0 -1
- package/dist/dropi-ui/p-18adf694.entry.js +0 -1
- package/dist/dropi-ui/p-1a3619c3.entry.js +0 -1
- package/dist/dropi-ui/p-25640777.entry.js +0 -1
- package/dist/dropi-ui/p-2674d901.entry.js +0 -1
- package/dist/dropi-ui/p-2af538b9.entry.js +0 -1
- package/dist/dropi-ui/p-3013f3b8.entry.js +0 -1
- package/dist/dropi-ui/p-3321ca70.entry.js +0 -1
- package/dist/dropi-ui/p-33d242ec.entry.js +0 -1
- package/dist/dropi-ui/p-39af6478.entry.js +0 -1
- package/dist/dropi-ui/p-446a481d.entry.js +0 -1
- package/dist/dropi-ui/p-50e0d44f.entry.js +0 -1
- package/dist/dropi-ui/p-5c0bd7c2.entry.js +0 -1
- package/dist/dropi-ui/p-5ddf6e93.entry.js +0 -1
- package/dist/dropi-ui/p-5fb33ae4.entry.js +0 -1
- package/dist/dropi-ui/p-665ef7ba.entry.js +0 -1
- package/dist/dropi-ui/p-66b80371.entry.js +0 -1
- package/dist/dropi-ui/p-7bfc1c27.entry.js +0 -1
- package/dist/dropi-ui/p-7c0d2edf.entry.js +0 -1
- package/dist/dropi-ui/p-7eb27836.entry.js +0 -1
- package/dist/dropi-ui/p-8bf5d8ee.entry.js +0 -1
- package/dist/dropi-ui/p-9212f544.entry.js +0 -1
- package/dist/dropi-ui/p-955e52f8.entry.js +0 -1
- package/dist/dropi-ui/p-976a15e3.entry.js +0 -1
- package/dist/dropi-ui/p-a1c93e55.entry.js +0 -1
- package/dist/dropi-ui/p-a232c6a7.entry.js +0 -1
- package/dist/dropi-ui/p-a822a23e.entry.js +0 -1
- package/dist/dropi-ui/p-af8e2157.entry.js +0 -1
- package/dist/dropi-ui/p-c3614c4a.entry.js +0 -1
- package/dist/dropi-ui/p-cc527d91.entry.js +0 -1
- package/dist/dropi-ui/p-cdde481b.entry.js +0 -1
- package/dist/dropi-ui/p-dd5d8b1b.entry.js +0 -1
- package/dist/dropi-ui/p-efc2fc35.entry.js +0 -1
- package/dist/dropi-ui/p-f41cd9b5.entry.js +0 -1
- package/dist/dropi-ui/p-fa3d0267.entry.js +0 -1
package/hydrate/index.js
CHANGED
|
@@ -5401,7 +5401,7 @@ class DropiAccordionItem {
|
|
|
5401
5401
|
setTimeout(() => this.updateHeight(this.open), 0);
|
|
5402
5402
|
}
|
|
5403
5403
|
render() {
|
|
5404
|
-
return (hAsync("div", { key: '43f4ce6c38338a90a3b866a449f14e48b478e738', class: { 'accordion-item': true, 'accordion-item--open': this.open, 'accordion-item--disabled': this.disabled } }, hAsync("button", { key: 'b5150a903bf75b82ffea9707e5906dc17f0bcd1c', class: "accordion-header", onClick: () => this.handleToggle(), "aria-expanded": String(this.open), disabled: this.disabled }, hAsync("span", { key: '53f5c6a4e5a9d02412145395112368ddea9af746', class: "accordion-header-left" }, this.preIcon && hAsync("dropi-icon", { key: '
|
|
5404
|
+
return (hAsync("div", { key: '43f4ce6c38338a90a3b866a449f14e48b478e738', class: { 'accordion-item': true, 'accordion-item--open': this.open, 'accordion-item--disabled': this.disabled } }, hAsync("button", { key: 'b5150a903bf75b82ffea9707e5906dc17f0bcd1c', class: "accordion-header", onClick: () => this.handleToggle(), "aria-expanded": String(this.open), disabled: this.disabled }, hAsync("span", { key: '53f5c6a4e5a9d02412145395112368ddea9af746', class: "accordion-header-left" }, this.preIcon && hAsync("dropi-icon", { key: '28acd44875849665dfc58a5b3040a7ef78e92b6e', name: this.preIcon, iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-600" }), hAsync("span", { key: 'c19a8f8b33ce36c1903fc428400b2e1bf9b20971', class: "accordion-title" }, this.sectionTitle)), hAsync("span", { key: '7163175dca488646dd13de60978cd623cfc61d12', class: { 'accordion-chevron': true, 'accordion-chevron--open': this.open } }, hAsync("dropi-icon", { key: '10c1ea131aaaa8d0fe6542b9d8effe8b3319e3c8', name: "Dropdown-down", iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-500" }))), hAsync("div", { key: '2d514054e305d92ac97bf661f85d795ff4cc04a9', class: "accordion-body", style: { maxHeight: this.contentHeight }, ref: (el) => this.contentRef = el }, hAsync("div", { key: '3ff920a3cd55f22af681b90f220ce05d15db09e1', class: "accordion-content" }, hAsync("slot", { key: 'f703b47dc51acb41b7d455c991a08c8286d53fc2' })))));
|
|
5405
5405
|
}
|
|
5406
5406
|
static get watchers() { return {
|
|
5407
5407
|
"open": [{
|
|
@@ -5485,7 +5485,7 @@ class DropiAlert {
|
|
|
5485
5485
|
render() {
|
|
5486
5486
|
if (!this.showAlert)
|
|
5487
5487
|
return null;
|
|
5488
|
-
return (hAsync("div", { class: { 'alert': true, [`alert--${this.type}`]: true, [`alert--${this.state}`]: true } }, this.type !== 'flag' && (hAsync("div", { class: "alert__icon" }, hAsync("dropi-icon", { name: STATE_ICONS[this.state],
|
|
5488
|
+
return (hAsync("div", { class: { 'alert': true, [`alert--${this.type}`]: true, [`alert--${this.state}`]: true } }, this.type !== 'flag' && (hAsync("div", { class: "alert__icon" }, hAsync("dropi-icon", { name: STATE_ICONS[this.state], iconWidth: "18px", iconHeight: "18px", color: STATE_COLORS[this.state] }))), hAsync("div", { class: "alert__body" }, hAsync("span", { class: "alert__message" }, this.message), this.anchorText && (hAsync("a", { class: "alert__link", href: this.anchorUrl || this.linkUrl || '#', onClick: (e) => { e.preventDefault(); this.onClickLink.emit(); } }, this.anchorText))), hAsync("div", { class: "alert__actions" }, this.showButton && this.buttonText && this.type !== 'flag' && (hAsync("button", { class: "alert__btn", onClick: () => this.onButtonClick.emit() }, this.buttonText)), this.dismissable && (hAsync("button", { class: "alert__close", onClick: () => { this.showAlert = false; this.onClose.emit(); }, "aria-label": "Cerrar" }, hAsync("dropi-icon", { name: "Close-small", iconWidth: "18px", iconHeight: "18px", color: "Gray-Gray-500" }))))));
|
|
5489
5489
|
}
|
|
5490
5490
|
static get style() { return dropiAlertCss(); }
|
|
5491
5491
|
static get cmpMeta() { return {
|
|
@@ -5913,7 +5913,7 @@ class DropiBannerExternal {
|
|
|
5913
5913
|
render() {
|
|
5914
5914
|
if (this.closed || !this.imageUrl)
|
|
5915
5915
|
return null;
|
|
5916
|
-
const inner = (hAsync("div", { class: "inner" }, hAsync("img", { src: this.imageUrl, alt: this.alt }), hAsync("button", { class: "close-btn", "aria-label": "Cerrar banner", onClick: (e) => this.closeBanner(e) }, hAsync("dropi-icon", { name: "Close-small",
|
|
5916
|
+
const inner = (hAsync("div", { class: "inner" }, hAsync("img", { src: this.imageUrl, alt: this.alt }), hAsync("button", { class: "close-btn", "aria-label": "Cerrar banner", onClick: (e) => this.closeBanner(e) }, hAsync("dropi-icon", { name: "Close-small", iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-600" }))));
|
|
5917
5917
|
return (hAsync("div", { class: "dropi-banner-external", style: { background: this.backgroundColor } }, this.link ? (hAsync("a", { href: this.link, target: "_blank", rel: "noopener noreferrer", onClick: (e) => this.handleClick(e) }, inner)) : (hAsync("div", { class: "click-wrapper", onClick: (e) => this.handleClick(e) }, inner))));
|
|
5918
5918
|
}
|
|
5919
5919
|
static get style() { return dropiBannerExternalCss(); }
|
|
@@ -5975,14 +5975,14 @@ class DropiBreadcrumb {
|
|
|
5975
5975
|
}
|
|
5976
5976
|
render() {
|
|
5977
5977
|
const items = this.parsedItems;
|
|
5978
|
-
return (hAsync("nav", { key: 'c4546d7a0c7852e01f685176b5365f1e0082ad24', class: "breadcrumb", "aria-label": "Breadcrumb" }, hAsync("div", { key: '924ab634ae4e71f6bd39a67b4b3889cdca20234d', class: "crumb-list" }, hAsync("div", { key: 'e7b1b285bdd497a028a041ada1eb8b34f77384b0', class: "crumb-home" }, hAsync("a", { key: '9e288d5f5761daed20b35dbf056c7de9c2e7b8e3', href: this.homeRoute, class: "home-link", "aria-label": "Inicio", onClick: (e) => { e.preventDefault(); this.dropiNavigate.emit(this.homeRoute); } }, hAsync("dropi-icon", { key: '
|
|
5978
|
+
return (hAsync("nav", { key: 'c4546d7a0c7852e01f685176b5365f1e0082ad24', class: "breadcrumb", "aria-label": "Breadcrumb" }, hAsync("div", { key: '924ab634ae4e71f6bd39a67b4b3889cdca20234d', class: "crumb-list" }, hAsync("div", { key: 'e7b1b285bdd497a028a041ada1eb8b34f77384b0', class: "crumb-home" }, hAsync("a", { key: '9e288d5f5761daed20b35dbf056c7de9c2e7b8e3', href: this.homeRoute, class: "home-link", "aria-label": "Inicio", onClick: (e) => { e.preventDefault(); this.dropiNavigate.emit(this.homeRoute); } }, hAsync("dropi-icon", { key: '803ab6d710976b341f19ad7d49fde670acc2c466', name: this.homeIconName, iconWidth: "16px", color: "Gray-Gray-500" })), items.length > 0 && (hAsync("dropi-icon", { key: '44d1cad9efa9cbc6a52bc26a2229af6680cd8733', name: "Dropdown-Right", iconWidth: "16px", color: "Gray-Gray-500" }))), items.map((item, idx) => {
|
|
5979
5979
|
const isLast = idx === items.length - 1;
|
|
5980
5980
|
const href = item.url || item.routerLink || '#';
|
|
5981
5981
|
return (hAsync("div", { class: "crumb", key: idx }, (!isLast || this.lastItemClickable) ? (hAsync("a", { class: `crumb-link Body-S-Regular${item.disabled ? ' disabled' : ''}`, href: href, onClick: (e) => {
|
|
5982
5982
|
e.preventDefault();
|
|
5983
5983
|
if (!item.disabled)
|
|
5984
5984
|
this.dropiNavigate.emit(item);
|
|
5985
|
-
} }, item.label)) : (hAsync("span", { class: "current Body-S-Regular", "aria-current": "page" }, item.label)), !isLast && (hAsync("dropi-icon", { name: "Dropdown-Right",
|
|
5985
|
+
} }, item.label)) : (hAsync("span", { class: "current Body-S-Regular", "aria-current": "page" }, item.label)), !isLast && (hAsync("dropi-icon", { name: "Dropdown-Right", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-500" }))));
|
|
5986
5986
|
}))));
|
|
5987
5987
|
}
|
|
5988
5988
|
static get style() { return dropiBreadcrumbCss(); }
|
|
@@ -6083,7 +6083,7 @@ class DropiButton {
|
|
|
6083
6083
|
[this.size ?? 'normal']: true,
|
|
6084
6084
|
[this.state ?? 'default']: true,
|
|
6085
6085
|
'full-width': this.fullWidth,
|
|
6086
|
-
}, disabled: isDisabled, onClick: (e) => this.handleClick(e) }, this.preIcon && (hAsync("dropi-icon", { key: '
|
|
6086
|
+
}, disabled: isDisabled, onClick: (e) => this.handleClick(e) }, this.preIcon && (hAsync("dropi-icon", { key: '374403bce1d33e39f3834d6e10dfec5ac7ca7e0c', name: this.preIcon, iconWidth: this.iconSize, iconHeight: this.iconSize, color: this.fontColor })), hasText && hAsync("span", { key: '65d5e45f4df8df2795be3b6bf09c9576f8497664', class: "text" }, this.text), showPostIcon && (hAsync("dropi-icon", { key: 'b3d1459260a3d7159ddf1193aa29672e8d8d3800', name: dropdownIcon, iconWidth: this.iconSize, iconHeight: this.iconSize, color: this.fontColor })), this.state === 'loading' && this.renderLoadingSpinner(), hAsync("slot", { key: 'ae37b4195f35b02d70e166fcba27939f38d35326' })));
|
|
6087
6087
|
}
|
|
6088
6088
|
static get style() { return dropiButtonCss(); }
|
|
6089
6089
|
static get cmpMeta() { return {
|
|
@@ -6245,11 +6245,11 @@ class DropiCardProduct {
|
|
|
6245
6245
|
e.stopPropagation();
|
|
6246
6246
|
this.isFavorite = !this.isFavorite;
|
|
6247
6247
|
this.changeFavorite.emit(this.isFavorite);
|
|
6248
|
-
}, "aria-label": "Favorito" }, hAsync("dropi-icon", { key: '
|
|
6248
|
+
}, "aria-label": "Favorito" }, hAsync("dropi-icon", { key: '35300a450b8fff37e7c469b5b8a1f39ebfb717dc', name: this.isFavorite ? 'Heart-solid' : 'Heart', iconWidth: "18px", iconHeight: "18px", color: this.isFavorite ? '#fff' : '#858ea6' }))))), hAsync("div", { key: 'b6792c07dbcc37f636add6bd0f9bfbb88b28fc6b', class: "product-info" }, this.supplierCategory && (hAsync("dropi-ilustration-icon", { key: 'f4074d38a1e7999ffde2b4906de21b91348b4a63', class: "supplier-insignia", type: "insignia", stateInsignia: this.supplierCategory, tagProduct: true })), hAsync("div", { key: '7a085de7400576ba2595770268845916eecfa3cf', class: "product-header" }, this.category && (hAsync("span", { key: 'c5002b0b82d8483e3ea88d884cdeaa015341e7ca', class: "category" }, this.category)), hAsync("div", { key: '4c24e0f3dc3ea31764290e97a600beb411ce7b50', class: "stock-info" }, hAsync("span", { key: '453b6b6ba34aa1c060052ec6a1aa4b6aeabe454b', class: "stock-label" }, "Stock:"), hAsync("span", { key: '46733d6335c72a16411b27c1cae7dbb1e46a26cc', class: "stock-value", style: { color: this.getStockColor() } }, this.stock === 0 ? 'Agotado' : this.stock))), hAsync("h3", { key: '69179b355604ffbf594f192c47ba8ac18964d1c8', class: "product-name" }, this.productName), this.supplier && (hAsync("div", { key: 'b53d6667872f959cc5e48b365b42b5744c4c0ae8', class: "supplier-info" }, hAsync("span", { key: 'e2cb385de94697533b0ac8f8832246dac955efb1', class: "supplier-label" }, "Proveedor:"), hAsync("span", { key: '17e2d2ce7a5d6113fbef89a5c49ec183e189aeee', class: "supplier-name", onClick: (e) => { e.stopPropagation(); this.dropiSupplierClick.emit(); } }, this.supplier))), hAsync("div", { key: 'eb146caf735601d1ed0f3ff0f81e234a9a768d04', class: "price-container" }, hAsync("div", { key: '0516aaeb1f4d087b262b5692abfac9993c8b378a', class: "price-item" }, hAsync("span", { key: '837eb19a5bb50dbd05d999a5c3fb0d642f2701b7', class: "price-label" }, "Precio proveedor"), hAsync("span", { key: '4bdba27153a06e39d5449b61eed4707a90123336', class: "price-value" }, this.currency, " ", this.formatPrice(this.salePrice))), hAsync("div", { key: '82040761c0b63df23fbc80d0e990d3a1c610d8eb', class: "price-item" }, hAsync("span", { key: 'c93307dba668d60e22e6b7d9215abf289495935c', class: "price-label" }, "Precio sugerido"), hAsync("span", { key: 'd9aca439201e07756e298b0be7d41aa9396cf67d', class: "price-value" }, this.currency, " ", this.formatPrice(this.suggestedPrice))))), hAsync("div", { key: '79e9e143ddb87209a550069abe839b89ec703e22', class: "separator" }), this.showAddButton && (hAsync("div", { key: 'b3261c8db5e3fd9c97f9894f6aea420495f0577b', class: { 'action-button': true, 'action-button--disabled': !this.inStock }, onClick: (e) => {
|
|
6249
6249
|
e.stopPropagation();
|
|
6250
6250
|
if (this.inStock)
|
|
6251
6251
|
this.dropiAddProduct.emit();
|
|
6252
|
-
} }, hAsync("dropi-icon", { key: '
|
|
6252
|
+
} }, hAsync("dropi-icon", { key: '89cf58b72a1500616eb47b9f6e0bcf1e67229d94', name: "Shopping-cart-arrow-rigth", iconWidth: "20px", iconHeight: "20px", color: "#f49a3d" }), hAsync("span", { key: '60843cb9e54337eae7e570827190f1d60a8f0450', class: "button-text" }, "Enviar a cliente")))));
|
|
6253
6253
|
}
|
|
6254
6254
|
static get style() { return dropiCardProductCss(); }
|
|
6255
6255
|
static get cmpMeta() { return {
|
|
@@ -6307,7 +6307,7 @@ class DropiCardSection {
|
|
|
6307
6307
|
: hAsync("h6", { class: "card-section__title" }, this.title), this.description && hAsync("p", { key: 'f0c83d631d541d95c19e4a246634da56413a3de9', class: "card-section__desc" }, this.description)), hAsync("div", { key: '976d78401ab26872df88115ae0f0449bcd2faae9', class: "card-section__control" }, this.typeElement === 'switch' ? (hAsync("dropi-switch", { isChecked: this.isChecked, onOnChange: (e) => {
|
|
6308
6308
|
this.isChecked = e.detail;
|
|
6309
6309
|
this.onChange.emit(e.detail);
|
|
6310
|
-
} })) : (hAsync("button", { class: "card-section__dropdown-btn", onClick: () => this.onClick.emit(), "aria-label": "Expandir" }, hAsync("dropi-icon", { name: "Dropdown-down",
|
|
6310
|
+
} })) : (hAsync("button", { class: "card-section__dropdown-btn", onClick: () => this.onClick.emit(), "aria-label": "Expandir" }, hAsync("dropi-icon", { name: "Dropdown-down", iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-500" }))))));
|
|
6311
6311
|
}
|
|
6312
6312
|
static get style() { return dropiCardSectionCss(); }
|
|
6313
6313
|
static get cmpMeta() { return {
|
|
@@ -6599,10 +6599,10 @@ class DropiCheckboxSelectionList {
|
|
|
6599
6599
|
}
|
|
6600
6600
|
render() {
|
|
6601
6601
|
const items = this.filtered;
|
|
6602
|
-
return (hAsync("div", { key: 'a86957a361ddab935966496e85da0474d6c7618a', class: "csl" }, this.showFilter && (hAsync("div", { key: 'c6e6d3c7386a788c0e3141ac77b78b597020e43d', class: "csl__search" }, hAsync("dropi-icon", { key: '
|
|
6602
|
+
return (hAsync("div", { key: 'a86957a361ddab935966496e85da0474d6c7618a', class: "csl" }, this.showFilter && (hAsync("div", { key: 'c6e6d3c7386a788c0e3141ac77b78b597020e43d', class: "csl__search" }, hAsync("dropi-icon", { key: '5746663be651673a23e8fc062febad9a920512de', name: "Search", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-400" }), hAsync("input", { key: '47f43fae660a7b3d6c8b56ea0c2bb1f94a22e366', class: "csl__search-input", type: "text", placeholder: this.filterPlaceholder, value: this.filterText, onInput: (e) => {
|
|
6603
6603
|
this.filterText = e.target.value;
|
|
6604
6604
|
this.onSearch.emit(this.filterText);
|
|
6605
|
-
} }), this.filterText && (hAsync("button", { key: '
|
|
6605
|
+
} }), this.filterText && (hAsync("button", { key: '96faed8cb5ce7660af9735e73622dc31570e1daa', class: "csl__clear", onClick: () => { this.filterText = ''; this.onSearch.emit(''); } }, hAsync("dropi-icon", { key: '2fc4bfceb57c9fc2506db5e7c238e7bf48f45cb9', name: "Close-small", iconWidth: "14px", iconHeight: "14px", color: "Gray-Gray-400" }))))), hAsync("div", { key: '283d6e1127fbfa7e8206133a6a32bff04e8b2ebc', class: "csl__list" }, items.length === 0 && this.showNotFound ? (hAsync("div", { class: "csl__empty" }, this.notFoundMessage)) : (items.map(opt => {
|
|
6606
6606
|
const checked = this.selected.includes(opt.id);
|
|
6607
6607
|
return (hAsync("div", { class: "csl__item", key: opt.id, onClick: () => this.toggle(opt.id) }, hAsync("dropi-checkbox", { checked: checked }), opt.icon && hAsync("img", { class: "csl__icon", src: opt.icon, alt: opt.label }), hAsync("span", { class: "csl__label" }, opt.label)));
|
|
6608
6608
|
})))));
|
|
@@ -6659,7 +6659,7 @@ class DropiChips {
|
|
|
6659
6659
|
/** Emitted when the close icon is clicked */
|
|
6660
6660
|
onClose;
|
|
6661
6661
|
render() {
|
|
6662
|
-
return (hAsync("div", { key: '1d2faf302cc3eb832d55f46f98a7817fb616e4e1', class: { 'chip': true, [`chip--${this.customStyle}`]: true } }, this.type === 'avatar' && this.urlImg && (hAsync("img", { key: '3014d189c71a8d3bc23f11caf1181285c6b1b0ed', class: "chip__avatar", src: this.urlImg, alt: "" })), this.type === 'icon' && this.icon && (hAsync("dropi-icon", { key: '
|
|
6662
|
+
return (hAsync("div", { key: '1d2faf302cc3eb832d55f46f98a7817fb616e4e1', class: { 'chip': true, [`chip--${this.customStyle}`]: true } }, this.type === 'avatar' && this.urlImg && (hAsync("img", { key: '3014d189c71a8d3bc23f11caf1181285c6b1b0ed', class: "chip__avatar", src: this.urlImg, alt: "" })), this.type === 'icon' && this.icon && (hAsync("dropi-icon", { key: 'b8c57ece5d9451a95aee7d2e90bfe294e788dfc8', class: "chip__pre-icon", name: this.icon, iconWidth: "14px", iconHeight: "14px", color: "currentColor" })), hAsync("span", { key: 'e141b08e2b7c07e45eb065a001c53f40fe36a757', class: "chip__text" }, hAsync("slot", { key: 'aa2c06f8e00b37492034ea0950603ffa3a7638d7' })), this.showIcon && (hAsync("button", { key: 'ea9d1674848c27b06d6e92a0a5bd4fcf8de499a4', class: "chip__close", onClick: () => this.onClose.emit(), "aria-label": "Eliminar" }, hAsync("dropi-icon", { key: '0a67633f6f3c898958359730b635430e53d7565c', name: "Cross-circle", iconWidth: "14px", iconHeight: "14px", color: "currentColor" })))));
|
|
6663
6663
|
}
|
|
6664
6664
|
static get style() { return dropiChipsCss(); }
|
|
6665
6665
|
static get cmpMeta() { return {
|
|
@@ -6772,9 +6772,9 @@ class DropiCitySelector {
|
|
|
6772
6772
|
}
|
|
6773
6773
|
render() {
|
|
6774
6774
|
const groups = this.filtered;
|
|
6775
|
-
return (hAsync("div", { key: '5b1e27677c34d0dc85dc9c8544e4b0ba9a66216b', class: { 'city-selector': true, 'city-selector--disabled': this.disabled } }, hAsync("button", { key: 'e359c1baff0a255cd396ee35836430486bc67cd3', type: "button", class: "selector-trigger", disabled: this.disabled, onClick: () => this.toggle(), "aria-haspopup": "listbox", "aria-expanded": this.isOpen }, hAsync("div", { key: '082246999f826e8cfe1b2d09fd801a5d7db7e1b2', class: "chips-area" }, this.selected.length === 0 && (hAsync("span", { key: '90453c84cae3561412f795ec1ffc01923cd87040', class: "placeholder" }, this.placeholder)), this.selected.map(val => (hAsync("span", { class: "chip", key: String(val) }, this.getLabel(val), hAsync("button", { type: "button", class: "chip-remove", "aria-label": "Quitar", onClick: (e) => this.removeCity(val, e) }, hAsync("dropi-icon", { name: "Close-small",
|
|
6775
|
+
return (hAsync("div", { key: '5b1e27677c34d0dc85dc9c8544e4b0ba9a66216b', class: { 'city-selector': true, 'city-selector--disabled': this.disabled } }, hAsync("button", { key: 'e359c1baff0a255cd396ee35836430486bc67cd3', type: "button", class: "selector-trigger", disabled: this.disabled, onClick: () => this.toggle(), "aria-haspopup": "listbox", "aria-expanded": this.isOpen }, hAsync("div", { key: '082246999f826e8cfe1b2d09fd801a5d7db7e1b2', class: "chips-area" }, this.selected.length === 0 && (hAsync("span", { key: '90453c84cae3561412f795ec1ffc01923cd87040', class: "placeholder" }, this.placeholder)), this.selected.map(val => (hAsync("span", { class: "chip", key: String(val) }, this.getLabel(val), hAsync("button", { type: "button", class: "chip-remove", "aria-label": "Quitar", onClick: (e) => this.removeCity(val, e) }, hAsync("dropi-icon", { name: "Close-small", iconWidth: "10px", iconHeight: "10px", color: "Primary-Primary-500" })))))), hAsync("dropi-icon", { key: 'f99675449127fb19fdea950db057d8c14ca62644', name: this.isOpen ? 'Arrow-Up-2' : 'Arrow-Down-2', iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-500" })), this.isOpen && (hAsync("div", { key: '2a14a55016c19128fde45359f4b29b6f04f9b035', class: "dropdown", role: "listbox" }, hAsync("div", { key: '1321152ed7b0d3f50b04c7f28b05f1523c41cce4', class: "search-wrap" }, hAsync("div", { key: '7c94a7506d44cd89b83e5782cce16319f266f82c', class: "search-field" }, hAsync("input", { key: '5f40db9a8df0adc09776b4adcfe03a4a6d1d1467', class: "search-input", type: "text", placeholder: "Buscar...", value: this.searchTerm, onInput: (e) => { this.searchTerm = e.target.value; }, autoComplete: "off" }), hAsync("span", { key: '3140903ef4355b970c8f348e4f55d43f852e247d', class: "search-icon" }, hAsync("dropi-icon", { key: 'b59235b0d7a685000033d2a294fbce246d0ba4c2', name: "Search", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-400" })))), hAsync("div", { key: 'bfd40e336b402bd92ec212466cf89e1cffb0d4be', class: "options-list" }, groups.length === 0 && (hAsync("div", { key: '9fce9b4df1ffb122278480f0ab60255ea0c795ec', class: "no-results" }, "Sin resultados")), groups.map(group => (hAsync("div", { key: group.value, class: "group" }, hAsync("div", { class: "group-label" }, group.label), group.items.map(city => {
|
|
6776
6776
|
const isSelected = this.selected.includes(city.value);
|
|
6777
|
-
return (hAsync("div", { key: String(city.value), class: { 'city-option': true, 'city-option--selected': isSelected }, onClick: (e) => this.toggleCity(city.value, e), role: "option", "aria-selected": isSelected }, hAsync("span", { class: { 'checkbox': true, 'checkbox--checked': isSelected } }, isSelected && (hAsync("dropi-icon", { name: "Check",
|
|
6777
|
+
return (hAsync("div", { key: String(city.value), class: { 'city-option': true, 'city-option--selected': isSelected }, onClick: (e) => this.toggleCity(city.value, e), role: "option", "aria-selected": isSelected }, hAsync("span", { class: { 'checkbox': true, 'checkbox--checked': isSelected } }, isSelected && (hAsync("dropi-icon", { name: "Check", iconWidth: "10px", iconHeight: "10px", color: "Neutral-White" }))), hAsync("span", { class: "city-label" }, city.label)));
|
|
6778
6778
|
})))))))));
|
|
6779
6779
|
}
|
|
6780
6780
|
static get watchers() { return {
|
|
@@ -7374,7 +7374,7 @@ class DropiCountrySelector {
|
|
|
7374
7374
|
'select-button': true,
|
|
7375
7375
|
'select-completed': !!this.selected,
|
|
7376
7376
|
'select-invalid': this.hasError,
|
|
7377
|
-
}, disabled: this.disabled, onClick: () => this.open() }, hAsync("div", { key: '79df14d64f598d312a1cd82f294edf8aa14ed32e', class: "selected-content" }, this.selected ? (hAsync("span", { class: "selected-option" }, hAsync("img", { class: "flag-img", src: `https://flagsapi.com/${this.selected.code}/shiny/24.png`, alt: this.selected.name }), this.selected.name)) : (hAsync("span", { class: "placeholder-text" }, this.placeholder))), hAsync("dropi-icon", { key: '
|
|
7377
|
+
}, disabled: this.disabled, onClick: () => this.open() }, hAsync("div", { key: '79df14d64f598d312a1cd82f294edf8aa14ed32e', class: "selected-content" }, this.selected ? (hAsync("span", { class: "selected-option" }, hAsync("img", { class: "flag-img", src: `https://flagsapi.com/${this.selected.code}/shiny/24.png`, alt: this.selected.name }), this.selected.name)) : (hAsync("span", { class: "placeholder-text" }, this.placeholder))), hAsync("dropi-icon", { key: 'dc74219468e838cb5cf06a5ab5036809f84c8f44', name: this.isOpen ? 'Arrow-Up-2' : 'Arrow-Down-2', iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-500" })), hAsync("ul", { key: 'ef8ce166ba747d7973b09a3c0183629d42e344d9', class: `select-dropdown${this.isOpen ? ' expanded' : ' collapsed'}` }, hAsync("li", { key: '04d0b6b0dc3fb431ad606c0df115d4966f3b5a24', class: "search-li" }, hAsync("div", { key: '735a83924982308b4ec92eb19f09c449717fa05d', class: "search-field" }, hAsync("input", { key: '3d6a0db7489e59e310bf50731b5f48ae3a244fe3', ref: (el) => { this.searchInputRef = el; }, type: "text", class: "country-search", placeholder: "Buscar pa\u00EDs...", value: this.searchTerm, onInput: (e) => { this.searchTerm = e.target.value; } }), hAsync("span", { key: '00bdb2ddd3f67929246f89faed2a2ef2ab169860', class: "search-icon" }, hAsync("dropi-icon", { key: 'bffe43141d5de99b143751c4a80fd972ba8b274c', name: "Search", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-400" })))), this.filtered.map(country => (hAsync("li", { key: country.code }, hAsync("button", { class: "option", type: "button", onClick: () => this.select(country) }, hAsync("img", { class: "flag-img", src: `https://flagsapi.com/${country.code}/shiny/24.png`, alt: country.name }), country.name))))), this.textHelper && (hAsync("div", { key: '32baa238875d15f41d1b308fc7adb418c6acc2b1', class: { 'select-helper': true, 'select-helper-error': this.hasError } }, this.hasError && hAsync("dropi-icon", { key: 'bfcfecc740f2cd9044ba2e1d2188ea2a9a208836', name: "Warning-circle", iconWidth: "12px", iconHeight: "12px", color: "Error-Error-500" }), hAsync("span", { key: 'd1ced64bb98903ce46e692ddf008f885edf3162b' }, this.textHelper)))));
|
|
7378
7378
|
}
|
|
7379
7379
|
static get watchers() { return {
|
|
7380
7380
|
"currentSelection": [{
|
|
@@ -7588,7 +7588,7 @@ class DropiDatePicker {
|
|
|
7588
7588
|
'dp-trigger--disabled': this.disabled,
|
|
7589
7589
|
'dp-trigger--invalid': this.isInvalid,
|
|
7590
7590
|
'dp-trigger--loading': this.loading
|
|
7591
|
-
}, onClick: () => this.open ? this.open = false : this.open_(), disabled: this.disabled || this.loading, type: "button" }, hAsync("dropi-icon", { key: '
|
|
7591
|
+
}, onClick: () => this.open ? this.open = false : this.open_(), disabled: this.disabled || this.loading, type: "button" }, hAsync("dropi-icon", { key: '773df10339713e2900abf37a27814f11919723a6', name: "Calendar", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-400" }), hAsync("span", { key: '2dfb36f49f70b658eb3e614aaafd7d55b84bd8ff', class: { 'dp-trigger__value': true, 'dp-trigger__placeholder': !this.displayValue } }, this.displayValue || this.placeholder), hAsync("dropi-icon", { key: '285147bc4a042263f760b36779d05453f041b452', name: "Arrow-Down-2", iconWidth: "12px", iconHeight: "12px", color: "Gray-Gray-400" })), this.open && (hAsync("div", { key: '44e0c6e10690c3acf8b6d1df295fa9806da11921', class: "dp-popup" }, hAsync("div", { key: 'd901f7614790294623a192bfca1821ddac2f93eb', class: "dp-nav" }, hAsync("button", { key: 'd6ce30acaaf801e3c373b2c3f2835cc2d52dd0f6', class: "dp-nav__btn", onClick: () => this.prevMonth(), type: "button" }, hAsync("dropi-icon", { key: 'bce4421271b1d662c909d8934992567e33dac651', name: "Arrow-Left-2", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-600" })), hAsync("span", { key: 'bd483b0fe673fda734b6acc526e1cb6e7682c5be', class: "dp-nav__title" }, hAsync("span", { key: 'cd9e36ca306145ad39371a7a147c5efbb6ea9922' }, MONTHS_ES[this.viewMonth]), hAsync("span", { key: '99b3f4cb1f8d5cef1b07fa39ab6afd51d77080da' }, this.viewYear)), hAsync("button", { key: '1fc969593153c3b920a8c99e7beae8e6ba2d0e9d', class: "dp-nav__btn", onClick: () => this.nextMonth(), type: "button" }, hAsync("dropi-icon", { key: 'b200e12b9267232f9e01794ff47e4b613cdeaf53', name: "Arrow-Right-2", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-600" }))), hAsync("div", { key: 'ea473f30463db209687e9f8ecf4f3e9f9422e379', class: "dp-grid" }, DAYS_ES.map(d => (hAsync("div", { class: "dp-day-header" }, d))), days.map(({ iso, day, currentMonth }) => {
|
|
7592
7592
|
const isSelected = this.selectionMode !== 'range'
|
|
7593
7593
|
? iso === this.selectedDate
|
|
7594
7594
|
: iso === this.startDate || iso === this.endDate;
|
|
@@ -7610,12 +7610,12 @@ class DropiDatePicker {
|
|
|
7610
7610
|
if (this.selectionMode === 'range' && this.startDate && !this.endDate)
|
|
7611
7611
|
this.hoverDate = iso;
|
|
7612
7612
|
}, onMouseLeave: () => this.hoverDate = '' }, day));
|
|
7613
|
-
})), hAsync("div", { key: '
|
|
7613
|
+
})), hAsync("div", { key: 'eb232baf8ece9768a26f5be6bcb6c9d965916643', class: "dp-footer" }, hAsync("button", { key: '97e25f18c4af3e4c43f762944b21bfd3941b0ea0', class: "dp-footer__clear", type: "button", onClick: () => {
|
|
7614
7614
|
this.selectedDate = '';
|
|
7615
7615
|
this.startDate = '';
|
|
7616
7616
|
this.endDate = '';
|
|
7617
7617
|
this.open = false;
|
|
7618
|
-
} }, "Limpiar"), hAsync("button", { key: '
|
|
7618
|
+
} }, "Limpiar"), hAsync("button", { key: '7e9cf51936868db07c3b940001c2b310b1de2b6d', class: "dp-footer__today", type: "button", onClick: () => {
|
|
7619
7619
|
if (this.selectionMode !== 'range') {
|
|
7620
7620
|
this.selectedDate = today;
|
|
7621
7621
|
this.open = false;
|
|
@@ -7857,7 +7857,7 @@ class DropiDrawer {
|
|
|
7857
7857
|
return (hAsync("div", { key: '7792ce8e001adf404aef387e35c5fb601f69b1e2', class: { 'drawer-host': true, 'drawer-host--open': this.open } }, hAsync("div", { key: '186c33be6a7cd1e34e6d1f852219be91b24a15b9', class: "drawer-backdrop", onClick: () => {
|
|
7858
7858
|
if (this.closeOnBackdrop)
|
|
7859
7859
|
this.close();
|
|
7860
|
-
} }), hAsync("div", { key: '3a48c465707125c2de1e369e70375689fe5ff9c1', class: `drawer-panel drawer-panel--${this.position}${sizeClass ? ' ' + sizeClass : ''}`, style: panelStyle, role: "dialog", "aria-modal": "true" }, hAsync("div", { key: '840bb2933bc7e2264269bbadd5d9d61649fe58fe', class: { 'drawer-header': true, 'drawer-header--headless': this.headless } }, hAsync("h3", { key: 'bfd9c7db02e9db07ce32115ca6386a9840c61288', class: "drawer-header__title" }, this.drawerTitle), hAsync("button", { key: '6dc350e26f74d4e3aead7697bd2f5552e49e833c', class: "drawer-header__close", onClick: () => this.close(), "aria-label": "Cerrar" }, hAsync("dropi-icon", { key: '
|
|
7860
|
+
} }), hAsync("div", { key: '3a48c465707125c2de1e369e70375689fe5ff9c1', class: `drawer-panel drawer-panel--${this.position}${sizeClass ? ' ' + sizeClass : ''}`, style: panelStyle, role: "dialog", "aria-modal": "true" }, hAsync("div", { key: '840bb2933bc7e2264269bbadd5d9d61649fe58fe', class: { 'drawer-header': true, 'drawer-header--headless': this.headless } }, hAsync("h3", { key: 'bfd9c7db02e9db07ce32115ca6386a9840c61288', class: "drawer-header__title" }, this.drawerTitle), hAsync("button", { key: '6dc350e26f74d4e3aead7697bd2f5552e49e833c', class: "drawer-header__close", onClick: () => this.close(), "aria-label": "Cerrar" }, hAsync("dropi-icon", { key: 'aa887706723f327e48cdb836ee2ea0597fca3f3b', name: "Close-small", iconWidth: "32px", iconHeight: "32px", color: "Gray-Gray-400" }))), hAsync("div", { key: 'e6f301a6253d930e116a6e68a3e8f280b32f00ef', class: "drawer-body" }, hAsync("slot", { key: 'f05c00171734247aec82b8b504a53e11c3612fc9' })), hAsync("div", { key: 'f0f4aaba5926a2d0c78b3b1869d8d8efa0f03845', class: "drawer-footer" }, hAsync("slot", { key: '45e370e62b5d2e7c221f37ad8582656bed159637', name: "footer" })))));
|
|
7861
7861
|
}
|
|
7862
7862
|
static get watchers() { return {
|
|
7863
7863
|
"open": [{
|
|
@@ -8042,7 +8042,7 @@ class DropiFavoriteButton {
|
|
|
8042
8042
|
this.toggleFavorite.emit(this.isFavorite);
|
|
8043
8043
|
}
|
|
8044
8044
|
render() {
|
|
8045
|
-
return (hAsync("button", { key: '07acf3b1f81e69ddea79672fd4853ad575b4d2af', class: { 'fav-btn': true, 'fav-btn--active': this.isFavorite }, onClick: () => this.toggle(), onMouseEnter: () => this.hovered = true, onMouseLeave: () => this.hovered = false, "aria-label": this.isFavorite ? 'Quitar de favoritos' : 'Agregar a favoritos', "aria-pressed": String(this.isFavorite) }, hAsync("dropi-icon", { key: '
|
|
8045
|
+
return (hAsync("button", { key: '07acf3b1f81e69ddea79672fd4853ad575b4d2af', class: { 'fav-btn': true, 'fav-btn--active': this.isFavorite }, onClick: () => this.toggle(), onMouseEnter: () => this.hovered = true, onMouseLeave: () => this.hovered = false, "aria-label": this.isFavorite ? 'Quitar de favoritos' : 'Agregar a favoritos', "aria-pressed": String(this.isFavorite) }, hAsync("dropi-icon", { key: '4ce84ce1876e76c07666c609d427484cef65c460', name: this.isFavorite || this.hovered ? 'Heart-solid' : 'Heart', iconWidth: "19px", iconHeight: "19px", color: this.isFavorite || this.hovered ? 'Primary-Primary-500' : 'Gray-Gray-800' })));
|
|
8046
8046
|
}
|
|
8047
8047
|
static get style() { return dropiFavoriteButtonCss(); }
|
|
8048
8048
|
static get cmpMeta() { return {
|
|
@@ -8278,7 +8278,7 @@ class DropiFileUpload {
|
|
|
8278
8278
|
renderCardItem(item) {
|
|
8279
8279
|
const isImage = item.fileType === 'image' && item.previewUrl && !item.previewUrl.includes('.pdf');
|
|
8280
8280
|
const isPdf = item.file?.type?.includes('pdf');
|
|
8281
|
-
return (hAsync("div", { key: item.id, class: `file-card ${item.state} ${this.getFileTypeClass(item)}` }, isImage ? (hAsync("div", { class: "preview-wrapper" }, hAsync("img", { class: `preview ${item.state}`, src: item.previewUrl, alt: item.file?.name }), item.state === 'complete' && (hAsync("div", { class: "overlay-icon" }, this.renderCheckSvg())))) : (hAsync("div", { class: "file-icon" }, isPdf ? this.renderPdfSvg() : this.renderDocSvg())), item.state !== 'confirm-delete' && item.state !== 'deleting' && (hAsync("div", { class: "info-container" }, hAsync("div", { class: `file-name${item.state === 'error' ? ' error-text' : ''}` }, item.file?.name ?? item.previewUrl?.split('/').pop()), item.state === 'uploading' && (hAsync("div", { class: "progress-bar-container" }, hAsync("div", { class: "progress-bar", style: { width: `${item.progress}%` } }))), item.state === 'error' && (hAsync("div", { class: "error-label" }, "Error al subir el archivo")))), item.state === 'deleting' && (hAsync("div", { class: "deleting-container" }, hAsync("span", { class: "deleting-label" }, "Eliminando..."))), item.state !== 'confirm-delete' && item.state !== 'error' && item.state !== 'deleting' && (hAsync("div", { class: "preview-image", onClick: () => { } }, hAsync("dropi-icon", { name: "Eye",
|
|
8281
|
+
return (hAsync("div", { key: item.id, class: `file-card ${item.state} ${this.getFileTypeClass(item)}` }, isImage ? (hAsync("div", { class: "preview-wrapper" }, hAsync("img", { class: `preview ${item.state}`, src: item.previewUrl, alt: item.file?.name }), item.state === 'complete' && (hAsync("div", { class: "overlay-icon" }, this.renderCheckSvg())))) : (hAsync("div", { class: "file-icon" }, isPdf ? this.renderPdfSvg() : this.renderDocSvg())), item.state !== 'confirm-delete' && item.state !== 'deleting' && (hAsync("div", { class: "info-container" }, hAsync("div", { class: `file-name${item.state === 'error' ? ' error-text' : ''}` }, item.file?.name ?? item.previewUrl?.split('/').pop()), item.state === 'uploading' && (hAsync("div", { class: "progress-bar-container" }, hAsync("div", { class: "progress-bar", style: { width: `${item.progress}%` } }))), item.state === 'error' && (hAsync("div", { class: "error-label" }, "Error al subir el archivo")))), item.state === 'deleting' && (hAsync("div", { class: "deleting-container" }, hAsync("span", { class: "deleting-label" }, "Eliminando..."))), item.state !== 'confirm-delete' && item.state !== 'error' && item.state !== 'deleting' && (hAsync("div", { class: "preview-image", onClick: () => { } }, hAsync("dropi-icon", { name: "Eye", iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-600" }))), item.state !== 'confirm-delete' && item.state !== 'deleting' && !this.onlyView && (hAsync("div", { class: "delete", onClick: () => this.handleFileAction(item, 'delete') }, this.renderTrashSvg())), item.state === 'confirm-delete' && (hAsync("div", { class: "delete-confirm" }, hAsync("span", { class: "message" }, item.previewUrl ? '¿Eliminar imagen?' : '¿Eliminar archivo?'), hAsync("div", { class: "actions" }, hAsync("dropi-button", { size: "small", text: "S\u00ED", onClick: () => this.handleFileAction(item, 'confirm-delete') }), hAsync("dropi-button", { text: "No", size: "small", severity: "secondary", onClick: () => this.handleFileAction(item, 'cancel-delete') }))))));
|
|
8282
8282
|
}
|
|
8283
8283
|
renderGridItem(item) {
|
|
8284
8284
|
return (hAsync("div", { key: item.id, class: `img-view ${item.state} ${this.getFileTypeClass(item)}` }, hAsync("div", { class: "preview-wrapper" }, hAsync("div", { class: "preview-container" }, hAsync("img", { class: `preview ${item.state}`, src: item.previewUrl || '', alt: "preview" })), item.state === 'complete' && (hAsync("div", { class: "overlay-icon" }, this.renderCheckSvg())), item.state !== 'confirm-delete' && item.state !== 'deleting' && (hAsync("div", { class: "delete", onClick: () => this.handleFileAction(item, 'confirm-delete') }, this.renderTrashGridSvg()))), item.state === 'uploading' && (hAsync("div", { class: "progress-bar-container" }, hAsync("div", { class: "progress-bar", style: { width: `${item.progress}%` } }))), item.state === 'deleting' && (hAsync("div", { class: "deleting-info" }, hAsync("span", { class: "deleting-info-label" }, "Eliminando...")))));
|
|
@@ -8290,7 +8290,7 @@ class DropiFileUpload {
|
|
|
8290
8290
|
const cardFiles = files.filter(f => f.typeView === 'card');
|
|
8291
8291
|
const showDropZone = files.length < (this.maxFiles ?? 1) && !this.isDropZoneHidden();
|
|
8292
8292
|
const isSmall = this.dragAndDropSize === 'small';
|
|
8293
|
-
return (hAsync("div", { key: '
|
|
8293
|
+
return (hAsync("div", { key: 'c09a5505630f5fa711bfd4bf20961c12b72a3fd8', class: "upload-container" }, (this.title || this.label) && (hAsync("div", { key: '1bf146f7faacca9e28002ea36e36bfffbead52e2', class: "upload-header" }, this.title && hAsync("div", { key: '00541bbf16b27c4a110cdde47826e5cc873e81c8', class: "text title" }, this.title), this.label && hAsync("div", { key: '3794f66b232427eab5b046ddf0e5aa70e7752967', class: "text label" }, this.label))), this.error && (hAsync("dropi-alert", { key: 'bfa68d17ac941905787526e3f8804e3e0f2f1778', message: this.errorMessage, type: "default", state: "error", dismissable: true, showButton: false, onOnClose: () => { this.error = false; } })), showDropZone && (hAsync("div", { key: '81c39eb2291b04e57414c7e8912e975557f8216f', class: { 'file-upload': true, 'drag-over': this.dragging }, onDragOver: (e) => this.onDragOver(e), onDragEnter: (e) => this.onDragEnter(e), onDragLeave: () => this.onDragLeave(), onDrop: (e) => this.onDrop(e) }, hAsync("div", { key: 'e6f548754efa4c94d882b305887cf57aa42ce72c', class: `file-upload__zone${this.dragging ? ' drag-over' : ''}` }, !isSmall && (hAsync("svg", { key: '52e3baa97a868e8e1dea0e2c8767514804e8ebd0', width: "40", height: "40", viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { key: 'bb4a9b1a1a84ac80a2f0b8fef7400f47a256cdee', d: "M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z", fill: "#FEF8F1" }), hAsync("g", { key: 'a65c0b3d112c7ab0ac22195a5f955f79dae859a8', "clip-path": "url(#up)" }, hAsync("path", { key: 'fa3e06035df1bcbfe3d6baee2fdf458815a56e70', d: "M19.3379 13.7187L19.3332 24.0107C19.3332 24.1875 19.4035 24.357 19.5285 24.4821C19.6535 24.6071 19.8231 24.6773 19.9999 24.6773C20.1767 24.6773 20.3463 24.6071 20.4713 24.4821C20.5963 24.357 20.6666 24.1875 20.6666 24.0107L20.6712 13.73L22.6126 15.672C22.7376 15.797 22.9071 15.8672 23.0839 15.8672C23.2607 15.8672 23.4302 15.797 23.5552 15.672C23.6802 15.547 23.7504 15.3774 23.7504 15.2007C23.7504 15.0239 23.6802 14.8543 23.5552 14.7293L21.4145 12.586C21.2288 12.4001 21.0083 12.2527 20.7655 12.1521C20.5228 12.0515 20.2626 11.9998 19.9999 11.9998C19.7371 11.9998 19.477 12.0515 19.2342 12.1521C18.9915 12.2527 18.771 12.4001 18.5852 12.586L16.4445 14.7273C16.3196 14.8523 16.2494 15.0219 16.2494 15.1987C16.2494 15.3754 16.3196 15.545 16.4445 15.67C16.5696 15.795 16.7391 15.8652 16.9159 15.8652C17.0927 15.8652 17.2622 15.795 17.3872 15.67L19.3379 13.7187Z", fill: "#F49A3D" }), hAsync("path", { key: '97456d13ef7a8a75ecf7e172ccb85ca859e3d535', d: "M26.6667 23.3329V25.9996C26.6667 26.1764 26.5964 26.346 26.4714 26.471C26.3464 26.596 26.1768 26.6663 26 26.6663H14C13.8232 26.6663 13.6536 26.596 13.5286 26.471C13.4036 26.346 13.3333 26.1764 13.3333 25.9996V23.3329C13.3333 23.1561 13.2631 22.9865 13.1381 22.8615C13.013 22.7365 12.8435 22.6663 12.6667 22.6663C12.4899 22.6663 12.3203 22.7365 12.1953 22.8615C12.0702 22.9865 12 23.1561 12 23.3329V25.9996C12 26.53 12.2107 27.0387 12.5858 27.4138C12.9609 27.7889 13.4696 27.9996 14 27.9996H26C26.5304 27.9996 27.0391 27.7889 27.4142 27.4138C27.7893 27.0387 28 26.53 28 25.9996V23.3329C28 23.1561 27.9298 22.9865 27.8047 22.8615C27.6797 22.7365 27.5101 22.6663 27.3333 22.6663C27.1565 22.6663 26.987 22.7365 26.8619 22.8615C26.7369 22.9865 26.6667 23.1561 26.6667 23.3329Z", fill: "#F49A3D" })), hAsync("defs", { key: '502826c8a475fb8e39cd5c17412b3a5d08b8b57f' }, hAsync("clipPath", { key: 'ee19ab3b2a0a2ee79130eb7c864322f3b1b8ca12', id: "up" }, hAsync("rect", { key: '6928d7c2657125285176108904a87b12578e99c7', width: "16", height: "16", fill: "white", transform: "translate(12 12)" }))))), hAsync("div", { key: '712573aee556fba6f0ec4bc91ec6a8a6f7c9f2cd', class: isSmall ? 'info size-small-upload' : 'info' }, hAsync("div", { key: '68c9fa1d370aa6cfd46b70bcf178d1d2ea516d1a', class: "title" }, this.textDropZone), isSmall && (hAsync("dropi-button", { key: '68d657e48f013fcacfb8f77f82627849c0be88be', text: this.textButton, size: "small", onClick: (e) => { e.stopPropagation(); this.openFilePicker(); } }))), !isSmall && (hAsync("div", { key: 'fba8a27308e72627d5dbe6a37bc4f9cbb3d5f58c', class: "info-desc" }, this.accept && hAsync("div", { key: 'c005fec3ae91d8d3919ea622b143390817e19b4a', class: "description" }, "Formatos admitidos: ", this.accept), hAsync("div", { key: 'b04d2d09f18b22232b60bb42f72f7016a2b4fc51', class: "description" }, "Tama\u00F1o m\u00E1ximo: ", this.maxFileSizeMB, "MB"))), !isSmall && (hAsync("dropi-button", { key: '4494470d4ea27f2022dbf057ed3fb519bbcc89df', text: this.textButton, size: "small", onClick: (e) => { e.stopPropagation(); this.openFilePicker(); } })), hAsync("input", { key: 'ce6dfd7d09bca1cc7fea1c9164381d278a05c615', ref: (el) => this.inputRef = el, type: "file", accept: this.accept, multiple: this.multiple, class: "upload-hidden", onChange: (e) => this.onInputChange(e) })))), this.selectedFiles.length > 0 && (hAsync("div", { key: 'c556993924a8b5fdc7fcdb9b76e9ee9876cc1211', class: "files-container" }, gridFiles.length > 0 && (hAsync("div", { key: '3fef57fa5153ec594b46e222053a79e095156dff', class: "grid-list" }, gridFiles.map(f => this.renderGridItem(f)), gridFiles.length < this.maxFiles && (hAsync("div", { key: '57051294666455141dbe24837243f8bcbfe34dac', class: "add-img", onClick: () => this.addImage() }, hAsync("div", { key: 'c39387899c7b3696ce4611b5f9a91204ad04a91e', class: "icon" }, hAsync("svg", { key: 'f63ac4806187522457de8aecbcd299a19a3f7a90', width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { key: '4c6f3aefe963cf78aad8bdce421d776b2aac4c7e', d: "M9.77774 6.4444H7.55551V4.22218C7.55551 4.07484 7.49698 3.93353 7.3928 3.82934C7.28861 3.72516 7.1473 3.66663 6.99996 3.66663C6.85262 3.66663 6.71131 3.72516 6.60712 3.82934C6.50294 3.93353 6.4444 4.07484 6.4444 4.22218V6.4444H4.22218C4.07484 6.4444 3.93353 6.50294 3.82934 6.60712C3.72516 6.71131 3.66663 6.85262 3.66663 6.99996C3.66663 7.1473 3.72516 7.28861 3.82934 7.3928C3.93353 7.49698 4.07484 7.55551 4.22218 7.55551H6.4444V9.77774C6.4444 9.92508 6.50294 10.0664 6.60712 10.1706C6.71131 10.2748 6.85262 10.3333 6.99996 10.3333C7.1473 10.3333 7.28861 10.2748 7.3928 10.1706C7.49698 10.0664 7.55551 9.92508 7.55551 9.77774V7.55551H9.77774C9.92508 7.55551 10.0664 7.49698 10.1706 7.3928C10.2748 7.28861 10.3333 7.1473 10.3333 6.99996C10.3333 6.85262 10.2748 6.71131 10.1706 6.60712C10.0664 6.50294 9.92508 6.4444 9.77774 6.4444Z", fill: "#32394D" }))), hAsync("div", { key: '666a6f9501e1ff35e76526180d4c532ab57fe8f7', class: "text" }, "Agregar"))))), cardFiles.length > 0 && (hAsync("div", { key: 'b0b74121f4e4ce76076d027b7957e944cc1a7db6', class: "card-list" }, cardFiles.map(f => this.renderCardItem(f))))))));
|
|
8294
8294
|
}
|
|
8295
8295
|
static get style() { return dropiFileUploadCss(); }
|
|
8296
8296
|
static get cmpMeta() { return {
|
|
@@ -8384,7 +8384,7 @@ class DropiFileUploadProgressBar {
|
|
|
8384
8384
|
};
|
|
8385
8385
|
}
|
|
8386
8386
|
render() {
|
|
8387
|
-
return (hAsync("div", { key: 'f1dd7e86c50078b35661e0514beff610dc2bc8e7', class: "container-progress-bar" }, hAsync("div", { key: '2f630eb29817c68b3246d520d3940611ae78c523', class: "container-icon-info", style: { display: this.fileExtension !== 'pdf' ? 'flex' : 'none' } }, this.type !== 'image' && (hAsync("dropi-icon", { key: '
|
|
8387
|
+
return (hAsync("div", { key: 'f1dd7e86c50078b35661e0514beff610dc2bc8e7', class: "container-progress-bar" }, hAsync("div", { key: '2f630eb29817c68b3246d520d3940611ae78c523', class: "container-icon-info", style: { display: this.fileExtension !== 'pdf' ? 'flex' : 'none' } }, this.type !== 'image' && (hAsync("dropi-icon", { key: 'd74c46e94eb264e7dbd86129e7f4cd57026cfe88', name: "File-text", iconWidth: "24px", iconHeight: "24px", color: "Info-Info-600" })), this.type === 'image' && !this.urlImage && (hAsync("div", { key: '46a73ab30276c5438c84c406a2555635c95a432a', style: { width: '34px', height: '34px', borderRadius: '8px', background: 'var(--Gray-Gray-100)' } })), this.type === 'image' && this.urlImage && (hAsync("img", { key: 'c30d73c158f1bd7f571549dae0f31e36978c3dbb', src: this.urlImage, class: "image-to-view", width: "34", height: "34", alt: "" }))), this.fileExtension === 'pdf' && (hAsync("div", { key: 'e27d245c793b30cd44694bdc8fae1b43fd0eeff8', class: "icon-pdf" }, hAsync("svg", { key: '05fe527f3f84d68ce189b45c428db32fd94aa60a', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, hAsync("g", { key: '45465d04e01b989d6f41b9685024049f11d2fd8a', "clip-path": "url(#clip0_6227_22223)" }, hAsync("path", { key: 'b299e0b6b8254f08adbf38431cbd6c1a8ab55bd0', d: "M16.6243 4.61667L13.716 1.70833C12.616 0.608333 11.1493 0 9.59102 0H5.83268C3.53268 0 1.66602 1.86667 1.66602 4.16667V15.8333C1.66602 18.1333 3.53268 20 5.83268 20H14.166C16.466 20 18.3327 18.1333 18.3327 15.8333V8.74167C18.3327 7.18333 17.7243 5.71667 16.6243 4.61667ZM15.4493 5.79167C15.716 6.05833 15.941 6.35 16.1243 6.66667H12.5077C12.0493 6.66667 11.6743 6.29167 11.6743 5.83333V2.21667C11.991 2.4 12.2827 2.625 12.5493 2.89167L15.4577 5.8L15.4493 5.79167ZM16.666 15.8333C16.666 17.2083 15.541 18.3333 14.166 18.3333H5.83268C4.45768 18.3333 3.33268 17.2083 3.33268 15.8333V4.16667C3.33268 2.79167 4.45768 1.66667 5.83268 1.66667H9.59102C9.72435 1.66667 9.86602 1.66667 9.99935 1.68333V5.83333C9.99935 7.20833 11.1243 8.33333 12.4993 8.33333H16.6493C16.666 8.46667 16.666 8.6 16.666 8.74167V15.8333ZM5.90768 10.8333H4.99935C4.54102 10.8333 4.16602 11.2083 4.16602 11.6667V15.3667C4.16602 15.6583 4.39935 15.8833 4.68268 15.8833C4.96602 15.8833 5.19935 15.65 5.19935 15.3667V14.35H5.89935C6.88268 14.35 7.68268 13.5583 7.68268 12.5917C7.68268 11.625 6.88268 10.8333 5.89935 10.8333H5.90768ZM5.90768 13.3083H5.21602V11.875H5.91602C6.31602 11.875 6.65768 12.2 6.65768 12.5917C6.65768 12.9833 6.31602 13.3083 5.91602 13.3083H5.90768ZM15.8493 11.3583C15.8493 11.65 15.616 11.875 15.3327 11.875H13.9243V12.825H14.9577C15.2493 12.825 15.4743 13.0583 15.4743 13.3417C15.4743 13.625 15.241 13.8583 14.9577 13.8583H13.9243V15.3583C13.9243 15.65 13.691 15.875 13.4077 15.875C13.1243 15.875 12.891 15.6417 12.891 15.3583V11.35C12.891 11.0583 13.1243 10.8333 13.4077 10.8333H15.3327C15.6243 10.8333 15.8493 11.0667 15.8493 11.35V11.3583ZM10.0743 10.8417H9.16602C8.70768 10.8417 8.33268 11.2167 8.33268 11.675V15.375C8.33268 15.6667 8.56602 15.8417 8.84935 15.8417C9.13268 15.8417 10.066 15.8417 10.066 15.8417C11.0493 15.8417 11.8493 15.05 11.8493 14.0833V12.6C11.8493 11.6333 11.0493 10.8417 10.066 10.8417H10.0743ZM10.816 14.0833C10.816 14.475 10.4743 14.8 10.0743 14.8H9.38268V11.8833H10.0827C10.4827 11.8833 10.8243 12.2083 10.8243 12.6V14.0833H10.816Z", fill: "#DE6061" })), hAsync("defs", { key: '95b5ba8d3edc3cb106e12dae54d8444ced8599a2' }, hAsync("clipPath", { key: '7900ecc7f35430b3311352ea58cb874a39a9ec9e', id: "clip0_6227_22223" }, hAsync("rect", { key: 'e7c63063a879be36c37d6d39fdb295d3abb7667d', width: "20", height: "20", fill: "white" })))))), hAsync("div", { key: '3464f88661ff6fcacdfa125054cfa98a420db74f', class: "container-bar-title" }, hAsync("p", { key: 'f33ab366b12e67fcd4aa7f730a2881c1b41c736a' }, this.textFile), hAsync("progress", { key: '595b22ed789380419cb47babac54f86921df2c33', value: this.progress, max: "100" })), this.progress === 100 && this.isPreview && (hAsync("div", { key: '31a36abbe63cb31969b3516088c2e03db10a8982', class: "view-icon", onClick: () => this.viewFile.emit() }, hAsync("svg", { key: '5947e10eec9c446f886a7013c59d7efededca856', xmlns: "http://www.w3.org/2000/svg", width: "18", height: "14", viewBox: "0 0 18 14", fill: "none" }, hAsync("path", { key: '5dfe9fe8793b5e9a91f0bbcfd300f40deee916a3', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M7.07148 4.14758C7.64227 3.76618 8.31334 3.56262 8.99983 3.56262C9.92004 3.56372 10.8022 3.92976 11.4529 4.58045C12.1036 5.23114 12.4697 6.11334 12.4708 7.03355C12.4708 7.72004 12.2672 8.39111 11.8858 8.9619C11.5044 9.53269 10.9623 9.97757 10.3281 10.2403C9.69387 10.503 8.99598 10.5717 8.32268 10.4378C7.64939 10.3039 7.03092 9.9733 6.54551 9.48788C6.06009 9.00246 5.72951 8.384 5.59558 7.7107C5.46166 7.0374 5.53039 6.33951 5.7931 5.70528C6.05581 5.07105 6.50069 4.52897 7.07148 4.14758ZM7.84282 8.76514C8.18529 8.99398 8.58794 9.11612 8.99983 9.11612C9.55216 9.11612 10.0819 8.8967 10.4724 8.50615C10.863 8.11559 11.0824 7.58588 11.0824 7.03355C11.0824 6.62166 10.9602 6.21902 10.7314 5.87654C10.5026 5.53407 10.1773 5.26714 9.79679 5.10952C9.41625 4.95189 8.99752 4.91065 8.59354 4.99101C8.18956 5.07136 7.81849 5.26971 7.52723 5.56096C7.23598 5.85221 7.03764 6.22329 6.95728 6.62727C6.87693 7.03124 6.91817 7.44998 7.07579 7.83052C7.23342 8.21105 7.50034 8.53631 7.84282 8.76514Z", fill: "#475066" }), hAsync("path", { key: 'b5dbe504a39e7d3d2d331e85f050c118f9c97b09', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.99996 0.546387C13.2984 0.546387 15.7475 3.48835 16.8241 5.24187C17.157 5.78022 17.3333 6.40064 17.3333 7.03357C17.3333 7.6665 17.157 8.28692 16.8241 8.82526C15.7475 10.5788 13.2984 13.5207 8.99996 13.5207C4.70155 13.5207 2.25246 10.5788 1.17577 8.82526C0.842931 8.28692 0.666626 7.6665 0.666626 7.03357C0.666626 6.40064 0.842931 5.78022 1.17577 5.24187C2.25246 3.48835 4.70155 0.546387 8.99996 0.546387ZM8.99996 12.1324C12.6229 12.1324 14.7159 9.60206 15.6406 8.09845C15.8383 7.77846 15.943 7.40973 15.943 7.03357C15.943 6.6574 15.8383 6.28867 15.6406 5.96868C14.7159 4.4623 12.6229 1.93476 8.99996 1.93476C5.377 1.93476 3.28402 4.46507 2.35936 5.96868C2.16161 6.28867 2.05687 6.6574 2.05687 7.03357C2.05687 7.40973 2.16161 7.77846 2.35936 8.09845C3.28402 9.60206 5.377 12.1324 8.99996 12.1324Z", fill: "#475066" })))), this.progress === 100 && !this.disabled && (hAsync("div", { key: '64cdb0fe5676b7db8c849960526904bdda458e16', class: "container-icon-trash", onClick: () => this.deleteFile.emit() }, hAsync("svg", { key: '31aef5958c89cce4d071be04c95dcb45f2004683', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "21", viewBox: "0 0 20 21", fill: "none" }, hAsync("path", { key: '5c479d37166fc686b1e95114a75b4b9f40b770ad', d: "M16.2501 4.94477H14.0973C13.9362 4.16103 13.5097 3.45682 12.8899 2.95082C12.27 2.44483 11.4947 2.168 10.6946 2.16699H9.30566C8.50552 2.168 7.73019 2.44483 7.11035 2.95082C6.49051 3.45682 6.06406 4.16103 5.90289 4.94477H3.75011C3.56593 4.94477 3.3893 5.01793 3.25906 5.14817C3.12883 5.2784 3.05566 5.45504 3.05566 5.63921C3.05566 5.82339 3.12883 6.00003 3.25906 6.13026C3.3893 6.26049 3.56593 6.33366 3.75011 6.33366H4.44455V15.3614C4.44566 16.282 4.81183 17.1645 5.46276 17.8155C6.11369 18.4664 6.99622 18.8326 7.91677 18.8337H12.0834C13.004 18.8326 13.8865 18.4664 14.5375 17.8155C15.1884 17.1645 15.5546 16.282 15.5557 15.3614V6.33366H16.2501C16.4343 6.33366 16.6109 6.26049 16.7412 6.13026C16.8714 6.00003 16.9446 5.82339 16.9446 5.63921C16.9446 5.45504 16.8714 5.2784 16.7412 5.14817C16.6109 5.01793 16.4343 4.94477 16.2501 4.94477ZM9.30566 3.55588H10.6946C11.1253 3.55641 11.5453 3.69017 11.8971 3.93883C12.2488 4.18749 12.515 4.53886 12.6591 4.94477H7.34108C7.48524 4.53886 7.75143 4.18749 8.10315 3.93883C8.45488 3.69017 8.87492 3.55641 9.30566 3.55588ZM14.1668 15.3614C14.1668 15.914 13.9473 16.4439 13.5566 16.8346C13.1659 17.2253 12.636 17.4448 12.0834 17.4448H7.91677C7.36424 17.4448 6.83434 17.2253 6.44364 16.8346C6.05294 16.4439 5.83344 15.914 5.83344 15.3614V6.33366H14.1668V15.3614Z", fill: "#DE6061" }), hAsync("path", { key: 'cd1b8cb60eafabf8cfe2b1842bf946aa73ea1f44', d: "M8.61128 14.6666C8.79545 14.6666 8.97209 14.5934 9.10232 14.4632C9.23256 14.3329 9.30572 14.1563 9.30572 13.9721V9.80545C9.30572 9.62127 9.23256 9.44464 9.10232 9.3144C8.97209 9.18417 8.79545 9.11101 8.61128 9.11101C8.4271 9.11101 8.25046 9.18417 8.12023 9.3144C7.99 9.44464 7.91683 9.62127 7.91683 9.80545V13.9721C7.91683 14.1563 7.99 14.3329 8.12023 14.4632C8.25046 14.5934 8.4271 14.6666 8.61128 14.6666Z", fill: "#DE6061" }), hAsync("path", { key: '99576e5c1f917aa043c749ba38c436eea64a18f4', d: "M11.389 14.6666C11.5731 14.6666 11.7498 14.5934 11.88 14.4632C12.0102 14.3329 12.0834 14.1563 12.0834 13.9721V9.80545C12.0834 9.62127 12.0102 9.44464 11.88 9.3144C11.7498 9.18417 11.5731 9.11101 11.389 9.11101C11.2048 9.11101 11.0281 9.18417 10.8979 9.3144C10.7677 9.44464 10.6945 9.62127 10.6945 9.80545V13.9721C10.6945 14.1563 10.7677 14.3329 10.8979 14.4632C11.0281 14.5934 11.2048 14.6666 11.389 14.6666Z", fill: "#DE6061" }))))));
|
|
8388
8388
|
}
|
|
8389
8389
|
static get watchers() { return {
|
|
8390
8390
|
"progress": [{
|
|
@@ -8413,7 +8413,7 @@ class DropiFileUploadProgressBar {
|
|
|
8413
8413
|
}; }
|
|
8414
8414
|
}
|
|
8415
8415
|
|
|
8416
|
-
const dropiIconCss = () => `:host{display:inline-flex;align-items:center;justify-content:center;fill:var(--icon-fill, currentColor);
|
|
8416
|
+
const dropiIconCss = () => `:host{display:inline-flex;align-items:center;justify-content:center;fill:var(--icon-fill, currentColor);overflow:hidden}svg{fill:inherit;display:block;width:100%;height:100%;vertical-align:middle}.spin{animation:spin 1s linear infinite}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}`;
|
|
8417
8417
|
|
|
8418
8418
|
/**
|
|
8419
8419
|
* @component dropi-icon
|
|
@@ -8428,27 +8428,19 @@ class DropiIcon {
|
|
|
8428
8428
|
/** Icon name matching the id in the SVG sprite */
|
|
8429
8429
|
name = '';
|
|
8430
8430
|
/** Width of the icon (CSS value) */
|
|
8431
|
-
|
|
8432
|
-
|
|
8433
|
-
height = '24px';
|
|
8434
|
-
/**
|
|
8435
|
-
* Color of the icon. Accepts:
|
|
8436
|
-
* - Hex color: `#ff0000`
|
|
8437
|
-
* - CSS variable name without `--`: `Primary-Primary-500`
|
|
8438
|
-
* - `currentColor` to inherit
|
|
8439
|
-
*/
|
|
8431
|
+
iconWidth = '20px';
|
|
8432
|
+
iconHeight = '20px';
|
|
8440
8433
|
color = 'currentColor';
|
|
8434
|
+
widthChanged() {
|
|
8435
|
+
this.updateHostStyles();
|
|
8436
|
+
}
|
|
8437
|
+
heightChanged() {
|
|
8438
|
+
this.updateHostStyles();
|
|
8439
|
+
}
|
|
8441
8440
|
colorChanged() {
|
|
8442
8441
|
this.applyColor();
|
|
8443
8442
|
}
|
|
8444
8443
|
componentWillLoad() {
|
|
8445
|
-
// SSR Fallback: Read attributes if props are not yet synced by hydration
|
|
8446
|
-
if (!this.el.style.width && !this.el.style.height) {
|
|
8447
|
-
const attrW = this.el.getAttribute('width') || '24px';
|
|
8448
|
-
const attrH = this.el.getAttribute('height') || '24px';
|
|
8449
|
-
this.width = attrW;
|
|
8450
|
-
this.height = attrH;
|
|
8451
|
-
}
|
|
8452
8444
|
this.applyColor();
|
|
8453
8445
|
this.updateHostStyles();
|
|
8454
8446
|
}
|
|
@@ -8456,8 +8448,8 @@ class DropiIcon {
|
|
|
8456
8448
|
this.updateHostStyles();
|
|
8457
8449
|
}
|
|
8458
8450
|
updateHostStyles() {
|
|
8459
|
-
this.el.style.width = this.
|
|
8460
|
-
this.el.style.height = this.
|
|
8451
|
+
this.el.style.width = this.iconWidth;
|
|
8452
|
+
this.el.style.height = this.iconHeight;
|
|
8461
8453
|
}
|
|
8462
8454
|
applyColor() {
|
|
8463
8455
|
if (!this.color)
|
|
@@ -8470,9 +8462,15 @@ class DropiIcon {
|
|
|
8470
8462
|
this.el.style.setProperty('--icon-fill', fill);
|
|
8471
8463
|
}
|
|
8472
8464
|
render() {
|
|
8473
|
-
return (hAsync("svg", { key: '
|
|
8465
|
+
return (hAsync("svg", { key: '7185e1861c44aafcec2117f53f61ce18992388ad', width: this.iconWidth, height: this.iconHeight, class: { spin: (this.name ?? '') === 'Spinner' }, "aria-hidden": "true" }, hAsync("use", { key: 'b7913bfbf0bbb6bfa35f848f9fee19e09646004d', href: `/assets/icons/symbol/svg/sprite.css.svg#${this.name ?? ''}` })));
|
|
8474
8466
|
}
|
|
8475
8467
|
static get watchers() { return {
|
|
8468
|
+
"iconWidth": [{
|
|
8469
|
+
"widthChanged": 0
|
|
8470
|
+
}],
|
|
8471
|
+
"iconHeight": [{
|
|
8472
|
+
"heightChanged": 0
|
|
8473
|
+
}],
|
|
8476
8474
|
"color": [{
|
|
8477
8475
|
"colorChanged": 0
|
|
8478
8476
|
}]
|
|
@@ -8483,8 +8481,8 @@ class DropiIcon {
|
|
|
8483
8481
|
"$tagName$": "dropi-icon",
|
|
8484
8482
|
"$members$": {
|
|
8485
8483
|
"name": [1],
|
|
8486
|
-
"
|
|
8487
|
-
"
|
|
8484
|
+
"iconWidth": [1, "icon-width"],
|
|
8485
|
+
"iconHeight": [1, "icon-height"],
|
|
8488
8486
|
"color": [1]
|
|
8489
8487
|
},
|
|
8490
8488
|
"$listeners$": undefined,
|
|
@@ -8530,7 +8528,7 @@ class DropiIlustrationIcon {
|
|
|
8530
8528
|
return map[state] || 'Info';
|
|
8531
8529
|
}
|
|
8532
8530
|
render() {
|
|
8533
|
-
return (hAsync("div", { key: '2f956eddb214de168aae134374512600867e77a8', class: "dropi-ilustration" }, this.type === 'dropi' && (hAsync("figure", { key: '3d05624542d51f64cb6402fb958f039bc943afb7', class: "dropi-ilustration__image" }, hAsync("img", { key: '6fb383b378d989f675433c46710e246dc193f26b', src: `assets/icons/ilustration/${(!this.state || String(this.state) === 'undefined' || String(this.state) === 'null') ? 'default' : this.state}.svg`, alt: this.state ?? 'default', onError: (e) => { e.target.src = 'assets/icons/ilustration/default.svg'; } }))), this.type === 'mb' && (hAsync("figure", { key: 'f66957ddbba9506d041ab1b2e8877872b25bdbf3', class: `dropi-ilustration__image-mb ${this.state}` }, ['success', 'error', 'info', 'warning'].includes(this.state) && (hAsync("dropi-icon", { key: '
|
|
8531
|
+
return (hAsync("div", { key: '2f956eddb214de168aae134374512600867e77a8', class: "dropi-ilustration" }, this.type === 'dropi' && (hAsync("figure", { key: '3d05624542d51f64cb6402fb958f039bc943afb7', class: "dropi-ilustration__image" }, hAsync("img", { key: '6fb383b378d989f675433c46710e246dc193f26b', src: `assets/icons/ilustration/${(!this.state || String(this.state) === 'undefined' || String(this.state) === 'null') ? 'default' : this.state}.svg`, alt: this.state ?? 'default', onError: (e) => { e.target.src = 'assets/icons/ilustration/default.svg'; } }))), this.type === 'mb' && (hAsync("figure", { key: 'f66957ddbba9506d041ab1b2e8877872b25bdbf3', class: `dropi-ilustration__image-mb ${this.state}` }, ['success', 'error', 'info', 'warning'].includes(this.state) && (hAsync("dropi-icon", { key: '4f65eb91eb99c07abefc6089c6935b1fb573978b', name: this.getIconName(this.state), iconWidth: "24px", iconHeight: "24px", color: "Neutral-White" })))), this.type === 'insignia' && (hAsync("figure", { key: 'fd0db6cbdc7daf018446f03cf8dd13dbe218733a', class: this.tagProduct ? 'dropi-ilustration-insignia-tag' : 'dropi-ilustration-insignia' }, hAsync("img", { key: '79cd16693eeb848db9c027c8d2e96c6760a9e2ac', src: this.insigniaIcons[this.stateInsignia], alt: this.stateInsignia }), this.tagProduct && (hAsync("p", { key: '58ec25aa47c8756ec11a0fba679194a25dfaad0c', class: `tag tag--${this.stateInsignia}` }, hAsync("span", { key: '8354a3de165526351bc53021218b1fb2a0a4d064', class: "Caption-S" }, this.stateInsignia.charAt(0).toUpperCase() + this.stateInsignia.slice(1))))))));
|
|
8534
8532
|
}
|
|
8535
8533
|
static get style() { return dropiIlustrationIconCss(); }
|
|
8536
8534
|
static get cmpMeta() { return {
|
|
@@ -8586,7 +8584,7 @@ class DropiImageMiniature {
|
|
|
8586
8584
|
}
|
|
8587
8585
|
render() {
|
|
8588
8586
|
const imgs = this.parsedImages;
|
|
8589
|
-
return (hAsync("div", { key: '111d908339df1d3fba74cb8737f3c72e2254e2f0', class: "miniature" }, this.label && hAsync("span", { key: '007ecc8149b6778eac7dd80a978a088f686001eb', class: "miniature__label" }, this.label), hAsync("div", { key: '95c18d71f5c753bd2610915b62632aca7fbd4d16', class: "miniature__grid" }, imgs.map((src, i) => (hAsync("div", { class: "miniature__item", style: { width: this.width, height: this.height }, key: i, onClick: () => this.dropiImageClick.emit({ images: imgs, index: i }) }, hAsync("img", { src: src, alt: `imagen ${i + 1}`, loading: "lazy", onError: (e) => this.handleError(e) }), hAsync("div", { class: "miniature__zoom" }, hAsync("dropi-icon", { name: "Search",
|
|
8587
|
+
return (hAsync("div", { key: '111d908339df1d3fba74cb8737f3c72e2254e2f0', class: "miniature" }, this.label && hAsync("span", { key: '007ecc8149b6778eac7dd80a978a088f686001eb', class: "miniature__label" }, this.label), hAsync("div", { key: '95c18d71f5c753bd2610915b62632aca7fbd4d16', class: "miniature__grid" }, imgs.map((src, i) => (hAsync("div", { class: "miniature__item", style: { width: this.width, height: this.height }, key: i, onClick: () => this.dropiImageClick.emit({ images: imgs, index: i }) }, hAsync("img", { src: src, alt: `imagen ${i + 1}`, loading: "lazy", onError: (e) => this.handleError(e) }), hAsync("div", { class: "miniature__zoom" }, hAsync("dropi-icon", { name: "Search", iconWidth: "16px", iconHeight: "16px", color: "Neutral-White" }))))))));
|
|
8590
8588
|
}
|
|
8591
8589
|
static get style() { return dropiImageMiniatureCss(); }
|
|
8592
8590
|
static get cmpMeta() { return {
|
|
@@ -8650,7 +8648,7 @@ class DropiImageOverlay {
|
|
|
8650
8648
|
return null;
|
|
8651
8649
|
const imgs = this.parsedImages;
|
|
8652
8650
|
const multi = imgs.length > 1;
|
|
8653
|
-
return (hAsync("div", { class: "overlay", onClick: () => this.close() }, hAsync("button", { class: "overlay__close", onClick: (e) => { e.stopPropagation(); this.close(); }, "aria-label": "Cerrar" }, hAsync("dropi-icon", { name: "Close-large",
|
|
8651
|
+
return (hAsync("div", { class: "overlay", onClick: () => this.close() }, hAsync("button", { class: "overlay__close", onClick: (e) => { e.stopPropagation(); this.close(); }, "aria-label": "Cerrar" }, hAsync("dropi-icon", { name: "Close-large", iconWidth: "24px", iconHeight: "24px", color: "Neutral-White" })), hAsync("div", { class: { 'overlay__body': true, 'overlay__body--single': !multi }, onClick: (e) => e.stopPropagation() }, multi && (hAsync("div", { class: "overlay__thumbs" }, imgs.map((src, i) => (hAsync("div", { key: i, class: { 'overlay__thumb-box': true, 'overlay__thumb-box--active': i === this.current }, onClick: () => this.current = i }, hAsync("img", { src: src, alt: `miniatura ${i + 1}`, class: "overlay__thumb-img", onError: (e) => this.handleError(e) })))))), hAsync("div", { class: "overlay__content" }, multi && (hAsync("button", { class: "overlay__nav overlay__nav--prev", onClick: () => this.prev(), "aria-label": "Anterior" }, hAsync("dropi-icon", { name: "Dropdown-left", iconWidth: "18px", iconHeight: "18px", color: "Gray-Gray-500" }))), hAsync("img", { class: "overlay__main-image", src: imgs[this.current], alt: `imagen ${this.current + 1}`, onError: (e) => this.handleError(e) }), multi && (hAsync("button", { class: "overlay__nav overlay__nav--next", onClick: () => this.next(), "aria-label": "Siguiente" }, hAsync("dropi-icon", { name: "Dropdown-Right", iconWidth: "18px", iconHeight: "18px", color: "Gray-Gray-500" })))))));
|
|
8654
8652
|
}
|
|
8655
8653
|
static get watchers() { return {
|
|
8656
8654
|
"images": [{
|
|
@@ -8680,7 +8678,7 @@ class DropiImageOverlay {
|
|
|
8680
8678
|
}; }
|
|
8681
8679
|
}
|
|
8682
8680
|
|
|
8683
|
-
const dropiInputCss = () => `:host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}.fixed-label-container{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:8px}.input-label{color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-xs, 10px);font-weight:var(--font-weight-regular, 400);text-align:left}.asterisk{color:var(--Error-Error-500, #f46a6b)}.form-group{position:relative;width:100%}.input-container{position:relative}.icon-input{position:absolute;top:
|
|
8681
|
+
const dropiInputCss = () => `:host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}.fixed-label-container{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:8px}.input-label{color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-xs, 10px);font-weight:var(--font-weight-regular, 400);text-align:left}.asterisk{color:var(--Error-Error-500, #f46a6b)}.form-group{position:relative;width:100%}.input-container{position:relative}.icon-input{position:absolute;top:50%;left:12px;transform:translateY(-50%);z-index:1;display:flex;align-items:center;justify-content:center}.icon-input-password{position:absolute;top:50%;right:13px;transform:translateY(-50%);cursor:pointer;z-index:1;display:flex;align-items:center;justify-content:center}.form-control{box-sizing:border-box;width:100%;padding:var(--Size-2, 8px);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #ffffff);font-size:var(--font-size-s, 12px);font-family:inherit;color:var(--Gray-Gray-700, #32394d);transition:border-color 0.3s ease-in-out;height:40px;outline:none;appearance:none;text-align:left}.form-control::placeholder{color:transparent;transition:color 0.2s ease-in-out}.form-control:focus::placeholder,.fixed-label-input::placeholder{color:var(--Gray-Gray-400, #858ea6)}.form-control:focus{border-color:var(--Info-Info-500, #50a5f1)}.form-control-valid{border-color:var(--Gray-Gray-400, #858ea6) !important;color:var(--Gray-Gray-600, #475066)}.form-control-invalid{border-color:var(--Error-Error-500, #f46a6b) !important;color:var(--Gray-Gray-600, #475066)}.form-control:disabled{border-color:var(--Gray-Gray-200, #c3c9d9) !important;color:var(--Gray-Gray-400, #858ea6);background-color:var(--Gray-Gray-50, #f7f8fa);cursor:not-allowed}.padding-icon{padding-left:40px}.input-container--has-icon label.label-bottom{left:40px}.input-container--has-icon .form-control:focus+label.label-bottom,.input-container--has-icon .form-control:not(:placeholder-shown)+label.label-bottom{left:0}.text-password{-webkit-text-security:disc;text-security:disc}label.label-bottom{position:absolute;font-weight:var(--font-weight-regular, 400);top:10px;font-size:var(--font-size-s, 12px);color:var(--Gray-Gray-500, #69738c);left:10px;transition:all 0.2s ease-in-out;pointer-events:none;overflow:hidden;width:90%;white-space:nowrap}.form-control:focus+label.label-bottom,.form-control:not(:placeholder-shown)+label.label-bottom{top:-22px;left:0;font-size:var(--font-size-xs, 10px);color:var(--Gray-Gray-600, #475066);width:unset}.form-control:disabled+label.label-bottom{color:var(--Gray-Gray-400, #858ea6)}.form-control-helper{display:flex;position:absolute;top:100%;left:0;gap:4px;align-items:center;margin-top:4px}.form-control-helper span{display:block;color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-xs, 10px)}.invalid-color{color:var(--Error-Error-500, #f46a6b) !important}.disabled-helper{color:var(--Gray-Gray-400, #858ea6) !important}.disabled-helper{color:var(--Gray-Gray-400, #858ea6) !important}`;
|
|
8684
8682
|
|
|
8685
8683
|
/**
|
|
8686
8684
|
* @component dropi-input
|
|
@@ -8715,7 +8713,7 @@ class DropiInput {
|
|
|
8715
8713
|
internals;
|
|
8716
8714
|
// ── Identification ──────────────────────────────────────────
|
|
8717
8715
|
/** Input id. Defaults to label label. */
|
|
8718
|
-
|
|
8716
|
+
inputId = '';
|
|
8719
8717
|
/** Name attribute for native form submission */
|
|
8720
8718
|
name = '';
|
|
8721
8719
|
// ── Content ─────────────────────────────────────────────────
|
|
@@ -8789,7 +8787,9 @@ class DropiInput {
|
|
|
8789
8787
|
if (!val)
|
|
8790
8788
|
return;
|
|
8791
8789
|
if (val.id !== undefined)
|
|
8792
|
-
this.
|
|
8790
|
+
this.inputId = val.id;
|
|
8791
|
+
if (val.inputId !== undefined)
|
|
8792
|
+
this.inputId = val.inputId;
|
|
8793
8793
|
if (val.label !== undefined)
|
|
8794
8794
|
this.label = val.label;
|
|
8795
8795
|
if (val.placeholder !== undefined)
|
|
@@ -8905,7 +8905,7 @@ class DropiInput {
|
|
|
8905
8905
|
}
|
|
8906
8906
|
// ── Computed ─────────────────────────────────────────────────
|
|
8907
8907
|
get resolvedId() {
|
|
8908
|
-
return this.
|
|
8908
|
+
return this.inputId || this.label;
|
|
8909
8909
|
}
|
|
8910
8910
|
get inputType() {
|
|
8911
8911
|
if (this.passwordInput)
|
|
@@ -8926,14 +8926,14 @@ class DropiInput {
|
|
|
8926
8926
|
render() {
|
|
8927
8927
|
const showObligatoryAsterisk = this.required && this.showObligatoryAsterisk && !this.disabled;
|
|
8928
8928
|
const showIconInline = !!this.icon;
|
|
8929
|
-
return (hAsync("div", { key: '
|
|
8929
|
+
return (hAsync("div", { key: 'a6c762070ca5c0ffb5028f1899d4e026721664ee', class: { 'fixed-label-container': this.fixedLabel } }, this.fixedLabel && (hAsync("div", { key: 'fb223818b568114400aa456e595623c882b8bcd2', class: "input-label Body-S-Regular" }, this.label, showObligatoryAsterisk && hAsync("span", { key: '04c522a21ba3e0ec9710d267feb866d79dae7cbb', class: "asterisk" }, " *"))), hAsync("div", { key: '1672e9954f11ad61e6f224953f97aa7036e5b212', class: "form-group" }, hAsync("div", { key: 'd9bfc41486fe3f93d5144f55bf89a4ae1a916f5e', class: { 'input-container': true, 'input-container--has-icon': showIconInline } }, showIconInline && (hAsync("dropi-icon", { key: 'e7d21fd9b115925ed2bc584a6f5c614ea3761922', class: "icon-input", name: this.icon, color: this.iconColor, iconWidth: "20px", iconHeight: "20px", style: { width: '20px', height: '20px' } })), this.passwordInput && (hAsync("dropi-icon", { key: '5593f56ed03acdb79a9e8e4fefac58d585a5a092', class: "icon-input-password", name: this.showPassword ? 'Eye' : 'Eye-crossed', iconWidth: "20px", iconHeight: "20px", style: { width: '20px', height: '20px' }, color: "Gray-Gray-500", onClick: () => this.togglePassword() })), hAsync("input", { key: 'ef70c2be1606334593269be63234295bdbdf86b1', id: this.resolvedId, class: {
|
|
8930
8930
|
'form-control': true,
|
|
8931
8931
|
'form-control-valid': !this.isInvalid && this.touched && !!this.value,
|
|
8932
8932
|
'form-control-invalid': this.isInvalid,
|
|
8933
8933
|
'padding-icon': showIconInline,
|
|
8934
8934
|
'text-password': this.passwordInput && !this.showPassword,
|
|
8935
8935
|
'fixed-label-input': this.fixedLabel,
|
|
8936
|
-
}, type: this.inputType, value: this.value, placeholder: this.fixedLabel ? this.placeholder : ' ', disabled: this.disabled, required: this.required, maxLength: this.maxLength, inputMode: this.inputMode, "data-cy": undefined, onInput: e => this.handleInput(e), onKeyDown: e => this.handleKeyDown(e), onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur() }), !this.fixedLabel && (hAsync("label", { key: '
|
|
8936
|
+
}, type: this.inputType, value: this.value, placeholder: this.fixedLabel ? this.placeholder : ' ', disabled: this.disabled, required: this.required, maxLength: this.maxLength, inputMode: this.inputMode, "data-cy": undefined, onInput: e => this.handleInput(e), onKeyDown: e => this.handleKeyDown(e), onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur() }), !this.fixedLabel && (hAsync("label", { key: 'c0d079355d299b26dc2e8bde4347fd30aa791e21', class: "Body-S-Regular label-bottom", htmlFor: this.resolvedId }, this.label, showObligatoryAsterisk && hAsync("span", { key: 'fca9bc2745e0ccb7ba3b10c4e3e6b5d8bbb6f645', class: "asterisk" }, " *"))), this.showHelper && (hAsync("div", { key: 'f864cc07f591d0948cb06d6dde1e910bab10187a', class: "form-control-helper" }, this.isInvalid && hAsync("dropi-icon", { key: 'be2cf0d632fd8245e817d4023b4e4f060bc80d24', name: "Warning-circle", iconWidth: "12px", iconHeight: "12px", color: "Error-Error-500" }), hAsync("span", { key: '3768369a635e8ac03db24b0ba7fa7a214cc71577', class: {
|
|
8937
8937
|
'disabled-helper': this.disabled,
|
|
8938
8938
|
'invalid-color': this.isInvalid,
|
|
8939
8939
|
} }, this.textHelper)))))));
|
|
@@ -8955,7 +8955,7 @@ class DropiInput {
|
|
|
8955
8955
|
"$flags$": 585,
|
|
8956
8956
|
"$tagName$": "dropi-input",
|
|
8957
8957
|
"$members$": {
|
|
8958
|
-
"
|
|
8958
|
+
"inputId": [1025, "input-id"],
|
|
8959
8959
|
"name": [1],
|
|
8960
8960
|
"label": [1025],
|
|
8961
8961
|
"placeholder": [1025],
|
|
@@ -9039,7 +9039,7 @@ class DropiLanguagesSelector {
|
|
|
9039
9039
|
render() {
|
|
9040
9040
|
if (!this.currentLang)
|
|
9041
9041
|
return null;
|
|
9042
|
-
return (hAsync("div", { class: `custom-dropdown${this.isOpen ? ' open' : ''}` }, hAsync("div", { class: "selected-option", onClick: () => { this.isOpen = !this.isOpen; } }, hAsync("dropi-country-flags", { country: this.currentLang.flag, "flag-style": "rectangle", width: "20", height: "15" }), hAsync("span", { class: "Body-S-Regular" }, this.currentLang.label), hAsync("dropi-icon", { name: "Caret-down",
|
|
9042
|
+
return (hAsync("div", { class: `custom-dropdown${this.isOpen ? ' open' : ''}` }, hAsync("div", { class: "selected-option", onClick: () => { this.isOpen = !this.isOpen; } }, hAsync("dropi-country-flags", { country: this.currentLang.flag, "flag-style": "rectangle", width: "20", height: "15" }), hAsync("span", { class: "Body-S-Regular" }, this.currentLang.label), hAsync("dropi-icon", { name: "Caret-down", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-500" })), hAsync("ul", { class: `dropdown-options${this.isOpen ? ' dropdown-open' : ''}` }, this.parsedLanguages.map(lang => (hAsync("li", { key: lang.code, class: lang.code === this.currentLang?.code ? 'active' : '', onClick: () => this.select(lang) }, hAsync("dropi-country-flags", { country: lang.flag, "flag-style": "rectangle", width: "20", height: "15" }), hAsync("span", { class: "Body-S-Regular" }, lang.label)))))));
|
|
9043
9043
|
}
|
|
9044
9044
|
static get watchers() { return {
|
|
9045
9045
|
"languages": [{
|
|
@@ -9332,10 +9332,10 @@ class DropiMediaPlayer {
|
|
|
9332
9332
|
}, onMouseMove: () => this.onMouseMove(), onMouseLeave: () => this.onMouseLeave() }, hAsync("div", { class: "dropi-media-player__blur-bg", style: { backgroundImage: `url(${this.poster})` } }), hAsync("div", { class: "dropi-media-player__blur-overlay" }), hAsync("video", { class: "dropi-media-player__video", ref: (el) => this.mediaEl = el, src: this.src, poster: this.poster, onClick: () => this.togglePlay(), onPlay: () => { this.playing = true; this.startHideControlsTimer(); this.dropiPlay.emit(true); }, onPause: () => { this.playing = false; this.showControls = true; clearTimeout(this.controlsTimeout); this.dropiPlay.emit(false); }, onEnded: () => { this.playing = false; this.showControls = true; this.dropiEnded.emit(); }, onTimeUpdate: () => this.handleTimeUpdate(), onLoadedMetaData: () => this.handleLoadedMetadata() }), hAsync("div", { class: {
|
|
9333
9333
|
'dropi-media-player__center-play': true,
|
|
9334
9334
|
'dropi-media-player__center-play--hidden': this.playing && !this.showControls
|
|
9335
|
-
}, style: { width: `${this.playButtonSize}px`, height: `${this.playButtonSize}px` }, onClick: (e) => { e.stopPropagation(); this.togglePlay(); } }, this.playing ? (hAsync("svg", { width: `${this.playIconSize}px`, height: `${this.playIconSize}px`, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "1.5", style: { color: '#ffffff' } }, hAsync("rect", { x: "6.5", y: "4", width: "3.5", height: "16", rx: "1.75" }), hAsync("rect", { x: "14", y: "4", width: "3.5", height: "16", rx: "1.75" }))) : (hAsync("dropi-icon", { name: "Play", color: "Neutral-White",
|
|
9335
|
+
}, style: { width: `${this.playButtonSize}px`, height: `${this.playButtonSize}px` }, onClick: (e) => { e.stopPropagation(); this.togglePlay(); } }, this.playing ? (hAsync("svg", { width: `${this.playIconSize}px`, height: `${this.playIconSize}px`, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "1.5", style: { color: '#ffffff' } }, hAsync("rect", { x: "6.5", y: "4", width: "3.5", height: "16", rx: "1.75" }), hAsync("rect", { x: "14", y: "4", width: "3.5", height: "16", rx: "1.75" }))) : (hAsync("dropi-icon", { name: "Play", color: "Neutral-White", iconWidth: `${this.playIconSize}px`, iconHeight: `${this.playIconSize}px` }))), hAsync("div", { class: {
|
|
9336
9336
|
'dropi-media-player__controls-bar': true,
|
|
9337
9337
|
'dropi-media-player__controls-bar--hidden': !this.showControls
|
|
9338
|
-
}, onClick: (e) => e.stopPropagation() }, hAsync("span", { class: "dropi-media-player__timestamp" }, this.currentTimeStr, " / ", this.durationStr), hAsync("div", { class: "dropi-media-player__progress", onClick: (e) => { e.stopPropagation(); this.handleSeek(e); } }, hAsync("div", { class: "dropi-media-player__progress-track" }, hAsync("div", { class: "dropi-media-player__progress-fill", style: { width: `${this.progress}%` } }), hAsync("div", { class: "dropi-media-player__progress-thumb", style: { left: `${this.progress}%` } }))), hAsync("div", { class: "dropi-media-player__actions" }, hAsync("div", { class: "dropi-media-player__speed-control", onClick: (e) => e.stopPropagation() }, this.showSpeedMenu && (hAsync("div", { class: "dropi-media-player__speed-menu" }, this.speeds.map(s => (hAsync("button", { type: "button", class: { 'dropi-media-player__speed-option': true, 'dropi-media-player__speed-option--active': this.speed === s }, onClick: (e) => { e.stopPropagation(); this.selectSpeed(s); } }, "x", s))))), hAsync("button", { class: "dropi-media-player__btn dropi-media-player__btn--speed", onClick: (e) => { e.stopPropagation(); this.toggleSpeedMenu(); }, type: "button" }, "x", this.speed)), hAsync("button", { class: "dropi-media-player__btn", onClick: (e) => { e.stopPropagation(); this.toggleFullscreen(); }, type: "button" }, hAsync("dropi-icon", { name: this.isFullscreen ? 'Compress' : 'Expand', color: "Neutral-White",
|
|
9338
|
+
}, onClick: (e) => e.stopPropagation() }, hAsync("span", { class: "dropi-media-player__timestamp" }, this.currentTimeStr, " / ", this.durationStr), hAsync("div", { class: "dropi-media-player__progress", onClick: (e) => { e.stopPropagation(); this.handleSeek(e); } }, hAsync("div", { class: "dropi-media-player__progress-track" }, hAsync("div", { class: "dropi-media-player__progress-fill", style: { width: `${this.progress}%` } }), hAsync("div", { class: "dropi-media-player__progress-thumb", style: { left: `${this.progress}%` } }))), hAsync("div", { class: "dropi-media-player__actions" }, hAsync("div", { class: "dropi-media-player__speed-control", onClick: (e) => e.stopPropagation() }, this.showSpeedMenu && (hAsync("div", { class: "dropi-media-player__speed-menu" }, this.speeds.map(s => (hAsync("button", { type: "button", class: { 'dropi-media-player__speed-option': true, 'dropi-media-player__speed-option--active': this.speed === s }, onClick: (e) => { e.stopPropagation(); this.selectSpeed(s); } }, "x", s))))), hAsync("button", { class: "dropi-media-player__btn dropi-media-player__btn--speed", onClick: (e) => { e.stopPropagation(); this.toggleSpeedMenu(); }, type: "button" }, "x", this.speed)), hAsync("button", { class: "dropi-media-player__btn", onClick: (e) => { e.stopPropagation(); this.toggleFullscreen(); }, type: "button" }, hAsync("dropi-icon", { name: this.isFullscreen ? 'Compress' : 'Expand', color: "Neutral-White", iconWidth: "20px", iconHeight: "20px" })), hAsync("div", { class: "dropi-media-player__volume-control", onClick: (e) => e.stopPropagation() }, this.showVolumeSlider && (hAsync("div", { class: "dropi-media-player__volume-popup" }, hAsync("input", { type: "range", class: "dropi-media-player__volume-slider", min: "0", max: "1", step: "0.01", value: this.muted ? 0 : this.volume, style: { background: this.volumeGradient }, onInput: (e) => this.handleVolume(e) }))), hAsync("button", { class: "dropi-media-player__btn", onClick: (e) => { e.stopPropagation(); this.toggleVolume(); }, type: "button" }, hAsync("dropi-icon", { name: this.volumeIcon, color: "Neutral-White", iconWidth: "20px", iconHeight: "20px" })))))));
|
|
9339
9339
|
}
|
|
9340
9340
|
static get style() { return dropiMediaPlayerCss(); }
|
|
9341
9341
|
static get cmpMeta() { return {
|
|
@@ -9407,7 +9407,7 @@ class DropiModal {
|
|
|
9407
9407
|
/** Enable a before-close hook (matches Angular `enableBeforeClose`) */
|
|
9408
9408
|
enableBeforeClose = false;
|
|
9409
9409
|
/** No-op — kept for API parity with Angular (matches Angular `draggable`) */
|
|
9410
|
-
|
|
9410
|
+
isDraggable = false;
|
|
9411
9411
|
/** No-op — kept for API parity with Angular (matches Angular `resizable`) */
|
|
9412
9412
|
resizable = false;
|
|
9413
9413
|
onShow;
|
|
@@ -9494,7 +9494,7 @@ class DropiModal {
|
|
|
9494
9494
|
}
|
|
9495
9495
|
}
|
|
9496
9496
|
render() {
|
|
9497
|
-
return (hAsync("div", { key: '
|
|
9497
|
+
return (hAsync("div", { key: '1aee093f108c54540005a6cb2f48bef700f05d63', class: `modal-root modal-root--${this.position}${this.isOpen ? ' modal-root--open' : ''}${this.isClosing ? ' modal-root--closing' : ''}`, style: { display: this.mounted || this.isClosing ? 'flex' : 'none' } }, (this.modal ?? true) && hAsync("div", { key: '06ebd29da0c7dc699e7c16769476e310336ab149', class: "modal-mask", onClick: () => this.dismissable && this.hide() }), hAsync("div", { key: '87cb9bbd4c1c6c27a6a7d09f561ea781c1571803', class: `modal-panel size-${this.size || 'm'}`, role: "dialog", "aria-modal": "true" }, this.showHeader && (hAsync("div", { key: '86f22ef920b7a7437825f4c5f9ccff23b591c499', class: "modal-header" }, this.header && hAsync("span", { key: '2ae7c9b879ee6c025b6b42977bad643ff4d28370', class: "modal-title" }, this.header), hAsync("slot", { key: '85a0a54691ca191719202c8fea6b30ffff30aacc', name: "header" }), this.showCloseIcon && (hAsync("button", { key: 'dc1f570830d22535a39c9e9fbf0bccdb8e4bfcf7', class: "modal-close", onClick: () => this.hide(), "aria-label": "Cerrar" }, "\u00D7")))), hAsync("div", { key: 'ceca42f33ff7d4762c79b2d133e23bc7cedb3cb3', class: "modal-content" }, hAsync("slot", { key: '14a82735c521c45deda61e8a69ae8673ad754b3d' })), this.showFooter && hAsync("div", { key: 'e71a5393c19de696247502abd09d26a38cd1b979', class: "modal-footer" }, hAsync("slot", { key: '1364eed1b66e82d321d06d13d9d34615c7634ce0', name: "footer" })))));
|
|
9498
9498
|
}
|
|
9499
9499
|
static get watchers() { return {
|
|
9500
9500
|
"visible": [{
|
|
@@ -9526,7 +9526,7 @@ class DropiModal {
|
|
|
9526
9526
|
"baseZIndex": [2, "base-z-index"],
|
|
9527
9527
|
"transitionOptions": [1, "transition-options"],
|
|
9528
9528
|
"enableBeforeClose": [4, "enable-before-close"],
|
|
9529
|
-
"
|
|
9529
|
+
"isDraggable": [4, "is-draggable"],
|
|
9530
9530
|
"resizable": [4],
|
|
9531
9531
|
"isOpen": [32],
|
|
9532
9532
|
"isClosing": [32],
|
|
@@ -9586,9 +9586,9 @@ class DropiNavbar {
|
|
|
9586
9586
|
}
|
|
9587
9587
|
render() {
|
|
9588
9588
|
const items = this.parsedData;
|
|
9589
|
-
return (hAsync("nav", { key: '15c337396dbe445ac7a13d7e0f2d99f88b4de439', class: "navbar" }, hAsync("div", { key: '922a217dfe53f3f34dd6746033996bcd71dadfb2', class: "navbar__left" }, this.showMenuToggle && (hAsync("button", { key: 'db80ad1fd6f47807196c81ae60bf9cea8bb16e77', class: "navbar__menu-btn", onClick: () => this.dropiMenuToggle.emit(), "aria-label": "Men\u00FA" }, hAsync("dropi-icon", { key: '
|
|
9589
|
+
return (hAsync("nav", { key: '15c337396dbe445ac7a13d7e0f2d99f88b4de439', class: "navbar" }, hAsync("div", { key: '922a217dfe53f3f34dd6746033996bcd71dadfb2', class: "navbar__left" }, this.showMenuToggle && (hAsync("button", { key: 'db80ad1fd6f47807196c81ae60bf9cea8bb16e77', class: "navbar__menu-btn", onClick: () => this.dropiMenuToggle.emit(), "aria-label": "Men\u00FA" }, hAsync("dropi-icon", { key: 'eca18144260cb6471a19f78f7ce75254ba5a138e', name: "Menu", iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-700" }))), this.logoUrl && (hAsync("img", { key: '374ea8553605f289c413882c757eda70054ba71d', class: "navbar__logo", src: this.logoUrl, alt: this.logoAlt })), this.title && hAsync("span", { key: '8e2abceb591c0de10ca99d2090fea7a0da792a7b', class: "navbar__title" }, this.title)), items.length > 0 && (hAsync("ul", { key: 'fd26fc64ea3325ddc439a802ab56e69b329020dd', class: "navbar__items" }, items.map(item => (hAsync("li", null, hAsync("button", { class: { 'navbar__item': true, 'navbar__item--active': item.id === this.activeId }, onClick: () => this.clickLoadItem.emit(item), type: "button" }, item.icon && hAsync("dropi-icon", { name: item.icon, iconWidth: "16px", iconHeight: "16px", color: item.id === this.activeId ? 'Primary-Primary-500' : 'Gray-Gray-600' }), hAsync("span", null, item.name?.value || item.label), item.badge != null && String(item.badge) !== '0' && (hAsync("span", { class: "navbar__badge" }, item.badge)))))))), hAsync("div", { key: '51a6532caac773ea7236e95b0aa5ee9ee052db4a', class: "navbar__right" }, hAsync("button", { key: '309b47a8fa074e7d47632a95490c5ba0d2950745', class: "navbar__icon-btn", onClick: () => this.dropiNotificationsClick.emit(), "aria-label": "Notificaciones" }, hAsync("dropi-icon", { key: '2a970ae36fdd4e42d9fbab5d8ebb61a1d14d54c8', name: "Bell", iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-600" }), this.notifications > 0 && (hAsync("span", { key: '67412b6d3c7689f78cca15e91a1e8e3ee88152a2', class: "navbar__notif-badge" }, this.notifications > 99 ? '99+' : this.notifications))), hAsync("button", { key: '38cc70fdc1c204b06b62c54a23f4b8c76647fd6b', class: "navbar__user-btn", onClick: () => this.dropiUserClick.emit(), type: "button" }, this.userAvatar
|
|
9590
9590
|
? hAsync("img", { class: "navbar__avatar", src: this.userAvatar, alt: this.userName })
|
|
9591
|
-
: hAsync("div", { class: "navbar__avatar-placeholder" }, this.userName ? this.userName[0].toUpperCase() : '?'), this.userName && hAsync("span", { key: '
|
|
9591
|
+
: hAsync("div", { class: "navbar__avatar-placeholder" }, this.userName ? this.userName[0].toUpperCase() : '?'), this.userName && hAsync("span", { key: '1f2cfe4bddef60d31751c24c3f02cace2f07d6dd', class: "navbar__user-name" }, this.userName), hAsync("dropi-icon", { key: '520aff19c56964eefb3b1f59646c19df779c7e47', name: "Arrow-Down-2", iconWidth: "12px", iconHeight: "12px", color: "Gray-Gray-400" })))));
|
|
9592
9592
|
}
|
|
9593
9593
|
static get style() { return dropiNavbarCss(); }
|
|
9594
9594
|
static get cmpMeta() { return {
|
|
@@ -9623,6 +9623,7 @@ class DropiOtpSendCode {
|
|
|
9623
9623
|
constructor(hostRef) {
|
|
9624
9624
|
registerInstance(this, hostRef);
|
|
9625
9625
|
this.codeCompleted = createEvent(this, "codeCompleted", 7);
|
|
9626
|
+
this.codeAccepted = createEvent(this, "codeAccepted", 7);
|
|
9626
9627
|
this.dropiResend = createEvent(this, "dropiResend", 7);
|
|
9627
9628
|
}
|
|
9628
9629
|
/** Delivery method label */
|
|
@@ -9640,8 +9641,10 @@ class DropiOtpSendCode {
|
|
|
9640
9641
|
error = false;
|
|
9641
9642
|
inputs = [];
|
|
9642
9643
|
timer;
|
|
9643
|
-
/** Emitted when all 6 digits are entered.
|
|
9644
|
+
/** Emitted when all 6 digits are entered. */
|
|
9644
9645
|
codeCompleted;
|
|
9646
|
+
/** Emitted when all 6 digits are entered (alternative event). */
|
|
9647
|
+
codeAccepted;
|
|
9645
9648
|
/** Emitted when resend is requested */
|
|
9646
9649
|
dropiResend;
|
|
9647
9650
|
componentDidLoad() { this.startCountdown(); }
|
|
@@ -9669,7 +9672,9 @@ class DropiOtpSendCode {
|
|
|
9669
9672
|
if (val && index < OTP_LENGTH - 1)
|
|
9670
9673
|
this.inputs[index + 1]?.focus();
|
|
9671
9674
|
if (newDigits.every(d => d !== '')) {
|
|
9672
|
-
|
|
9675
|
+
const finalCode = newDigits.join('');
|
|
9676
|
+
this.codeCompleted.emit(finalCode);
|
|
9677
|
+
this.codeAccepted.emit(finalCode);
|
|
9673
9678
|
}
|
|
9674
9679
|
}
|
|
9675
9680
|
handleKeyDown(e, index) {
|
|
@@ -9685,19 +9690,22 @@ class DropiOtpSendCode {
|
|
|
9685
9690
|
this.digits = newDigits;
|
|
9686
9691
|
this.digitStates = newDigits.map(d => d ? 'filled' : 'idle');
|
|
9687
9692
|
this.inputs[Math.min(text.length, OTP_LENGTH - 1)]?.focus();
|
|
9688
|
-
if (newDigits.every(d => d !== ''))
|
|
9689
|
-
|
|
9693
|
+
if (newDigits.every(d => d !== '')) {
|
|
9694
|
+
const finalCode = newDigits.join('');
|
|
9695
|
+
this.codeCompleted.emit(finalCode);
|
|
9696
|
+
this.codeAccepted.emit(finalCode);
|
|
9697
|
+
}
|
|
9690
9698
|
}
|
|
9691
9699
|
render() {
|
|
9692
9700
|
const engineLabel = this.engine === 'sms' ? 'SMS' : this.engine === '2fa' ? 'autenticador' : 'correo';
|
|
9693
|
-
return (hAsync("div", { key: '
|
|
9701
|
+
return (hAsync("div", { key: '8071fefc81136d40bbbb9e899e93cf482e824ccd', class: "otp" }, this.showLabelContact && (hAsync("p", { key: '811bc73073e180fe9094e99596c222870ed6c01f', class: "otp__label" }, "Ingresa el c\u00F3digo enviado a tu ", engineLabel, this.labelContact && hAsync("strong", { key: '3fe866ea995638f1b003330ee70c9f21e4c700a0' }, " ", this.labelContact))), hAsync("div", { key: '17701568ff66f89f89fce0f10fdda45840fffd5f', class: "otp__inputs", onPaste: (e) => this.handlePaste(e) }, Array.from({ length: OTP_LENGTH }, (_, i) => (hAsync("input", { key: i, ref: (el) => {
|
|
9694
9702
|
if (el)
|
|
9695
9703
|
this.inputs[i] = el;
|
|
9696
9704
|
}, class: {
|
|
9697
9705
|
'otp__digit': true,
|
|
9698
9706
|
'otp__digit--filled': (this.digitStates ?? [])[i] === 'filled',
|
|
9699
9707
|
'otp__digit--error': this.error,
|
|
9700
|
-
}, type: "text", inputMode: "numeric", maxLength: 1, value: (this.digits ?? [])[i] ?? '', onInput: (e) => this.handleInput(e, i), onKeyDown: (e) => this.handleKeyDown(e, i) })))), this.error && this.errorMessage && (hAsync("p", { key: '
|
|
9708
|
+
}, type: "text", inputMode: "numeric", maxLength: 1, value: (this.digits ?? [])[i] ?? '', onInput: (e) => this.handleInput(e, i), onKeyDown: (e) => this.handleKeyDown(e, i) })))), this.error && this.errorMessage && (hAsync("p", { key: 'ab3021f6227105d3bb2a244e4b9b08c8dca51dec', class: "otp__error" }, this.errorMessage)), hAsync("div", { key: '6915de3762c811ad365336e8dc2b129c20abe3a6', class: "otp__resend" }, this.canResend ? (hAsync("button", { class: "otp__resend-btn", onClick: () => { this.startCountdown(); this.dropiResend.emit(); } }, "Reenviar c\u00F3digo")) : (hAsync("span", { class: "otp__countdown" }, "Reenviar en ", this.countdown, "s")))));
|
|
9701
9709
|
}
|
|
9702
9710
|
static get style() { return dropiOtpSendCodeCss(); }
|
|
9703
9711
|
static get cmpMeta() { return {
|
|
@@ -9781,9 +9789,9 @@ class DropiPaginator {
|
|
|
9781
9789
|
const pages = this.pageNumbers;
|
|
9782
9790
|
const isFirst = this.currentPage <= 1;
|
|
9783
9791
|
const isLast = this.currentPage >= this.totalPages;
|
|
9784
|
-
return (hAsync("div", { key: 'b601f88e4f971f885835d81fe876303fe97027c7', class: "paginator" }, hAsync("div", { key: '988ffb7ed122d4a666af4525bc85159d8d36538a', class: "paginator-pages" }, !isFirst && !this.noLabels && (hAsync("button", { key: '920a1a407782bde436fb6560caeb39848e9c7e28', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(1), "aria-label": "Primera p\u00E1gina", disabled: this.disabled }, hAsync("dropi-icon", { key: '
|
|
9792
|
+
return (hAsync("div", { key: 'b601f88e4f971f885835d81fe876303fe97027c7', class: "paginator" }, hAsync("div", { key: '988ffb7ed122d4a666af4525bc85159d8d36538a', class: "paginator-pages" }, !isFirst && !this.noLabels && (hAsync("button", { key: '920a1a407782bde436fb6560caeb39848e9c7e28', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(1), "aria-label": "Primera p\u00E1gina", disabled: this.disabled }, hAsync("dropi-icon", { key: '249d4f2fc0a7ba2d790e3cf1c7a36a8d853a8cfe', name: "Arrow-double-small-left", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-600" }))), !isFirst && (hAsync("button", { key: '7b3cbe1cbd33db77fe540b5e179ed759e2d515e9', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(this.currentPage - 1), "aria-label": "Anterior", disabled: this.disabled }, hAsync("dropi-icon", { key: '4f162e4df1573f5b6df40477099c3dc50347b738', name: "Dropdown-left", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-600" }), !this.noLabels && hAsync("span", { key: 'a569b225a577e3dfb41466247be33846254ba1f6', class: "paginator-label" }, "Anterior"))), pages.map((p, i) => p === '...'
|
|
9785
9793
|
? hAsync("span", { class: "paginator-ellipsis", key: `e${i}` }, "\u2026")
|
|
9786
|
-
: hAsync("button", { key: p, class: { 'paginator-btn': true, 'paginator-btn--active': p === this.currentPage }, onClick: () => this.goTo(p), "aria-current": p === this.currentPage ? 'page' : undefined, disabled: this.disabled }, p)), !isLast && (hAsync("button", { key: '
|
|
9794
|
+
: hAsync("button", { key: p, class: { 'paginator-btn': true, 'paginator-btn--active': p === this.currentPage }, onClick: () => this.goTo(p), "aria-current": p === this.currentPage ? 'page' : undefined, disabled: this.disabled }, p)), !isLast && (hAsync("button", { key: 'ad51ec2f21741cf89e0e692cca2057c8cacea9f3', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(this.currentPage + 1), "aria-label": "Siguiente", disabled: this.disabled }, !this.noLabels && hAsync("span", { key: '3eb463a7749ef9f419613c07975a87073df29ecf', class: "paginator-label" }, "Siguiente"), hAsync("dropi-icon", { key: 'a6ece1855840a3ada48de22151bab4a43fd1972e', name: "Dropdown-Right", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-600" }))), !isLast && !this.noLabels && (hAsync("button", { key: '4ac9168aba1221ad17a08f7463cc2f065ea1ce6f', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(this.totalPages), "aria-label": "\u00DAltima p\u00E1gina", disabled: this.disabled }, hAsync("dropi-icon", { key: '9e3618334ec1d476ea59ea00a600499f47a45a9a', name: "Arrow-double-small-right", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-600" }))))));
|
|
9787
9795
|
}
|
|
9788
9796
|
static get style() { return dropiPaginatorCss(); }
|
|
9789
9797
|
static get cmpMeta() { return {
|
|
@@ -9987,7 +9995,7 @@ class DropiPhoneInput {
|
|
|
9987
9995
|
return (hAsync("div", { key: 'e4a9468971ff90e3e1c2cf6944a8475451843428', class: "phone-wrap" }, hAsync("div", { key: 'dabdccaf0453e98afb3db78ee6b6f83a66615baa', class: "phone-input-container" }, hAsync("div", { key: '6481136b782da271fe47c19cfd359398bf632f35', class: "custom-select" }, hAsync("button", { key: 'd314c0e2c74724eff20eae8f34241caf1fc2448c', type: "button", class: { 'select-button': true, 'select-invalid': isInvalid }, disabled: this.disabledInput, onClick: () => {
|
|
9988
9996
|
if (!this.disabledInput)
|
|
9989
9997
|
this.open = !this.open;
|
|
9990
|
-
} }, hAsync("span", { key: 'c8b2aa7801a5c633c70010e7eeb2d5d9f3fb6b37', style: { display: 'flex', gap: '0.5rem', alignItems: 'center' } }, hAsync("img", { key: 'c2a6583a02b029cee578b9c931f185f7d4102e3f', src: `https://flagsapi.com/${country.flag}/flat/24.png`, alt: "flag" }), country.code), hAsync("dropi-icon", { key: '
|
|
9998
|
+
} }, hAsync("span", { key: 'c8b2aa7801a5c633c70010e7eeb2d5d9f3fb6b37', style: { display: 'flex', gap: '0.5rem', alignItems: 'center' } }, hAsync("img", { key: 'c2a6583a02b029cee578b9c931f185f7d4102e3f', src: `https://flagsapi.com/${country.flag}/flat/24.png`, alt: "flag" }), country.code), hAsync("dropi-icon", { key: '26e6e575c9072c008060560f03fcaba942ae5157', name: this.open ? 'Dropdown-up' : 'Dropdown-down', iconWidth: "14px", iconHeight: "14px", color: "Gray-Gray-500" })), hAsync("ul", { key: 'ad2d7688f2de26aa1c8ac080819203c7f5839764', class: { 'select-dropdown': true, 'expanded-select': this.open, 'collapsed-select': !this.open } }, COUNTRIES.map(option => (hAsync("li", null, hAsync("button", { type: "button", class: "option", onMouseDown: (e) => { e.preventDefault(); this.selectCountry(option); } }, hAsync("img", { src: `https://flagsapi.com/${option.flag}/flat/24.png`, alt: option.flag }), option.code)))))), hAsync("input", { key: '399968a68860688b9e91084dc5530aa5464ef5f1', id: "phone-input", type: "tel", inputmode: "numeric", class: { 'form-control': true, 'is-invalid': isInvalid }, placeholder: this.phoneNumberPlaceholder, value: this.ngModelPhone, disabled: this.disabledInput, maxLength: country.maxLength, onInput: (e) => this.handleInput(e) }))));
|
|
9991
9999
|
}
|
|
9992
10000
|
static get watchers() { return {
|
|
9993
10001
|
"codArea": [{
|
|
@@ -10121,10 +10129,10 @@ class DropiRadioSelectionList {
|
|
|
10121
10129
|
return this.parsedOptions.filter(o => o.name?.toLowerCase().includes(q));
|
|
10122
10130
|
}
|
|
10123
10131
|
render() {
|
|
10124
|
-
return (hAsync("div", { key: '7fdbf3d20a030a78ab4f48e7dba8333a34b1017b', class: "rsl" }, this.showFilter && (hAsync("div", { key: '12e2abb8f8ed76c6b3231f28b63c842ba3c3c326', class: "rsl__search" }, hAsync("dropi-icon", { key: '
|
|
10132
|
+
return (hAsync("div", { key: '7fdbf3d20a030a78ab4f48e7dba8333a34b1017b', class: "rsl" }, this.showFilter && (hAsync("div", { key: '12e2abb8f8ed76c6b3231f28b63c842ba3c3c326', class: "rsl__search" }, hAsync("dropi-icon", { key: '0d3e759696ceefdc997fadec75cc73f281caafd0', name: "Search", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-400" }), hAsync("input", { key: 'd5605975ebfda35d7abb0e69fe0a2baa929faddb', class: "rsl__search-input", type: "text", placeholder: this.filterPlaceholder, value: this.filterText, onInput: (e) => {
|
|
10125
10133
|
this.filterText = e.target.value;
|
|
10126
10134
|
this.onSearch.emit({ searchValue: this.filterText, filteredOptions: this.filtered });
|
|
10127
|
-
} }))), hAsync("div", { key: '
|
|
10135
|
+
} }))), hAsync("div", { key: '25dae74884621ce4f27f214de94c9ddb0fa1799f', class: "rsl__list" }, this.filtered.map(opt => {
|
|
10128
10136
|
const isSelected = opt.id === this.selectedOption;
|
|
10129
10137
|
return (hAsync("div", { class: { 'rsl__item': true, 'rsl__item--selected': isSelected }, key: opt.id, onClick: () => { this.selectedOption = opt.id; this.valueChange.emit(opt.id); } }, hAsync("div", { class: { 'rsl__radio': true, 'rsl__radio--checked': isSelected } }, isSelected && hAsync("div", { class: "rsl__radio-dot" })), hAsync("div", { class: "rsl__content" }, hAsync("span", { class: "rsl__name" }, opt.name), (isSelected || this.alwaysShowDescription) && opt.description && (hAsync("span", { class: "rsl__desc" }, opt.description)))));
|
|
10130
10138
|
}))));
|
|
@@ -10320,10 +10328,10 @@ class DropiSearch {
|
|
|
10320
10328
|
}
|
|
10321
10329
|
render() {
|
|
10322
10330
|
const showDropdown = this.open && this.parsedOptions.length > 0;
|
|
10323
|
-
return (hAsync("div", { key: 'ec00c8851a1d2d4ddda50edea458589a62d9451a', class: "search-wrap" }, this.label && hAsync("label", { key: '31cadba1b21276ec43f3623676fe1a7f9bac4da2', class: "search-label" }, this.label), hAsync("div", { key: 'bf68dbb7cfa657e8a7e441a2fe47db0e7d214e44', class: `search-input-row search-input-row--${this.type}` }, this.showIcon && hAsync("dropi-icon", { key: '
|
|
10331
|
+
return (hAsync("div", { key: 'ec00c8851a1d2d4ddda50edea458589a62d9451a', class: "search-wrap" }, this.label && hAsync("label", { key: '31cadba1b21276ec43f3623676fe1a7f9bac4da2', class: "search-label" }, this.label), hAsync("div", { key: 'bf68dbb7cfa657e8a7e441a2fe47db0e7d214e44', class: `search-input-row search-input-row--${this.type}` }, this.showIcon && hAsync("dropi-icon", { key: '21239271d90ba7adcc64e3f7ecb9b836619bd11e', class: "search-icon", name: "Search", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-400" }), hAsync("input", { key: '64735f2618f993cbca379e72b3c87435158b4f0c', class: "search-input", type: this.typeInput, placeholder: this.placeholder, value: this.textInput, maxLength: this.maxLength, onInput: (e) => this.handleInput(e), onKeyDown: (e) => this.handleKeyDown(e), onFocus: () => {
|
|
10324
10332
|
if (this.parsedOptions.length)
|
|
10325
10333
|
this.open = true;
|
|
10326
|
-
}, onBlur: () => { setTimeout(() => this.open = false, 150); this.onBlur.emit(); } }), this.showClear && this.textInput && (hAsync("button", { key: '
|
|
10334
|
+
}, onBlur: () => { setTimeout(() => this.open = false, 150); this.onBlur.emit(); } }), this.showClear && this.textInput && (hAsync("button", { key: 'c6a1dab911f262e0b2da88e59cdbaf6b4c1c74a9', class: "search-clear", onClick: () => this.handleClear(), "aria-label": "Limpiar" }, hAsync("dropi-icon", { key: 'ddf404e0be3d95f1154ecd22dd9b9f7a06e3c187', name: "Close-small", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-400" })))), showDropdown && (hAsync("div", { key: 'a8c5ecbfe700bcb116119f172c3cb017b9693113', class: `search-dropdown search-dropdown--${this.position}`, style: { '--dropdown-height': `${this.heightOverlay}px` } }, this.filtered.length === 0 ? (hAsync("div", { class: "search-no-results" }, "Sin resultados")) : (this.filtered.map((opt, i) => (hAsync("div", { class: { 'search-option': true, 'search-option--selected': this.isSelected(opt) }, key: i, onMouseDown: (e) => { e.preventDefault(); this.selectOption(opt); } }, this.multipleSelectModel && hAsync("dropi-checkbox", { checked: this.isSelected(opt) }), hAsync("span", { class: "search-option__label" }, opt[this.dataName])))))))));
|
|
10327
10335
|
}
|
|
10328
10336
|
static get watchers() { return {
|
|
10329
10337
|
"dataToSearch": [{
|
|
@@ -10698,7 +10706,7 @@ class DropiSelect {
|
|
|
10698
10706
|
}, disabled: this.disabled, ref: el => (this.buttonRef = el), onClick: () => this.toggleDropdown() }, hAsync("div", { class: {
|
|
10699
10707
|
'button-content': true,
|
|
10700
10708
|
'option-radio': this.radioOptions && !!this._selectedOption && !this.multiSelect,
|
|
10701
|
-
} }, this.preIcon && (hAsync("dropi-icon", { name: this.preIcon,
|
|
10709
|
+
} }, this.preIcon && (hAsync("dropi-icon", { name: this.preIcon, iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-500" })), this.radioOptions && this._selectedOption && !this.multiSelect && [
|
|
10702
10710
|
this._selectedOption.imageUrl && !this._selectedOption.isFallback
|
|
10703
10711
|
? hAsync("img", { class: "option-image small-image", src: this._selectedOption.imageUrl, alt: "", onError: () => {
|
|
10704
10712
|
if (this._selectedOption)
|
|
@@ -10708,7 +10716,7 @@ class DropiSelect {
|
|
|
10708
10716
|
? hAsync("span", { class: "option-image-fallback small-image" }, this._selectedOption.label.charAt(0).toUpperCase())
|
|
10709
10717
|
: null,
|
|
10710
10718
|
hAsync("div", { class: "labels-container elipsis" }, hAsync("span", null, this._selectedOption.label), this._selectedOption.secondLabel && hAsync("span", { class: "option-second-label" }, this._selectedOption.secondLabel)),
|
|
10711
|
-
], !(this.radioOptions && this._selectedOption && !this.multiSelect) && (hAsync("div", { class: "elipsis" }, this.triggerLabel))), hAsync("dropi-icon", { name: this.isOpen ? 'Dropdown-up' : 'Dropdown-down',
|
|
10719
|
+
], !(this.radioOptions && this._selectedOption && !this.multiSelect) && (hAsync("div", { class: "elipsis" }, this.triggerLabel))), hAsync("dropi-icon", { name: this.isOpen ? 'Dropdown-up' : 'Dropdown-down', iconWidth: iconSize, iconHeight: iconSize, color: iconColor })));
|
|
10712
10720
|
}
|
|
10713
10721
|
renderOption(option) {
|
|
10714
10722
|
const isSelected = this.multiSelect
|
|
@@ -10720,23 +10728,23 @@ class DropiSelect {
|
|
|
10720
10728
|
'option-with-flag': this.showCountryFlags && !!option.countryCode,
|
|
10721
10729
|
'disabled-option': !!option.disabled,
|
|
10722
10730
|
'selected-option': isSelected,
|
|
10723
|
-
}, disabled: option.disabled, onClick: () => this.selectOption(option) }, this.multiSelect && (hAsync("span", { class: { 'multi-checkbox': true, checked: isSelected } }, isSelected && (hAsync("svg", { width: "10", height: "10", viewBox: "0 0 24 24", fill: "none" }, hAsync("path", { d: "M20.6 5.7L9.1 17.2c-.2.2-.5.3-.8.3s-.6-.1-.8-.3L3 12.8c-.4-.4-.4-1 0-1.4.4-.4 1-.4 1.4 0l3.9 3.9L19.2 4.3c.4-.4 1-.4 1.4 0 .4.4.4 1 0 1.4z", fill: "white" }))))), this.radioOptions && (hAsync("div", { class: { radio: true, selected: isSelected } }, isSelected && hAsync("div", { class: "circle" }))), !this.radioOptions && option.preIcon && (hAsync("dropi-icon", { name: option.preIcon,
|
|
10731
|
+
}, disabled: option.disabled, onClick: () => this.selectOption(option) }, this.multiSelect && (hAsync("span", { class: { 'multi-checkbox': true, checked: isSelected } }, isSelected && (hAsync("svg", { width: "10", height: "10", viewBox: "0 0 24 24", fill: "none" }, hAsync("path", { d: "M20.6 5.7L9.1 17.2c-.2.2-.5.3-.8.3s-.6-.1-.8-.3L3 12.8c-.4-.4-.4-1 0-1.4.4-.4 1-.4 1.4 0l3.9 3.9L19.2 4.3c.4-.4 1-.4 1.4 0 .4.4.4 1 0 1.4z", fill: "white" }))))), this.radioOptions && (hAsync("div", { class: { radio: true, selected: isSelected } }, isSelected && hAsync("div", { class: "circle" }))), !this.radioOptions && option.preIcon && (hAsync("dropi-icon", { name: option.preIcon, iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-500" })), this.radioOptions && option.imageUrl && !option.isFallback && (hAsync("img", { class: "option-image", src: option.imageUrl, alt: "", onError: () => { option.isFallback = true; this.options = [...this.options]; } })), this.radioOptions && option.isFallback && (hAsync("span", { class: "option-image-fallback" }, option.label.charAt(0).toUpperCase())), this.showCountryFlags && option.countryCode && (hAsync("span", { class: "flag-placeholder" }, option.countryCode)), this.radioOptions
|
|
10724
10732
|
? (hAsync("div", { class: "labels-container" }, hAsync("span", { class: "elipsis" }, option.label), option.secondLabel && hAsync("span", { class: "option-second-label" }, option.secondLabel)))
|
|
10725
10733
|
: (hAsync("span", { class: "elipsis" }, this.showCountryFlags && option.shortLabel ? option.shortLabel : option.label)))));
|
|
10726
10734
|
}
|
|
10727
10735
|
renderDropdown() {
|
|
10728
10736
|
if (!this.isOpen)
|
|
10729
10737
|
return null;
|
|
10730
|
-
return (hAsync("ul", { class: `select-dropdown-overlay ${this.overlayClass}`, style: this.dropdownStyle, onScroll: (e) => this.handleScroll(e) }, this.searchEnabled && (hAsync("li", { class: "sticky-search" }, hAsync("div", { class: "search-wrapper" }, hAsync("dropi-icon", { name: "Search",
|
|
10738
|
+
return (hAsync("ul", { class: `select-dropdown-overlay ${this.overlayClass}`, style: this.dropdownStyle, onScroll: (e) => this.handleScroll(e) }, this.searchEnabled && (hAsync("li", { class: "sticky-search" }, hAsync("div", { class: "search-wrapper" }, hAsync("dropi-icon", { name: "Search", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-400" }), hAsync("input", { class: "search-input", type: "text", placeholder: this.placeHolderSearch, value: this.searchTerm, onInput: (e) => this.handleSearch(e.target.value), onKeyDown: (e) => {
|
|
10731
10739
|
if (e.key === 'Enter')
|
|
10732
10740
|
this.onKeyEnter.emit(e);
|
|
10733
|
-
} }), this.searchTerm && (hAsync("button", { type: "button", class: "search-clear", onClick: () => this.handleSearch('') }, hAsync("dropi-icon", { name: "Close",
|
|
10741
|
+
} }), this.searchTerm && (hAsync("button", { type: "button", class: "search-clear", onClick: () => this.handleSearch('') }, hAsync("dropi-icon", { name: "Close", iconWidth: "14px", iconHeight: "14px", color: "Gray-Gray-400" })))))), this.isGrouped && this.filteredOptions.map(group => [
|
|
10734
10742
|
hAsync("li", { class: "option-group-title" }, group.category),
|
|
10735
|
-
...group.options.map(opt => (hAsync("li", { key: opt.id }, hAsync("button", { type: "button", class: { option: true, 'option-group': true, 'disabled-option': !!opt.disabled }, disabled: opt.disabled, onClick: () => this.selectOption(opt) }, opt.preIcon && hAsync("dropi-icon", { name: opt.preIcon,
|
|
10743
|
+
...group.options.map(opt => (hAsync("li", { key: opt.id }, hAsync("button", { type: "button", class: { option: true, 'option-group': true, 'disabled-option': !!opt.disabled }, disabled: opt.disabled, onClick: () => this.selectOption(opt) }, opt.preIcon && hAsync("dropi-icon", { name: opt.preIcon, iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-500" }), hAsync("span", { class: "elipsis" }, opt.label))))),
|
|
10736
10744
|
]), !this.isGrouped && this.filteredOptions.map(opt => this.renderOption(opt)), this.filteredOptions.length === 0 && (hAsync("li", { class: "no-results" }, "Sin resultados"))));
|
|
10737
10745
|
}
|
|
10738
10746
|
render() {
|
|
10739
|
-
return (hAsync("div", { key: '
|
|
10747
|
+
return (hAsync("div", { key: '9f5397dca313ba676a5a038f89ded457c324ac7a', class: "custom-select" }, !this.dropdownType && this.label && (hAsync("label", { key: '5924d81286019ca01ca5eda924078e64db5ead66', class: { 'disabled-label': this.disabled } }, this.label, this.showObligatory && !this.disabled && hAsync("span", { key: '1565c47c081c8fb497185417aa46559f3754db89', class: "asterisk" }, " *"))), hAsync("div", { key: '6be308aeafb7a4a2da302db925ccc07e5eb27718', class: "dropdown-container" }, this.dropdownType && this.label && (hAsync("div", { key: 'a2ea9c5e67274181c5bc020c990281ac425b489b', class: "left-label" }, this.label)), this.renderTrigger()), this.textHelper && !this.hasError && (hAsync("div", { key: 'a13ebbf9fe6e975724b2441f5c1c71b18dacf128', class: "select-helper" }, hAsync("span", { key: '55f2369bc0a8c156454b4c29a323f98bd13321fb' }, this.textHelper))), this.hasError && this.errorText && (hAsync("div", { key: 'bc5dc3394916459576798d5f1db4126992b30d58', class: "select-helper-error" }, hAsync("dropi-icon", { key: '12bcece304d9de3cc807921ba69af29b9b763fc9', name: "Warning-circle", iconWidth: "12px", iconHeight: "12px", color: "Error-Error-500" }), hAsync("span", { key: 'c221b88fde03aa2d66ce212272ff999f2ba5a9ad' }, this.errorText))), this.renderDropdown()));
|
|
10740
10748
|
}
|
|
10741
10749
|
static get formAssociated() { return true; }
|
|
10742
10750
|
static get watchers() { return {
|
|
@@ -10851,10 +10859,10 @@ class DropiSidebar {
|
|
|
10851
10859
|
'sidebar-option': true,
|
|
10852
10860
|
'sidebar-active-option': !!item.active,
|
|
10853
10861
|
'sidebar-default-option': !item.active
|
|
10854
|
-
}, onClick: () => this.onItemClick(item) }, hAsync("dropi-icon", { name: item.icon || 'Cube',
|
|
10862
|
+
}, onClick: () => this.onItemClick(item) }, hAsync("dropi-icon", { name: item.icon || 'Cube', iconWidth: "20px", iconHeight: "20px", color: item.active ? 'Primary-Primary-500' : 'Gray-Gray-500' }), hAsync("span", null, item.text), item.subItems && item.subItems.length > 0 && (hAsync("dropi-icon", { class: {
|
|
10855
10863
|
'arrow': true,
|
|
10856
10864
|
'arrow-expanded': !!item.expandedMenu
|
|
10857
|
-
}, name: "Dropdown-down",
|
|
10865
|
+
}, name: "Dropdown-down", iconWidth: "20px", iconHeight: "20px", color: item.active ? 'Primary-Primary-500' : 'Gray-Gray-500' }))),
|
|
10858
10866
|
/* SubItems Renderizados al mismo nivel DOM que instruye Angular ng-container */
|
|
10859
10867
|
item.subItems && item.subItems.length > 0 && (item.subItems.map(subOption => (hAsync("div", { class: {
|
|
10860
10868
|
'sidebar-sub-item': true,
|
|
@@ -11067,7 +11075,7 @@ class DropiSteps {
|
|
|
11067
11075
|
const state = this.stepState(step);
|
|
11068
11076
|
const label = labels[step - 1];
|
|
11069
11077
|
const isLast = step === this.stepsCount;
|
|
11070
|
-
return (hAsync("div", { class: "stepper__step", key: step }, hAsync("div", { class: "stepper__circle-wrap" }, hAsync("div", { class: { 'stepper__circle': true, [`stepper__circle--${state}`]: true } }, state === 'completed' ? (hAsync("dropi-icon", { name: "Check",
|
|
11078
|
+
return (hAsync("div", { class: "stepper__step", key: step }, hAsync("div", { class: "stepper__circle-wrap" }, hAsync("div", { class: { 'stepper__circle': true, [`stepper__circle--${state}`]: true } }, state === 'completed' ? (hAsync("dropi-icon", { name: "Check", iconWidth: "12px", iconHeight: "12px", color: "Neutral-White" })) : (this.showNumberOfStep ? hAsync("span", null, step) : null)), !isLast && hAsync("div", { class: { 'stepper__line': true, 'stepper__line--done': state === 'completed' } })), label && (hAsync("div", { class: "stepper__label" }, label.title && hAsync("span", { class: "stepper__title" }, label.title), label.description && hAsync("span", { class: "stepper__desc" }, label.description)))));
|
|
11071
11079
|
})));
|
|
11072
11080
|
}
|
|
11073
11081
|
static get style() { return dropiStepsCss(); }
|
|
@@ -11162,7 +11170,7 @@ class DropiTable {
|
|
|
11162
11170
|
/** Empty state message */
|
|
11163
11171
|
emptyMessage = 'No hay datos disponibles';
|
|
11164
11172
|
/** Table title */
|
|
11165
|
-
|
|
11173
|
+
tableTitle = '';
|
|
11166
11174
|
/** Show search input */
|
|
11167
11175
|
showSearch = false;
|
|
11168
11176
|
/** Show column selector button */
|
|
@@ -11355,7 +11363,7 @@ class DropiTable {
|
|
|
11355
11363
|
case 'country':
|
|
11356
11364
|
return (hAsync("div", { class: "flag-container" }, value.flag && hAsync("dropi-country-flags", { width: "24", height: "24", country: value.flag, style: { display: 'inline-flex' } }), hAsync("span", null, value.value)));
|
|
11357
11365
|
case 'textIcon':
|
|
11358
|
-
return (hAsync("div", { class: "text-icon-label" }, hAsync("dropi-icon", { name: value.icon,
|
|
11366
|
+
return (hAsync("div", { class: "text-icon-label" }, hAsync("dropi-icon", { name: value.icon, iconWidth: "24px", iconHeight: "24px", color: value.iconColor || 'Gray-Gray-500' }), value.value && hAsync("span", null, value.value)));
|
|
11359
11367
|
case 'status':
|
|
11360
11368
|
return (hAsync("div", { class: "status-label" }, hAsync("div", { class: "status-dot" }, hAsync("div", { class: `dot dot-${(value.status || '').toLowerCase()}` }), hAsync("span", { class: "status-text" }, value.status)), value.value && hAsync("span", { class: "status-description" }, value.value)));
|
|
11361
11369
|
case 'image':
|
|
@@ -11376,11 +11384,11 @@ class DropiTable {
|
|
|
11376
11384
|
const allSelected = rows.length > 0 && this.selectedKeys.size === rows.length;
|
|
11377
11385
|
const hasActions = this.parsedRowActions.length > 0;
|
|
11378
11386
|
const cols = this.visibleColumns;
|
|
11379
|
-
return (hAsync("div", { class: "table-container" }, (this.showSearch || this.showColumnSelector || this.
|
|
11387
|
+
return (hAsync("div", { class: "table-container" }, (this.showSearch || this.showColumnSelector || this.tableTitle) && (hAsync("div", { class: "search-container" }, this.tableTitle && hAsync("div", { class: "table-title Body-L-Bold" }, this.tableTitle), hAsync("div", { class: `search-actions${this.showSearch ? '' : ' only-filter'}` }, this.showSearch && (hAsync("dropi-input", { placeholder: "Buscar", value: this.searchTerm, onOnInput: (e) => {
|
|
11380
11388
|
this.searchTerm = e.detail;
|
|
11381
11389
|
this.dropiSearch.emit(e.detail);
|
|
11382
11390
|
this.onSearchChange.emit(e.detail);
|
|
11383
|
-
} })), this.showColumnSelector && (hAsync("div", { class: "table-tools" }, hAsync("div", { class: "column-selector-container" }, hAsync("button", { class: "column-selector-btn", onClick: () => this.showColumnMenu = !this.showColumnMenu }, hAsync("dropi-icon", { name: "list-table",
|
|
11391
|
+
} })), this.showColumnSelector && (hAsync("div", { class: "table-tools" }, hAsync("div", { class: "column-selector-container" }, hAsync("button", { class: "column-selector-btn", onClick: () => this.showColumnMenu = !this.showColumnMenu }, hAsync("dropi-icon", { name: "list-table", iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-500" })), this.showColumnMenu && (hAsync("div", { class: "column-selector-menu" }, this.parsedColumns.map(col => (hAsync("div", { class: "column-selector-option", onClick: () => {
|
|
11384
11392
|
const next = new Set(this.hiddenColumns);
|
|
11385
11393
|
if (next.has(col.key))
|
|
11386
11394
|
next.delete(col.key);
|
|
@@ -11391,7 +11399,7 @@ class DropiTable {
|
|
|
11391
11399
|
this.hiddenColumns = this.hiddenColumns.size === 0
|
|
11392
11400
|
? new Set(this.parsedColumns.map(c => c.key))
|
|
11393
11401
|
: new Set();
|
|
11394
|
-
} }, hAsync("dropi-checkbox", { checked: this.hiddenColumns.size === 0 }), hAsync("span", null, "Mostrar / Ocultar todo"))))))))))), hAsync("div", { class: `table-wrapper${hasActions ? ' has-sticky-actions' : ''}` }, hAsync("table", { class: `custom-table${this.showCheckbox ? ' has-checkbox' : ''}` }, hAsync("thead", null, hAsync("tr", null, this.showCheckbox && (hAsync("th", { class: "checkbox-header" }, hAsync("dropi-checkbox", { checked: allSelected, onOnChange: (e) => this.toggleAll(e.detail) }))), cols.map(col => (hAsync("th", { class: { sortable: !!col.sortable, 'low-opacity': !!col.disabledColumn, 'highlight-column': !!col.highlightColumn }, style: { textAlign: col.align || 'center', minWidth: col.minWidth, maxWidth: col.maxWidth }, onClick: () => this.handleSort(col) }, hAsync("div", { class: `headers-container${col.align === 'left' ? ' align-left' : col.align === 'right' ? ' align-right' : ''}` }, hAsync("div", { class: `headers${col.align === 'left' ? ' align-left' : col.align === 'right' ? ' align-right' : ''}` }, hAsync("span", null, col.label), col.sortable && (hAsync("div", { class: "order-icons" }, hAsync("dropi-icon", { name: "Caret-up",
|
|
11402
|
+
} }, hAsync("dropi-checkbox", { checked: this.hiddenColumns.size === 0 }), hAsync("span", null, "Mostrar / Ocultar todo"))))))))))), hAsync("div", { class: `table-wrapper${hasActions ? ' has-sticky-actions' : ''}` }, hAsync("table", { class: `custom-table${this.showCheckbox ? ' has-checkbox' : ''}` }, hAsync("thead", null, hAsync("tr", null, this.showCheckbox && (hAsync("th", { class: "checkbox-header" }, hAsync("dropi-checkbox", { checked: allSelected, onOnChange: (e) => this.toggleAll(e.detail) }))), cols.map(col => (hAsync("th", { class: { sortable: !!col.sortable, 'low-opacity': !!col.disabledColumn, 'highlight-column': !!col.highlightColumn }, style: { textAlign: col.align || 'center', minWidth: col.minWidth, maxWidth: col.maxWidth }, onClick: () => this.handleSort(col) }, hAsync("div", { class: `headers-container${col.align === 'left' ? ' align-left' : col.align === 'right' ? ' align-right' : ''}` }, hAsync("div", { class: `headers${col.align === 'left' ? ' align-left' : col.align === 'right' ? ' align-right' : ''}` }, hAsync("span", null, col.label), col.sortable && (hAsync("div", { class: "order-icons" }, hAsync("dropi-icon", { name: "Caret-up", iconWidth: "12px", iconHeight: "12px", color: this.sortAsc ? 'Gray-Gray-500' : 'Gray-Gray-200' }), hAsync("dropi-icon", { name: "Caret-down", iconWidth: "12px", iconHeight: "12px", color: !this.sortAsc ? 'Gray-Gray-500' : 'Gray-Gray-200' })))))))), hasActions && hAsync("th", { class: "actions-header actions" }, "Acciones"))), hAsync("tbody", null, this.loading ? (Array.from({ length: 5 }).map(() => (hAsync("tr", { class: "table-row" }, this.showCheckbox && hAsync("td", null, hAsync("div", { class: "skeleton skeleton--sm" })), cols.map(() => hAsync("td", null, hAsync("div", { class: "skeleton" }))), hasActions && hAsync("td", null))))) : rows.length === 0 ? (hAsync("tr", null, hAsync("td", { colSpan: cols.length + (this.showCheckbox ? 1 : 0) + (hasActions ? 1 : 0) }, hAsync("div", { class: "empty-table" }, hAsync("div", { class: "empty-message-container" }, this.emptyMessage))))) : (rows.map((row, i) => (hAsync("tr", { class: "table-row", onClick: () => this.dropiRowClick.emit({ row, index: i }) }, this.showCheckbox && (hAsync("td", { onClick: (e) => e.stopPropagation() }, hAsync("dropi-checkbox", { checked: this.selectedKeys.has(i), onOnChange: () => this.toggleRow(i) }))), cols.map(col => (hAsync("td", { class: { 'low-opacity': !!col.disabledColumn, 'highlight-column': !!col.highlightColumn }, style: { minWidth: col.minWidth, maxWidth: col.maxWidth, overflow: col.maxWidth ? 'hidden' : undefined } }, hAsync("div", { class: "cell-content", style: { textAlign: col.align || 'center' } }, this.renderCellValue(row[col.key]))))), hasActions && (hAsync("td", { class: "action-button actions", onClick: (e) => e.stopPropagation() }, this.parsedRowActions.length > 3 ? (hAsync("div", { style: { display: "flex", justifyContent: "center", width: "100%" } }, hAsync("dropi-icon", { class: "action-icon", name: "Menu-dots-vertical", iconWidth: "24px", iconHeight: "24px", color: "Gray-Gray-500", onClick: () => this.openActionRow = this.openActionRow === i ? -1 : i }), this.openActionRow === i && (hAsync("div", { class: "actions-menu" }, this.parsedRowActions.map(action => (hAsync("div", { class: "action-item", onClick: () => { this.openActionRow = -1; this.dropiAction.emit({ row, action }); this.actionClicked.emit({ row, action }); } }, hAsync("dropi-icon", { name: action.icon, iconWidth: "20px", iconHeight: "20px", color: action.iconColor || 'Gray-Gray-500' }), action.label))))))) : (hAsync("div", { class: "short-actions" }, this.parsedRowActions.map(action => (hAsync("dropi-icon", { class: "action-icon", name: action.icon, iconWidth: "24px", iconHeight: "24px", color: action.iconColor || 'Gray-Gray-500', onClick: () => { this.dropiAction.emit({ row, action }); this.actionClicked.emit({ row, action }); } })))))))))))))), this.showPaginator && (hAsync("div", { class: "pagination" }, hAsync("div", { class: "page-size-selector" }, hAsync("label", null, "Mostrar"), hAsync("select", { onChange: (e) => {
|
|
11395
11403
|
this.pageSize = Number(e.target.value);
|
|
11396
11404
|
this.currentPage = 1;
|
|
11397
11405
|
this.dropiPageSizeChange.emit(this.pageSize);
|
|
@@ -11432,7 +11440,7 @@ class DropiTable {
|
|
|
11432
11440
|
"showCheckbox": [4, "show-checkbox"],
|
|
11433
11441
|
"loading": [4],
|
|
11434
11442
|
"emptyMessage": [1, "empty-message"],
|
|
11435
|
-
"
|
|
11443
|
+
"tableTitle": [1, "table-title"],
|
|
11436
11444
|
"showSearch": [4, "show-search"],
|
|
11437
11445
|
"showColumnSelector": [4, "show-column-selector"],
|
|
11438
11446
|
"showPaginator": [4, "show-paginator"],
|
|
@@ -11512,7 +11520,7 @@ class DropiTabs {
|
|
|
11512
11520
|
return (hAsync("div", { key: '337040015b29581ebb15ac347bb62220ed0a2d4d', class: "tabs-container", role: "tablist" }, this.parsedTabs.map(tab => {
|
|
11513
11521
|
const isActive = tab.id === this.activeTab;
|
|
11514
11522
|
return (hAsync("div", { role: "tab", "aria-selected": String(isActive), class: { 'tab-item': true, 'tab-item--active': isActive && !tab.disabled, 'tab-item--disabled': !!tab.disabled }, onClick: () => this.handleClick(tab) }, hAsync("span", { class: "tab-label-row" }, hAsync("span", { class: "tab-label" }, tab.label), tab.counter !== undefined && tab.counter !== null && (hAsync("span", { class: { 'tab-counter': true, 'tab-counter--active': isActive } }, tab.counter))), this.showIcon && (tab.completed
|
|
11515
|
-
? hAsync("dropi-icon", { name: "Check-circle",
|
|
11523
|
+
? hAsync("dropi-icon", { name: "Check-circle", iconWidth: "12px", iconHeight: "12px", color: "Success-Success-500" })
|
|
11516
11524
|
: hAsync("span", { class: "tab-status-dot" }))));
|
|
11517
11525
|
})));
|
|
11518
11526
|
}
|
|
@@ -11592,7 +11600,7 @@ class DropiTag {
|
|
|
11592
11600
|
return typeof this.text === 'string' && this.text.trim().length > 0;
|
|
11593
11601
|
}
|
|
11594
11602
|
render() {
|
|
11595
|
-
return (hAsync("div", { key: '1736efc48b3ccaf5f3ca85ad29622f42b4fb3c8d', class: "container-chips" }, hAsync("div", { key: '96c2b0e9d22881ca71c58488dcd622a1eef1a120', class: { tags: true, 'icon-only': this.showIcon && !this.hasContent }, style: { backgroundColor: this.bgColor, color: this.textColor } }, this.showIcon && this.icon && (hAsync("dropi-icon", { key: '
|
|
11603
|
+
return (hAsync("div", { key: '1736efc48b3ccaf5f3ca85ad29622f42b4fb3c8d', class: "container-chips" }, hAsync("div", { key: '96c2b0e9d22881ca71c58488dcd622a1eef1a120', class: { tags: true, 'icon-only': this.showIcon && !this.hasContent }, style: { backgroundColor: this.bgColor, color: this.textColor } }, this.showIcon && this.icon && (hAsync("dropi-icon", { key: '4c94cf3fcabd31b6b50fc711815472f8b12e43d9', class: "file-icon", name: this.icon, iconWidth: "16px", iconHeight: "16px", color: this.iconColor })), this.hasContent && hAsync("span", { key: '26f06b85d085e58aa854533a9fd238e70957212b' }, this.text))));
|
|
11596
11604
|
}
|
|
11597
11605
|
static get watchers() { return {
|
|
11598
11606
|
"type": [{
|
|
@@ -11767,7 +11775,7 @@ class DropiTextArea {
|
|
|
11767
11775
|
'Body-M-Regular': true,
|
|
11768
11776
|
'form-control-valid': !this.isInvalid && this.touched && !!this.value,
|
|
11769
11777
|
'form-control-invalid': this.isInvalid,
|
|
11770
|
-
}, rows: this.rows, placeholder: this.placeholder, maxLength: this.maxLength, minLength: this.minLength, disabled: this.disabled, required: this.required, style: { resize: this.resize }, onInput: (e) => this.handleInput(e), onFocus: () => this.dropiFocus.emit(), onBlur: () => this.handleBlur() }, this.value), this.maxLength > 0 && (hAsync("div", { key: 'e3271eeea7e85a64454c344986e36c85197f3782', class: "char-counter" }, this.charCount, "/", this.maxLength))), showHelper && (hAsync("div", { key: 'c4b83072b96e56b45b6afc8209f4d124cb6d6bf3', class: "form-control-helper" }, this.isInvalid && (hAsync("dropi-icon", { key: '
|
|
11778
|
+
}, rows: this.rows, placeholder: this.placeholder, maxLength: this.maxLength, minLength: this.minLength, disabled: this.disabled, required: this.required, style: { resize: this.resize }, onInput: (e) => this.handleInput(e), onFocus: () => this.dropiFocus.emit(), onBlur: () => this.handleBlur() }, this.value), this.maxLength > 0 && (hAsync("div", { key: 'e3271eeea7e85a64454c344986e36c85197f3782', class: "char-counter" }, this.charCount, "/", this.maxLength))), showHelper && (hAsync("div", { key: 'c4b83072b96e56b45b6afc8209f4d124cb6d6bf3', class: "form-control-helper" }, this.isInvalid && (hAsync("dropi-icon", { key: '07a2884a516118f3169a0427701a2271d24f2bcc', name: "Warning-circle", iconWidth: "12px", iconHeight: "12px", color: "Error-Error-500" })), hAsync("span", { key: 'a518a81fdba8df18083ef92a1dbc9936d3fcc17d', class: { 'invalid-color': this.isInvalid }, style: { color: this.disabled ? 'var(--Gray-Gray-400)' : undefined } }, this.textHelper)))));
|
|
11771
11779
|
}
|
|
11772
11780
|
static get formAssociated() { return true; }
|
|
11773
11781
|
static get watchers() { return {
|
|
@@ -11833,7 +11841,7 @@ class DropiTimeLine {
|
|
|
11833
11841
|
const steps = this.parsedSteps;
|
|
11834
11842
|
return (hAsync("div", { key: '0b43d3e673cda6f31476abcbc55ef2b6b9dbd7ac', class: "timeline" }, steps.map((step, i) => {
|
|
11835
11843
|
const isLast = i === steps.length - 1;
|
|
11836
|
-
return (hAsync("div", { class: { 'tl-step': true, [`tl-step--${step.status}`]: true }, key: step.id || i }, hAsync("div", { class: "tl-step__marker" }, hAsync("div", { class: "tl-step__icon" }, step.icon ? (hAsync("dropi-icon", { name: step.icon,
|
|
11844
|
+
return (hAsync("div", { class: { 'tl-step': true, [`tl-step--${step.status}`]: true }, key: step.id || i }, hAsync("div", { class: "tl-step__marker" }, hAsync("div", { class: "tl-step__icon" }, step.icon ? (hAsync("dropi-icon", { name: step.icon, iconWidth: "16px", iconHeight: "16px", color: step.status === 'done' ? 'Neutral-White' : step.status === 'active' ? 'Primary-Primary-500' : 'Gray-Gray-400' })) : (hAsync("span", { class: "tl-step__dot" }))), !isLast && hAsync("div", { class: "tl-step__line" })), hAsync("div", { class: "tl-step__content" }, hAsync("span", { class: "tl-step__label" }, step.label), step.subtitle && hAsync("span", { class: "tl-step__subtitle" }, step.subtitle))));
|
|
11837
11845
|
})));
|
|
11838
11846
|
}
|
|
11839
11847
|
static get style() { return dropiTimeLineCss(); }
|
|
@@ -11903,7 +11911,7 @@ class DropiToast {
|
|
|
11903
11911
|
return `<lottie-player src="${this.lottieMap[severity]}" background="transparent" speed="1" loop autoplay></lottie-player>`;
|
|
11904
11912
|
}
|
|
11905
11913
|
render() {
|
|
11906
|
-
return (hAsync("div", { key: '0ad8903921fd1bd773d206029bcc4e12e8b21349', class: `toast-container toast-container--${this.position}` }, (this.items ?? []).map(item => (hAsync("div", { key: item.msg.id, class: { 'toast-wrapper': true, 'toast-wrapper--leaving': item.leaving } }, hAsync("div", { class: `toast toast--${item.msg.severity}` }, hAsync("div", { class: "toast-content" }, hAsync("div", { class: "lottie-img" }, hAsync("div", { class: "lottie-player-container", innerHTML: this.getLottieHtml(item.msg.severity) })), hAsync("div", { class: "info-container" }, hAsync("p", { class: "title" }, item.msg.summary), item.msg.detail && hAsync("p", { class: "description" }, item.msg.detail))), item.msg.closable && (hAsync("button", { class: "toast-close", onClick: () => this.remove(item.msg.id) }, hAsync("dropi-icon", { name: "Close-small",
|
|
11914
|
+
return (hAsync("div", { key: '0ad8903921fd1bd773d206029bcc4e12e8b21349', class: `toast-container toast-container--${this.position}` }, (this.items ?? []).map(item => (hAsync("div", { key: item.msg.id, class: { 'toast-wrapper': true, 'toast-wrapper--leaving': item.leaving } }, hAsync("div", { class: `toast toast--${item.msg.severity}` }, hAsync("div", { class: "toast-content" }, hAsync("div", { class: "lottie-img" }, hAsync("div", { class: "lottie-player-container", innerHTML: this.getLottieHtml(item.msg.severity) })), hAsync("div", { class: "info-container" }, hAsync("p", { class: "title" }, item.msg.summary), item.msg.detail && hAsync("p", { class: "description" }, item.msg.detail))), item.msg.closable && (hAsync("button", { class: "toast-close", onClick: () => this.remove(item.msg.id) }, hAsync("dropi-icon", { name: "Close-small", iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-400" })))))))));
|
|
11907
11915
|
}
|
|
11908
11916
|
static get style() { return dropiToastCss(); }
|
|
11909
11917
|
static get cmpMeta() { return {
|
|
@@ -12078,12 +12086,12 @@ class DropiTooltipV2 {
|
|
|
12078
12086
|
const bubbleStyle = { maxWidth: this.maxWidth };
|
|
12079
12087
|
if (this.minWidth)
|
|
12080
12088
|
bubbleStyle.minWidth = this.minWidth;
|
|
12081
|
-
return (hAsync("div", { key: '85f49bcb2af567a8fb70cd92afab893a2e0bf567', class: "tooltip-wrapper", onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onClick: this.handleClick, onFocusin: this.handleFocusin, onFocusout: this.handleFocusout }, this.showIcon && (hAsync("dropi-icon", { key: '
|
|
12089
|
+
return (hAsync("div", { key: '85f49bcb2af567a8fb70cd92afab893a2e0bf567', class: "tooltip-wrapper", onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onClick: this.handleClick, onFocusin: this.handleFocusin, onFocusout: this.handleFocusout }, this.showIcon && (hAsync("dropi-icon", { key: '0ec2770a45d95e2dc655886d086f7f44c12fdda5', name: this.iconName, iconWidth: `${this.iconSize}px`, iconHeight: `${this.iconSize}px`, color: this.iconColor })), hAsync("slot", { key: 'caeff259dfaecdd7757d85bee3e93b15d8b53173' }), this.displayContent && (hAsync("div", { key: 'e1be3f25c37b978b79db639a245d1030e9de2d59', class: {
|
|
12082
12090
|
'tooltip-bubble': true,
|
|
12083
12091
|
[`tooltip-bubble--${this.position}`]: true,
|
|
12084
12092
|
[`tooltip-bubble--arrow-${this.arrowPosition}`]: true,
|
|
12085
12093
|
'tooltip-bubble--visible': this.visible,
|
|
12086
|
-
}, style: bubbleStyle, role: "tooltip" }, this.showX && (hAsync("button", { key: '
|
|
12094
|
+
}, style: bubbleStyle, role: "tooltip" }, this.showX && (hAsync("button", { key: 'ba9f719b7066bb953a45b60f03fce20383c2eac5', class: "tooltip-close", onClick: this.handleClose, "aria-label": "Cerrar" }, hAsync("dropi-icon", { key: '8660e8130e643393c9cd70846247ccae8e3ebf24', name: "Close-small", iconWidth: "12px", iconHeight: "12px", color: "Gray-Gray-500" }))), this.title && !this.text && hAsync("strong", { key: '2d2a39d2d2a3993b62901497660a31193bcece12', class: "tooltip-title" }, this.title), this.label && !this.text && hAsync("span", { key: 'b34e2e997629c5700b64a6ae527b71c44e8939f4', class: "tooltip-label" }, this.label), this.text && hAsync("span", { key: '4cd22e60cce211b96cf8441a33dcd7afe5b88e40' }, this.text), hAsync("span", { key: 'deb83c9f7c1a9cfbb3f68ec087cae81d0f64a56b', class: `tooltip-arrow tooltip-arrow--${this.position}` })))));
|
|
12087
12095
|
}
|
|
12088
12096
|
static get style() { return dropiTooltipCss(); }
|
|
12089
12097
|
static get cmpMeta() { return {
|
|
@@ -12161,7 +12169,7 @@ class DropiVerticalSteps {
|
|
|
12161
12169
|
const state = this.resolveState(i, step);
|
|
12162
12170
|
const isLast = i === steps.length - 1;
|
|
12163
12171
|
const isClickable = this.clickable && state === 'completed';
|
|
12164
|
-
return (hAsync("div", { class: { 'v-step': true, 'v-step--clickable': isClickable }, key: i, onClick: () => isClickable && this.stepClick.emit(i + 1) }, hAsync("div", { class: "v-step__indicator" }, hAsync("div", { class: { 'v-step__circle': true, [`v-step__circle--${state}`]: true } }, state === 'completed' && this.showCheckIcon ? (hAsync("dropi-icon", { name: "Check",
|
|
12172
|
+
return (hAsync("div", { class: { 'v-step': true, 'v-step--clickable': isClickable }, key: i, onClick: () => isClickable && this.stepClick.emit(i + 1) }, hAsync("div", { class: "v-step__indicator" }, hAsync("div", { class: { 'v-step__circle': true, [`v-step__circle--${state}`]: true } }, state === 'completed' && this.showCheckIcon ? (hAsync("dropi-icon", { name: "Check", iconWidth: "12px", iconHeight: "12px", color: "Neutral-White" })) : (hAsync("span", { class: "v-step__number" }, i + 1))), !isLast && hAsync("div", { class: { 'v-step__line': true, 'v-step__line--done': state === 'completed' } })), hAsync("span", { class: { 'v-step__label': true, [`v-step__label--${state}`]: true } }, step.label)));
|
|
12165
12173
|
})));
|
|
12166
12174
|
}
|
|
12167
12175
|
static get style() { return dropiVerticalStepsCss(); }
|
|
@@ -12210,7 +12218,7 @@ class DropiYoutubeLazyVideo {
|
|
|
12210
12218
|
return `https://www.youtube.com/embed/${this.videoId}?autoplay=1&rel=0&modestbranding=1`;
|
|
12211
12219
|
}
|
|
12212
12220
|
render() {
|
|
12213
|
-
return (hAsync("div", { key: '0732bc87e7be10e422e80751a17527132301eb99', class: `video-wrapper${this.isPlaying ? ' playing' : ''}` }, !this.isPlaying && (hAsync("div", { key: '540c46b66da3f67ec45614e0891827b7cc0be4e5', class: "thumbnail", onClick: () => { this.isPlaying = true; } }, hAsync("img", { key: '843241c72688ca88ccd5d9391b542501575ea476', src: this.thumbnail, alt: `Video thumbnail ${this.videoId}` }), hAsync("button", { key: 'b068f79fb6b2140e1419e9d72a24f6e66eaab69d', class: "play-button", "aria-label": "Reproducir video" }, hAsync("dropi-icon", { key: '
|
|
12221
|
+
return (hAsync("div", { key: '0732bc87e7be10e422e80751a17527132301eb99', class: `video-wrapper${this.isPlaying ? ' playing' : ''}` }, !this.isPlaying && (hAsync("div", { key: '540c46b66da3f67ec45614e0891827b7cc0be4e5', class: "thumbnail", onClick: () => { this.isPlaying = true; } }, hAsync("img", { key: '843241c72688ca88ccd5d9391b542501575ea476', src: this.thumbnail, alt: `Video thumbnail ${this.videoId}` }), hAsync("button", { key: 'b068f79fb6b2140e1419e9d72a24f6e66eaab69d', class: "play-button", "aria-label": "Reproducir video" }, hAsync("dropi-icon", { key: 'b3b6d8b99583fd0a3c2c0d766beeda2459b8b13a', name: "Play", iconWidth: "17px", iconHeight: "21px", color: "Neutral-White" })))), this.isPlaying && (hAsync("iframe", { key: '42172a0c7bb386da9123b411af4ab5ebeb9e205c', src: this.videoUrl, title: this.videoTitle, frameborder: "0", allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture", allowFullScreen: true, loading: "lazy" }))));
|
|
12214
12222
|
}
|
|
12215
12223
|
static get style() { return dropiYoutubeLazyVideoCss(); }
|
|
12216
12224
|
static get cmpMeta() { return {
|