@dropi/ui 0.1.41 → 0.1.42
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 +2 -2
- package/dist/cjs/dropi-accordion.cjs.entry.js +2 -2
- package/dist/cjs/dropi-alert-legacy.cjs.entry.js +1 -1
- package/dist/cjs/dropi-alert-modal.cjs.entry.js +20 -16
- package/dist/cjs/dropi-alert.cjs.entry.js +12 -12
- package/dist/cjs/dropi-avatars.cjs.entry.js +1 -1
- package/dist/cjs/dropi-badge-legacy.cjs.entry.js +2 -2
- package/dist/cjs/dropi-badge.cjs.entry.js +1 -1
- package/dist/cjs/dropi-banner-external.cjs.entry.js +3 -3
- package/dist/cjs/dropi-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/dropi-button.cjs.entry.js +7 -7
- package/dist/cjs/dropi-card-checkbox.cjs.entry.js +6 -6
- package/dist/cjs/dropi-card-product.cjs.entry.js +12 -12
- package/dist/cjs/dropi-card-section.cjs.entry.js +9 -9
- package/dist/cjs/dropi-carousel.cjs.entry.js +8 -8
- package/dist/cjs/dropi-checkbox-selection-list.cjs.entry.js +9 -9
- package/dist/cjs/dropi-checkbox.cjs.entry.js +6 -6
- package/dist/cjs/dropi-chips.cjs.entry.js +4 -4
- package/dist/cjs/dropi-city-selector.cjs.entry.js +2 -2
- package/dist/cjs/dropi-color-picker.cjs.entry.js +4 -4
- package/dist/cjs/dropi-country-flags.cjs.entry.js +2 -2
- package/dist/cjs/dropi-country-selector.cjs.entry.js +6 -6
- package/dist/cjs/dropi-date-picker-range.cjs.entry.js +4 -4
- package/dist/cjs/dropi-date-picker.cjs.entry.js +12 -12
- package/dist/cjs/dropi-drawer.cjs.entry.js +4 -4
- package/dist/cjs/dropi-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/dropi-empty-state.cjs.entry.js +3 -3
- package/dist/cjs/dropi-favorite-button.cjs.entry.js +3 -3
- package/dist/cjs/dropi-file-upload-progress-bar.cjs.entry.js +5 -5
- package/dist/cjs/dropi-file-upload.cjs.entry.js +3 -3
- package/dist/cjs/dropi-icon.cjs.entry.js +17 -3
- package/dist/cjs/dropi-ilustration-icon.cjs.entry.js +5 -5
- package/dist/cjs/dropi-image-miniature.cjs.entry.js +3 -3
- package/dist/cjs/dropi-image-overlay.cjs.entry.js +2 -2
- package/dist/cjs/dropi-input_3.cjs.entry.js +50 -22
- package/dist/cjs/dropi-languages-selector.cjs.entry.js +4 -4
- package/dist/cjs/dropi-logo.cjs.entry.js +2 -2
- package/dist/cjs/dropi-lottie-loader.cjs.entry.js +1 -1
- package/dist/cjs/dropi-media-player.cjs.entry.js +3 -3
- package/dist/cjs/dropi-modal.cjs.entry.js +37 -32
- package/dist/cjs/dropi-navbar.cjs.entry.js +7 -7
- package/dist/cjs/dropi-otp-send-code.cjs.entry.js +34 -19
- package/dist/cjs/dropi-phone-input.cjs.entry.js +14 -14
- package/dist/cjs/dropi-progress-bar.cjs.entry.js +43 -0
- package/dist/cjs/dropi-radio-button.cjs.entry.js +5 -5
- package/dist/cjs/dropi-radio-selection-list.cjs.entry.js +9 -9
- package/dist/cjs/dropi-read-more.cjs.entry.js +2 -2
- package/dist/cjs/dropi-search.cjs.entry.js +21 -21
- package/dist/cjs/dropi-select.cjs.entry.js +50 -22
- package/dist/cjs/dropi-sidebar.cjs.entry.js +6 -6
- package/dist/cjs/dropi-simple-stepper.cjs.entry.js +1 -1
- package/dist/cjs/dropi-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/dropi-steps.cjs.entry.js +1 -1
- package/dist/cjs/dropi-switch.cjs.entry.js +5 -5
- package/dist/cjs/dropi-table.cjs.entry.js +38 -30
- package/dist/cjs/dropi-tabs.cjs.entry.js +5 -5
- package/dist/cjs/dropi-tag-type-product.cjs.entry.js +2 -2
- package/dist/cjs/dropi-text-area.cjs.entry.js +7 -7
- package/dist/cjs/dropi-time-line.cjs.entry.js +2 -2
- package/dist/cjs/dropi-toast.cjs.entry.js +2 -2
- package/dist/cjs/dropi-tooltip-v2.cjs.entry.js +3 -3
- package/dist/cjs/dropi-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/dropi-ui.cjs.js +2 -2
- package/dist/cjs/dropi-vertical-steps.cjs.entry.js +3 -3
- package/dist/cjs/dropi-youtube-lazy-video.cjs.entry.js +2 -2
- package/dist/cjs/index-CEWSDq65.js +2773 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/assets/icons/symbol/svg/sprite.css.svg +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/dropi-accordion/dropi-accordion-item.js +1 -1
- package/dist/collection/components/dropi-accordion/dropi-accordion.js +1 -1
- package/dist/collection/components/dropi-alert/dropi-alert.js +16 -16
- package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.js +43 -19
- package/dist/collection/components/dropi-badge-legacy/dropi-badge-legacy.js +1 -1
- package/dist/collection/components/dropi-button/dropi-button.css +6 -3
- package/dist/collection/components/dropi-button/dropi-button.js +6 -6
- package/dist/collection/components/dropi-card-checkbox/dropi-card-checkbox.js +6 -6
- package/dist/collection/components/dropi-card-product/dropi-card-product.js +11 -11
- package/dist/collection/components/dropi-card-section/dropi-card-section.js +10 -10
- package/dist/collection/components/dropi-carousel/dropi-carousel.js +9 -9
- package/dist/collection/components/dropi-checkbox/dropi-checkbox.js +6 -6
- package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.js +10 -10
- package/dist/collection/components/dropi-chips/dropi-chips.js +4 -4
- package/dist/collection/components/dropi-color-picker/dropi-color-picker.js +2 -2
- package/dist/collection/components/dropi-country-flags/dropi-country-flags.js +1 -1
- package/dist/collection/components/dropi-country-selector/dropi-country-selector.js +6 -6
- package/dist/collection/components/dropi-date-picker/dropi-date-picker.js +12 -12
- package/dist/collection/components/dropi-drawer/dropi-drawer.js +2 -2
- package/dist/collection/components/dropi-empty-state/dropi-empty-state.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 +1 -1
- 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 +2 -0
- package/dist/collection/components/dropi-icon/dropi-icon.js +35 -1
- package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.js +4 -4
- package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.js +1 -1
- package/dist/collection/components/dropi-input/dropi-input.js +18 -18
- package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.js +4 -4
- package/dist/collection/components/dropi-logo/dropi-logo.js +1 -1
- package/dist/collection/components/dropi-modal/dropi-modal.css +12 -6
- package/dist/collection/components/dropi-modal/dropi-modal.js +47 -42
- package/dist/collection/components/dropi-navbar/dropi-navbar.js +2 -2
- package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.js +54 -18
- package/dist/collection/components/dropi-paginator/dropi-paginator.js +6 -6
- package/dist/collection/components/dropi-phone-input/dropi-phone-input.js +17 -17
- package/dist/collection/components/dropi-progress-bar/dropi-progress-bar.css +35 -0
- package/dist/collection/components/dropi-progress-bar/dropi-progress-bar.js +168 -0
- package/dist/collection/components/dropi-radio-button/dropi-radio-button.js +5 -5
- package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.js +10 -10
- package/dist/collection/components/dropi-read-more/dropi-read-more.js +1 -1
- package/dist/collection/components/dropi-search/dropi-search.js +26 -26
- package/dist/collection/components/dropi-select/dropi-select.css +4 -0
- package/dist/collection/components/dropi-select/dropi-select.js +85 -25
- package/dist/collection/components/dropi-sidebar/dropi-sidebar.js +6 -6
- package/dist/collection/components/dropi-switch/dropi-switch.js +5 -5
- package/dist/collection/components/dropi-table/dropi-table.js +35 -27
- package/dist/collection/components/dropi-tabs/dropi-tabs.js +5 -5
- package/dist/collection/components/dropi-tag/dropi-tag.css +16 -7
- package/dist/collection/components/dropi-tag/dropi-tag.js +55 -1
- package/dist/collection/components/dropi-tag-type-product/dropi-tag-type-product.js +1 -1
- package/dist/collection/components/dropi-text-area/dropi-text-area.js +2 -2
- 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/dropi-tooltip.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-accordion.js +1 -1
- package/dist/components/dropi-alert-modal.js +1 -1
- package/dist/components/dropi-alert.js +1 -1
- package/dist/components/dropi-badge-legacy.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-checkbox.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-carousel.js +1 -1
- package/dist/components/dropi-checkbox-selection-list.js +1 -1
- package/dist/components/dropi-checkbox.js +1 -1
- package/dist/components/dropi-chips.js +1 -1
- package/dist/components/dropi-city-selector.js +1 -1
- package/dist/components/dropi-color-picker.js +1 -1
- package/dist/components/dropi-country-flags.js +1 -1
- package/dist/components/dropi-country-selector.js +1 -1
- package/dist/components/dropi-date-picker-range.js +1 -1
- package/dist/components/dropi-date-picker.js +1 -1
- package/dist/components/dropi-drawer.js +1 -1
- package/dist/components/dropi-dropdown.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-logo.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-progress-bar.d.ts +11 -0
- package/dist/components/dropi-progress-bar.js +1 -0
- package/dist/components/dropi-radio-button.js +1 -1
- package/dist/components/dropi-radio-selection-list.js +1 -1
- package/dist/components/dropi-read-more.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-switch.js +1 -1
- package/dist/components/dropi-table.js +1 -1
- package/dist/components/dropi-tabs.js +1 -1
- package/dist/components/dropi-tag-type-product.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-tooltip.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/index.js +1 -1
- package/dist/components/p-1YjHPRto.js +1 -0
- package/dist/components/p-9CkX3ALN.js +1 -0
- package/dist/components/p-B9-h_ikq.js +1 -0
- package/dist/components/p-B9rJd-Rf.js +1 -0
- package/dist/components/p-BGb7xtJN.js +1 -0
- package/dist/components/p-BHV6BYSS.js +1 -0
- package/dist/components/p-BSB5Ar-y.js +1 -0
- package/dist/components/p-BSHROiHb.js +1 -0
- package/dist/components/p-BT99axEq.js +1 -0
- package/dist/components/p-BVgUVZyu.js +1 -0
- package/dist/components/p-BhRjfHZ3.js +1 -0
- package/dist/components/p-Bimspdte.js +1 -0
- package/dist/components/p-BmuWhHN-.js +1 -0
- package/dist/components/p-BqJ52YOH.js +1 -0
- package/dist/components/p-BrR1YjVi.js +1 -0
- package/dist/components/p-BrnGRyf0.js +1 -0
- package/dist/components/p-BtkDdEAq.js +1 -0
- package/dist/components/p-BvIwy9Yl.js +1 -0
- package/dist/components/p-BzCPv3ND.js +1 -0
- package/dist/components/p-C44-ijf2.js +1 -0
- package/dist/components/p-CHb992Wr.js +1 -0
- package/dist/components/p-CJ4s6SQT.js +1 -0
- package/dist/components/p-CKflT57p.js +1 -0
- package/dist/components/p-CWT7wT9m.js +1 -0
- package/dist/components/p-CWWFRdg7.js +1 -0
- package/dist/components/p-CWwDNt3V.js +1 -0
- package/dist/components/p-CXUiN3Rj.js +1 -0
- package/dist/components/p-C_zOkGR5.js +1 -0
- package/dist/components/p-Cujt3jky.js +1 -0
- package/dist/components/p-D5UeShUa.js +1 -0
- package/dist/components/p-D7GP-lmt.js +1 -0
- package/dist/components/p-DFNI0UID.js +1 -0
- package/dist/components/p-DG5fe-Ke.js +1 -0
- package/dist/components/p-DKWuIsc_.js +1 -0
- package/dist/components/p-DLyzE3Kh.js +1 -0
- package/dist/components/p-DN_IcU8H.js +1 -0
- package/dist/components/p-DON3zW51.js +1 -0
- package/dist/components/p-DQzskhll.js +1 -0
- package/dist/components/p-DYAsdhfM.js +1 -0
- package/dist/components/p-DYYToiO9.js +1 -0
- package/dist/components/p-DehWQyi5.js +1 -0
- package/dist/components/p-DfSe-tBr.js +1 -0
- package/dist/components/p-Dgeh9Yg8.js +1 -0
- package/dist/components/p-DlaiuH5K.js +1 -0
- package/dist/components/p-DvaFep4Y.js +1 -0
- package/dist/components/p-ETg0qC-7.js +1 -0
- package/dist/components/p-HCtk4_Dq.js +1 -0
- package/dist/components/p-QezfyBk4.js +1 -0
- package/dist/components/p-RD09_3LO.js +1 -0
- package/dist/components/p-RQjw5hdz.js +1 -0
- package/dist/components/p-dbZuh0Uq.js +1 -0
- package/dist/components/p-emzVHCws.js +1 -0
- package/dist/components/p-im7kgtnS.js +1 -0
- package/dist/components/p-kC6NU5nP.js +1 -0
- package/dist/components/p-lX2uCKEi.js +1 -0
- package/dist/components/p-ndQSfLKF.js +1 -0
- package/dist/components/p-plWZwD4h.js +1 -0
- package/dist/components/p-t0lkpFmw.js +1 -0
- package/dist/components/p-ujToMKti.js +1 -0
- package/dist/dropi-ui/dropi-accordion-item.entry.js +1 -1
- package/dist/dropi-ui/dropi-accordion.entry.js +1 -1
- package/dist/dropi-ui/dropi-alert-modal.entry.js +19 -15
- package/dist/dropi-ui/dropi-alert-modal.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-alert.entry.js +11 -11
- package/dist/dropi-ui/dropi-alert.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-badge-legacy.entry.js +1 -1
- package/dist/dropi-ui/dropi-button.entry.js +6 -6
- package/dist/dropi-ui/dropi-button.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-card-checkbox.entry.js +5 -5
- package/dist/dropi-ui/dropi-card-checkbox.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-card-product.entry.js +9 -9
- package/dist/dropi-ui/dropi-card-product.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-card-section.entry.js +8 -8
- package/dist/dropi-ui/dropi-card-section.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-carousel.entry.js +7 -7
- package/dist/dropi-ui/dropi-carousel.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-checkbox-selection-list.entry.js +8 -8
- package/dist/dropi-ui/dropi-checkbox-selection-list.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-checkbox.entry.js +5 -5
- package/dist/dropi-ui/dropi-checkbox.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-chips.entry.js +3 -3
- package/dist/dropi-ui/dropi-chips.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-color-picker.entry.js +2 -2
- package/dist/dropi-ui/dropi-country-flags.entry.js +1 -1
- package/dist/dropi-ui/dropi-country-selector.entry.js +5 -5
- package/dist/dropi-ui/dropi-country-selector.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-date-picker.entry.js +10 -10
- package/dist/dropi-ui/dropi-date-picker.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-drawer.entry.js +2 -2
- package/dist/dropi-ui/dropi-empty-state.entry.js +1 -1
- package/dist/dropi-ui/dropi-favorite-button.entry.js +1 -1
- package/dist/dropi-ui/dropi-file-upload-progress-bar.entry.js +1 -1
- package/dist/dropi-ui/dropi-file-upload.entry.js +1 -1
- package/dist/dropi-ui/dropi-file-upload.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-icon.entry.js +16 -2
- package/dist/dropi-ui/dropi-icon.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-ilustration-icon.entry.js +4 -4
- package/dist/dropi-ui/dropi-ilustration-icon.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-image-miniature.entry.js +1 -1
- package/dist/dropi-ui/dropi-input.entry.js +14 -14
- package/dist/dropi-ui/dropi-input.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-languages-selector.entry.js +3 -3
- package/dist/dropi-ui/dropi-languages-selector.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-logo.entry.js +1 -1
- package/dist/dropi-ui/dropi-modal.entry.js +36 -31
- package/dist/dropi-ui/dropi-modal.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-navbar.entry.js +2 -2
- package/dist/dropi-ui/dropi-otp-send-code.entry.js +30 -15
- package/dist/dropi-ui/dropi-otp-send-code.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-paginator.entry.js +5 -5
- package/dist/dropi-ui/dropi-paginator.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-phone-input.entry.js +13 -13
- package/dist/dropi-ui/dropi-phone-input.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-progress-bar.entry.js +44 -0
- package/dist/dropi-ui/dropi-progress-bar.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-radio-button.entry.js +4 -4
- package/dist/dropi-ui/dropi-radio-button.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-radio-selection-list.entry.js +8 -8
- package/dist/dropi-ui/dropi-radio-selection-list.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-read-more.entry.js +1 -1
- package/dist/dropi-ui/dropi-search.entry.js +20 -20
- package/dist/dropi-ui/dropi-search.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-select.entry.js +49 -21
- package/dist/dropi-ui/dropi-select.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-sidebar.entry.js +5 -5
- package/dist/dropi-ui/dropi-sidebar.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-switch.entry.js +4 -4
- package/dist/dropi-ui/dropi-switch.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-table.entry.js +29 -21
- package/dist/dropi-ui/dropi-table.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-tabs.entry.js +4 -4
- package/dist/dropi-ui/dropi-tabs.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-tag-type-product.entry.js +1 -1
- package/dist/dropi-ui/dropi-tag.entry.js +30 -2
- package/dist/dropi-ui/dropi-tag.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-text-area.entry.js +2 -2
- package/dist/dropi-ui/dropi-time-line.entry.js +1 -1
- package/dist/dropi-ui/dropi-toast.entry.js +1 -1
- package/dist/dropi-ui/dropi-tooltip-v2.entry.js +2 -2
- package/dist/dropi-ui/dropi-tooltip.entry.js +1 -1
- package/dist/dropi-ui/dropi-ui.css +1 -311
- package/dist/dropi-ui/dropi-ui.esm.js +1 -50
- package/dist/dropi-ui/dropi-vertical-steps.entry.js +1 -1
- package/dist/dropi-ui/dropi-youtube-lazy-video.entry.js +1 -1
- package/dist/dropi-ui/index.esm.js +0 -4
- package/dist/dropi-ui/p-019c2c37.entry.js +1 -0
- package/dist/dropi-ui/p-01c57627.entry.js +1 -0
- package/dist/dropi-ui/p-03515548.entry.js +1 -0
- package/dist/dropi-ui/p-0366349e.entry.js +1 -0
- package/dist/dropi-ui/p-06bdd006.entry.js +1 -0
- package/dist/dropi-ui/p-086a6f5f.entry.js +1 -0
- package/dist/dropi-ui/p-088616e6.entry.js +1 -0
- package/dist/dropi-ui/p-08bc8fb2.entry.js +1 -0
- package/dist/dropi-ui/p-0946a1f7.entry.js +1 -0
- package/dist/dropi-ui/p-09aa9a3c.entry.js +1 -0
- package/dist/dropi-ui/p-0a76c15c.entry.js +1 -0
- package/dist/dropi-ui/p-0d188f2c.entry.js +1 -0
- package/dist/dropi-ui/p-0e026afe.entry.js +1 -0
- package/dist/dropi-ui/p-0ef73e45.entry.js +1 -0
- package/dist/dropi-ui/p-0f1b13e5.entry.js +1 -0
- package/dist/dropi-ui/p-1107c210.entry.js +1 -0
- package/dist/dropi-ui/p-13a6dd72.entry.js +1 -0
- package/dist/dropi-ui/p-1558c22f.entry.js +1 -0
- package/dist/dropi-ui/p-16674c7c.entry.js +1 -0
- package/dist/dropi-ui/p-17c53e19.entry.js +1 -0
- package/dist/dropi-ui/p-1ce00757.entry.js +1 -0
- package/dist/dropi-ui/p-229dddb0.entry.js +1 -0
- package/dist/dropi-ui/p-278281d2.entry.js +1 -0
- package/dist/dropi-ui/p-28f960a1.entry.js +1 -0
- package/dist/dropi-ui/p-2d356767.entry.js +1 -0
- package/dist/dropi-ui/p-2f9072e7.entry.js +1 -0
- package/dist/dropi-ui/p-30377b7e.entry.js +1 -0
- package/dist/dropi-ui/p-342eaf9e.entry.js +1 -0
- package/dist/dropi-ui/p-3496cc01.entry.js +1 -0
- package/dist/dropi-ui/p-37bdbadc.entry.js +1 -0
- package/dist/dropi-ui/p-393867c2.entry.js +1 -0
- package/dist/dropi-ui/p-3a28b79c.entry.js +1 -0
- package/dist/dropi-ui/p-3aefce2b.entry.js +1 -0
- package/dist/dropi-ui/p-3f76c680.entry.js +1 -0
- package/dist/dropi-ui/p-488a3113.entry.js +1 -0
- package/dist/dropi-ui/p-497e4eff.entry.js +1 -0
- package/dist/dropi-ui/p-4a72e4c8.entry.js +1 -0
- package/dist/dropi-ui/p-4b169817.entry.js +1 -0
- package/dist/dropi-ui/p-4d31eab8.entry.js +1 -0
- package/dist/dropi-ui/p-508cfd38.entry.js +1 -0
- package/dist/dropi-ui/p-50e851b7.entry.js +1 -0
- package/dist/dropi-ui/p-5730ca4e.entry.js +1 -0
- package/dist/dropi-ui/p-575e1951.entry.js +1 -0
- package/dist/dropi-ui/p-57c3b667.entry.js +1 -0
- package/dist/dropi-ui/p-5c0cd221.entry.js +1 -0
- package/dist/dropi-ui/p-5e0da387.entry.js +1 -0
- package/dist/dropi-ui/p-5eb75ddf.entry.js +1 -0
- package/dist/dropi-ui/p-5f735166.entry.js +1 -0
- package/dist/dropi-ui/p-61f8905c.entry.js +1 -0
- package/dist/dropi-ui/p-648e5340.entry.js +1 -0
- package/dist/dropi-ui/p-66d7d67b.entry.js +1 -0
- package/dist/dropi-ui/p-673a5cfd.entry.js +1 -0
- package/dist/dropi-ui/p-67ba7d35.entry.js +1 -0
- package/dist/dropi-ui/p-692b665a.entry.js +1 -0
- package/dist/dropi-ui/p-69cf66c1.entry.js +1 -0
- package/dist/dropi-ui/p-6a148627.entry.js +1 -0
- package/dist/dropi-ui/p-6b925a36.entry.js +1 -0
- package/dist/dropi-ui/p-6cb6cfe0.entry.js +1 -0
- package/dist/dropi-ui/p-6dbce3d3.entry.js +1 -0
- package/dist/dropi-ui/p-70f75e92.entry.js +1 -0
- package/dist/dropi-ui/p-7140309a.entry.js +1 -0
- package/dist/dropi-ui/p-72ec96d0.entry.js +1 -0
- package/dist/dropi-ui/p-7450d195.entry.js +1 -0
- package/dist/dropi-ui/p-754aed1c.entry.js +1 -0
- package/dist/dropi-ui/p-76fa02a1.entry.js +1 -0
- package/dist/dropi-ui/p-770b0195.entry.js +1 -0
- package/dist/dropi-ui/p-7822b081.entry.js +1 -0
- package/dist/dropi-ui/p-78282471.entry.js +1 -0
- package/dist/dropi-ui/p-78aa7fb3.entry.js +1 -0
- package/dist/dropi-ui/p-7a25f595.entry.js +1 -0
- package/dist/dropi-ui/p-7c0f959f.entry.js +1 -0
- package/dist/dropi-ui/p-7c5ea4c5.entry.js +1 -0
- package/dist/dropi-ui/p-7f02ae47.entry.js +1 -0
- package/dist/dropi-ui/p-7f0f828d.entry.js +1 -0
- package/dist/dropi-ui/p-80f0f6e6.entry.js +1 -0
- package/dist/dropi-ui/p-813678a2.entry.js +1 -0
- package/dist/dropi-ui/p-819d810e.entry.js +1 -0
- package/dist/dropi-ui/p-84019422.entry.js +1 -0
- package/dist/dropi-ui/p-8b8dc399.entry.js +1 -0
- package/dist/dropi-ui/p-8cf27f13.entry.js +1 -0
- package/dist/dropi-ui/p-8d6313c0.entry.js +1 -0
- package/dist/dropi-ui/p-8dbc6bc8.entry.js +1 -0
- package/dist/dropi-ui/p-8fc3dbcb.entry.js +1 -0
- package/dist/dropi-ui/p-90abda79.entry.js +1 -0
- package/dist/dropi-ui/p-928b59e8.entry.js +1 -0
- package/dist/dropi-ui/p-92c9e3c5.entry.js +1 -0
- package/dist/dropi-ui/p-94144382.entry.js +1 -0
- package/dist/dropi-ui/p-94a58087.entry.js +1 -0
- package/dist/dropi-ui/p-9645d628.entry.js +1 -0
- package/dist/dropi-ui/p-96f72e50.entry.js +1 -0
- package/dist/dropi-ui/p-9b288982.entry.js +1 -0
- package/dist/dropi-ui/p-9b55c8ad.entry.js +1 -0
- package/dist/dropi-ui/p-9bcde3a5.entry.js +1 -0
- package/dist/dropi-ui/p-9e8615de.entry.js +1 -0
- package/dist/dropi-ui/p-a0ade2e7.entry.js +1 -0
- package/dist/dropi-ui/p-a2fb4CHk.js +2 -0
- package/dist/dropi-ui/p-a3b729fe.entry.js +1 -0
- package/dist/dropi-ui/p-a3d602fd.entry.js +1 -0
- package/dist/dropi-ui/p-a470a24a.entry.js +1 -0
- package/dist/dropi-ui/p-a50c8339.entry.js +1 -0
- package/dist/dropi-ui/p-a524ef3d.entry.js +1 -0
- package/dist/dropi-ui/p-a62c691f.entry.js +1 -0
- package/dist/dropi-ui/p-a745529a.entry.js +1 -0
- package/dist/dropi-ui/p-a96c54ed.entry.js +1 -0
- package/dist/dropi-ui/p-ab3c52a4.entry.js +1 -0
- package/dist/dropi-ui/p-abd327ed.entry.js +1 -0
- package/dist/dropi-ui/p-ac79e805.entry.js +1 -0
- package/dist/dropi-ui/p-ac9d2149.entry.js +1 -0
- package/dist/dropi-ui/p-ad73631e.entry.js +1 -0
- package/dist/dropi-ui/p-b20f7dde.entry.js +1 -0
- package/dist/dropi-ui/p-b2e7cf4f.entry.js +1 -0
- package/dist/dropi-ui/p-b325f7cf.entry.js +1 -0
- package/dist/dropi-ui/p-b63f5d03.entry.js +1 -0
- package/dist/dropi-ui/p-b7748488.entry.js +1 -0
- package/dist/dropi-ui/p-b8050ef5.entry.js +1 -0
- package/dist/dropi-ui/p-b99fee29.entry.js +1 -0
- package/dist/dropi-ui/p-ba3779a2.entry.js +1 -0
- package/dist/dropi-ui/p-bd0d1a29.entry.js +1 -0
- package/dist/dropi-ui/p-bef43920.entry.js +1 -0
- package/dist/dropi-ui/p-bfd43bdf.entry.js +1 -0
- package/dist/dropi-ui/p-c173db8c.entry.js +1 -0
- package/dist/dropi-ui/p-c218524f.entry.js +1 -0
- package/dist/dropi-ui/p-c4fbbb5a.entry.js +1 -0
- package/dist/dropi-ui/p-c51fcf75.entry.js +1 -0
- package/dist/dropi-ui/p-c662bce3.entry.js +1 -0
- package/dist/dropi-ui/p-c6ac1b6d.entry.js +1 -0
- package/dist/dropi-ui/p-ca2e462a.entry.js +1 -0
- package/dist/dropi-ui/p-ca90e108.entry.js +1 -0
- package/dist/dropi-ui/p-cb87d3c7.entry.js +1 -0
- package/dist/dropi-ui/p-cc954850.entry.js +1 -0
- package/dist/dropi-ui/p-cf7cd408.entry.js +1 -0
- package/dist/dropi-ui/p-d02dfc6a.entry.js +1 -0
- package/dist/dropi-ui/p-d11524ca.entry.js +1 -0
- package/dist/dropi-ui/p-d46f3328.entry.js +1 -0
- package/dist/dropi-ui/p-d693bbb8.entry.js +1 -0
- package/dist/dropi-ui/p-d813969b.entry.js +1 -0
- package/dist/dropi-ui/p-d899d4e1.entry.js +1 -0
- package/dist/dropi-ui/p-da038b5d.entry.js +1 -0
- package/dist/dropi-ui/p-db6af92e.entry.js +1 -0
- package/dist/dropi-ui/p-dc920aff.entry.js +1 -0
- package/dist/dropi-ui/p-e1126498.entry.js +1 -0
- package/dist/dropi-ui/p-e163bf7f.entry.js +1 -0
- package/dist/dropi-ui/p-e1b40bda.entry.js +1 -0
- package/dist/dropi-ui/p-e22a3b45.entry.js +1 -0
- package/dist/dropi-ui/p-e524fed1.entry.js +1 -0
- package/dist/dropi-ui/p-e53b23dd.entry.js +1 -0
- package/dist/dropi-ui/p-e629fdc7.entry.js +1 -0
- package/dist/dropi-ui/p-e97d3704.entry.js +1 -0
- package/dist/dropi-ui/p-e9a64ecc.entry.js +1 -0
- package/dist/dropi-ui/p-ea13bfee.entry.js +1 -0
- package/dist/dropi-ui/p-edcf5623.entry.js +1 -0
- package/dist/dropi-ui/p-edeacd44.entry.js +1 -0
- package/dist/dropi-ui/p-edef4506.entry.js +1 -0
- package/dist/dropi-ui/p-eec49ea3.entry.js +1 -0
- package/dist/dropi-ui/p-f057bd98.entry.js +1 -0
- package/dist/dropi-ui/p-f0893459.entry.js +1 -0
- package/dist/dropi-ui/p-f0ace417.entry.js +1 -0
- package/dist/dropi-ui/p-f23e1df7.entry.js +1 -0
- package/dist/dropi-ui/p-f4bd8568.entry.js +1 -0
- package/dist/dropi-ui/p-f7a605f8.entry.js +1 -0
- package/dist/dropi-ui/p-f7df0f43.entry.js +1 -0
- package/dist/dropi-ui/p-f80fa01d.entry.js +1 -0
- package/dist/dropi-ui/p-f9084a2c.entry.js +1 -0
- package/dist/dropi-ui/p-f9af2041.entry.js +1 -0
- package/dist/dropi-ui/p-f9d05b69.entry.js +1 -0
- package/dist/dropi-ui/p-faa59cd8.entry.js +1 -0
- package/dist/dropi-ui/p-fb39dfdc.entry.js +1 -0
- package/dist/dropi-ui/p-fcba49ca.entry.js +1 -0
- package/dist/dropi-ui/p-fdbdedd0.entry.js +1 -0
- package/dist/dropi-ui/p-fef3673d.entry.js +1 -0
- package/dist/esm/dropi-accordion-item.entry.js +2 -2
- package/dist/esm/dropi-accordion.entry.js +2 -2
- package/dist/esm/dropi-alert-legacy.entry.js +1 -1
- package/dist/esm/dropi-alert-modal.entry.js +20 -16
- package/dist/esm/dropi-alert.entry.js +12 -12
- package/dist/esm/dropi-avatars.entry.js +1 -1
- package/dist/esm/dropi-badge-legacy.entry.js +2 -2
- package/dist/esm/dropi-badge.entry.js +1 -1
- package/dist/esm/dropi-banner-external.entry.js +3 -3
- package/dist/esm/dropi-breadcrumb.entry.js +2 -2
- package/dist/esm/dropi-button.entry.js +7 -7
- package/dist/esm/dropi-card-checkbox.entry.js +6 -6
- package/dist/esm/dropi-card-product.entry.js +12 -12
- package/dist/esm/dropi-card-section.entry.js +9 -9
- package/dist/esm/dropi-carousel.entry.js +8 -8
- package/dist/esm/dropi-checkbox-selection-list.entry.js +9 -9
- package/dist/esm/dropi-checkbox.entry.js +6 -6
- package/dist/esm/dropi-chips.entry.js +4 -4
- package/dist/esm/dropi-city-selector.entry.js +2 -2
- package/dist/esm/dropi-color-picker.entry.js +4 -4
- package/dist/esm/dropi-country-flags.entry.js +2 -2
- package/dist/esm/dropi-country-selector.entry.js +6 -6
- package/dist/esm/dropi-date-picker-range.entry.js +4 -4
- package/dist/esm/dropi-date-picker.entry.js +12 -12
- package/dist/esm/dropi-drawer.entry.js +4 -4
- package/dist/esm/dropi-dropdown.entry.js +2 -2
- package/dist/esm/dropi-empty-state.entry.js +3 -3
- package/dist/esm/dropi-favorite-button.entry.js +3 -3
- package/dist/esm/dropi-file-upload-progress-bar.entry.js +5 -5
- package/dist/esm/dropi-file-upload.entry.js +3 -3
- package/dist/esm/dropi-icon.entry.js +17 -3
- package/dist/esm/dropi-ilustration-icon.entry.js +5 -5
- package/dist/esm/dropi-image-miniature.entry.js +3 -3
- package/dist/esm/dropi-image-overlay.entry.js +2 -2
- package/dist/esm/dropi-input_3.entry.js +50 -22
- package/dist/esm/dropi-languages-selector.entry.js +4 -4
- package/dist/esm/dropi-logo.entry.js +2 -2
- package/dist/esm/dropi-lottie-loader.entry.js +1 -1
- package/dist/esm/dropi-media-player.entry.js +3 -3
- package/dist/esm/dropi-modal.entry.js +37 -32
- package/dist/esm/dropi-navbar.entry.js +7 -7
- package/dist/esm/dropi-otp-send-code.entry.js +34 -19
- package/dist/esm/dropi-phone-input.entry.js +14 -14
- package/dist/esm/dropi-progress-bar.entry.js +41 -0
- package/dist/esm/dropi-radio-button.entry.js +5 -5
- package/dist/esm/dropi-radio-selection-list.entry.js +9 -9
- package/dist/esm/dropi-read-more.entry.js +2 -2
- package/dist/esm/dropi-search.entry.js +21 -21
- package/dist/esm/dropi-select.entry.js +50 -22
- package/dist/esm/dropi-sidebar.entry.js +6 -6
- package/dist/esm/dropi-simple-stepper.entry.js +1 -1
- package/dist/esm/dropi-skeleton.entry.js +1 -1
- package/dist/esm/dropi-steps.entry.js +1 -1
- package/dist/esm/dropi-switch.entry.js +5 -5
- package/dist/esm/dropi-table.entry.js +38 -30
- package/dist/esm/dropi-tabs.entry.js +5 -5
- package/dist/esm/dropi-tag-type-product.entry.js +2 -2
- package/dist/esm/dropi-text-area.entry.js +7 -7
- package/dist/esm/dropi-time-line.entry.js +2 -2
- package/dist/esm/dropi-toast.entry.js +2 -2
- package/dist/esm/dropi-tooltip-v2.entry.js +3 -3
- package/dist/esm/dropi-tooltip.entry.js +2 -2
- package/dist/esm/dropi-ui.js +3 -3
- package/dist/esm/dropi-vertical-steps.entry.js +3 -3
- package/dist/esm/dropi-youtube-lazy-video.entry.js +2 -2
- package/dist/esm/index-a2fb4CHk.js +2763 -0
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/dropi-alert/dropi-alert.d.ts +3 -3
- package/dist/types/components/dropi-alert-modal/dropi-alert-modal.d.ts +8 -4
- package/dist/types/components/dropi-button/dropi-button.d.ts +1 -1
- package/dist/types/components/dropi-card-checkbox/dropi-card-checkbox.d.ts +1 -1
- package/dist/types/components/dropi-card-product/dropi-card-product.d.ts +2 -2
- package/dist/types/components/dropi-card-section/dropi-card-section.d.ts +2 -2
- package/dist/types/components/dropi-carousel/dropi-carousel.d.ts +2 -2
- package/dist/types/components/dropi-checkbox/dropi-checkbox.d.ts +1 -1
- package/dist/types/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.d.ts +2 -2
- package/dist/types/components/dropi-chips/dropi-chips.d.ts +1 -1
- package/dist/types/components/dropi-country-selector/dropi-country-selector.d.ts +1 -1
- package/dist/types/components/dropi-date-picker/dropi-date-picker.d.ts +2 -2
- package/dist/types/components/dropi-icon/dropi-icon.d.ts +4 -0
- package/dist/types/components/dropi-input/dropi-input.d.ts +4 -4
- package/dist/types/components/dropi-languages-selector/dropi-languages-selector.d.ts +1 -1
- package/dist/types/components/dropi-modal/dropi-modal.d.ts +9 -8
- package/dist/types/components/dropi-otp-send-code/dropi-otp-send-code.d.ts +7 -3
- package/dist/types/components/dropi-paginator/dropi-paginator.d.ts +1 -1
- package/dist/types/components/dropi-phone-input/dropi-phone-input.d.ts +4 -4
- package/dist/types/components/dropi-progress-bar/dropi-progress-bar.d.ts +16 -0
- package/dist/types/components/dropi-radio-button/dropi-radio-button.d.ts +1 -1
- package/dist/types/components/dropi-radio-selection-list/dropi-radio-selection-list.d.ts +2 -2
- package/dist/types/components/dropi-search/dropi-search.d.ts +6 -6
- package/dist/types/components/dropi-select/dropi-select.d.ts +10 -5
- package/dist/types/components/dropi-sidebar/dropi-sidebar.d.ts +1 -1
- package/dist/types/components/dropi-switch/dropi-switch.d.ts +1 -1
- package/dist/types/components/dropi-table/dropi-table.d.ts +6 -6
- package/dist/types/components/dropi-tabs/dropi-tabs.d.ts +1 -1
- package/dist/types/components/dropi-tag/dropi-tag.d.ts +5 -0
- package/dist/types/components.d.ts +303 -167
- package/hydrate/index.js +509 -348
- package/hydrate/index.mjs +509 -348
- package/package.json +1 -1
|
@@ -81,13 +81,13 @@ export class DropiInput {
|
|
|
81
81
|
touched = false;
|
|
82
82
|
// ── Events ──────────────────────────────────────────────────
|
|
83
83
|
/** Emitted on every keystroke with the current value */
|
|
84
|
-
|
|
84
|
+
dropiInput;
|
|
85
85
|
/** Emitted on blur with the final value */
|
|
86
|
-
|
|
86
|
+
dropiChange;
|
|
87
87
|
/** Emitted on focus */
|
|
88
|
-
|
|
88
|
+
dropiFocus;
|
|
89
89
|
/** Emitted on blur */
|
|
90
|
-
|
|
90
|
+
dropiBlur;
|
|
91
91
|
inputPropertiesChanged(val) {
|
|
92
92
|
if (!val)
|
|
93
93
|
return;
|
|
@@ -150,7 +150,7 @@ export class DropiInput {
|
|
|
150
150
|
val = this.formatThousands(val, this.isMoneyInput);
|
|
151
151
|
this.value = val;
|
|
152
152
|
this.internals.setFormValue(val);
|
|
153
|
-
this.
|
|
153
|
+
this.dropiInput.emit(val);
|
|
154
154
|
}
|
|
155
155
|
handleKeyDown(e) {
|
|
156
156
|
if ((this.isNumericInput || this.isMoneyInput || this.isThousandSeparator) && !this.isAllowedNumberKey(e)) {
|
|
@@ -161,12 +161,12 @@ export class DropiInput {
|
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
handleFocus() {
|
|
164
|
-
this.
|
|
164
|
+
this.dropiFocus.emit();
|
|
165
165
|
}
|
|
166
166
|
handleBlur() {
|
|
167
167
|
this.touched = true;
|
|
168
|
-
this.
|
|
169
|
-
this.
|
|
168
|
+
this.dropiChange.emit(this.value);
|
|
169
|
+
this.dropiBlur.emit();
|
|
170
170
|
}
|
|
171
171
|
togglePassword() {
|
|
172
172
|
if (this.disabled)
|
|
@@ -231,14 +231,14 @@ export class DropiInput {
|
|
|
231
231
|
render() {
|
|
232
232
|
const showObligatoryAsterisk = this.required && this.showObligatoryAsterisk && !this.disabled;
|
|
233
233
|
const showIconInline = !!this.icon;
|
|
234
|
-
return (h("div", { key: '
|
|
234
|
+
return (h("div", { key: '36a33fdb7048e3ba43dae3c2d3d71c9f69643cac', class: { 'fixed-label-container': this.fixedLabel } }, this.fixedLabel && (h("div", { key: '699adfe37d662ed328cd13fdad428e857b70f01d', class: "input-label Body-S-Regular" }, this.label, showObligatoryAsterisk && h("span", { key: 'b2d6f4757cdb50eacfb7879e4a878e30adf5235d', class: "asterisk" }, " *"))), h("div", { key: 'dc080fc5d0ab12f0eadf7e1bb30cae5539f76640', class: "form-group" }, h("div", { key: 'cf228d5e4c7e0a04735d38ba239a2b989f5247ca', class: { 'input-container': true, 'input-container--has-icon': showIconInline } }, showIconInline && (h("dropi-icon", { key: '049e396ea1f2f11625de73bc074c0e0aecea96ab', class: "icon-input", name: this.icon, color: this.iconColor, iconWidth: "20px", iconHeight: "20px", style: { width: '20px', height: '20px' } })), this.passwordInput && (h("dropi-icon", { key: '544316f6e7a284acf65d3a2b7fb3a2654c80d95b', 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() })), h("input", { key: '6d23ac748d0768d6eea0eb347bde7b13d8f20321', id: this.resolvedId, class: {
|
|
235
235
|
'form-control': true,
|
|
236
236
|
'form-control-valid': !this.isInvalid && this.touched && !!this.value,
|
|
237
237
|
'form-control-invalid': this.isInvalid,
|
|
238
238
|
'padding-icon': showIconInline,
|
|
239
239
|
'text-password': this.passwordInput && !this.showPassword,
|
|
240
240
|
'fixed-label-input': this.fixedLabel,
|
|
241
|
-
}, 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 && (h("label", { key: '
|
|
241
|
+
}, 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 && (h("label", { key: '8f26c9430cbc1c6b55286d62c2a350724dd0101f', class: "Body-S-Regular label-bottom", htmlFor: this.resolvedId }, this.label, showObligatoryAsterisk && h("span", { key: '95d953c160cf22457b0e1d6265b8137a24d4092b', class: "asterisk" }, " *"))), this.showHelper && (h("div", { key: 'ad3d4b5230fd32e97c661c64deadf97830caa550', class: "form-control-helper" }, this.isInvalid && h("dropi-icon", { key: '7c28120d1cc46ccd288948b1d2d9e5cc24521af7', name: "Warning-circle", iconWidth: "12px", iconHeight: "12px", color: "Error-Error-500" }), h("span", { key: '40eb1eedd2a204975aed61fcd24ccadd26d8aaef', class: {
|
|
242
242
|
'disabled-helper': this.disabled,
|
|
243
243
|
'invalid-color': this.isInvalid,
|
|
244
244
|
} }, this.textHelper)))))));
|
|
@@ -733,8 +733,8 @@ export class DropiInput {
|
|
|
733
733
|
}
|
|
734
734
|
static get events() {
|
|
735
735
|
return [{
|
|
736
|
-
"method": "
|
|
737
|
-
"name": "
|
|
736
|
+
"method": "dropiInput",
|
|
737
|
+
"name": "dropiInput",
|
|
738
738
|
"bubbles": true,
|
|
739
739
|
"cancelable": true,
|
|
740
740
|
"composed": true,
|
|
@@ -748,8 +748,8 @@ export class DropiInput {
|
|
|
748
748
|
"references": {}
|
|
749
749
|
}
|
|
750
750
|
}, {
|
|
751
|
-
"method": "
|
|
752
|
-
"name": "
|
|
751
|
+
"method": "dropiChange",
|
|
752
|
+
"name": "dropiChange",
|
|
753
753
|
"bubbles": true,
|
|
754
754
|
"cancelable": true,
|
|
755
755
|
"composed": true,
|
|
@@ -763,8 +763,8 @@ export class DropiInput {
|
|
|
763
763
|
"references": {}
|
|
764
764
|
}
|
|
765
765
|
}, {
|
|
766
|
-
"method": "
|
|
767
|
-
"name": "
|
|
766
|
+
"method": "dropiFocus",
|
|
767
|
+
"name": "dropiFocus",
|
|
768
768
|
"bubbles": true,
|
|
769
769
|
"cancelable": true,
|
|
770
770
|
"composed": true,
|
|
@@ -778,8 +778,8 @@ export class DropiInput {
|
|
|
778
778
|
"references": {}
|
|
779
779
|
}
|
|
780
780
|
}, {
|
|
781
|
-
"method": "
|
|
782
|
-
"name": "
|
|
781
|
+
"method": "dropiBlur",
|
|
782
|
+
"name": "dropiBlur",
|
|
783
783
|
"bubbles": true,
|
|
784
784
|
"cancelable": true,
|
|
785
785
|
"composed": true,
|
|
@@ -13,7 +13,7 @@ export class DropiLanguagesSelector {
|
|
|
13
13
|
languages = [];
|
|
14
14
|
/** Currently selected language (LanguageOption or JSON string) */
|
|
15
15
|
selectedLang = null;
|
|
16
|
-
|
|
16
|
+
dropiLanguageChange;
|
|
17
17
|
isOpen = false;
|
|
18
18
|
parsedLanguages = [];
|
|
19
19
|
currentLang = null;
|
|
@@ -40,7 +40,7 @@ export class DropiLanguagesSelector {
|
|
|
40
40
|
select(lang) {
|
|
41
41
|
this.currentLang = lang;
|
|
42
42
|
this.isOpen = false;
|
|
43
|
-
this.
|
|
43
|
+
this.dropiLanguageChange.emit(lang);
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
46
|
if (!this.currentLang)
|
|
@@ -124,8 +124,8 @@ export class DropiLanguagesSelector {
|
|
|
124
124
|
}
|
|
125
125
|
static get events() {
|
|
126
126
|
return [{
|
|
127
|
-
"method": "
|
|
128
|
-
"name": "
|
|
127
|
+
"method": "dropiLanguageChange",
|
|
128
|
+
"name": "dropiLanguageChange",
|
|
129
129
|
"bubbles": true,
|
|
130
130
|
"cancelable": true,
|
|
131
131
|
"composed": true,
|
|
@@ -25,7 +25,7 @@ export class DropiLogo {
|
|
|
25
25
|
e.target.src = FALLBACK_SVG;
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return (h("figure", { key: '
|
|
28
|
+
return (h("figure", { key: '2a5ed49bd2ac8592db5b06256ff4e911e26ee6fd', class: { 'dropi-logo': true, [`dropi-logo--${this.size}`]: true } }, h("img", { key: 'f0f63e2e5ceb30c24eac3f7f5a3446858b632f90', src: this.urlLogo || FALLBACK_SVG, alt: "Dropi logo", onError: (e) => this.handleError(e) })));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "dropi-logo"; }
|
|
31
31
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5,10 +5,11 @@
|
|
|
5
5
|
position: fixed; inset: 0;
|
|
6
6
|
display: flex; align-items: center; justify-content: center;
|
|
7
7
|
pointer-events: none; opacity: 0;
|
|
8
|
-
transition: opacity 0.18s ease; z-index:
|
|
8
|
+
transition: opacity 0.18s ease; z-index: 9999;
|
|
9
|
+
visibility: hidden;
|
|
9
10
|
}
|
|
10
|
-
.modal-root--open { opacity: 1; pointer-events: auto; }
|
|
11
|
-
.modal-root--closing { opacity: 1; pointer-events: none; }
|
|
11
|
+
.modal-root--open { opacity: 1; pointer-events: auto; visibility: visible; }
|
|
12
|
+
.modal-root--closing { opacity: 1; pointer-events: none; visibility: visible; }
|
|
12
13
|
|
|
13
14
|
.modal-mask {
|
|
14
15
|
position: absolute; inset: 0;
|
|
@@ -53,6 +54,8 @@
|
|
|
53
54
|
align-items: flex-start;
|
|
54
55
|
gap: var(--Size-1, 4px);
|
|
55
56
|
width: 100%;
|
|
57
|
+
margin-top: auto;
|
|
58
|
+
flex-shrink: 0;
|
|
56
59
|
}
|
|
57
60
|
.modal-footer:empty { display: none; }
|
|
58
61
|
|
|
@@ -72,12 +75,14 @@
|
|
|
72
75
|
}
|
|
73
76
|
|
|
74
77
|
.modal-panel.size-m .modal-footer,
|
|
75
|
-
.modal-panel.size-s .modal-footer
|
|
76
|
-
|
|
78
|
+
.modal-panel.size-s .modal-footer,
|
|
79
|
+
.modal-panel.size-xs .modal-footer {
|
|
80
|
+
justify-content: flex-end;
|
|
77
81
|
}
|
|
78
82
|
|
|
79
83
|
.modal-panel.size-m .modal-footer ::slotted(.button-container),
|
|
80
|
-
.modal-panel.size-s .modal-footer ::slotted(.button-container)
|
|
84
|
+
.modal-panel.size-s .modal-footer ::slotted(.button-container),
|
|
85
|
+
.modal-panel.size-xs .modal-footer ::slotted(.button-container) {
|
|
81
86
|
min-width: unset !important;
|
|
82
87
|
width: 100%;
|
|
83
88
|
}
|
|
@@ -94,6 +99,7 @@
|
|
|
94
99
|
.modal-panel.size-l { width: 1137px; max-width: 1137px; max-height: 754px; }
|
|
95
100
|
.modal-panel.size-m { max-width: 550px; width: 550px; }
|
|
96
101
|
.modal-panel.size-s { width: 454px; }
|
|
102
|
+
.modal-panel.size-xs { width: 320px; padding: 24px; gap: 16px; }
|
|
97
103
|
|
|
98
104
|
.modal-root--right { align-items: stretch; justify-content: flex-end; }
|
|
99
105
|
.modal-root--right .modal-panel { height: 100vh; max-height: 100vh; border-radius: 0; gap: 0; opacity: 1; transform: translateX(100%); transition: transform 0.32s cubic-bezier(0.4,0,0.2,1); }
|
|
@@ -33,25 +33,25 @@ export class DropiModal {
|
|
|
33
33
|
isDraggable = false;
|
|
34
34
|
/** No-op — kept for API parity with Angular (matches Angular `resizable`) */
|
|
35
35
|
resizable = false;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
dropiShow;
|
|
37
|
+
dropiHide;
|
|
38
|
+
dropiVisibleChange;
|
|
39
39
|
isOpen = false;
|
|
40
40
|
isClosing = false;
|
|
41
41
|
mounted = false;
|
|
42
42
|
closeTimer = null;
|
|
43
43
|
keyHandler = null;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
44
|
+
canDismiss = false;
|
|
45
|
+
visibleChanged(val) {
|
|
46
|
+
if (val) {
|
|
47
|
+
this.openModal();
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
this.startClose();
|
|
51
|
+
}
|
|
51
52
|
}
|
|
52
53
|
componentDidLoad() {
|
|
53
|
-
|
|
54
|
-
if (isVisible)
|
|
54
|
+
if (this.visible)
|
|
55
55
|
this.openModal();
|
|
56
56
|
}
|
|
57
57
|
disconnectedCallback() {
|
|
@@ -62,35 +62,40 @@ export class DropiModal {
|
|
|
62
62
|
document.body.classList.remove('dropi-modal-open');
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
async
|
|
66
|
-
this.visible
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
async dismiss() {
|
|
66
|
+
if (this.visible) {
|
|
67
|
+
this.visible = false;
|
|
68
|
+
this.dropiVisibleChange.emit(false);
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
this.startClose();
|
|
72
|
+
}
|
|
69
73
|
}
|
|
70
|
-
async
|
|
74
|
+
async openModalExternally() {
|
|
71
75
|
this.visible = true;
|
|
72
|
-
this.
|
|
73
|
-
this.openModal();
|
|
76
|
+
this.dropiVisibleChange.emit(true);
|
|
74
77
|
}
|
|
75
78
|
openModal() {
|
|
76
79
|
if (this.closeTimer) {
|
|
77
80
|
clearTimeout(this.closeTimer);
|
|
78
81
|
this.closeTimer = null;
|
|
79
82
|
}
|
|
80
|
-
|
|
83
|
+
// Safety: ensure it's not already open or in a closing state
|
|
81
84
|
this.isClosing = false;
|
|
82
|
-
this.
|
|
85
|
+
this.mounted = true;
|
|
83
86
|
requestAnimationFrame(() => requestAnimationFrame(() => {
|
|
84
87
|
this.isOpen = true;
|
|
85
|
-
this.
|
|
88
|
+
this.dropiShow.emit();
|
|
86
89
|
}));
|
|
87
90
|
this.addKeyHandler();
|
|
91
|
+
this.canDismiss = false;
|
|
92
|
+
setTimeout(() => { this.canDismiss = true; }, 300);
|
|
88
93
|
if ((this.modal ?? true) && Build.isBrowser && document.body) {
|
|
89
94
|
document.body.classList.add('dropi-modal-open');
|
|
90
95
|
}
|
|
91
96
|
}
|
|
92
97
|
startClose() {
|
|
93
|
-
if (this.isClosing)
|
|
98
|
+
if (this.isClosing || !this.mounted)
|
|
94
99
|
return;
|
|
95
100
|
this.isClosing = true;
|
|
96
101
|
this.isOpen = false;
|
|
@@ -104,15 +109,15 @@ export class DropiModal {
|
|
|
104
109
|
if ((this.modal ?? true) && Build.isBrowser && document.body) {
|
|
105
110
|
document.body.classList.remove('dropi-modal-open');
|
|
106
111
|
}
|
|
107
|
-
this.
|
|
112
|
+
this.dropiHide.emit();
|
|
108
113
|
}, 200);
|
|
109
114
|
}
|
|
110
115
|
addKeyHandler() {
|
|
111
116
|
if (!this.closeOnEscape)
|
|
112
117
|
return;
|
|
113
118
|
this.keyHandler = (e) => {
|
|
114
|
-
if (e.key === 'Escape' && this.visible && this.dismissable)
|
|
115
|
-
this.
|
|
119
|
+
if (e.key === 'Escape' && this.visible && this.dismissable && this.canDismiss)
|
|
120
|
+
this.dismiss();
|
|
116
121
|
};
|
|
117
122
|
document.addEventListener('keydown', this.keyHandler);
|
|
118
123
|
}
|
|
@@ -123,7 +128,7 @@ export class DropiModal {
|
|
|
123
128
|
}
|
|
124
129
|
}
|
|
125
130
|
render() {
|
|
126
|
-
return (h("div", { key: '
|
|
131
|
+
return (h("div", { key: '95847ba48baae69b93888cb59ecaa9d2130ae17a', class: `modal-root modal-root--${this.position}${this.isOpen ? ' modal-root--open' : ''}${this.isClosing ? ' modal-root--closing' : ''}` }, (this.modal ?? true) && h("div", { key: '78acc3c2f1b7327b6fc1770a9536cdf0c2c57f99', class: "modal-mask", onClick: () => this.canDismiss && this.dismissable && this.dismiss() }), h("div", { key: '63906a7ed0432879c3256a659ddd9773099244bc', class: `modal-panel size-${this.size || 'm'}`, role: "dialog", "aria-modal": "true", style: this.maxWidth ? { maxWidth: this.maxWidth, width: '100%' } : {} }, this.showHeader && (h("div", { key: '7d960505ea8fd7804ac67ceb88b9195e6ad1998d', class: "modal-header" }, this.header && h("span", { key: 'fed4b8a2e6c89fca39a8766d0e843db7c184be59', class: "modal-title" }, this.header), h("slot", { key: 'b2c6c5cc1f019229c3ad5028e42b1fd887494abd', name: "header" }), this.showCloseIcon && (h("button", { key: '24fc8ff422ea5c7e6a8c0737acbb29c1d7467f40', class: "modal-close", onClick: () => this.dismiss(), "aria-label": "Cerrar" }, "\u00D7")))), h("div", { key: '472a7dfe704b0b8d129b00bc88204602ead66403', class: "modal-content" }, h("slot", { key: '6b3e6fdefca0c6510d4fdbbccce53a5efa52e4c8' })), this.showFooter && h("div", { key: '5bd3c15d4d1fb2ebffad79c9314d03d1d72dae29', class: "modal-footer" }, h("slot", { key: '1980d019b142e2a00f55a3a755e9e08d0393c5e5', name: "footer" })))));
|
|
127
132
|
}
|
|
128
133
|
static get is() { return "dropi-modal"; }
|
|
129
134
|
static get encapsulation() { return "shadow"; }
|
|
@@ -140,11 +145,11 @@ export class DropiModal {
|
|
|
140
145
|
static get properties() {
|
|
141
146
|
return {
|
|
142
147
|
"visible": {
|
|
143
|
-
"type": "
|
|
148
|
+
"type": "boolean",
|
|
144
149
|
"mutable": true,
|
|
145
150
|
"complexType": {
|
|
146
|
-
"original": "
|
|
147
|
-
"resolved": "
|
|
151
|
+
"original": "boolean",
|
|
152
|
+
"resolved": "boolean",
|
|
148
153
|
"references": {}
|
|
149
154
|
},
|
|
150
155
|
"required": false,
|
|
@@ -410,7 +415,7 @@ export class DropiModal {
|
|
|
410
415
|
"mutable": false,
|
|
411
416
|
"complexType": {
|
|
412
417
|
"original": "ModalSize",
|
|
413
|
-
"resolved": "\"drawer-l\" | \"drawer-m\" | \"drawer-s\" | \"drawer-xxl\" | \"full\" | \"l\" | \"m\" | \"s\" | \"sidebar-half\" | \"xxl\"",
|
|
418
|
+
"resolved": "\"drawer-l\" | \"drawer-m\" | \"drawer-s\" | \"drawer-xxl\" | \"full\" | \"l\" | \"m\" | \"s\" | \"sidebar-half\" | \"xs\" | \"xxl\"",
|
|
414
419
|
"references": {
|
|
415
420
|
"ModalSize": {
|
|
416
421
|
"location": "local",
|
|
@@ -602,11 +607,11 @@ export class DropiModal {
|
|
|
602
607
|
}
|
|
603
608
|
static get events() {
|
|
604
609
|
return [{
|
|
605
|
-
"method": "
|
|
606
|
-
"name": "
|
|
610
|
+
"method": "dropiShow",
|
|
611
|
+
"name": "dropiShow",
|
|
607
612
|
"bubbles": true,
|
|
608
613
|
"cancelable": true,
|
|
609
|
-
"composed":
|
|
614
|
+
"composed": true,
|
|
610
615
|
"docs": {
|
|
611
616
|
"tags": [],
|
|
612
617
|
"text": ""
|
|
@@ -617,11 +622,11 @@ export class DropiModal {
|
|
|
617
622
|
"references": {}
|
|
618
623
|
}
|
|
619
624
|
}, {
|
|
620
|
-
"method": "
|
|
621
|
-
"name": "
|
|
625
|
+
"method": "dropiHide",
|
|
626
|
+
"name": "dropiHide",
|
|
622
627
|
"bubbles": true,
|
|
623
628
|
"cancelable": true,
|
|
624
|
-
"composed":
|
|
629
|
+
"composed": true,
|
|
625
630
|
"docs": {
|
|
626
631
|
"tags": [],
|
|
627
632
|
"text": ""
|
|
@@ -632,11 +637,11 @@ export class DropiModal {
|
|
|
632
637
|
"references": {}
|
|
633
638
|
}
|
|
634
639
|
}, {
|
|
635
|
-
"method": "
|
|
636
|
-
"name": "
|
|
640
|
+
"method": "dropiVisibleChange",
|
|
641
|
+
"name": "dropiVisibleChange",
|
|
637
642
|
"bubbles": true,
|
|
638
643
|
"cancelable": true,
|
|
639
|
-
"composed":
|
|
644
|
+
"composed": true,
|
|
640
645
|
"docs": {
|
|
641
646
|
"tags": [],
|
|
642
647
|
"text": ""
|
|
@@ -650,7 +655,7 @@ export class DropiModal {
|
|
|
650
655
|
}
|
|
651
656
|
static get methods() {
|
|
652
657
|
return {
|
|
653
|
-
"
|
|
658
|
+
"dismiss": {
|
|
654
659
|
"complexType": {
|
|
655
660
|
"signature": "() => Promise<void>",
|
|
656
661
|
"parameters": [],
|
|
@@ -667,7 +672,7 @@ export class DropiModal {
|
|
|
667
672
|
"tags": []
|
|
668
673
|
}
|
|
669
674
|
},
|
|
670
|
-
"
|
|
675
|
+
"openModalExternally": {
|
|
671
676
|
"complexType": {
|
|
672
677
|
"signature": "() => Promise<void>",
|
|
673
678
|
"parameters": [],
|
|
@@ -36,9 +36,9 @@ export class DropiNavbar {
|
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
38
|
const items = this.parsedData;
|
|
39
|
-
return (h("nav", { key: '
|
|
39
|
+
return (h("nav", { key: '83ec218a7545739c65d8f1f61197b429b0e7d407', class: "navbar" }, h("div", { key: 'e40038630c33a280f3c231b3dd26643f1c853ea3', class: "navbar__left" }, this.showMenuToggle && (h("button", { key: '0ecbae684b9324c48cd01a6081fd1951b3ba7cf8', class: "navbar__menu-btn", onClick: () => this.dropiMenuToggle.emit(), "aria-label": "Men\u00FA" }, h("dropi-icon", { key: '9edea72a4508a984be2e6785f3f0fa6abe0625c4', name: "Menu", iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-700" }))), this.logoUrl && (h("img", { key: 'b8cd9896736d505dad05b8df5f10928d40f250dd', class: "navbar__logo", src: this.logoUrl, alt: this.logoAlt })), this.title && h("span", { key: '4e5dae851fe28f1bc913d7a5d4d42a2413342635', class: "navbar__title" }, this.title)), items.length > 0 && (h("ul", { key: 'b951cc880b8aaf718b85403e3420d73ac976aa60', 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: '8fe68f93af722982bac11890b106a35a292b3d98', class: "navbar__right" }, h("button", { key: 'a4d0ff928dca2502384cd21e0bc852cacc895a30', class: "navbar__icon-btn", onClick: () => this.dropiNotificationsClick.emit(), "aria-label": "Notificaciones" }, h("dropi-icon", { key: '41007746a151c27059d41db7c4672a2b551882d1', name: "Bell", iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-600" }), this.notifications > 0 && (h("span", { key: 'a0e5c6c9f8e2aaf3e67cc22bdff2ae65472b7cb5', class: "navbar__notif-badge" }, this.notifications > 99 ? '99+' : this.notifications))), h("button", { key: 'e1996f9e1fa922cd03a4e9c5721f5be838a941d3', class: "navbar__user-btn", onClick: () => this.dropiUserClick.emit(), type: "button" }, this.userAvatar
|
|
40
40
|
? h("img", { class: "navbar__avatar", src: this.userAvatar, alt: this.userName })
|
|
41
|
-
: h("div", { class: "navbar__avatar-placeholder" }, this.userName ? this.userName[0].toUpperCase() : '?'), this.userName && h("span", { key: '
|
|
41
|
+
: h("div", { class: "navbar__avatar-placeholder" }, this.userName ? this.userName[0].toUpperCase() : '?'), this.userName && h("span", { key: 'd539c8f456564aa8d3a29e9d2e2ed6250241f411', class: "navbar__user-name" }, this.userName), h("dropi-icon", { key: 'd32cba548201f28a051142e889f6de207a4e67d2', name: "Arrow-Down-2", iconWidth: "12px", iconHeight: "12px", color: "Gray-Gray-400" })))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "dropi-navbar"; }
|
|
44
44
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
const OTP_LENGTH = 6;
|
|
3
2
|
const RESEND_SECONDS = 30;
|
|
4
3
|
/**
|
|
5
4
|
* @component dropi-otp-send-code
|
|
6
|
-
*
|
|
5
|
+
* OTP input with configurable length, countdown timer and resend capability.
|
|
7
6
|
*/
|
|
8
7
|
export class DropiOtpSendCode {
|
|
9
8
|
/** Delivery method label */
|
|
@@ -14,19 +13,30 @@ export class DropiOtpSendCode {
|
|
|
14
13
|
showLabelContact = false;
|
|
15
14
|
/** Error message to display */
|
|
16
15
|
errorMessage = '';
|
|
17
|
-
digits
|
|
18
|
-
|
|
16
|
+
/** Number of digits for the OTP */
|
|
17
|
+
digitsCount = 6;
|
|
18
|
+
digits = [];
|
|
19
|
+
digitStates = [];
|
|
19
20
|
countdown = RESEND_SECONDS;
|
|
20
21
|
canResend = false;
|
|
21
22
|
error = false;
|
|
22
23
|
inputs = [];
|
|
23
24
|
timer;
|
|
24
|
-
|
|
25
|
+
handleDigitsCountChange(newValue) {
|
|
26
|
+
this.digits = Array(newValue).fill('');
|
|
27
|
+
this.digitStates = Array(newValue).fill('idle');
|
|
28
|
+
this.inputs = [];
|
|
29
|
+
}
|
|
30
|
+
/** Emitted when all digits are entered. */
|
|
25
31
|
codeCompleted;
|
|
26
|
-
/** Emitted when all
|
|
32
|
+
/** Emitted when all digits are entered (alternative event). */
|
|
27
33
|
codeAccepted;
|
|
28
34
|
/** Emitted when resend is requested */
|
|
29
35
|
dropiResend;
|
|
36
|
+
componentWillLoad() {
|
|
37
|
+
this.digits = Array(this.digitsCount).fill('');
|
|
38
|
+
this.digitStates = Array(this.digitsCount).fill('idle');
|
|
39
|
+
}
|
|
30
40
|
componentDidLoad() { this.startCountdown(); }
|
|
31
41
|
disconnectedCallback() { clearInterval(this.timer); }
|
|
32
42
|
startCountdown() {
|
|
@@ -43,13 +53,13 @@ export class DropiOtpSendCode {
|
|
|
43
53
|
}
|
|
44
54
|
handleInput(e, index) {
|
|
45
55
|
const val = e.target.value.replace(/\D/g, '').slice(-1);
|
|
46
|
-
const newDigits = [...
|
|
56
|
+
const newDigits = [...this.digits];
|
|
47
57
|
newDigits[index] = val;
|
|
48
58
|
this.digits = newDigits;
|
|
49
|
-
const newStates = [...
|
|
59
|
+
const newStates = [...this.digitStates];
|
|
50
60
|
newStates[index] = val ? 'filled' : 'idle';
|
|
51
61
|
this.digitStates = newStates;
|
|
52
|
-
if (val && index <
|
|
62
|
+
if (val && index < this.digitsCount - 1)
|
|
53
63
|
this.inputs[index + 1]?.focus();
|
|
54
64
|
if (newDigits.every(d => d !== '')) {
|
|
55
65
|
const finalCode = newDigits.join('');
|
|
@@ -58,18 +68,18 @@ export class DropiOtpSendCode {
|
|
|
58
68
|
}
|
|
59
69
|
}
|
|
60
70
|
handleKeyDown(e, index) {
|
|
61
|
-
if (e.key === 'Backspace' && !
|
|
71
|
+
if (e.key === 'Backspace' && !this.digits[index] && index > 0) {
|
|
62
72
|
this.inputs[index - 1]?.focus();
|
|
63
73
|
}
|
|
64
74
|
}
|
|
65
75
|
handlePaste(e) {
|
|
66
76
|
e.preventDefault();
|
|
67
|
-
const text = e.clipboardData?.getData('text')?.replace(/\D/g, '').slice(0,
|
|
68
|
-
const newDigits = Array(
|
|
77
|
+
const text = e.clipboardData?.getData('text')?.replace(/\D/g, '').slice(0, this.digitsCount) || '';
|
|
78
|
+
const newDigits = Array(this.digitsCount).fill('');
|
|
69
79
|
text.split('').forEach((c, i) => { newDigits[i] = c; });
|
|
70
80
|
this.digits = newDigits;
|
|
71
81
|
this.digitStates = newDigits.map(d => d ? 'filled' : 'idle');
|
|
72
|
-
this.inputs[Math.min(text.length,
|
|
82
|
+
this.inputs[Math.min(text.length, this.digitsCount - 1)]?.focus();
|
|
73
83
|
if (newDigits.every(d => d !== '')) {
|
|
74
84
|
const finalCode = newDigits.join('');
|
|
75
85
|
this.codeCompleted.emit(finalCode);
|
|
@@ -78,14 +88,14 @@ export class DropiOtpSendCode {
|
|
|
78
88
|
}
|
|
79
89
|
render() {
|
|
80
90
|
const engineLabel = this.engine === 'sms' ? 'SMS' : this.engine === '2fa' ? 'autenticador' : 'correo';
|
|
81
|
-
return (h("div", { key: '
|
|
91
|
+
return (h("div", { key: 'c9c6c3387cec2371049c547d87742563268bf28d', class: "otp" }, this.showLabelContact && (h("p", { key: 'c3f36c62d7502eff8f86ef8202c3dfc65d846ba1', class: "otp__label" }, "Ingresa el c\u00F3digo enviado a tu ", engineLabel, this.labelContact && h("strong", { key: '25c05d8f0773bf6f2af83f6154ac76638499e4d7' }, " ", this.labelContact))), h("div", { key: '3ca2687723735b3eb6ada997f622a4a50c2d7ee9', class: "otp__inputs", onPaste: (e) => this.handlePaste(e) }, this.digits.map((_, i) => (h("input", { key: i, ref: (el) => {
|
|
82
92
|
if (el)
|
|
83
93
|
this.inputs[i] = el;
|
|
84
94
|
}, class: {
|
|
85
95
|
'otp__digit': true,
|
|
86
|
-
'otp__digit--filled':
|
|
96
|
+
'otp__digit--filled': this.digitStates[i] === 'filled',
|
|
87
97
|
'otp__digit--error': this.error,
|
|
88
|
-
}, type: "text", inputMode: "numeric", maxLength: 1, value:
|
|
98
|
+
}, 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: 'ddcdd5dacc533b73e6353c2670f762168c2803d3', class: "otp__error" }, this.errorMessage)), h("div", { key: 'a21650c43d7a62f9e187bd9f4eb307d275ff37be', 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")))));
|
|
89
99
|
}
|
|
90
100
|
static get is() { return "dropi-otp-send-code"; }
|
|
91
101
|
static get encapsulation() { return "shadow"; }
|
|
@@ -180,6 +190,26 @@ export class DropiOtpSendCode {
|
|
|
180
190
|
"reflect": false,
|
|
181
191
|
"attribute": "error-message",
|
|
182
192
|
"defaultValue": "''"
|
|
193
|
+
},
|
|
194
|
+
"digitsCount": {
|
|
195
|
+
"type": "number",
|
|
196
|
+
"mutable": false,
|
|
197
|
+
"complexType": {
|
|
198
|
+
"original": "number",
|
|
199
|
+
"resolved": "number",
|
|
200
|
+
"references": {}
|
|
201
|
+
},
|
|
202
|
+
"required": false,
|
|
203
|
+
"optional": false,
|
|
204
|
+
"docs": {
|
|
205
|
+
"tags": [],
|
|
206
|
+
"text": "Number of digits for the OTP"
|
|
207
|
+
},
|
|
208
|
+
"getter": false,
|
|
209
|
+
"setter": false,
|
|
210
|
+
"reflect": false,
|
|
211
|
+
"attribute": "digits-count",
|
|
212
|
+
"defaultValue": "6"
|
|
183
213
|
}
|
|
184
214
|
};
|
|
185
215
|
}
|
|
@@ -201,7 +231,7 @@ export class DropiOtpSendCode {
|
|
|
201
231
|
"composed": true,
|
|
202
232
|
"docs": {
|
|
203
233
|
"tags": [],
|
|
204
|
-
"text": "Emitted when all
|
|
234
|
+
"text": "Emitted when all digits are entered."
|
|
205
235
|
},
|
|
206
236
|
"complexType": {
|
|
207
237
|
"original": "string",
|
|
@@ -216,7 +246,7 @@ export class DropiOtpSendCode {
|
|
|
216
246
|
"composed": true,
|
|
217
247
|
"docs": {
|
|
218
248
|
"tags": [],
|
|
219
|
-
"text": "Emitted when all
|
|
249
|
+
"text": "Emitted when all digits are entered (alternative event)."
|
|
220
250
|
},
|
|
221
251
|
"complexType": {
|
|
222
252
|
"original": "string",
|
|
@@ -240,4 +270,10 @@ export class DropiOtpSendCode {
|
|
|
240
270
|
}
|
|
241
271
|
}];
|
|
242
272
|
}
|
|
273
|
+
static get watchers() {
|
|
274
|
+
return [{
|
|
275
|
+
"propName": "digitsCount",
|
|
276
|
+
"methodName": "handleDigitsCountChange"
|
|
277
|
+
}];
|
|
278
|
+
}
|
|
243
279
|
}
|
|
@@ -17,7 +17,7 @@ export class DropiPaginator {
|
|
|
17
17
|
/** Hide "Anterior"/"Siguiente" text labels, show only arrows */
|
|
18
18
|
noLabels = false;
|
|
19
19
|
/** Emitted when page changes. e.detail = new page number */
|
|
20
|
-
|
|
20
|
+
dropiPageChange;
|
|
21
21
|
get pageNumbers() {
|
|
22
22
|
const total = this.totalPages;
|
|
23
23
|
const cur = this.currentPage;
|
|
@@ -48,15 +48,15 @@ export class DropiPaginator {
|
|
|
48
48
|
if (this.disabled || p < 1 || p > this.totalPages || p === this.currentPage)
|
|
49
49
|
return;
|
|
50
50
|
this.currentPage = p;
|
|
51
|
-
this.
|
|
51
|
+
this.dropiPageChange.emit(this.currentPage);
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
54
|
const pages = this.pageNumbers;
|
|
55
55
|
const isFirst = this.currentPage <= 1;
|
|
56
56
|
const isLast = this.currentPage >= this.totalPages;
|
|
57
|
-
return (h("div", { key: '
|
|
57
|
+
return (h("div", { key: 'af6614df5a241ef536b6723d30bde12c8a6f474f', class: "paginator" }, h("div", { key: '8b5405baa717a36042fc03ca2e68370799c01ff7', class: "paginator-pages" }, !isFirst && !this.noLabels && (h("button", { key: 'c340304b29d658ef9eaa8105a91540660c829048', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(1), "aria-label": "Primera p\u00E1gina", disabled: this.disabled }, h("dropi-icon", { key: '3adfc1508cbcedbb91f99e467db2270c40a4ac83', name: "Arrow-double-small-left", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-600" }))), !isFirst && (h("button", { key: '5936642c4b9e5b72546229996fbc72fe973e6f5f', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(this.currentPage - 1), "aria-label": "Anterior", disabled: this.disabled }, h("dropi-icon", { key: 'c9f7eb1c0c27a738ee31e859617964fc75e514cc', name: "Dropdown-left", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-600" }), !this.noLabels && h("span", { key: '5d448a9a6536c90c56fafd700e7c5998a85d6fdf', class: "paginator-label" }, "Anterior"))), pages.map((p, i) => p === '...'
|
|
58
58
|
? h("span", { class: "paginator-ellipsis", key: `e${i}` }, "\u2026")
|
|
59
|
-
: h("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 && (h("button", { key: '
|
|
59
|
+
: h("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 && (h("button", { key: '1a43d8dde37cdbc40527eb1c66bc5001a64cf59f', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(this.currentPage + 1), "aria-label": "Siguiente", disabled: this.disabled }, !this.noLabels && h("span", { key: 'f76ccd791d02b25d78c509341b73e1c1bca0b986', class: "paginator-label" }, "Siguiente"), h("dropi-icon", { key: '822a3a7e4ac651e00c469b565e300a7efcc5614b', name: "Dropdown-Right", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-600" }))), !isLast && !this.noLabels && (h("button", { key: '2b4f7435f9083ab9c4d9ce81be5c259eda830e4a', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(this.totalPages), "aria-label": "\u00DAltima p\u00E1gina", disabled: this.disabled }, h("dropi-icon", { key: '63ab5568c44ed3cbda917842defe4dc4254bb3f1', name: "Arrow-double-small-right", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-600" }))))));
|
|
60
60
|
}
|
|
61
61
|
static get is() { return "dropi-paginator"; }
|
|
62
62
|
static get encapsulation() { return "shadow"; }
|
|
@@ -196,8 +196,8 @@ export class DropiPaginator {
|
|
|
196
196
|
}
|
|
197
197
|
static get events() {
|
|
198
198
|
return [{
|
|
199
|
-
"method": "
|
|
200
|
-
"name": "
|
|
199
|
+
"method": "dropiPageChange",
|
|
200
|
+
"name": "dropiPageChange",
|
|
201
201
|
"bubbles": true,
|
|
202
202
|
"cancelable": true,
|
|
203
203
|
"composed": true,
|