@dropi/ui 0.1.37 → 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 +25 -4
- 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
|
@@ -179,10 +179,10 @@ const DropiMediaPlayer = class {
|
|
|
179
179
|
}, onMouseMove: () => this.onMouseMove(), onMouseLeave: () => this.onMouseLeave() }, h("div", { class: "dropi-media-player__blur-bg", style: { backgroundImage: `url(${this.poster})` } }), h("div", { class: "dropi-media-player__blur-overlay" }), h("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() }), h("div", { class: {
|
|
180
180
|
'dropi-media-player__center-play': true,
|
|
181
181
|
'dropi-media-player__center-play--hidden': this.playing && !this.showControls
|
|
182
|
-
}, style: { width: `${this.playButtonSize}px`, height: `${this.playButtonSize}px` }, onClick: (e) => { e.stopPropagation(); this.togglePlay(); } }, this.playing ? (h("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' } }, h("rect", { x: "6.5", y: "4", width: "3.5", height: "16", rx: "1.75" }), h("rect", { x: "14", y: "4", width: "3.5", height: "16", rx: "1.75" }))) : (h("dropi-icon", { name: "Play", color: "Neutral-White",
|
|
182
|
+
}, style: { width: `${this.playButtonSize}px`, height: `${this.playButtonSize}px` }, onClick: (e) => { e.stopPropagation(); this.togglePlay(); } }, this.playing ? (h("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' } }, h("rect", { x: "6.5", y: "4", width: "3.5", height: "16", rx: "1.75" }), h("rect", { x: "14", y: "4", width: "3.5", height: "16", rx: "1.75" }))) : (h("dropi-icon", { name: "Play", color: "Neutral-White", iconWidth: `${this.playIconSize}px`, iconHeight: `${this.playIconSize}px` }))), h("div", { class: {
|
|
183
183
|
'dropi-media-player__controls-bar': true,
|
|
184
184
|
'dropi-media-player__controls-bar--hidden': !this.showControls
|
|
185
|
-
}, onClick: (e) => e.stopPropagation() }, h("span", { class: "dropi-media-player__timestamp" }, this.currentTimeStr, " / ", this.durationStr), h("div", { class: "dropi-media-player__progress", onClick: (e) => { e.stopPropagation(); this.handleSeek(e); } }, h("div", { class: "dropi-media-player__progress-track" }, h("div", { class: "dropi-media-player__progress-fill", style: { width: `${this.progress}%` } }), h("div", { class: "dropi-media-player__progress-thumb", style: { left: `${this.progress}%` } }))), h("div", { class: "dropi-media-player__actions" }, h("div", { class: "dropi-media-player__speed-control", onClick: (e) => e.stopPropagation() }, this.showSpeedMenu && (h("div", { class: "dropi-media-player__speed-menu" }, this.speeds.map(s => (h("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))))), h("button", { class: "dropi-media-player__btn dropi-media-player__btn--speed", onClick: (e) => { e.stopPropagation(); this.toggleSpeedMenu(); }, type: "button" }, "x", this.speed)), h("button", { class: "dropi-media-player__btn", onClick: (e) => { e.stopPropagation(); this.toggleFullscreen(); }, type: "button" }, h("dropi-icon", { name: this.isFullscreen ? 'Compress' : 'Expand', color: "Neutral-White",
|
|
185
|
+
}, onClick: (e) => e.stopPropagation() }, h("span", { class: "dropi-media-player__timestamp" }, this.currentTimeStr, " / ", this.durationStr), h("div", { class: "dropi-media-player__progress", onClick: (e) => { e.stopPropagation(); this.handleSeek(e); } }, h("div", { class: "dropi-media-player__progress-track" }, h("div", { class: "dropi-media-player__progress-fill", style: { width: `${this.progress}%` } }), h("div", { class: "dropi-media-player__progress-thumb", style: { left: `${this.progress}%` } }))), h("div", { class: "dropi-media-player__actions" }, h("div", { class: "dropi-media-player__speed-control", onClick: (e) => e.stopPropagation() }, this.showSpeedMenu && (h("div", { class: "dropi-media-player__speed-menu" }, this.speeds.map(s => (h("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))))), h("button", { class: "dropi-media-player__btn dropi-media-player__btn--speed", onClick: (e) => { e.stopPropagation(); this.toggleSpeedMenu(); }, type: "button" }, "x", this.speed)), h("button", { class: "dropi-media-player__btn", onClick: (e) => { e.stopPropagation(); this.toggleFullscreen(); }, type: "button" }, h("dropi-icon", { name: this.isFullscreen ? 'Compress' : 'Expand', color: "Neutral-White", iconWidth: "20px", iconHeight: "20px" })), h("div", { class: "dropi-media-player__volume-control", onClick: (e) => e.stopPropagation() }, this.showVolumeSlider && (h("div", { class: "dropi-media-player__volume-popup" }, h("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) }))), h("button", { class: "dropi-media-player__btn", onClick: (e) => { e.stopPropagation(); this.toggleVolume(); }, type: "button" }, h("dropi-icon", { name: this.volumeIcon, color: "Neutral-White", iconWidth: "20px", iconHeight: "20px" })))))));
|
|
186
186
|
}
|
|
187
187
|
};
|
|
188
188
|
DropiMediaPlayer.style = dropiMediaPlayerCss();
|
|
@@ -34,7 +34,7 @@ const DropiModal = class {
|
|
|
34
34
|
/** Enable a before-close hook (matches Angular `enableBeforeClose`) */
|
|
35
35
|
enableBeforeClose = false;
|
|
36
36
|
/** No-op — kept for API parity with Angular (matches Angular `draggable`) */
|
|
37
|
-
|
|
37
|
+
isDraggable = false;
|
|
38
38
|
/** No-op — kept for API parity with Angular (matches Angular `resizable`) */
|
|
39
39
|
resizable = false;
|
|
40
40
|
onShow;
|
|
@@ -127,7 +127,7 @@ const DropiModal = class {
|
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
render() {
|
|
130
|
-
return (h("div", { key: '
|
|
130
|
+
return (h("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) && h("div", { key: '06ebd29da0c7dc699e7c16769476e310336ab149', class: "modal-mask", onClick: () => this.dismissable && this.hide() }), h("div", { key: '87cb9bbd4c1c6c27a6a7d09f561ea781c1571803', class: `modal-panel size-${this.size || 'm'}`, role: "dialog", "aria-modal": "true" }, this.showHeader && (h("div", { key: '86f22ef920b7a7437825f4c5f9ccff23b591c499', class: "modal-header" }, this.header && h("span", { key: '2ae7c9b879ee6c025b6b42977bad643ff4d28370', class: "modal-title" }, this.header), h("slot", { key: '85a0a54691ca191719202c8fea6b30ffff30aacc', name: "header" }), this.showCloseIcon && (h("button", { key: 'dc1f570830d22535a39c9e9fbf0bccdb8e4bfcf7', class: "modal-close", onClick: () => this.hide(), "aria-label": "Cerrar" }, "\u00D7")))), h("div", { key: 'ceca42f33ff7d4762c79b2d133e23bc7cedb3cb3', class: "modal-content" }, h("slot", { key: '14a82735c521c45deda61e8a69ae8673ad754b3d' })), this.showFooter && h("div", { key: 'e71a5393c19de696247502abd09d26a38cd1b979', class: "modal-footer" }, h("slot", { key: '1364eed1b66e82d321d06d13d9d34615c7634ce0', name: "footer" })))));
|
|
131
131
|
}
|
|
132
132
|
static get watchers() { return {
|
|
133
133
|
"visible": [{
|
|
@@ -42,9 +42,9 @@ const DropiNavbar = class {
|
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
44
|
const items = this.parsedData;
|
|
45
|
-
return (h("nav", { key: '15c337396dbe445ac7a13d7e0f2d99f88b4de439', class: "navbar" }, h("div", { key: '922a217dfe53f3f34dd6746033996bcd71dadfb2', class: "navbar__left" }, this.showMenuToggle && (h("button", { key: 'db80ad1fd6f47807196c81ae60bf9cea8bb16e77', class: "navbar__menu-btn", onClick: () => this.dropiMenuToggle.emit(), "aria-label": "Men\u00FA" }, h("dropi-icon", { key: '
|
|
45
|
+
return (h("nav", { key: '15c337396dbe445ac7a13d7e0f2d99f88b4de439', class: "navbar" }, h("div", { key: '922a217dfe53f3f34dd6746033996bcd71dadfb2', class: "navbar__left" }, this.showMenuToggle && (h("button", { key: 'db80ad1fd6f47807196c81ae60bf9cea8bb16e77', class: "navbar__menu-btn", onClick: () => this.dropiMenuToggle.emit(), "aria-label": "Men\u00FA" }, h("dropi-icon", { key: 'eca18144260cb6471a19f78f7ce75254ba5a138e', name: "Menu", iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-700" }))), this.logoUrl && (h("img", { key: '374ea8553605f289c413882c757eda70054ba71d', class: "navbar__logo", src: this.logoUrl, alt: this.logoAlt })), this.title && h("span", { key: '8e2abceb591c0de10ca99d2090fea7a0da792a7b', class: "navbar__title" }, this.title)), items.length > 0 && (h("ul", { key: 'fd26fc64ea3325ddc439a802ab56e69b329020dd', class: "navbar__items" }, items.map(item => (h("li", null, h("button", { class: { 'navbar__item': true, 'navbar__item--active': item.id === this.activeId }, onClick: () => this.clickLoadItem.emit(item), type: "button" }, item.icon && h("dropi-icon", { name: item.icon, iconWidth: "16px", iconHeight: "16px", color: item.id === this.activeId ? 'Primary-Primary-500' : 'Gray-Gray-600' }), h("span", null, item.name?.value || item.label), item.badge != null && String(item.badge) !== '0' && (h("span", { class: "navbar__badge" }, item.badge)))))))), h("div", { key: '51a6532caac773ea7236e95b0aa5ee9ee052db4a', class: "navbar__right" }, h("button", { key: '309b47a8fa074e7d47632a95490c5ba0d2950745', class: "navbar__icon-btn", onClick: () => this.dropiNotificationsClick.emit(), "aria-label": "Notificaciones" }, h("dropi-icon", { key: '2a970ae36fdd4e42d9fbab5d8ebb61a1d14d54c8', name: "Bell", iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-600" }), this.notifications > 0 && (h("span", { key: '67412b6d3c7689f78cca15e91a1e8e3ee88152a2', class: "navbar__notif-badge" }, this.notifications > 99 ? '99+' : this.notifications))), h("button", { key: '38cc70fdc1c204b06b62c54a23f4b8c76647fd6b', class: "navbar__user-btn", onClick: () => this.dropiUserClick.emit(), type: "button" }, this.userAvatar
|
|
46
46
|
? h("img", { class: "navbar__avatar", src: this.userAvatar, alt: this.userName })
|
|
47
|
-
: h("div", { class: "navbar__avatar-placeholder" }, this.userName ? this.userName[0].toUpperCase() : '?'), this.userName && h("span", { key: '
|
|
47
|
+
: h("div", { class: "navbar__avatar-placeholder" }, this.userName ? this.userName[0].toUpperCase() : '?'), this.userName && h("span", { key: '1f2cfe4bddef60d31751c24c3f02cace2f07d6dd', class: "navbar__user-name" }, this.userName), h("dropi-icon", { key: '520aff19c56964eefb3b1f59646c19df779c7e47', name: "Arrow-Down-2", iconWidth: "12px", iconHeight: "12px", color: "Gray-Gray-400" })))));
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
DropiNavbar.style = dropiNavbarCss();
|
|
@@ -8,6 +8,7 @@ const DropiOtpSendCode = class {
|
|
|
8
8
|
constructor(hostRef) {
|
|
9
9
|
registerInstance(this, hostRef);
|
|
10
10
|
this.codeCompleted = createEvent(this, "codeCompleted", 7);
|
|
11
|
+
this.codeAccepted = createEvent(this, "codeAccepted", 7);
|
|
11
12
|
this.dropiResend = createEvent(this, "dropiResend", 7);
|
|
12
13
|
}
|
|
13
14
|
/** Delivery method label */
|
|
@@ -25,8 +26,10 @@ const DropiOtpSendCode = class {
|
|
|
25
26
|
error = false;
|
|
26
27
|
inputs = [];
|
|
27
28
|
timer;
|
|
28
|
-
/** Emitted when all 6 digits are entered.
|
|
29
|
+
/** Emitted when all 6 digits are entered. */
|
|
29
30
|
codeCompleted;
|
|
31
|
+
/** Emitted when all 6 digits are entered (alternative event). */
|
|
32
|
+
codeAccepted;
|
|
30
33
|
/** Emitted when resend is requested */
|
|
31
34
|
dropiResend;
|
|
32
35
|
componentDidLoad() { this.startCountdown(); }
|
|
@@ -54,7 +57,9 @@ const DropiOtpSendCode = class {
|
|
|
54
57
|
if (val && index < OTP_LENGTH - 1)
|
|
55
58
|
this.inputs[index + 1]?.focus();
|
|
56
59
|
if (newDigits.every(d => d !== '')) {
|
|
57
|
-
|
|
60
|
+
const finalCode = newDigits.join('');
|
|
61
|
+
this.codeCompleted.emit(finalCode);
|
|
62
|
+
this.codeAccepted.emit(finalCode);
|
|
58
63
|
}
|
|
59
64
|
}
|
|
60
65
|
handleKeyDown(e, index) {
|
|
@@ -70,19 +75,22 @@ const DropiOtpSendCode = class {
|
|
|
70
75
|
this.digits = newDigits;
|
|
71
76
|
this.digitStates = newDigits.map(d => d ? 'filled' : 'idle');
|
|
72
77
|
this.inputs[Math.min(text.length, OTP_LENGTH - 1)]?.focus();
|
|
73
|
-
if (newDigits.every(d => d !== ''))
|
|
74
|
-
|
|
78
|
+
if (newDigits.every(d => d !== '')) {
|
|
79
|
+
const finalCode = newDigits.join('');
|
|
80
|
+
this.codeCompleted.emit(finalCode);
|
|
81
|
+
this.codeAccepted.emit(finalCode);
|
|
82
|
+
}
|
|
75
83
|
}
|
|
76
84
|
render() {
|
|
77
85
|
const engineLabel = this.engine === 'sms' ? 'SMS' : this.engine === '2fa' ? 'autenticador' : 'correo';
|
|
78
|
-
return (h("div", { key: '
|
|
86
|
+
return (h("div", { key: '09eb961c43257d0a2a852ec05bafa7c050d9e4ec', class: "otp" }, this.showLabelContact && (h("p", { key: '46b215b5343892c5bca4d5aab6590e8da791fc9d', class: "otp__label" }, "Ingresa el c\u00F3digo enviado a tu ", engineLabel, this.labelContact && h("strong", { key: '0c0871dbb99ad85a15275be1ed7f698cf9e4a808' }, " ", this.labelContact))), h("div", { key: 'd11d2c4f094a82240b3bde49039ff2e2d027f5d5', class: "otp__inputs", onPaste: (e) => this.handlePaste(e) }, Array.from({ length: OTP_LENGTH }, (_, i) => (h("input", { key: i, ref: (el) => {
|
|
79
87
|
if (el)
|
|
80
88
|
this.inputs[i] = el;
|
|
81
89
|
}, class: {
|
|
82
90
|
'otp__digit': true,
|
|
83
91
|
'otp__digit--filled': (this.digitStates ?? [])[i] === 'filled',
|
|
84
92
|
'otp__digit--error': this.error,
|
|
85
|
-
}, 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 && (h("p", { key: '
|
|
93
|
+
}, 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 && (h("p", { key: 'a9156a4da398eeeec8128a012978e8e2c5f7eef4', class: "otp__error" }, this.errorMessage)), h("div", { key: '9c685306ba97d19907b92bbf6c203f0473a809fb', class: "otp__resend" }, this.canResend ? (h("button", { class: "otp__resend-btn", onClick: () => { this.startCountdown(); this.dropiResend.emit(); } }, "Reenviar c\u00F3digo")) : (h("span", { class: "otp__countdown" }, "Reenviar en ", this.countdown, "s")))));
|
|
86
94
|
}
|
|
87
95
|
};
|
|
88
96
|
DropiOtpSendCode.style = dropiOtpSendCodeCss();
|
|
@@ -179,7 +179,7 @@ const DropiPhoneInput = class {
|
|
|
179
179
|
return (h("div", { key: 'e4a9468971ff90e3e1c2cf6944a8475451843428', class: "phone-wrap" }, h("div", { key: 'dabdccaf0453e98afb3db78ee6b6f83a66615baa', class: "phone-input-container" }, h("div", { key: '6481136b782da271fe47c19cfd359398bf632f35', class: "custom-select" }, h("button", { key: 'd314c0e2c74724eff20eae8f34241caf1fc2448c', type: "button", class: { 'select-button': true, 'select-invalid': isInvalid }, disabled: this.disabledInput, onClick: () => {
|
|
180
180
|
if (!this.disabledInput)
|
|
181
181
|
this.open = !this.open;
|
|
182
|
-
} }, h("span", { key: 'c8b2aa7801a5c633c70010e7eeb2d5d9f3fb6b37', style: { display: 'flex', gap: '0.5rem', alignItems: 'center' } }, h("img", { key: 'c2a6583a02b029cee578b9c931f185f7d4102e3f', src: `https://flagsapi.com/${country.flag}/flat/24.png`, alt: "flag" }), country.code), h("dropi-icon", { key: '
|
|
182
|
+
} }, h("span", { key: 'c8b2aa7801a5c633c70010e7eeb2d5d9f3fb6b37', style: { display: 'flex', gap: '0.5rem', alignItems: 'center' } }, h("img", { key: 'c2a6583a02b029cee578b9c931f185f7d4102e3f', src: `https://flagsapi.com/${country.flag}/flat/24.png`, alt: "flag" }), country.code), h("dropi-icon", { key: '26e6e575c9072c008060560f03fcaba942ae5157', name: this.open ? 'Dropdown-up' : 'Dropdown-down', iconWidth: "14px", iconHeight: "14px", color: "Gray-Gray-500" })), h("ul", { key: 'ad2d7688f2de26aa1c8ac080819203c7f5839764', class: { 'select-dropdown': true, 'expanded-select': this.open, 'collapsed-select': !this.open } }, COUNTRIES.map(option => (h("li", null, h("button", { type: "button", class: "option", onMouseDown: (e) => { e.preventDefault(); this.selectCountry(option); } }, h("img", { src: `https://flagsapi.com/${option.flag}/flat/24.png`, alt: option.flag }), option.code)))))), h("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) }))));
|
|
183
183
|
}
|
|
184
184
|
static get watchers() { return {
|
|
185
185
|
"codArea": [{
|
|
@@ -39,10 +39,10 @@ const DropiRadioSelectionList = class {
|
|
|
39
39
|
return this.parsedOptions.filter(o => o.name?.toLowerCase().includes(q));
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
return (h("div", { key: '7fdbf3d20a030a78ab4f48e7dba8333a34b1017b', class: "rsl" }, this.showFilter && (h("div", { key: '12e2abb8f8ed76c6b3231f28b63c842ba3c3c326', class: "rsl__search" }, h("dropi-icon", { key: '
|
|
42
|
+
return (h("div", { key: '7fdbf3d20a030a78ab4f48e7dba8333a34b1017b', class: "rsl" }, this.showFilter && (h("div", { key: '12e2abb8f8ed76c6b3231f28b63c842ba3c3c326', class: "rsl__search" }, h("dropi-icon", { key: '0d3e759696ceefdc997fadec75cc73f281caafd0', name: "Search", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-400" }), h("input", { key: 'd5605975ebfda35d7abb0e69fe0a2baa929faddb', class: "rsl__search-input", type: "text", placeholder: this.filterPlaceholder, value: this.filterText, onInput: (e) => {
|
|
43
43
|
this.filterText = e.target.value;
|
|
44
44
|
this.onSearch.emit({ searchValue: this.filterText, filteredOptions: this.filtered });
|
|
45
|
-
} }))), h("div", { key: '
|
|
45
|
+
} }))), h("div", { key: '25dae74884621ce4f27f214de94c9ddb0fa1799f', class: "rsl__list" }, this.filtered.map(opt => {
|
|
46
46
|
const isSelected = opt.id === this.selectedOption;
|
|
47
47
|
return (h("div", { class: { 'rsl__item': true, 'rsl__item--selected': isSelected }, key: opt.id, onClick: () => { this.selectedOption = opt.id; this.valueChange.emit(opt.id); } }, h("div", { class: { 'rsl__radio': true, 'rsl__radio--checked': isSelected } }, isSelected && h("div", { class: "rsl__radio-dot" })), h("div", { class: "rsl__content" }, h("span", { class: "rsl__name" }, opt.name), (isSelected || this.alwaysShowDescription) && opt.description && (h("span", { class: "rsl__desc" }, opt.description)))));
|
|
48
48
|
}))));
|
|
@@ -106,10 +106,10 @@ const DropiSearch = class {
|
|
|
106
106
|
}
|
|
107
107
|
render() {
|
|
108
108
|
const showDropdown = this.open && this.parsedOptions.length > 0;
|
|
109
|
-
return (h("div", { key: 'ec00c8851a1d2d4ddda50edea458589a62d9451a', class: "search-wrap" }, this.label && h("label", { key: '31cadba1b21276ec43f3623676fe1a7f9bac4da2', class: "search-label" }, this.label), h("div", { key: 'bf68dbb7cfa657e8a7e441a2fe47db0e7d214e44', class: `search-input-row search-input-row--${this.type}` }, this.showIcon && h("dropi-icon", { key: '
|
|
109
|
+
return (h("div", { key: 'ec00c8851a1d2d4ddda50edea458589a62d9451a', class: "search-wrap" }, this.label && h("label", { key: '31cadba1b21276ec43f3623676fe1a7f9bac4da2', class: "search-label" }, this.label), h("div", { key: 'bf68dbb7cfa657e8a7e441a2fe47db0e7d214e44', class: `search-input-row search-input-row--${this.type}` }, this.showIcon && h("dropi-icon", { key: '21239271d90ba7adcc64e3f7ecb9b836619bd11e', class: "search-icon", name: "Search", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-400" }), h("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: () => {
|
|
110
110
|
if (this.parsedOptions.length)
|
|
111
111
|
this.open = true;
|
|
112
|
-
}, onBlur: () => { setTimeout(() => this.open = false, 150); this.onBlur.emit(); } }), this.showClear && this.textInput && (h("button", { key: '
|
|
112
|
+
}, onBlur: () => { setTimeout(() => this.open = false, 150); this.onBlur.emit(); } }), this.showClear && this.textInput && (h("button", { key: 'c6a1dab911f262e0b2da88e59cdbaf6b4c1c74a9', class: "search-clear", onClick: () => this.handleClear(), "aria-label": "Limpiar" }, h("dropi-icon", { key: 'ddf404e0be3d95f1154ecd22dd9b9f7a06e3c187', name: "Close-small", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-400" })))), showDropdown && (h("div", { key: 'a8c5ecbfe700bcb116119f172c3cb017b9693113', class: `search-dropdown search-dropdown--${this.position}`, style: { '--dropdown-height': `${this.heightOverlay}px` } }, this.filtered.length === 0 ? (h("div", { class: "search-no-results" }, "Sin resultados")) : (this.filtered.map((opt, i) => (h("div", { class: { 'search-option': true, 'search-option--selected': this.isSelected(opt) }, key: i, onMouseDown: (e) => { e.preventDefault(); this.selectOption(opt); } }, this.multipleSelectModel && h("dropi-checkbox", { checked: this.isSelected(opt) }), h("span", { class: "search-option__label" }, opt[this.dataName])))))))));
|
|
113
113
|
}
|
|
114
114
|
static get watchers() { return {
|
|
115
115
|
"dataToSearch": [{
|
|
@@ -319,7 +319,7 @@ const DropiSelect = class {
|
|
|
319
319
|
}, disabled: this.disabled, ref: el => (this.buttonRef = el), onClick: () => this.toggleDropdown() }, h("div", { class: {
|
|
320
320
|
'button-content': true,
|
|
321
321
|
'option-radio': this.radioOptions && !!this._selectedOption && !this.multiSelect,
|
|
322
|
-
} }, this.preIcon && (h("dropi-icon", { name: this.preIcon,
|
|
322
|
+
} }, this.preIcon && (h("dropi-icon", { name: this.preIcon, iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-500" })), this.radioOptions && this._selectedOption && !this.multiSelect && [
|
|
323
323
|
this._selectedOption.imageUrl && !this._selectedOption.isFallback
|
|
324
324
|
? h("img", { class: "option-image small-image", src: this._selectedOption.imageUrl, alt: "", onError: () => {
|
|
325
325
|
if (this._selectedOption)
|
|
@@ -329,7 +329,7 @@ const DropiSelect = class {
|
|
|
329
329
|
? h("span", { class: "option-image-fallback small-image" }, this._selectedOption.label.charAt(0).toUpperCase())
|
|
330
330
|
: null,
|
|
331
331
|
h("div", { class: "labels-container elipsis" }, h("span", null, this._selectedOption.label), this._selectedOption.secondLabel && h("span", { class: "option-second-label" }, this._selectedOption.secondLabel)),
|
|
332
|
-
], !(this.radioOptions && this._selectedOption && !this.multiSelect) && (h("div", { class: "elipsis" }, this.triggerLabel))), h("dropi-icon", { name: this.isOpen ? 'Dropdown-up' : 'Dropdown-down',
|
|
332
|
+
], !(this.radioOptions && this._selectedOption && !this.multiSelect) && (h("div", { class: "elipsis" }, this.triggerLabel))), h("dropi-icon", { name: this.isOpen ? 'Dropdown-up' : 'Dropdown-down', iconWidth: iconSize, iconHeight: iconSize, color: iconColor })));
|
|
333
333
|
}
|
|
334
334
|
renderOption(option) {
|
|
335
335
|
const isSelected = this.multiSelect
|
|
@@ -341,23 +341,23 @@ const DropiSelect = class {
|
|
|
341
341
|
'option-with-flag': this.showCountryFlags && !!option.countryCode,
|
|
342
342
|
'disabled-option': !!option.disabled,
|
|
343
343
|
'selected-option': isSelected,
|
|
344
|
-
}, disabled: option.disabled, onClick: () => this.selectOption(option) }, this.multiSelect && (h("span", { class: { 'multi-checkbox': true, checked: isSelected } }, isSelected && (h("svg", { width: "10", height: "10", viewBox: "0 0 24 24", fill: "none" }, h("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 && (h("div", { class: { radio: true, selected: isSelected } }, isSelected && h("div", { class: "circle" }))), !this.radioOptions && option.preIcon && (h("dropi-icon", { name: option.preIcon,
|
|
344
|
+
}, disabled: option.disabled, onClick: () => this.selectOption(option) }, this.multiSelect && (h("span", { class: { 'multi-checkbox': true, checked: isSelected } }, isSelected && (h("svg", { width: "10", height: "10", viewBox: "0 0 24 24", fill: "none" }, h("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 && (h("div", { class: { radio: true, selected: isSelected } }, isSelected && h("div", { class: "circle" }))), !this.radioOptions && option.preIcon && (h("dropi-icon", { name: option.preIcon, iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-500" })), this.radioOptions && option.imageUrl && !option.isFallback && (h("img", { class: "option-image", src: option.imageUrl, alt: "", onError: () => { option.isFallback = true; this.options = [...this.options]; } })), this.radioOptions && option.isFallback && (h("span", { class: "option-image-fallback" }, option.label.charAt(0).toUpperCase())), this.showCountryFlags && option.countryCode && (h("span", { class: "flag-placeholder" }, option.countryCode)), this.radioOptions
|
|
345
345
|
? (h("div", { class: "labels-container" }, h("span", { class: "elipsis" }, option.label), option.secondLabel && h("span", { class: "option-second-label" }, option.secondLabel)))
|
|
346
346
|
: (h("span", { class: "elipsis" }, this.showCountryFlags && option.shortLabel ? option.shortLabel : option.label)))));
|
|
347
347
|
}
|
|
348
348
|
renderDropdown() {
|
|
349
349
|
if (!this.isOpen)
|
|
350
350
|
return null;
|
|
351
|
-
return (h("ul", { class: `select-dropdown-overlay ${this.overlayClass}`, style: this.dropdownStyle, onScroll: (e) => this.handleScroll(e) }, this.searchEnabled && (h("li", { class: "sticky-search" }, h("div", { class: "search-wrapper" }, h("dropi-icon", { name: "Search",
|
|
351
|
+
return (h("ul", { class: `select-dropdown-overlay ${this.overlayClass}`, style: this.dropdownStyle, onScroll: (e) => this.handleScroll(e) }, this.searchEnabled && (h("li", { class: "sticky-search" }, h("div", { class: "search-wrapper" }, h("dropi-icon", { name: "Search", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-400" }), h("input", { class: "search-input", type: "text", placeholder: this.placeHolderSearch, value: this.searchTerm, onInput: (e) => this.handleSearch(e.target.value), onKeyDown: (e) => {
|
|
352
352
|
if (e.key === 'Enter')
|
|
353
353
|
this.onKeyEnter.emit(e);
|
|
354
|
-
} }), this.searchTerm && (h("button", { type: "button", class: "search-clear", onClick: () => this.handleSearch('') }, h("dropi-icon", { name: "Close",
|
|
354
|
+
} }), this.searchTerm && (h("button", { type: "button", class: "search-clear", onClick: () => this.handleSearch('') }, h("dropi-icon", { name: "Close", iconWidth: "14px", iconHeight: "14px", color: "Gray-Gray-400" })))))), this.isGrouped && this.filteredOptions.map(group => [
|
|
355
355
|
h("li", { class: "option-group-title" }, group.category),
|
|
356
|
-
...group.options.map(opt => (h("li", { key: opt.id }, h("button", { type: "button", class: { option: true, 'option-group': true, 'disabled-option': !!opt.disabled }, disabled: opt.disabled, onClick: () => this.selectOption(opt) }, opt.preIcon && h("dropi-icon", { name: opt.preIcon,
|
|
356
|
+
...group.options.map(opt => (h("li", { key: opt.id }, h("button", { type: "button", class: { option: true, 'option-group': true, 'disabled-option': !!opt.disabled }, disabled: opt.disabled, onClick: () => this.selectOption(opt) }, opt.preIcon && h("dropi-icon", { name: opt.preIcon, iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-500" }), h("span", { class: "elipsis" }, opt.label))))),
|
|
357
357
|
]), !this.isGrouped && this.filteredOptions.map(opt => this.renderOption(opt)), this.filteredOptions.length === 0 && (h("li", { class: "no-results" }, "Sin resultados"))));
|
|
358
358
|
}
|
|
359
359
|
render() {
|
|
360
|
-
return (h("div", { key: '
|
|
360
|
+
return (h("div", { key: '9f5397dca313ba676a5a038f89ded457c324ac7a', class: "custom-select" }, !this.dropdownType && this.label && (h("label", { key: '5924d81286019ca01ca5eda924078e64db5ead66', class: { 'disabled-label': this.disabled } }, this.label, this.showObligatory && !this.disabled && h("span", { key: '1565c47c081c8fb497185417aa46559f3754db89', class: "asterisk" }, " *"))), h("div", { key: '6be308aeafb7a4a2da302db925ccc07e5eb27718', class: "dropdown-container" }, this.dropdownType && this.label && (h("div", { key: 'a2ea9c5e67274181c5bc020c990281ac425b489b', class: "left-label" }, this.label)), this.renderTrigger()), this.textHelper && !this.hasError && (h("div", { key: 'a13ebbf9fe6e975724b2441f5c1c71b18dacf128', class: "select-helper" }, h("span", { key: '55f2369bc0a8c156454b4c29a323f98bd13321fb' }, this.textHelper))), this.hasError && this.errorText && (h("div", { key: 'bc5dc3394916459576798d5f1db4126992b30d58', class: "select-helper-error" }, h("dropi-icon", { key: '12bcece304d9de3cc807921ba69af29b9b763fc9', name: "Warning-circle", iconWidth: "12px", iconHeight: "12px", color: "Error-Error-500" }), h("span", { key: 'c221b88fde03aa2d66ce212272ff999f2ba5a9ad' }, this.errorText))), this.renderDropdown()));
|
|
361
361
|
}
|
|
362
362
|
static get formAssociated() { return true; }
|
|
363
363
|
static get watchers() { return {
|
|
@@ -51,10 +51,10 @@ const DropiSidebar = class {
|
|
|
51
51
|
'sidebar-option': true,
|
|
52
52
|
'sidebar-active-option': !!item.active,
|
|
53
53
|
'sidebar-default-option': !item.active
|
|
54
|
-
}, onClick: () => this.onItemClick(item) }, h("dropi-icon", { name: item.icon || 'Cube',
|
|
54
|
+
}, onClick: () => this.onItemClick(item) }, h("dropi-icon", { name: item.icon || 'Cube', iconWidth: "20px", iconHeight: "20px", color: item.active ? 'Primary-Primary-500' : 'Gray-Gray-500' }), h("span", null, item.text), item.subItems && item.subItems.length > 0 && (h("dropi-icon", { class: {
|
|
55
55
|
'arrow': true,
|
|
56
56
|
'arrow-expanded': !!item.expandedMenu
|
|
57
|
-
}, name: "Dropdown-down",
|
|
57
|
+
}, name: "Dropdown-down", iconWidth: "20px", iconHeight: "20px", color: item.active ? 'Primary-Primary-500' : 'Gray-Gray-500' }))),
|
|
58
58
|
/* SubItems Renderizados al mismo nivel DOM que instruye Angular ng-container */
|
|
59
59
|
item.subItems && item.subItems.length > 0 && (item.subItems.map(subOption => (h("div", { class: {
|
|
60
60
|
'sidebar-sub-item': true,
|
|
@@ -41,7 +41,7 @@ const DropiSteps = class {
|
|
|
41
41
|
const state = this.stepState(step);
|
|
42
42
|
const label = labels[step - 1];
|
|
43
43
|
const isLast = step === this.stepsCount;
|
|
44
|
-
return (h("div", { class: "stepper__step", key: step }, h("div", { class: "stepper__circle-wrap" }, h("div", { class: { 'stepper__circle': true, [`stepper__circle--${state}`]: true } }, state === 'completed' ? (h("dropi-icon", { name: "Check",
|
|
44
|
+
return (h("div", { class: "stepper__step", key: step }, h("div", { class: "stepper__circle-wrap" }, h("div", { class: { 'stepper__circle': true, [`stepper__circle--${state}`]: true } }, state === 'completed' ? (h("dropi-icon", { name: "Check", iconWidth: "12px", iconHeight: "12px", color: "Neutral-White" })) : (this.showNumberOfStep ? h("span", null, step) : null)), !isLast && h("div", { class: { 'stepper__line': true, 'stepper__line--done': state === 'completed' } })), label && (h("div", { class: "stepper__label" }, label.title && h("span", { class: "stepper__title" }, label.title), label.description && h("span", { class: "stepper__desc" }, label.description)))));
|
|
45
45
|
})));
|
|
46
46
|
}
|
|
47
47
|
};
|
|
@@ -31,7 +31,7 @@ const DropiTable = class {
|
|
|
31
31
|
/** Empty state message */
|
|
32
32
|
emptyMessage = 'No hay datos disponibles';
|
|
33
33
|
/** Table title */
|
|
34
|
-
|
|
34
|
+
tableTitle = '';
|
|
35
35
|
/** Show search input */
|
|
36
36
|
showSearch = false;
|
|
37
37
|
/** Show column selector button */
|
|
@@ -224,7 +224,7 @@ const DropiTable = class {
|
|
|
224
224
|
case 'country':
|
|
225
225
|
return (h("div", { class: "flag-container" }, value.flag && h("dropi-country-flags", { width: "24", height: "24", country: value.flag, style: { display: 'inline-flex' } }), h("span", null, value.value)));
|
|
226
226
|
case 'textIcon':
|
|
227
|
-
return (h("div", { class: "text-icon-label" }, h("dropi-icon", { name: value.icon,
|
|
227
|
+
return (h("div", { class: "text-icon-label" }, h("dropi-icon", { name: value.icon, iconWidth: "24px", iconHeight: "24px", color: value.iconColor || 'Gray-Gray-500' }), value.value && h("span", null, value.value)));
|
|
228
228
|
case 'status':
|
|
229
229
|
return (h("div", { class: "status-label" }, h("div", { class: "status-dot" }, h("div", { class: `dot dot-${(value.status || '').toLowerCase()}` }), h("span", { class: "status-text" }, value.status)), value.value && h("span", { class: "status-description" }, value.value)));
|
|
230
230
|
case 'image':
|
|
@@ -245,11 +245,11 @@ const DropiTable = class {
|
|
|
245
245
|
const allSelected = rows.length > 0 && this.selectedKeys.size === rows.length;
|
|
246
246
|
const hasActions = this.parsedRowActions.length > 0;
|
|
247
247
|
const cols = this.visibleColumns;
|
|
248
|
-
return (h("div", { class: "table-container" }, (this.showSearch || this.showColumnSelector || this.
|
|
248
|
+
return (h("div", { class: "table-container" }, (this.showSearch || this.showColumnSelector || this.tableTitle) && (h("div", { class: "search-container" }, this.tableTitle && h("div", { class: "table-title Body-L-Bold" }, this.tableTitle), h("div", { class: `search-actions${this.showSearch ? '' : ' only-filter'}` }, this.showSearch && (h("dropi-input", { placeholder: "Buscar", value: this.searchTerm, onOnInput: (e) => {
|
|
249
249
|
this.searchTerm = e.detail;
|
|
250
250
|
this.dropiSearch.emit(e.detail);
|
|
251
251
|
this.onSearchChange.emit(e.detail);
|
|
252
|
-
} })), this.showColumnSelector && (h("div", { class: "table-tools" }, h("div", { class: "column-selector-container" }, h("button", { class: "column-selector-btn", onClick: () => this.showColumnMenu = !this.showColumnMenu }, h("dropi-icon", { name: "list-table",
|
|
252
|
+
} })), this.showColumnSelector && (h("div", { class: "table-tools" }, h("div", { class: "column-selector-container" }, h("button", { class: "column-selector-btn", onClick: () => this.showColumnMenu = !this.showColumnMenu }, h("dropi-icon", { name: "list-table", iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-500" })), this.showColumnMenu && (h("div", { class: "column-selector-menu" }, this.parsedColumns.map(col => (h("div", { class: "column-selector-option", onClick: () => {
|
|
253
253
|
const next = new Set(this.hiddenColumns);
|
|
254
254
|
if (next.has(col.key))
|
|
255
255
|
next.delete(col.key);
|
|
@@ -260,7 +260,7 @@ const DropiTable = class {
|
|
|
260
260
|
this.hiddenColumns = this.hiddenColumns.size === 0
|
|
261
261
|
? new Set(this.parsedColumns.map(c => c.key))
|
|
262
262
|
: new Set();
|
|
263
|
-
} }, h("dropi-checkbox", { checked: this.hiddenColumns.size === 0 }), h("span", null, "Mostrar / Ocultar todo"))))))))))), h("div", { class: `table-wrapper${hasActions ? ' has-sticky-actions' : ''}` }, h("table", { class: `custom-table${this.showCheckbox ? ' has-checkbox' : ''}` }, h("thead", null, h("tr", null, this.showCheckbox && (h("th", { class: "checkbox-header" }, h("dropi-checkbox", { checked: allSelected, onOnChange: (e) => this.toggleAll(e.detail) }))), cols.map(col => (h("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) }, h("div", { class: `headers-container${col.align === 'left' ? ' align-left' : col.align === 'right' ? ' align-right' : ''}` }, h("div", { class: `headers${col.align === 'left' ? ' align-left' : col.align === 'right' ? ' align-right' : ''}` }, h("span", null, col.label), col.sortable && (h("div", { class: "order-icons" }, h("dropi-icon", { name: "Caret-up",
|
|
263
|
+
} }, h("dropi-checkbox", { checked: this.hiddenColumns.size === 0 }), h("span", null, "Mostrar / Ocultar todo"))))))))))), h("div", { class: `table-wrapper${hasActions ? ' has-sticky-actions' : ''}` }, h("table", { class: `custom-table${this.showCheckbox ? ' has-checkbox' : ''}` }, h("thead", null, h("tr", null, this.showCheckbox && (h("th", { class: "checkbox-header" }, h("dropi-checkbox", { checked: allSelected, onOnChange: (e) => this.toggleAll(e.detail) }))), cols.map(col => (h("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) }, h("div", { class: `headers-container${col.align === 'left' ? ' align-left' : col.align === 'right' ? ' align-right' : ''}` }, h("div", { class: `headers${col.align === 'left' ? ' align-left' : col.align === 'right' ? ' align-right' : ''}` }, h("span", null, col.label), col.sortable && (h("div", { class: "order-icons" }, h("dropi-icon", { name: "Caret-up", iconWidth: "12px", iconHeight: "12px", color: this.sortAsc ? 'Gray-Gray-500' : 'Gray-Gray-200' }), h("dropi-icon", { name: "Caret-down", iconWidth: "12px", iconHeight: "12px", color: !this.sortAsc ? 'Gray-Gray-500' : 'Gray-Gray-200' })))))))), hasActions && h("th", { class: "actions-header actions" }, "Acciones"))), h("tbody", null, this.loading ? (Array.from({ length: 5 }).map(() => (h("tr", { class: "table-row" }, this.showCheckbox && h("td", null, h("div", { class: "skeleton skeleton--sm" })), cols.map(() => h("td", null, h("div", { class: "skeleton" }))), hasActions && h("td", null))))) : rows.length === 0 ? (h("tr", null, h("td", { colSpan: cols.length + (this.showCheckbox ? 1 : 0) + (hasActions ? 1 : 0) }, h("div", { class: "empty-table" }, h("div", { class: "empty-message-container" }, this.emptyMessage))))) : (rows.map((row, i) => (h("tr", { class: "table-row", onClick: () => this.dropiRowClick.emit({ row, index: i }) }, this.showCheckbox && (h("td", { onClick: (e) => e.stopPropagation() }, h("dropi-checkbox", { checked: this.selectedKeys.has(i), onOnChange: () => this.toggleRow(i) }))), cols.map(col => (h("td", { class: { 'low-opacity': !!col.disabledColumn, 'highlight-column': !!col.highlightColumn }, style: { minWidth: col.minWidth, maxWidth: col.maxWidth, overflow: col.maxWidth ? 'hidden' : undefined } }, h("div", { class: "cell-content", style: { textAlign: col.align || 'center' } }, this.renderCellValue(row[col.key]))))), hasActions && (h("td", { class: "action-button actions", onClick: (e) => e.stopPropagation() }, this.parsedRowActions.length > 3 ? (h("div", { style: { display: "flex", justifyContent: "center", width: "100%" } }, h("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 && (h("div", { class: "actions-menu" }, this.parsedRowActions.map(action => (h("div", { class: "action-item", onClick: () => { this.openActionRow = -1; this.dropiAction.emit({ row, action }); this.actionClicked.emit({ row, action }); } }, h("dropi-icon", { name: action.icon, iconWidth: "20px", iconHeight: "20px", color: action.iconColor || 'Gray-Gray-500' }), action.label))))))) : (h("div", { class: "short-actions" }, this.parsedRowActions.map(action => (h("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 && (h("div", { class: "pagination" }, h("div", { class: "page-size-selector" }, h("label", null, "Mostrar"), h("select", { onChange: (e) => {
|
|
264
264
|
this.pageSize = Number(e.target.value);
|
|
265
265
|
this.currentPage = 1;
|
|
266
266
|
this.dropiPageSizeChange.emit(this.pageSize);
|
|
@@ -34,7 +34,7 @@ const DropiTabs = class {
|
|
|
34
34
|
return (h("div", { key: '337040015b29581ebb15ac347bb62220ed0a2d4d', class: "tabs-container", role: "tablist" }, this.parsedTabs.map(tab => {
|
|
35
35
|
const isActive = tab.id === this.activeTab;
|
|
36
36
|
return (h("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) }, h("span", { class: "tab-label-row" }, h("span", { class: "tab-label" }, tab.label), tab.counter !== undefined && tab.counter !== null && (h("span", { class: { 'tab-counter': true, 'tab-counter--active': isActive } }, tab.counter))), this.showIcon && (tab.completed
|
|
37
|
-
? h("dropi-icon", { name: "Check-circle",
|
|
37
|
+
? h("dropi-icon", { name: "Check-circle", iconWidth: "12px", iconHeight: "12px", color: "Success-Success-500" })
|
|
38
38
|
: h("span", { class: "tab-status-dot" }))));
|
|
39
39
|
})));
|
|
40
40
|
}
|
|
@@ -115,7 +115,7 @@ const DropiTextArea = class {
|
|
|
115
115
|
'Body-M-Regular': true,
|
|
116
116
|
'form-control-valid': !this.isInvalid && this.touched && !!this.value,
|
|
117
117
|
'form-control-invalid': this.isInvalid,
|
|
118
|
-
}, 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 && (h("div", { key: 'e3271eeea7e85a64454c344986e36c85197f3782', class: "char-counter" }, this.charCount, "/", this.maxLength))), showHelper && (h("div", { key: 'c4b83072b96e56b45b6afc8209f4d124cb6d6bf3', class: "form-control-helper" }, this.isInvalid && (h("dropi-icon", { key: '
|
|
118
|
+
}, 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 && (h("div", { key: 'e3271eeea7e85a64454c344986e36c85197f3782', class: "char-counter" }, this.charCount, "/", this.maxLength))), showHelper && (h("div", { key: 'c4b83072b96e56b45b6afc8209f4d124cb6d6bf3', class: "form-control-helper" }, this.isInvalid && (h("dropi-icon", { key: '07a2884a516118f3169a0427701a2271d24f2bcc', name: "Warning-circle", iconWidth: "12px", iconHeight: "12px", color: "Error-Error-500" })), h("span", { key: 'a518a81fdba8df18083ef92a1dbc9936d3fcc17d', class: { 'invalid-color': this.isInvalid }, style: { color: this.disabled ? 'var(--Gray-Gray-400)' : undefined } }, this.textHelper)))));
|
|
119
119
|
}
|
|
120
120
|
static get formAssociated() { return true; }
|
|
121
121
|
static get watchers() { return {
|
|
@@ -23,7 +23,7 @@ const DropiTimeLine = class {
|
|
|
23
23
|
const steps = this.parsedSteps;
|
|
24
24
|
return (h("div", { key: '0b43d3e673cda6f31476abcbc55ef2b6b9dbd7ac', class: "timeline" }, steps.map((step, i) => {
|
|
25
25
|
const isLast = i === steps.length - 1;
|
|
26
|
-
return (h("div", { class: { 'tl-step': true, [`tl-step--${step.status}`]: true }, key: step.id || i }, h("div", { class: "tl-step__marker" }, h("div", { class: "tl-step__icon" }, step.icon ? (h("dropi-icon", { name: step.icon,
|
|
26
|
+
return (h("div", { class: { 'tl-step': true, [`tl-step--${step.status}`]: true }, key: step.id || i }, h("div", { class: "tl-step__marker" }, h("div", { class: "tl-step__icon" }, step.icon ? (h("dropi-icon", { name: step.icon, iconWidth: "16px", iconHeight: "16px", color: step.status === 'done' ? 'Neutral-White' : step.status === 'active' ? 'Primary-Primary-500' : 'Gray-Gray-400' })) : (h("span", { class: "tl-step__dot" }))), !isLast && h("div", { class: "tl-step__line" })), h("div", { class: "tl-step__content" }, h("span", { class: "tl-step__label" }, step.label), step.subtitle && h("span", { class: "tl-step__subtitle" }, step.subtitle))));
|
|
27
27
|
})));
|
|
28
28
|
}
|
|
29
29
|
};
|
|
@@ -46,7 +46,7 @@ const DropiToast = class {
|
|
|
46
46
|
return `<lottie-player src="${this.lottieMap[severity]}" background="transparent" speed="1" loop autoplay></lottie-player>`;
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
|
-
return (h("div", { key: '0ad8903921fd1bd773d206029bcc4e12e8b21349', class: `toast-container toast-container--${this.position}` }, (this.items ?? []).map(item => (h("div", { key: item.msg.id, class: { 'toast-wrapper': true, 'toast-wrapper--leaving': item.leaving } }, h("div", { class: `toast toast--${item.msg.severity}` }, h("div", { class: "toast-content" }, h("div", { class: "lottie-img" }, h("div", { class: "lottie-player-container", innerHTML: this.getLottieHtml(item.msg.severity) })), h("div", { class: "info-container" }, h("p", { class: "title" }, item.msg.summary), item.msg.detail && h("p", { class: "description" }, item.msg.detail))), item.msg.closable && (h("button", { class: "toast-close", onClick: () => this.remove(item.msg.id) }, h("dropi-icon", { name: "Close-small",
|
|
49
|
+
return (h("div", { key: '0ad8903921fd1bd773d206029bcc4e12e8b21349', class: `toast-container toast-container--${this.position}` }, (this.items ?? []).map(item => (h("div", { key: item.msg.id, class: { 'toast-wrapper': true, 'toast-wrapper--leaving': item.leaving } }, h("div", { class: `toast toast--${item.msg.severity}` }, h("div", { class: "toast-content" }, h("div", { class: "lottie-img" }, h("div", { class: "lottie-player-container", innerHTML: this.getLottieHtml(item.msg.severity) })), h("div", { class: "info-container" }, h("p", { class: "title" }, item.msg.summary), item.msg.detail && h("p", { class: "description" }, item.msg.detail))), item.msg.closable && (h("button", { class: "toast-close", onClick: () => this.remove(item.msg.id) }, h("dropi-icon", { name: "Close-small", iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-400" })))))))));
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
DropiToast.style = dropiToastCss();
|
|
@@ -116,12 +116,12 @@ const DropiTooltipV2 = class {
|
|
|
116
116
|
const bubbleStyle = { maxWidth: this.maxWidth };
|
|
117
117
|
if (this.minWidth)
|
|
118
118
|
bubbleStyle.minWidth = this.minWidth;
|
|
119
|
-
return (h("div", { key: '85f49bcb2af567a8fb70cd92afab893a2e0bf567', class: "tooltip-wrapper", onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onClick: this.handleClick, onFocusin: this.handleFocusin, onFocusout: this.handleFocusout }, this.showIcon && (h("dropi-icon", { key: '
|
|
119
|
+
return (h("div", { key: '85f49bcb2af567a8fb70cd92afab893a2e0bf567', class: "tooltip-wrapper", onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onClick: this.handleClick, onFocusin: this.handleFocusin, onFocusout: this.handleFocusout }, this.showIcon && (h("dropi-icon", { key: '0ec2770a45d95e2dc655886d086f7f44c12fdda5', name: this.iconName, iconWidth: `${this.iconSize}px`, iconHeight: `${this.iconSize}px`, color: this.iconColor })), h("slot", { key: 'caeff259dfaecdd7757d85bee3e93b15d8b53173' }), this.displayContent && (h("div", { key: 'e1be3f25c37b978b79db639a245d1030e9de2d59', class: {
|
|
120
120
|
'tooltip-bubble': true,
|
|
121
121
|
[`tooltip-bubble--${this.position}`]: true,
|
|
122
122
|
[`tooltip-bubble--arrow-${this.arrowPosition}`]: true,
|
|
123
123
|
'tooltip-bubble--visible': this.visible,
|
|
124
|
-
}, style: bubbleStyle, role: "tooltip" }, this.showX && (h("button", { key: '
|
|
124
|
+
}, style: bubbleStyle, role: "tooltip" }, this.showX && (h("button", { key: 'ba9f719b7066bb953a45b60f03fce20383c2eac5', class: "tooltip-close", onClick: this.handleClose, "aria-label": "Cerrar" }, h("dropi-icon", { key: '8660e8130e643393c9cd70846247ccae8e3ebf24', name: "Close-small", iconWidth: "12px", iconHeight: "12px", color: "Gray-Gray-500" }))), this.title && !this.text && h("strong", { key: '2d2a39d2d2a3993b62901497660a31193bcece12', class: "tooltip-title" }, this.title), this.label && !this.text && h("span", { key: 'b34e2e997629c5700b64a6ae527b71c44e8939f4', class: "tooltip-label" }, this.label), this.text && h("span", { key: '4cd22e60cce211b96cf8441a33dcd7afe5b88e40' }, this.text), h("span", { key: 'deb83c9f7c1a9cfbb3f68ec087cae81d0f64a56b', class: `tooltip-arrow tooltip-arrow--${this.position}` })))));
|
|
125
125
|
}
|
|
126
126
|
};
|
|
127
127
|
DropiTooltipV2.style = dropiTooltipCss();
|