@dropi/ui 0.1.41 → 0.1.43
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 +3 -3
- 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 +98 -10
- 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 +5 -5
- 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 +15 -15
- 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 +3 -3
- package/dist/cjs/dropi-tooltip-v2.cjs.entry.js +4 -4
- package/dist/cjs/dropi-tooltip.cjs.entry.js +3 -3
- 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/index-DydfpGMc.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-city-selector/dropi-city-selector.css +1 -1
- 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.css +1 -1
- package/dist/collection/components/dropi-country-selector/dropi-country-selector.js +117 -9
- package/dist/collection/components/dropi-date-picker/dropi-date-picker.js +12 -12
- package/dist/collection/components/dropi-drawer/dropi-drawer.css +1 -1
- 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.css +1 -1
- 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 +5 -1
- 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.css +1 -1
- package/dist/collection/components/dropi-toast/dropi-toast.js +1 -1
- package/dist/collection/components/dropi-tooltip/dropi-tooltip.css +1 -1
- package/dist/collection/components/dropi-tooltip/dropi-tooltip.js +1 -1
- package/dist/collection/components/dropi-tooltip-v2/dropi-tooltip.css +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-Bw8zPxUl.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 +2 -2
- package/dist/dropi-ui/dropi-accordion.entry.js +2 -2
- package/dist/dropi-ui/dropi-alert-legacy.entry.js +1 -1
- package/dist/dropi-ui/dropi-alert-modal.entry.js +20 -16
- package/dist/dropi-ui/dropi-alert-modal.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-alert.entry.js +12 -12
- package/dist/dropi-ui/dropi-alert.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-avatars.entry.js +1 -1
- package/dist/dropi-ui/dropi-badge-legacy.entry.js +2 -2
- package/dist/dropi-ui/dropi-badge.entry.js +1 -1
- package/dist/dropi-ui/dropi-banner-external.entry.js +1 -1
- package/dist/dropi-ui/dropi-breadcrumb.entry.js +1 -1
- package/dist/dropi-ui/dropi-button.entry.js +7 -7
- package/dist/dropi-ui/dropi-button.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-card-checkbox.entry.js +6 -6
- package/dist/dropi-ui/dropi-card-checkbox.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-card-product.entry.js +10 -10
- package/dist/dropi-ui/dropi-card-product.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-card-section.entry.js +9 -9
- package/dist/dropi-ui/dropi-card-section.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-carousel.entry.js +8 -8
- package/dist/dropi-ui/dropi-carousel.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-checkbox-selection-list.entry.js +9 -9
- package/dist/dropi-ui/dropi-checkbox-selection-list.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-checkbox.entry.js +6 -6
- package/dist/dropi-ui/dropi-checkbox.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-chips.entry.js +4 -4
- package/dist/dropi-ui/dropi-chips.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-city-selector.entry.js +2 -2
- package/dist/dropi-ui/dropi-city-selector.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-color-picker.entry.js +3 -3
- package/dist/dropi-ui/dropi-country-flags.entry.js +2 -2
- package/dist/dropi-ui/dropi-country-selector.entry.js +98 -10
- package/dist/dropi-ui/dropi-country-selector.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-date-picker-range.entry.js +1 -1
- package/dist/dropi-ui/dropi-date-picker.entry.js +11 -11
- package/dist/dropi-ui/dropi-date-picker.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-drawer.entry.js +4 -4
- package/dist/dropi-ui/dropi-drawer.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-dropdown.entry.js +1 -1
- package/dist/dropi-ui/dropi-empty-state.entry.js +2 -2
- package/dist/dropi-ui/dropi-favorite-button.entry.js +2 -2
- package/dist/dropi-ui/dropi-file-upload-progress-bar.entry.js +2 -2
- package/dist/dropi-ui/dropi-file-upload.entry.js +2 -2
- package/dist/dropi-ui/dropi-file-upload.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-icon.entry.js +17 -3
- package/dist/dropi-ui/dropi-icon.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-ilustration-icon.entry.js +5 -5
- package/dist/dropi-ui/dropi-ilustration-icon.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-image-miniature.entry.js +2 -2
- package/dist/dropi-ui/dropi-image-overlay.entry.js +1 -1
- package/dist/dropi-ui/dropi-input.entry.js +15 -15
- package/dist/dropi-ui/dropi-input.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-languages-selector.entry.js +4 -4
- package/dist/dropi-ui/dropi-languages-selector.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-logo.entry.js +2 -2
- package/dist/dropi-ui/dropi-lottie-loader.entry.js +1 -1
- package/dist/dropi-ui/dropi-media-player.entry.js +1 -1
- package/dist/dropi-ui/dropi-modal.entry.js +37 -32
- package/dist/dropi-ui/dropi-modal.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-navbar.entry.js +3 -3
- package/dist/dropi-ui/dropi-otp-send-code.entry.js +31 -16
- package/dist/dropi-ui/dropi-otp-send-code.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-paginator.entry.js +6 -6
- package/dist/dropi-ui/dropi-paginator.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-phone-input.entry.js +15 -15
- 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 +5 -5
- package/dist/dropi-ui/dropi-radio-button.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-radio-selection-list.entry.js +9 -9
- package/dist/dropi-ui/dropi-radio-selection-list.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-read-more.entry.js +2 -2
- package/dist/dropi-ui/dropi-search.entry.js +21 -21
- package/dist/dropi-ui/dropi-search.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-select.entry.js +50 -22
- package/dist/dropi-ui/dropi-select.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-sidebar.entry.js +6 -6
- package/dist/dropi-ui/dropi-sidebar.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-simple-stepper.entry.js +1 -1
- package/dist/dropi-ui/dropi-skeleton.entry.js +1 -1
- package/dist/dropi-ui/dropi-steps.entry.js +1 -1
- package/dist/dropi-ui/dropi-switch.entry.js +5 -5
- package/dist/dropi-ui/dropi-switch.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-table.entry.js +30 -22
- package/dist/dropi-ui/dropi-table.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-tabs.entry.js +5 -5
- package/dist/dropi-ui/dropi-tabs.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-tag-type-product.entry.js +2 -2
- package/dist/dropi-ui/dropi-tag.entry.js +31 -3
- package/dist/dropi-ui/dropi-tag.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-text-area.entry.js +3 -3
- package/dist/dropi-ui/dropi-time-line.entry.js +2 -2
- package/dist/dropi-ui/dropi-toast.entry.js +3 -3
- package/dist/dropi-ui/dropi-toast.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-tooltip-v2.entry.js +4 -4
- package/dist/dropi-ui/dropi-tooltip-v2.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-tooltip.entry.js +3 -3
- package/dist/dropi-ui/dropi-tooltip.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-ui.css +9 -0
- package/dist/dropi-ui/dropi-ui.esm.js +3 -3
- package/dist/dropi-ui/dropi-vertical-steps.entry.js +2 -2
- package/dist/dropi-ui/dropi-youtube-lazy-video.entry.js +2 -2
- package/dist/dropi-ui/index-D0Z06C2b.js +4585 -0
- package/dist/dropi-ui/index-D0Z06C2b.js.map +1 -0
- 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-09cf560a.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-19031bf8.entry.js +1 -0
- package/dist/dropi-ui/p-1a07b3a6.entry.js +1 -1
- package/dist/dropi-ui/p-1ce00757.entry.js +1 -0
- package/dist/dropi-ui/p-1d3d6a32.entry.js +1 -1
- 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-2ad8d3c1.entry.js +1 -0
- package/dist/dropi-ui/p-2b5ce062.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-369a069e.entry.js +1 -0
- package/dist/dropi-ui/p-372a5023.entry.js +1 -0
- package/dist/dropi-ui/p-378b165b.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-3ec6620c.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-51028e22.entry.js +1 -0
- package/dist/dropi-ui/p-510ad065.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-5f5c0a5c.entry.js +1 -0
- package/dist/dropi-ui/p-5f735166.entry.js +1 -0
- package/dist/dropi-ui/p-60901aa7.entry.js +1 -0
- package/dist/dropi-ui/p-61f8905c.entry.js +1 -0
- package/dist/dropi-ui/p-62847b6f.entry.js +1 -0
- package/dist/dropi-ui/p-647bab57.entry.js +1 -0
- package/dist/dropi-ui/p-648e5340.entry.js +1 -0
- package/dist/dropi-ui/p-650a7679.entry.js +1 -1
- 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-68cae74b.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-6a51f80c.entry.js +1 -0
- package/dist/dropi-ui/p-6b925a36.entry.js +1 -0
- package/dist/dropi-ui/p-6c45c910.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-6ef4affd.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-721ef2b1.entry.js +1 -0
- package/dist/dropi-ui/p-72c6e0c4.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-7664b8f9.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-774aab1a.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-7bc18f39.entry.js +1 -0
- package/dist/dropi-ui/p-7c0f959f.entry.js +1 -0
- package/dist/dropi-ui/p-7c3aa4bc.entry.js +1 -0
- package/dist/dropi-ui/p-7c5ea4c5.entry.js +1 -0
- package/dist/dropi-ui/p-7e526178.entry.js +1 -0
- package/dist/dropi-ui/p-7e99d4c4.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-7fc195ee.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-82909f07.entry.js +1 -0
- package/dist/dropi-ui/p-84019422.entry.js +1 -0
- package/dist/dropi-ui/p-84c63ece.entry.js +1 -0
- package/dist/dropi-ui/p-850b92f0.entry.js +1 -0
- package/dist/dropi-ui/p-85ee6d6a.entry.js +1 -0
- package/dist/dropi-ui/p-8b8dc399.entry.js +1 -0
- package/dist/dropi-ui/p-8c0ff5e6.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-95808559.entry.js +1 -0
- package/dist/dropi-ui/p-95b7abf3.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-9c734a8f.entry.js +1 -0
- package/dist/dropi-ui/p-9c7698ef.entry.js +1 -0
- package/dist/dropi-ui/p-9e62ff06.entry.js +1 -0
- package/dist/dropi-ui/p-9e8615de.entry.js +1 -0
- package/dist/dropi-ui/p-B-h7fjQz.js +2 -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-a3c3e479.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-aa48e5cb.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-af1e778b.entry.js +1 -0
- package/dist/dropi-ui/p-b14f6889.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-b320ca5a.entry.js +1 -0
- package/dist/dropi-ui/p-b325f7cf.entry.js +1 -0
- package/dist/dropi-ui/p-b605d3d9.entry.js +1 -1
- 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-baac546d.entry.js +1 -0
- package/dist/dropi-ui/p-bb6a2bdd.entry.js +1 -0
- package/dist/dropi-ui/p-bbf374d6.entry.js +1 -0
- package/dist/dropi-ui/p-bd06eb80.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-c1d5d4ab.entry.js +1 -0
- package/dist/dropi-ui/p-c218524f.entry.js +1 -0
- package/dist/dropi-ui/p-c4e24d47.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-c8d0727a.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-caa6ba65.entry.js +1 -0
- package/dist/dropi-ui/p-cb4ad8d2.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-d1aeb373.entry.js +1 -1
- package/dist/dropi-ui/p-d384f4e9.entry.js +1 -0
- package/dist/dropi-ui/p-d3f3bb91.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-d6b3784b.entry.js +1 -0
- package/dist/dropi-ui/p-d813969b.entry.js +1 -0
- package/dist/dropi-ui/p-d886b045.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-db71d065.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-e36d5e9f.entry.js +1 -0
- package/dist/dropi-ui/p-e40db21a.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-ebaa1574.entry.js +1 -0
- package/dist/dropi-ui/p-ebb81172.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-f1e08f03.entry.js +1 -0
- package/dist/dropi-ui/p-f23e1df7.entry.js +1 -0
- package/dist/dropi-ui/p-f3f27534.entry.js +1 -0
- package/dist/dropi-ui/p-f426e0fc.entry.js +1 -0
- package/dist/dropi-ui/p-f4bd8568.entry.js +1 -0
- package/dist/dropi-ui/p-f6ed3cbb.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-f9888cea.entry.js +1 -1
- 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-fea1be78.entry.js +1 -0
- package/dist/dropi-ui/p-fef3673d.entry.js +1 -0
- package/dist/dropi-ui/p-ff084c1c.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 +3 -3
- 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 +98 -10
- 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 +5 -5
- 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 +15 -15
- 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 +3 -3
- package/dist/esm/dropi-tooltip-v2.entry.js +4 -4
- package/dist/esm/dropi-tooltip.entry.js +3 -3
- 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-B-h7fjQz.js +2763 -0
- 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 +11 -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 +314 -167
- package/hydrate/index.js +609 -359
- package/hydrate/index.mjs +609 -359
- package/package.json +3 -2
- package/scripts/postinstall.js +1 -1
package/hydrate/index.js
CHANGED
|
@@ -1772,9 +1772,9 @@ var createEvent = (ref, name, flags) => {
|
|
|
1772
1772
|
return {
|
|
1773
1773
|
emit: (detail) => {
|
|
1774
1774
|
return emitEvent(elm, name, {
|
|
1775
|
-
bubbles:
|
|
1776
|
-
composed:
|
|
1777
|
-
cancelable:
|
|
1775
|
+
bubbles: true,
|
|
1776
|
+
composed: true,
|
|
1777
|
+
cancelable: true,
|
|
1778
1778
|
detail
|
|
1779
1779
|
});
|
|
1780
1780
|
}
|
|
@@ -5343,7 +5343,7 @@ class DropiAccordion {
|
|
|
5343
5343
|
/** Allows multiple sections to be open at the same time. If false, only one section can be open. */
|
|
5344
5344
|
multiple = false;
|
|
5345
5345
|
render() {
|
|
5346
|
-
return (hAsync("div", { key: '
|
|
5346
|
+
return (hAsync("div", { key: 'c8c70f9c2210e1bc6de7d0933f082a0d1c008837', class: "accordion-container" }, hAsync("slot", { key: '9fe1055ed6f5a2fc5c3e8dde47b694ea0acdbcb9' })));
|
|
5347
5347
|
}
|
|
5348
5348
|
static get style() { return dropiAccordionCss(); }
|
|
5349
5349
|
static get cmpMeta() { return {
|
|
@@ -5401,7 +5401,7 @@ class DropiAccordionItem {
|
|
|
5401
5401
|
setTimeout(() => this.updateHeight(this.open), 0);
|
|
5402
5402
|
}
|
|
5403
5403
|
render() {
|
|
5404
|
-
return (hAsync("div", { key: '
|
|
5404
|
+
return (hAsync("div", { key: '98de1df9b82f0e4e5e72702b7eaca12c0ed92586', class: { 'accordion-item': true, 'accordion-item--open': this.open, 'accordion-item--disabled': this.disabled } }, hAsync("button", { key: 'bd5c3e6ea29feb33e5280908c98929369dc7377e', class: "accordion-header", onClick: () => this.handleToggle(), "aria-expanded": String(this.open), disabled: this.disabled }, hAsync("span", { key: 'ced161eb1187d50b7eb2002081cd3fc008c9a16f', class: "accordion-header-left" }, this.preIcon && hAsync("dropi-icon", { key: '09a157623f0978153b57e85a79d7beeca3faf9ab', name: this.preIcon, iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-600" }), hAsync("span", { key: '649617f263370d1314e3145c07a3a29ce5c807b5', class: "accordion-title" }, this.sectionTitle)), hAsync("span", { key: 'd99e3933a40ffa4b1da8091a8b6d767011f1bf6f', class: { 'accordion-chevron': true, 'accordion-chevron--open': this.open } }, hAsync("dropi-icon", { key: '3d12ae988429fea2612c0c32c12cd81a486ad255', name: "Dropdown-down", iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-500" }))), hAsync("div", { key: 'cedff4803c6fa83ae9dc5cb3ce68f48150cdef67', class: "accordion-body", style: { maxHeight: this.contentHeight }, ref: (el) => this.contentRef = el }, hAsync("div", { key: 'a37dd42bf39cf08479d847286860e78a1d80a233', class: "accordion-content" }, hAsync("slot", { key: 'd797eac747716be1af2a6addbefe583be4a816b1' })))));
|
|
5405
5405
|
}
|
|
5406
5406
|
static get watchers() { return {
|
|
5407
5407
|
"open": [{
|
|
@@ -5430,8 +5430,8 @@ const dropiAlertCss = () => `:host{display:block;width:100%}*,*::before,*::after
|
|
|
5430
5430
|
|
|
5431
5431
|
const STATE_ICONS = {
|
|
5432
5432
|
success: 'Check-circle',
|
|
5433
|
-
error: '
|
|
5434
|
-
warning: 'Warning-
|
|
5433
|
+
error: 'Cross-circle',
|
|
5434
|
+
warning: 'Warning-circle',
|
|
5435
5435
|
info: 'Info',
|
|
5436
5436
|
};
|
|
5437
5437
|
const STATE_COLORS = {
|
|
@@ -5448,9 +5448,9 @@ const STATE_COLORS = {
|
|
|
5448
5448
|
class DropiAlert {
|
|
5449
5449
|
constructor(hostRef) {
|
|
5450
5450
|
registerInstance(this, hostRef);
|
|
5451
|
-
this.
|
|
5452
|
-
this.
|
|
5453
|
-
this.
|
|
5451
|
+
this.dropiClose = createEvent(this, "dropiClose");
|
|
5452
|
+
this.dropiButtonClick = createEvent(this, "dropiButtonClick");
|
|
5453
|
+
this.dropiLinkClick = createEvent(this, "dropiLinkClick");
|
|
5454
5454
|
}
|
|
5455
5455
|
/** Alert message text (supports plain text) */
|
|
5456
5456
|
message = '';
|
|
@@ -5465,9 +5465,9 @@ class DropiAlert {
|
|
|
5465
5465
|
/** Action button label */
|
|
5466
5466
|
buttonText = 'Close';
|
|
5467
5467
|
/** Anchor/link label */
|
|
5468
|
-
anchorText = '
|
|
5468
|
+
anchorText = '';
|
|
5469
5469
|
/** Anchor href */
|
|
5470
|
-
anchorUrl = '
|
|
5470
|
+
anchorUrl = '';
|
|
5471
5471
|
/** Whether the alert is visible */
|
|
5472
5472
|
showAlert = true;
|
|
5473
5473
|
/** Link text (alternative to anchorText) */
|
|
@@ -5477,15 +5477,15 @@ class DropiAlert {
|
|
|
5477
5477
|
/** Clicked text tracking */
|
|
5478
5478
|
clickedText = '';
|
|
5479
5479
|
/** Emitted when the alert is dismissed */
|
|
5480
|
-
|
|
5480
|
+
dropiClose;
|
|
5481
5481
|
/** Emitted when the action button is clicked */
|
|
5482
|
-
|
|
5482
|
+
dropiButtonClick;
|
|
5483
5483
|
/** Emitted when the anchor link is clicked */
|
|
5484
|
-
|
|
5484
|
+
dropiLinkClick;
|
|
5485
5485
|
render() {
|
|
5486
5486
|
if (!this.showAlert)
|
|
5487
5487
|
return null;
|
|
5488
|
-
return (hAsync("div", { class: { 'alert': true, [`alert--${this.type}`]: true, [`alert--${this.state}`]: true } }, this.type !== 'flag' && (hAsync("div", { class: "alert__icon" }, hAsync("dropi-icon", { name: STATE_ICONS[this.state], iconWidth: "18px", iconHeight: "18px", color: STATE_COLORS[this.state] }))), hAsync("div", { class: "alert__body" }, hAsync("span", { class: "alert__message" }, this.
|
|
5488
|
+
return (hAsync("div", { class: { 'alert': true, [`alert--${this.type}`]: true, [`alert--${this.state}`]: true } }, this.type !== 'flag' && (hAsync("div", { class: "alert__icon" }, hAsync("dropi-icon", { name: STATE_ICONS[this.state], iconWidth: "18px", iconHeight: "18px", color: STATE_COLORS[this.state] }))), hAsync("div", { class: "alert__body" }, hAsync("span", { class: "alert__message", innerHTML: this.message }), this.clickedText && (hAsync("a", { class: "alert__link", href: "#", onClick: (e) => { e.preventDefault(); this.dropiLinkClick.emit(); } }, this.clickedText)), (this.anchorText || this.textLink) && (hAsync("a", { class: "alert__link", href: this.anchorUrl || this.linkUrl || '#', onClick: (e) => { e.preventDefault(); this.dropiLinkClick.emit(); } }, this.anchorText || this.textLink))), hAsync("div", { class: "alert__actions" }, this.showButton && this.buttonText && this.type !== 'flag' && (hAsync("button", { class: "alert__btn", onClick: () => this.dropiButtonClick.emit() }, this.buttonText)), this.dismissable && (hAsync("button", { class: "alert__close", onClick: () => { this.showAlert = false; this.dropiClose.emit(); }, "aria-label": "Cerrar" }, hAsync("dropi-icon", { name: "Close-small", iconWidth: "18px", iconHeight: "18px", color: "Gray-Gray-500" }))))));
|
|
5489
5489
|
}
|
|
5490
5490
|
static get style() { return dropiAlertCss(); }
|
|
5491
5491
|
static get cmpMeta() { return {
|
|
@@ -5576,10 +5576,10 @@ const dropiAlertModalCss = () => `:host{display:contents}.body-alert{display:fle
|
|
|
5576
5576
|
class DropiAlertModal {
|
|
5577
5577
|
constructor(hostRef) {
|
|
5578
5578
|
registerInstance(this, hostRef);
|
|
5579
|
-
this.
|
|
5580
|
-
this.
|
|
5581
|
-
this.
|
|
5582
|
-
this.
|
|
5579
|
+
this.dropiPrimaryClick = createEvent(this, "dropiPrimaryClick");
|
|
5580
|
+
this.dropiSecondaryClick = createEvent(this, "dropiSecondaryClick");
|
|
5581
|
+
this.dropiVisibleChange = createEvent(this, "dropiVisibleChange");
|
|
5582
|
+
this.dropiHide = createEvent(this, "dropiHide");
|
|
5583
5583
|
}
|
|
5584
5584
|
/** Controls visibility */
|
|
5585
5585
|
visible = false;
|
|
@@ -5610,6 +5610,10 @@ class DropiAlertModal {
|
|
|
5610
5610
|
isStep = false;
|
|
5611
5611
|
/** Base z-index for the internal modal overlay (matches Angular `baseZIndex`) */
|
|
5612
5612
|
baseZIndex = 0;
|
|
5613
|
+
/**
|
|
5614
|
+
* Use White Label (MB) illustration style instead of Lottie animation.
|
|
5615
|
+
*/
|
|
5616
|
+
isWhiteLabel = false;
|
|
5613
5617
|
/**
|
|
5614
5618
|
* Convenience object prop — matches Angular `params: ModalParams`.
|
|
5615
5619
|
* Fields: tittle, type, message, primaryButton, secondaryButton, loadingTitle,
|
|
@@ -5640,13 +5644,13 @@ class DropiAlertModal {
|
|
|
5640
5644
|
this.displayButtons = val.displayButtons;
|
|
5641
5645
|
}
|
|
5642
5646
|
/** Emitted when primary button is clicked — matches Angular 'primaryButtonEvent' */
|
|
5643
|
-
|
|
5647
|
+
dropiPrimaryClick;
|
|
5644
5648
|
/** Emitted when secondary button is clicked — matches Angular 'secondaryButtonEvent' */
|
|
5645
|
-
|
|
5649
|
+
dropiSecondaryClick;
|
|
5646
5650
|
/** Emitted when modal open state changes — matches Angular 'modalOpenChange' */
|
|
5647
|
-
|
|
5651
|
+
dropiVisibleChange;
|
|
5648
5652
|
/** Emitted when modal is hidden — matches Angular 'onHide' */
|
|
5649
|
-
|
|
5653
|
+
dropiHide;
|
|
5650
5654
|
lottieMap = {
|
|
5651
5655
|
question: '/assets/lottie-files/question.json',
|
|
5652
5656
|
warning: '/assets/lottie-files/warning.json',
|
|
@@ -5665,26 +5669,26 @@ class DropiAlertModal {
|
|
|
5665
5669
|
this.visible = false;
|
|
5666
5670
|
}
|
|
5667
5671
|
handlePrimary() {
|
|
5668
|
-
this.
|
|
5672
|
+
this.dropiPrimaryClick.emit(true);
|
|
5669
5673
|
if (!this.isStep) {
|
|
5670
5674
|
this.visible = false;
|
|
5671
|
-
this.
|
|
5675
|
+
this.dropiVisibleChange.emit(false);
|
|
5672
5676
|
}
|
|
5673
5677
|
}
|
|
5674
5678
|
handleSecondary() {
|
|
5675
|
-
this.
|
|
5679
|
+
this.dropiSecondaryClick.emit(true);
|
|
5676
5680
|
this.visible = false;
|
|
5677
|
-
this.
|
|
5681
|
+
this.dropiVisibleChange.emit(false);
|
|
5678
5682
|
}
|
|
5679
5683
|
onModalHide() {
|
|
5680
5684
|
this.visible = false;
|
|
5681
|
-
this.
|
|
5682
|
-
this.
|
|
5685
|
+
this.dropiVisibleChange.emit(false);
|
|
5686
|
+
this.dropiHide.emit();
|
|
5683
5687
|
}
|
|
5684
5688
|
render() {
|
|
5685
5689
|
const lottieKey = this.loading ? 'loading' : this.type;
|
|
5686
5690
|
const isLottieLoading = lottieKey === 'loading';
|
|
5687
|
-
return (hAsync("dropi-modal", { key: '
|
|
5691
|
+
return (hAsync("dropi-modal", { key: '322c59ea0a067a4c0cb28a5ffbe9cbc0c642eee6', visible: this.visible, showHeader: this.closable, showCloseIcon: this.closable, dismissable: false, closeOnEscape: false, showFooter: false, size: "s", onDropiHide: () => this.onModalHide() }, hAsync("div", { key: '06530f3da45738d1ed75a4e8b5b8b0b80dfd2647', class: "body-alert" }, this.lottieMap[lottieKey] && (hAsync("div", { key: '7a4ab4fbbdf3cbbacfa22f918d212b788f4392a4', class: `lottie-img${isLottieLoading ? ' lottie-img--loading' : ''}` }, hAsync("lottie-player", { key: lottieKey, src: this.lottieMap[lottieKey], background: "transparent", speed: "1", loop: true, autoplay: true }))), hAsync("div", { key: '0e72f42d10c59047e82df8b2842affd38ab60fc7', class: "content-alert" }, hAsync("h2", { key: '8262de8fbcf5b87fbac34740d34d99d0b6ff921d' }, this.loading ? this.loadingTitle : this.tittle), hAsync("p", { key: 'ca9c734e0b9686bff7e2616ae98224446ac0ca33' }, this.loading ? this.loadingMessage : this.message)), hAsync("div", { key: '1b5edb3af1044cb0dd0b57a425517b1d824672be', class: "custom-content" }, hAsync("slot", { key: '57f4a8acdbcf8a11445f7c8233355bb4ac46c9ab' })), !this.loading && this.displayButtons && (hAsync("div", { key: '32580f42d98f628b4c1d1f300b5a3aaaa1be2486', class: "actions" }, this.secondaryButton && hAsync("dropi-button", { key: 'dcf8707a7f4d8b80126a10022dd6de1c0ea44dc7', text: this.secondaryButton, severity: "secondary", onDropiClick: () => this.handleSecondary(), fullWidth: true }), hAsync("dropi-button", { key: '3ed494fc7a83021174c4d006ae4327348d400e93', text: this.primaryButton, severity: "primary", onDropiClick: () => this.handlePrimary(), fullWidth: true }))))));
|
|
5688
5692
|
}
|
|
5689
5693
|
static get watchers() { return {
|
|
5690
5694
|
"params": [{
|
|
@@ -5709,6 +5713,7 @@ class DropiAlertModal {
|
|
|
5709
5713
|
"loadingMessage": [1025, "loading-message"],
|
|
5710
5714
|
"isStep": [4, "is-step"],
|
|
5711
5715
|
"baseZIndex": [2, "base-z-index"],
|
|
5716
|
+
"isWhiteLabel": [4, "is-white-label"],
|
|
5712
5717
|
"params": [8],
|
|
5713
5718
|
"show": [64],
|
|
5714
5719
|
"hide": [64]
|
|
@@ -5828,7 +5833,7 @@ class DropiBadgeLegacy {
|
|
|
5828
5833
|
count = 0;
|
|
5829
5834
|
render() {
|
|
5830
5835
|
const isCounter = this.type === 'counter';
|
|
5831
|
-
return (hAsync("div", { key: '
|
|
5836
|
+
return (hAsync("div", { key: '58bb5c6625539109f010cccdcaafc37ab6da38ba', class: {
|
|
5832
5837
|
'badge-legacy': true,
|
|
5833
5838
|
[`badge-legacy--${this.variant}`]: true,
|
|
5834
5839
|
[`badge-legacy--${this.type}`]: true
|
|
@@ -5866,8 +5871,8 @@ const dropiBannerExternalCss = () => `:host{display:block;width:100%}.dropi-bann
|
|
|
5866
5871
|
class DropiBannerExternal {
|
|
5867
5872
|
constructor(hostRef) {
|
|
5868
5873
|
registerInstance(this, hostRef);
|
|
5869
|
-
this.bannerClick = createEvent(this, "bannerClick"
|
|
5870
|
-
this.isVisible = createEvent(this, "isVisible"
|
|
5874
|
+
this.bannerClick = createEvent(this, "bannerClick");
|
|
5875
|
+
this.isVisible = createEvent(this, "isVisible");
|
|
5871
5876
|
}
|
|
5872
5877
|
/** Image URL to display */
|
|
5873
5878
|
imageUrl = '';
|
|
@@ -5950,7 +5955,7 @@ const dropiBreadcrumbCss = () => `:host{display:block}*,*::before,*::after{box-s
|
|
|
5950
5955
|
class DropiBreadcrumb {
|
|
5951
5956
|
constructor(hostRef) {
|
|
5952
5957
|
registerInstance(this, hostRef);
|
|
5953
|
-
this.dropiNavigate = createEvent(this, "dropiNavigate"
|
|
5958
|
+
this.dropiNavigate = createEvent(this, "dropiNavigate");
|
|
5954
5959
|
}
|
|
5955
5960
|
/** Breadcrumb items (array or JSON string). Last item is rendered as current. */
|
|
5956
5961
|
items = [];
|
|
@@ -6001,7 +6006,7 @@ class DropiBreadcrumb {
|
|
|
6001
6006
|
}; }
|
|
6002
6007
|
}
|
|
6003
6008
|
|
|
6004
|
-
const dropiButtonCss = () => `:host{display:inline-block}:host([full-width]){display:flex;width:100%}:host([full-width]) .btn{width:100%}*,*::before,*::after{box-sizing:border-box}.btn{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:var(--Size-1, 4px);border-radius:var(--Border-2, 8px);font-weight:var(--font-weight-bold);min-width:33px;line-height:110%;cursor:pointer;white-space:nowrap;transition:background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease}.btn:active{transition:transform 0.01s ease-out;transform:scale(0.98)}.btn:hover:not(:active){transform:scale(1.01)}.btn.without-text{gap:0}.btn.large{padding:var(--Size-4, 16px);font-size:var(--Size-4, 16px);height:48px}.btn.normal{padding:var(--Size-3, 12px);font-size:var(--font-size-s, 12px);height:40px}.btn.small{padding:var(--Size-2, 8px);font-size:var(--font-size-s, 12px);height:29px}.btn.disabled,.btn.loading{cursor:not-allowed;pointer-events:none}.btn.primary.default{background:var(--Primary-Primary-500, #f49a3d);color:var(--Neutral-White, #ffffff)}.btn.primary.default:hover{background:var(--Primary-Primary-600, #e58017)}.btn.primary.success{background:var(--Success-Success-500, #0abb87);color:var(--Neutral-White, #ffffff)}.btn.primary.success:hover{background:var(--Success-Success-600, #09aa7b)}.btn.primary.info{background:var(--Info-Info-500, #50a5f1);color:var(--Neutral-White, #ffffff)}.btn.primary.info:hover{background:var(--Info-Info-600, #4996db)}.btn.primary.error{background:var(--Error-Error-500, #f46a6b);color:var(--Neutral-White, #ffffff)}.btn.primary.error:hover{background:var(--Error-Error-600, #de6061)}.btn.primary.warning{background:var(--Warning-Warning-500, #f1b44c);color:var(--Neutral-White, #ffffff)}.btn.primary.warning:hover{background:var(--Warning-Warning-600, #dba445)}.btn.primary.legacy{background:var(--Secondary-Secondary-500, #008dbf);color:var(--Neutral-White, #ffffff)}.btn.primary.legacy:hover{background:var(--Secondary-Secondary-600, #007199)}.btn.primary.disabled.default{background:var(--Primary-Primary-300, #f2bc85);color:var(--Neutral-White, #ffffff)}.btn.primary.disabled.success{background:var(--Success-Success-300, #5bd1af);color:var(--Neutral-White, #ffffff)}.btn.primary.disabled.info{background:var(--Info-Info-300, #8ac3f6);color:var(--Neutral-White, #ffffff)}.btn.primary.disabled.error{background:var(--Error-Error-300, #f89b9c);color:var(--Neutral-White, #ffffff)}.btn.primary.disabled.warning{background:var(--Warning-Warning-300, #f6cd87);color:var(--Neutral-White, #ffffff)}.btn.primary.disabled.legacy{background:var(--Secondary-Secondary-300, #62bad9);color:var(--Neutral-White, #ffffff)}.btn.secondary{background:var(--Neutral-White, #ffffff);border:1px solid}.btn.secondary.default{border-color:var(--Primary-Primary-500, #f49a3d);color:var(--Primary-Primary-500, #f49a3d)}.btn.secondary.default:hover{color:var(--Primary-Primary-600, #e58017);border-color:var(--Primary-Primary-600, #e58017)}.btn.secondary.success{border-color:var(--Success-Success-500, #0abb87);color:var(--Success-Success-500, #0abb87)}.btn.secondary.success:hover{color:var(--Success-Success-600, #09aa7b);border-color:var(--Success-Success-600, #09aa7b)}.btn.secondary.info{border-color:var(--Info-Info-500, #50a5f1);color:var(--Info-Info-500, #50a5f1)}.btn.secondary.info:hover{color:var(--Info-Info-600, #4996db);border-color:var(--Info-Info-600, #4996db)}.btn.secondary.error{border-color:var(--Error-Error-500, #f46a6b);color:var(--Error-Error-500, #f46a6b)}.btn.secondary.error:hover{color:var(--Error-Error-600, #de6061);border-color:var(--Error-Error-600, #de6061)}.btn.secondary.warning{border-color:var(--Warning-Warning-500, #f1b44c);color:var(--Warning-Warning-500, #f1b44c)}.btn.secondary.warning:hover{color:var(--Warning-Warning-600, #dba445);border-color:var(--Warning-Warning-600, #dba445)}.btn.secondary.legacy{border-color:var(--Secondary-Secondary-500, #008dbf);color:var(--Secondary-Secondary-500, #008dbf)}.btn.secondary.legacy:hover{color:var(--Secondary-Secondary-600, #007199);border-color:var(--Secondary-Secondary-600, #007199)}.btn.secondary.disabled.default{border-color:var(--Primary-Primary-300, #f2bc85);color:var(--Primary-Primary-300, #f2bc85)}.btn.secondary.disabled.success{border-color:var(--Success-Success-300, #5bd1af);color:var(--Success-Success-300, #5bd1af)}.btn.secondary.disabled.info{border-color:var(--Info-Info-300, #8ac3f6);color:var(--Info-Info-300, #8ac3f6)}.btn.secondary.disabled.error{border-color:var(--Error-Error-300, #f89b9c);color:var(--Error-Error-300, #f89b9c)}.btn.secondary.disabled.warning{border-color:var(--Warning-Warning-300, #f6cd87);color:var(--Warning-Warning-300, #f6cd87)}.btn.secondary.disabled.legacy{border-color:var(--Secondary-Secondary-300, #62bad9);color:var(--Secondary-Secondary-300, #62bad9)}.btn.tertiary{background:none;border:none}.btn.tertiary.default,.btn.tertiary.legacy{border:
|
|
6009
|
+
const dropiButtonCss = () => `:host{display:inline-block;border:0}:host([full-width]){display:flex;width:100%}:host([full-width]) .btn{width:100%}*,*::before,*::after{box-sizing:border-box}.btn{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:var(--Size-1, 4px);border-radius:var(--Border-2, 8px);font-weight:var(--font-weight-bold);min-width:33px;line-height:110%;cursor:pointer;white-space:nowrap;transition:background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease}.btn:active{transition:transform 0.01s ease-out;transform:scale(0.98)}.btn:hover:not(:active){transform:scale(1.01)}.btn.without-text{gap:0}.btn.large{padding:var(--Size-4, 16px);font-size:var(--Size-4, 16px);height:48px}.btn.normal{padding:var(--Size-3, 12px);font-size:var(--font-size-s, 12px);height:40px}.btn.small{padding:var(--Size-2, 8px);font-size:var(--font-size-s, 12px);height:29px}.btn.disabled,.btn.loading{cursor:not-allowed;pointer-events:none}.btn.primary.default{background:var(--Primary-Primary-500, #f49a3d);color:var(--Neutral-White, #ffffff)}.btn.primary.default:hover{background:var(--Primary-Primary-600, #e58017)}.btn.primary.success{background:var(--Success-Success-500, #0abb87);color:var(--Neutral-White, #ffffff)}.btn.primary.success:hover{background:var(--Success-Success-600, #09aa7b)}.btn.primary.info{background:var(--Info-Info-500, #50a5f1);color:var(--Neutral-White, #ffffff)}.btn.primary.info:hover{background:var(--Info-Info-600, #4996db)}.btn.primary.error{background:var(--Error-Error-500, #f46a6b);color:var(--Neutral-White, #ffffff)}.btn.primary.error:hover{background:var(--Error-Error-600, #de6061)}.btn.primary.warning{background:var(--Warning-Warning-500, #f1b44c);color:var(--Neutral-White, #ffffff)}.btn.primary.warning:hover{background:var(--Warning-Warning-600, #dba445)}.btn.primary.legacy{background:var(--Secondary-Secondary-500, #008dbf);color:var(--Neutral-White, #ffffff)}.btn.primary.legacy:hover{background:var(--Secondary-Secondary-600, #007199)}.btn.primary.disabled.default{background:var(--Primary-Primary-300, #f2bc85);color:var(--Neutral-White, #ffffff)}.btn.primary.disabled.success{background:var(--Success-Success-300, #5bd1af);color:var(--Neutral-White, #ffffff)}.btn.primary.disabled.info{background:var(--Info-Info-300, #8ac3f6);color:var(--Neutral-White, #ffffff)}.btn.primary.disabled.error{background:var(--Error-Error-300, #f89b9c);color:var(--Neutral-White, #ffffff)}.btn.primary.disabled.warning{background:var(--Warning-Warning-300, #f6cd87);color:var(--Neutral-White, #ffffff)}.btn.primary.disabled.legacy{background:var(--Secondary-Secondary-300, #62bad9);color:var(--Neutral-White, #ffffff)}.btn.secondary{background:var(--Neutral-White, #ffffff);border:1px solid}.btn.secondary.default{border-color:var(--Primary-Primary-500, #f49a3d);color:var(--Primary-Primary-500, #f49a3d)}.btn.secondary.default:hover{color:var(--Primary-Primary-600, #e58017);border-color:var(--Primary-Primary-600, #e58017)}.btn.secondary.success{border-color:var(--Success-Success-500, #0abb87);color:var(--Success-Success-500, #0abb87)}.btn.secondary.success:hover{color:var(--Success-Success-600, #09aa7b);border-color:var(--Success-Success-600, #09aa7b)}.btn.secondary.info{border-color:var(--Info-Info-500, #50a5f1);color:var(--Info-Info-500, #50a5f1)}.btn.secondary.info:hover{color:var(--Info-Info-600, #4996db);border-color:var(--Info-Info-600, #4996db)}.btn.secondary.error{border-color:var(--Error-Error-500, #f46a6b);color:var(--Error-Error-500, #f46a6b)}.btn.secondary.error:hover{color:var(--Error-Error-600, #de6061);border-color:var(--Error-Error-600, #de6061)}.btn.secondary.warning{border-color:var(--Warning-Warning-500, #f1b44c);color:var(--Warning-Warning-500, #f1b44c)}.btn.secondary.warning:hover{color:var(--Warning-Warning-600, #dba445);border-color:var(--Warning-Warning-600, #dba445)}.btn.secondary.legacy{border-color:var(--Secondary-Secondary-500, #008dbf);color:var(--Secondary-Secondary-500, #008dbf)}.btn.secondary.legacy:hover{color:var(--Secondary-Secondary-600, #007199);border-color:var(--Secondary-Secondary-600, #007199)}.btn.secondary.disabled.default{border-color:var(--Primary-Primary-300, #f2bc85);color:var(--Primary-Primary-300, #f2bc85)}.btn.secondary.disabled.success{border-color:var(--Success-Success-300, #5bd1af);color:var(--Success-Success-300, #5bd1af)}.btn.secondary.disabled.info{border-color:var(--Info-Info-300, #8ac3f6);color:var(--Info-Info-300, #8ac3f6)}.btn.secondary.disabled.error{border-color:var(--Error-Error-300, #f89b9c);color:var(--Error-Error-300, #f89b9c)}.btn.secondary.disabled.warning{border-color:var(--Warning-Warning-300, #f6cd87);color:var(--Warning-Warning-300, #f6cd87)}.btn.secondary.disabled.legacy{border-color:var(--Secondary-Secondary-300, #62bad9);color:var(--Secondary-Secondary-300, #62bad9)}.btn.tertiary{background:none;border:none}.btn.tertiary.default,.btn.tertiary.legacy{border:none !important;box-shadow:none !important;color:var(--Gray-Gray-500, #69738c)}.btn.tertiary.default:hover,.btn.tertiary.legacy:hover{background:var(--Gray-Gray-50, #f5f6f8);box-shadow:none !important;color:var(--Gray-Gray-600, #475066)}.btn.tertiary.success{color:var(--Success-Success-500, #0abb87)}.btn.tertiary.success:hover{background:var(--Success-Success-50, #e7f8f3)}.btn.tertiary.info{color:var(--Info-Info-500, #50a5f1)}.btn.tertiary.info:hover{background:var(--Info-Info-50, #eef6fe)}.btn.tertiary.error{color:var(--Error-Error-500, #f46a6b)}.btn.tertiary.error:hover{background:var(--Error-Error-50, #fef0f0)}.btn.tertiary.warning{color:var(--Warning-Warning-500, #f1b44c)}.btn.tertiary.warning:hover{background:var(--Warning-Warning-50, #fef8ed)}.btn.tertiary.dropdown{color:var(--Gray-Gray-500, #69738c);font-weight:var(--font-weight-regular);font-size:var(--font-size-s);background:transparent}.btn.tertiary.disabled.default,.btn.tertiary.disabled.legacy{border:none !important;color:var(--Gray-Gray-400, #858ea6)}.btn.tertiary.disabled.success{color:var(--Success-Success-300, #5bd1af)}.btn.tertiary.disabled.info{color:var(--Info-Info-300, #8ac3f6)}.btn.tertiary.disabled.error{color:var(--Error-Error-300, #f89b9c)}.btn.tertiary.disabled.warning{color:var(--Warning-Warning-300, #f6cd87)}.spin{animation:spin 1s linear infinite}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}`;
|
|
6005
6010
|
|
|
6006
6011
|
/**
|
|
6007
6012
|
* @component dropi-button
|
|
@@ -6011,7 +6016,7 @@ const dropiButtonCss = () => `:host{display:inline-block}:host([full-width]){dis
|
|
|
6011
6016
|
class DropiButton {
|
|
6012
6017
|
constructor(hostRef) {
|
|
6013
6018
|
registerInstance(this, hostRef);
|
|
6014
|
-
this.
|
|
6019
|
+
this.dropiClick = createEvent(this, "dropiClick");
|
|
6015
6020
|
}
|
|
6016
6021
|
/** Visual color palette */
|
|
6017
6022
|
type = 'default';
|
|
@@ -6032,7 +6037,7 @@ class DropiButton {
|
|
|
6032
6037
|
/** Button label */
|
|
6033
6038
|
text = '';
|
|
6034
6039
|
/** Emitted on click (not emitted when disabled or loading) */
|
|
6035
|
-
|
|
6040
|
+
dropiClick;
|
|
6036
6041
|
colorMap = {
|
|
6037
6042
|
default: 'Primary-Primary-',
|
|
6038
6043
|
success: 'Success-Success-',
|
|
@@ -6064,7 +6069,7 @@ class DropiButton {
|
|
|
6064
6069
|
}
|
|
6065
6070
|
handleClick(e) {
|
|
6066
6071
|
if (this.state !== 'disabled' && this.state !== 'loading') {
|
|
6067
|
-
this.
|
|
6072
|
+
this.dropiClick.emit(e);
|
|
6068
6073
|
}
|
|
6069
6074
|
}
|
|
6070
6075
|
renderLoadingSpinner() {
|
|
@@ -6075,7 +6080,7 @@ class DropiButton {
|
|
|
6075
6080
|
const hasText = (this.text ?? '') !== '';
|
|
6076
6081
|
const showPostIcon = (this.postIcon ?? '') !== '' || (this.type ?? 'default') === 'dropdown';
|
|
6077
6082
|
const dropdownIcon = (this.type ?? 'default') === 'dropdown' ? 'Dropdown-down' : (this.postIcon ?? '');
|
|
6078
|
-
return (hAsync("button", { key: '
|
|
6083
|
+
return (hAsync("button", { key: 'eefda6c7ac5090173a545d67e72073dc410ff05c', class: {
|
|
6079
6084
|
btn: true,
|
|
6080
6085
|
'without-text': !hasText,
|
|
6081
6086
|
[this.severity ?? 'primary']: true,
|
|
@@ -6083,7 +6088,7 @@ class DropiButton {
|
|
|
6083
6088
|
[this.size ?? 'normal']: true,
|
|
6084
6089
|
[this.state ?? 'default']: true,
|
|
6085
6090
|
'full-width': this.fullWidth,
|
|
6086
|
-
}, disabled: isDisabled, onClick: (e) => this.handleClick(e) }, this.preIcon && (hAsync("dropi-icon", { key: '
|
|
6091
|
+
}, disabled: isDisabled, onClick: (e) => this.handleClick(e) }, this.preIcon && (hAsync("dropi-icon", { key: '869ee8fc34dee93de0381a86db643c0fa9dc6918', name: this.preIcon, iconWidth: this.iconSize, iconHeight: this.iconSize, color: this.fontColor })), hasText && hAsync("span", { key: '927ef142b4c549d01b087722e9f6759cff44e6b2', class: "text" }, this.text), showPostIcon && (hAsync("dropi-icon", { key: 'cda1f5d0fa59a87abc1d3d73a87d4390f05f79eb', name: dropdownIcon, iconWidth: this.iconSize, iconHeight: this.iconSize, color: this.fontColor })), this.state === 'loading' && this.renderLoadingSpinner(), hAsync("slot", { key: 'c83dd79efe5d858361815878192c0c554a9234ca' })));
|
|
6087
6092
|
}
|
|
6088
6093
|
static get style() { return dropiButtonCss(); }
|
|
6089
6094
|
static get cmpMeta() { return {
|
|
@@ -6123,7 +6128,7 @@ const dropiCardCheckboxCss = () => `:host{display:block;width:100%}*,*::before,*
|
|
|
6123
6128
|
class DropiCardCheckbox {
|
|
6124
6129
|
constructor(hostRef) {
|
|
6125
6130
|
registerInstance(this, hostRef);
|
|
6126
|
-
this.
|
|
6131
|
+
this.dropiChange = createEvent(this, "dropiChange");
|
|
6127
6132
|
}
|
|
6128
6133
|
/** Visual type — matches Angular: 'default' | 'with card' */
|
|
6129
6134
|
type = 'default';
|
|
@@ -6140,7 +6145,7 @@ class DropiCardCheckbox {
|
|
|
6140
6145
|
/** Disables interaction */
|
|
6141
6146
|
disabled = false;
|
|
6142
6147
|
/** Emitted with the new checked state when clicked */
|
|
6143
|
-
|
|
6148
|
+
dropiChange;
|
|
6144
6149
|
get isChecked() {
|
|
6145
6150
|
return this.state === 'checked';
|
|
6146
6151
|
}
|
|
@@ -6148,15 +6153,15 @@ class DropiCardCheckbox {
|
|
|
6148
6153
|
if (this.disabled)
|
|
6149
6154
|
return;
|
|
6150
6155
|
this.state = this.isChecked ? 'default' : 'checked';
|
|
6151
|
-
this.
|
|
6156
|
+
this.dropiChange.emit(this.isChecked);
|
|
6152
6157
|
}
|
|
6153
6158
|
render() {
|
|
6154
|
-
return (hAsync("div", { key: '
|
|
6159
|
+
return (hAsync("div", { key: 'b9004c813a03956904cfed8484cac2d8290be86f', class: {
|
|
6155
6160
|
'container-card-check': true,
|
|
6156
6161
|
'default-card': this.type === 'default',
|
|
6157
6162
|
'is-checked': this.isChecked && this.type === 'with card',
|
|
6158
6163
|
'disabled': this.disabled,
|
|
6159
|
-
}, onClick: () => this.handleClick() }, hAsync("dropi-checkbox", { key: '
|
|
6164
|
+
}, onClick: () => this.handleClick() }, hAsync("dropi-checkbox", { key: '0c5c50811559c6472173fced2f04eee4626f118f', checked: this.isChecked, disabled: this.disabled }), hAsync("div", { key: '1cb17bf8aea55a498d451922942b4fba6d99492c', class: "container-text" }, hAsync("div", { key: '6e2eab2ae82c13cb4e7a654cc989530cee1122c6', class: "title-check" }, this.title), this.description && hAsync("div", { key: '040e5d8f633975bf3eb806835aae8aa308b1d4f8', class: "description-text" }, this.description)), (this.extraInfo || this.extraInfoDescription) && (hAsync("div", { key: 'a5c794b5f2fa249b309b2fb00a759aea5b9e0d6c', class: "extra-info" }, this.extraInfo && hAsync("div", { key: '1587e1a0801312fa8e759af2a367b36f842e1354' }, this.extraInfo), this.extraInfoDescription && hAsync("h4", { key: '930811071657dfbbeff7c2bdc4cd2c2776d38177' }, this.extraInfoDescription)))));
|
|
6160
6165
|
}
|
|
6161
6166
|
static get style() { return dropiCardCheckboxCss(); }
|
|
6162
6167
|
static get cmpMeta() { return {
|
|
@@ -6186,10 +6191,10 @@ const dropiCardProductCss = () => `:host{display:block;font-family:'Inter', sans
|
|
|
6186
6191
|
class DropiCardProduct {
|
|
6187
6192
|
constructor(hostRef) {
|
|
6188
6193
|
registerInstance(this, hostRef);
|
|
6189
|
-
this.
|
|
6190
|
-
this.
|
|
6191
|
-
this.dropiAddProduct = createEvent(this, "dropiAddProduct"
|
|
6192
|
-
this.dropiSupplierClick = createEvent(this, "dropiSupplierClick"
|
|
6194
|
+
this.dropiProductClick = createEvent(this, "dropiProductClick");
|
|
6195
|
+
this.dropiFavoriteChange = createEvent(this, "dropiFavoriteChange");
|
|
6196
|
+
this.dropiAddProduct = createEvent(this, "dropiAddProduct");
|
|
6197
|
+
this.dropiSupplierClick = createEvent(this, "dropiSupplierClick");
|
|
6193
6198
|
}
|
|
6194
6199
|
/** Product image URL */
|
|
6195
6200
|
image = '';
|
|
@@ -6216,9 +6221,9 @@ class DropiCardProduct {
|
|
|
6216
6221
|
/** Show "Enviar a cliente" button */
|
|
6217
6222
|
showAddButton = true;
|
|
6218
6223
|
/** Emitted when card is clicked — matches Angular 'onProductClick' */
|
|
6219
|
-
|
|
6224
|
+
dropiProductClick;
|
|
6220
6225
|
/** Emitted when favorite toggled — matches Angular 'changeFavorite' */
|
|
6221
|
-
|
|
6226
|
+
dropiFavoriteChange;
|
|
6222
6227
|
/** Emitted when "Enviar a cliente" button clicked */
|
|
6223
6228
|
dropiAddProduct;
|
|
6224
6229
|
/** Emitted when supplier name clicked */
|
|
@@ -6239,17 +6244,17 @@ class DropiCardProduct {
|
|
|
6239
6244
|
return 'var(--Success-Success-500, #0abb87)';
|
|
6240
6245
|
}
|
|
6241
6246
|
render() {
|
|
6242
|
-
return (hAsync("div", { key: '
|
|
6247
|
+
return (hAsync("div", { key: '2fe4ce42e1c331a99fd1171c82e6e48bfb5dbff0', class: "dropi-card-product", onClick: () => this.dropiProductClick.emit() }, hAsync("div", { key: '3f94077ee059e347f3ff4fff808a3a3f3a0ac827', class: "product-image-container" }, hAsync("div", { key: '1d6e8181cc630ab03efc90e316c349dfe9765b46', class: "product-image" }, hAsync("img", { key: 'f6647c21ac24d378482c6e6fe5220d6d18ff694b', src: this.image || '', alt: this.productName, onError: (e) => {
|
|
6243
6248
|
e.target.src = './assets/utils/no-image.jpg';
|
|
6244
|
-
}, class: !this.image ? 'error-img' : '' }), this.showFavorite && (hAsync("button", { key: '
|
|
6249
|
+
}, class: !this.image ? 'error-img' : '' }), this.showFavorite && (hAsync("button", { key: '37c23af5e1345e2f2b2ac42dd38f88eb17254889', class: { 'favorite-button': true, 'favorite-active': this.isFavorite }, onClick: (e) => {
|
|
6245
6250
|
e.stopPropagation();
|
|
6246
6251
|
this.isFavorite = !this.isFavorite;
|
|
6247
|
-
this.
|
|
6248
|
-
}, "aria-label": "Favorito" }, hAsync("dropi-icon", { key: '
|
|
6252
|
+
this.dropiFavoriteChange.emit(this.isFavorite);
|
|
6253
|
+
}, "aria-label": "Favorito" }, hAsync("dropi-icon", { key: 'c6d6c87dcb5ae0f9a0d416667a3d39c7e153b7a6', name: this.isFavorite ? 'Heart-solid' : 'Heart', iconWidth: "18px", iconHeight: "18px", color: this.isFavorite ? '#fff' : '#858ea6' }))))), hAsync("div", { key: '66dbcb028acb35e9a43502e9ff9a00fd2ebf8bf2', class: "product-info" }, this.supplierCategory && (hAsync("dropi-ilustration-icon", { key: 'fd3d94e953a6b91418decc09ed426755a85bac1b', class: "supplier-insignia", type: "insignia", stateInsignia: this.supplierCategory, tagProduct: true })), hAsync("div", { key: '45817e3bb0bfdaa0ec8cb4a23fdac1bb943e93dc', class: "product-header" }, this.category && (hAsync("span", { key: 'c721519a5339a2ac40d20c283bbe8797b78e4b27', class: "category" }, this.category)), hAsync("div", { key: '49f5013738dfffcdb83dfde628f5d1d21164c3d2', class: "stock-info" }, hAsync("span", { key: 'bd49d5069d07b3ae10ac9c85a4b84bbb573f926e', class: "stock-label" }, "Stock:"), hAsync("span", { key: 'd0eefb88240c13c9c56e7470e79cbacc9d86caf4', class: "stock-value", style: { color: this.getStockColor() } }, this.stock === 0 ? 'Agotado' : this.stock))), hAsync("h3", { key: 'a880d0df13af0b75d553daf18e876905b93e6ef1', class: "product-name" }, this.productName), this.supplier && (hAsync("div", { key: 'faa82e269979084e7510b6a17fb1f3caee8ad181', class: "supplier-info" }, hAsync("span", { key: 'b4b223620c58cb30945b1c6be50559614937eb5f', class: "supplier-label" }, "Proveedor:"), hAsync("span", { key: '989580f42383c3b6adb6484a493d1293a2a11904', class: "supplier-name", onClick: (e) => { e.stopPropagation(); this.dropiSupplierClick.emit(); } }, this.supplier))), hAsync("div", { key: '451c1ab830c7ab38c4e414e94f11f63ffcf86162', class: "price-container" }, hAsync("div", { key: '755f3f8aac6f7b1d458d28b74dec2734b42794a6', class: "price-item" }, hAsync("span", { key: 'fff0a718b4f22641adcd28bbcb7e81a0f21755e9', class: "price-label" }, "Precio proveedor"), hAsync("span", { key: '5bb6843a4a293195f0dbda5c3eccfc4f38c719b1', class: "price-value" }, this.currency, " ", this.formatPrice(this.salePrice))), hAsync("div", { key: '468b1d7596ec5d727846a087b5d89461c5fef858', class: "price-item" }, hAsync("span", { key: '91b15e4d58d27997b2dfdb9c73fd417a8f8ba5fb', class: "price-label" }, "Precio sugerido"), hAsync("span", { key: '378483760ffac07491f5b65b37d5e27d41423ec5', class: "price-value" }, this.currency, " ", this.formatPrice(this.suggestedPrice))))), hAsync("div", { key: '71467832049894083ea3454618a12d082cb15844', class: "separator" }), this.showAddButton && (hAsync("div", { key: 'f9f0450e3dfa2b91ae7caa468811cc739d7a280e', class: { 'action-button': true, 'action-button--disabled': !this.inStock }, onClick: (e) => {
|
|
6249
6254
|
e.stopPropagation();
|
|
6250
6255
|
if (this.inStock)
|
|
6251
6256
|
this.dropiAddProduct.emit();
|
|
6252
|
-
} }, hAsync("dropi-icon", { key: '
|
|
6257
|
+
} }, hAsync("dropi-icon", { key: '50a9fad974460c2728fb1fca74628d093cbb1875', name: "Shopping-cart-arrow-rigth", iconWidth: "20px", iconHeight: "20px", color: "#f49a3d" }), hAsync("span", { key: 'f5ac44dd20e01bc644e863c3cbf51e3493821e70', class: "button-text" }, "Enviar a cliente")))));
|
|
6253
6258
|
}
|
|
6254
6259
|
static get style() { return dropiCardProductCss(); }
|
|
6255
6260
|
static get cmpMeta() { return {
|
|
@@ -6284,8 +6289,8 @@ const dropiCardSectionCss = () => `:host{display:block;width:100%}*,*::before,*:
|
|
|
6284
6289
|
class DropiCardSection {
|
|
6285
6290
|
constructor(hostRef) {
|
|
6286
6291
|
registerInstance(this, hostRef);
|
|
6287
|
-
this.
|
|
6288
|
-
this.
|
|
6292
|
+
this.dropiChange = createEvent(this, "dropiChange");
|
|
6293
|
+
this.dropiClick = createEvent(this, "dropiClick");
|
|
6289
6294
|
}
|
|
6290
6295
|
/** Section title — matches Angular 'title' */
|
|
6291
6296
|
title = 'title';
|
|
@@ -6298,16 +6303,16 @@ class DropiCardSection {
|
|
|
6298
6303
|
/** Switch checked state */
|
|
6299
6304
|
isChecked = false;
|
|
6300
6305
|
/** Emitted when switch changes */
|
|
6301
|
-
|
|
6306
|
+
dropiChange;
|
|
6302
6307
|
/** Emitted when dropdown icon is clicked */
|
|
6303
|
-
|
|
6308
|
+
dropiClick;
|
|
6304
6309
|
render() {
|
|
6305
|
-
return (hAsync("div", { key: '
|
|
6310
|
+
return (hAsync("div", { key: '06fe2a580fb23484419ea4b1c41a265facb722de', class: "card-section" }, hAsync("div", { key: '1020ea256b0311a200a721387b3ecb8d0f3809ab', class: "card-section__text" }, this.type === 'important'
|
|
6306
6311
|
? hAsync("h5", { class: "card-section__title card-section__title--important" }, this.title)
|
|
6307
|
-
: hAsync("h6", { class: "card-section__title" }, this.title), this.description && hAsync("p", { key: '
|
|
6312
|
+
: hAsync("h6", { class: "card-section__title" }, this.title), this.description && hAsync("p", { key: '52ea93b6b2736c4c6e3ebb953c2878db90d34b4c', class: "card-section__desc" }, this.description)), hAsync("div", { key: '7ec0ed96e43b45256fd5dec5ee24b0dfd6488403', class: "card-section__control" }, this.typeElement === 'switch' ? (hAsync("dropi-switch", { isChecked: this.isChecked, onDropiChange: (e) => {
|
|
6308
6313
|
this.isChecked = e.detail;
|
|
6309
|
-
this.
|
|
6310
|
-
} })) : (hAsync("button", { class: "card-section__dropdown-btn", onClick: () => this.
|
|
6314
|
+
this.dropiChange.emit(e.detail);
|
|
6315
|
+
} })) : (hAsync("button", { class: "card-section__dropdown-btn", onClick: () => this.dropiClick.emit(), "aria-label": "Expandir" }, hAsync("dropi-icon", { name: "Dropdown-down", iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-500" }))))));
|
|
6311
6316
|
}
|
|
6312
6317
|
static get style() { return dropiCardSectionCss(); }
|
|
6313
6318
|
static get cmpMeta() { return {
|
|
@@ -6331,8 +6336,8 @@ const dropiCarouselCss = () => `:host{display:block;width:100%}*,*::before,*::af
|
|
|
6331
6336
|
class DropiCarousel {
|
|
6332
6337
|
constructor(hostRef) {
|
|
6333
6338
|
registerInstance(this, hostRef);
|
|
6334
|
-
this.
|
|
6335
|
-
this.
|
|
6339
|
+
this.dropiPageChange = createEvent(this, "dropiPageChange");
|
|
6340
|
+
this.dropiPage = createEvent(this, "dropiPage");
|
|
6336
6341
|
}
|
|
6337
6342
|
get el() { return getElement(this); }
|
|
6338
6343
|
/** Items to display (Array of URLs or objects) */
|
|
@@ -6359,8 +6364,8 @@ class DropiCarousel {
|
|
|
6359
6364
|
totalPages = 0;
|
|
6360
6365
|
itemsContainer;
|
|
6361
6366
|
timer;
|
|
6362
|
-
|
|
6363
|
-
|
|
6367
|
+
dropiPageChange;
|
|
6368
|
+
dropiPage;
|
|
6364
6369
|
handleValue(val) {
|
|
6365
6370
|
this.parsedValue = typeof val === 'string' ? JSON.parse(val) : (val || []);
|
|
6366
6371
|
this.updateTotalPages();
|
|
@@ -6432,7 +6437,7 @@ class DropiCarousel {
|
|
|
6432
6437
|
this.internalPage = (this.internalPage + 1) % this.totalPages;
|
|
6433
6438
|
this.page = this.internalPage;
|
|
6434
6439
|
this.updateTransform();
|
|
6435
|
-
this.
|
|
6440
|
+
this.dropiPageChange.emit(this.internalPage);
|
|
6436
6441
|
setTimeout(() => (this.isAnimating = false), 500);
|
|
6437
6442
|
}
|
|
6438
6443
|
};
|
|
@@ -6444,7 +6449,7 @@ class DropiCarousel {
|
|
|
6444
6449
|
this.internalPage = (this.internalPage - 1 + this.totalPages) % this.totalPages;
|
|
6445
6450
|
this.page = this.internalPage;
|
|
6446
6451
|
this.updateTransform();
|
|
6447
|
-
this.
|
|
6452
|
+
this.dropiPageChange.emit(this.internalPage);
|
|
6448
6453
|
setTimeout(() => (this.isAnimating = false), 500);
|
|
6449
6454
|
}
|
|
6450
6455
|
};
|
|
@@ -6453,7 +6458,7 @@ class DropiCarousel {
|
|
|
6453
6458
|
this.internalPage = index;
|
|
6454
6459
|
this.page = this.internalPage;
|
|
6455
6460
|
this.updateTransform();
|
|
6456
|
-
this.
|
|
6461
|
+
this.dropiPageChange.emit(this.internalPage);
|
|
6457
6462
|
setTimeout(() => (this.isAnimating = false), 500);
|
|
6458
6463
|
}
|
|
6459
6464
|
render() {
|
|
@@ -6506,27 +6511,27 @@ const dropiCheckboxCss = () => `:host{display:inline-block}*,*::before,*::after{
|
|
|
6506
6511
|
class DropiCheckbox {
|
|
6507
6512
|
constructor(hostRef) {
|
|
6508
6513
|
registerInstance(this, hostRef);
|
|
6509
|
-
this.
|
|
6514
|
+
this.dropiChange = createEvent(this, "dropiChange");
|
|
6510
6515
|
}
|
|
6511
6516
|
/** Whether the checkbox is checked */
|
|
6512
6517
|
checked = false;
|
|
6513
6518
|
/** Whether the checkbox is disabled */
|
|
6514
6519
|
disabled = false;
|
|
6515
6520
|
/** Emitted when the checked state changes */
|
|
6516
|
-
|
|
6521
|
+
dropiChange;
|
|
6517
6522
|
changeState() {
|
|
6518
6523
|
if (this.disabled)
|
|
6519
6524
|
return;
|
|
6520
6525
|
this.checked = !this.checked;
|
|
6521
|
-
this.
|
|
6526
|
+
this.dropiChange.emit(this.checked);
|
|
6522
6527
|
}
|
|
6523
6528
|
render() {
|
|
6524
|
-
return (hAsync("div", { key: '
|
|
6529
|
+
return (hAsync("div", { key: '071505574decbf6b138256f73affe101c01080ef', class: "container-dropi-checkbox", onClick: () => this.changeState() }, hAsync("div", { key: '03e7ec24a87e22c4a5fe1d94cc4ca1fe349d6e6f', class: {
|
|
6525
6530
|
check: true,
|
|
6526
6531
|
isCheck: this.checked,
|
|
6527
6532
|
noCheck: !this.checked,
|
|
6528
6533
|
disabled: this.disabled,
|
|
6529
|
-
} }, hAsync("svg", { key: '
|
|
6534
|
+
} }, hAsync("svg", { key: 'c56f01268919995cc7aac0173edf44a01a62e13e', xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none" }, hAsync("path", { key: '575f863c9e82e862ea7049bf633b0d86ba374bb2', d: "M20.5991 5.69251L9.08325 17.2075C9.00583 17.2852 8.91382 17.3469 8.8125 17.389C8.71118 17.4311 8.60255 17.4527 8.49283 17.4527C8.38312 17.4527 8.27449 17.4311 8.17317 17.389C8.07185 17.3469 7.97984 17.2852 7.90242 17.2075L3.44908 12.75C3.37166 12.6723 3.27965 12.6106 3.17833 12.5685C3.07701 12.5264 2.96838 12.5048 2.85867 12.5048C2.74896 12.5048 2.64032 12.5264 2.53901 12.5685C2.43769 12.6106 2.34568 12.6723 2.26825 12.75C2.19052 12.8274 2.12884 12.9194 2.08676 13.0208C2.04467 13.1221 2.02301 13.2307 2.02301 13.3404C2.02301 13.4501 2.04467 13.5588 2.08676 13.6601C2.12884 13.7614 2.19052 13.8534 2.26825 13.9308L6.72325 18.385C7.19321 18.8541 7.83008 19.1175 8.49408 19.1175C9.15809 19.1175 9.79496 18.8541 10.2649 18.385L21.7799 6.87251C21.8575 6.7951 21.9191 6.70314 21.9611 6.6019C22.0031 6.50065 22.0247 6.39212 22.0247 6.28251C22.0247 6.17289 22.0031 6.06436 21.9611 5.96312C21.9191 5.86188 21.8575 5.76992 21.7799 5.69251C21.7025 5.61478 21.6105 5.5531 21.5092 5.51101C21.4078 5.46893 21.2992 5.44727 21.1895 5.44727C21.0798 5.44727 20.9712 5.46893 20.8698 5.51101C20.7685 5.5531 20.6765 5.61478 20.5991 5.69251Z", fill: "#FFFFFF" })))));
|
|
6530
6535
|
}
|
|
6531
6536
|
static get formAssociated() { return true; }
|
|
6532
6537
|
static get style() { return dropiCheckboxCss(); }
|
|
@@ -6552,8 +6557,8 @@ const dropiCheckboxSelectionListCss = () => `:host{display:block;width:100%}*,*:
|
|
|
6552
6557
|
class DropiCheckboxSelectionList {
|
|
6553
6558
|
constructor(hostRef) {
|
|
6554
6559
|
registerInstance(this, hostRef);
|
|
6555
|
-
this.
|
|
6556
|
-
this.
|
|
6560
|
+
this.dropiCheckedValues = createEvent(this, "dropiCheckedValues");
|
|
6561
|
+
this.dropiSearch = createEvent(this, "dropiSearch");
|
|
6557
6562
|
}
|
|
6558
6563
|
/** Options array or JSON string */
|
|
6559
6564
|
options = [];
|
|
@@ -6573,9 +6578,9 @@ class DropiCheckboxSelectionList {
|
|
|
6573
6578
|
selected = [];
|
|
6574
6579
|
parsedOptions = [];
|
|
6575
6580
|
/** Emitted when selection changes — matches Angular 'checkedValues' */
|
|
6576
|
-
|
|
6581
|
+
dropiCheckedValues;
|
|
6577
6582
|
/** Emitted on search — matches Angular 'onSearch' */
|
|
6578
|
-
|
|
6583
|
+
dropiSearch;
|
|
6579
6584
|
optionsChanged(val) {
|
|
6580
6585
|
this.parsedOptions = typeof val === 'string' ? JSON.parse(val) : (val || []);
|
|
6581
6586
|
}
|
|
@@ -6595,14 +6600,14 @@ class DropiCheckboxSelectionList {
|
|
|
6595
6600
|
else {
|
|
6596
6601
|
this.selected = this.selected.includes(id) ? [] : [id];
|
|
6597
6602
|
}
|
|
6598
|
-
this.
|
|
6603
|
+
this.dropiCheckedValues.emit(this.selected);
|
|
6599
6604
|
}
|
|
6600
6605
|
render() {
|
|
6601
6606
|
const items = this.filtered;
|
|
6602
|
-
return (hAsync("div", { key: '
|
|
6607
|
+
return (hAsync("div", { key: '95774833547807d6001525158bf199883661b649', class: "csl" }, this.showFilter && (hAsync("div", { key: '13f6bfd33150cdf138e90b93fc8121dfcc311050', class: "csl__search" }, hAsync("dropi-icon", { key: '4edf5c21eeac0aa442e58845621b7715d8484c1b', name: "Search", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-400" }), hAsync("input", { key: '40071d0c189c7fd1f1bf8090ebe1d64ce9605602', class: "csl__search-input", type: "text", placeholder: this.filterPlaceholder, value: this.filterText, onInput: (e) => {
|
|
6603
6608
|
this.filterText = e.target.value;
|
|
6604
|
-
this.
|
|
6605
|
-
} }), this.filterText && (hAsync("button", { key: '
|
|
6609
|
+
this.dropiSearch.emit(this.filterText);
|
|
6610
|
+
} }), this.filterText && (hAsync("button", { key: 'a560cab7ce53e57e036696194054286aa1dd6fd9', class: "csl__clear", onClick: () => { this.filterText = ''; this.dropiSearch.emit(''); } }, hAsync("dropi-icon", { key: 'f1ae7e38fcb954761edb02bb32af139fb5eea610', name: "Close-small", iconWidth: "14px", iconHeight: "14px", color: "Gray-Gray-400" }))))), hAsync("div", { key: 'e93dfccc8215e96640ebe8c69f33f0bff5f655f2', class: "csl__list" }, items.length === 0 && this.showNotFound ? (hAsync("div", { class: "csl__empty" }, this.notFoundMessage)) : (items.map(opt => {
|
|
6606
6611
|
const checked = this.selected.includes(opt.id);
|
|
6607
6612
|
return (hAsync("div", { class: "csl__item", key: opt.id, onClick: () => this.toggle(opt.id) }, hAsync("dropi-checkbox", { checked: checked }), opt.icon && hAsync("img", { class: "csl__icon", src: opt.icon, alt: opt.label }), hAsync("span", { class: "csl__label" }, opt.label)));
|
|
6608
6613
|
})))));
|
|
@@ -6644,7 +6649,7 @@ const dropiChipsCss = () => `:host{display:inline-flex}*,*::before,*::after{box-
|
|
|
6644
6649
|
class DropiChips {
|
|
6645
6650
|
constructor(hostRef) {
|
|
6646
6651
|
registerInstance(this, hostRef);
|
|
6647
|
-
this.
|
|
6652
|
+
this.dropiClose = createEvent(this, "dropiClose");
|
|
6648
6653
|
}
|
|
6649
6654
|
/** Visual style (named customStyle to avoid conflict with HTMLElement.style) */
|
|
6650
6655
|
customStyle = 'fill';
|
|
@@ -6657,9 +6662,9 @@ class DropiChips {
|
|
|
6657
6662
|
/** Icon name (when type = 'icon') */
|
|
6658
6663
|
icon = '';
|
|
6659
6664
|
/** Emitted when the close icon is clicked */
|
|
6660
|
-
|
|
6665
|
+
dropiClose;
|
|
6661
6666
|
render() {
|
|
6662
|
-
return (hAsync("div", { key: '
|
|
6667
|
+
return (hAsync("div", { key: '394a3ff5219535e9f4e1d6c9fbb320c32f1ce2e7', class: { 'chip': true, [`chip--${this.customStyle}`]: true } }, this.type === 'avatar' && this.urlImg && (hAsync("img", { key: 'c7ea7ce319e2ab0a179f7b0b61ad9fe39be7c1ec', class: "chip__avatar", src: this.urlImg, alt: "" })), this.type === 'icon' && this.icon && (hAsync("dropi-icon", { key: '67e2edfbe37af83868a665cf65a85ecc27b7cfb5', class: "chip__pre-icon", name: this.icon, iconWidth: "14px", iconHeight: "14px", color: "currentColor" })), hAsync("span", { key: '1916b1796d69cf6742177b8f4013315323bdf16f', class: "chip__text" }, hAsync("slot", { key: '167e1b230b1c4406ba3f40ba7783966c6b523c96' })), this.showIcon && (hAsync("button", { key: '118d46db1615e9ed14485500b5a754407c361139', class: "chip__close", onClick: () => this.dropiClose.emit(), "aria-label": "Eliminar" }, hAsync("dropi-icon", { key: '1639e4ae068d0361512469d2915b392101b2b923', name: "Cross-circle", iconWidth: "14px", iconHeight: "14px", color: "currentColor" })))));
|
|
6663
6668
|
}
|
|
6664
6669
|
static get style() { return dropiChipsCss(); }
|
|
6665
6670
|
static get cmpMeta() { return {
|
|
@@ -6678,7 +6683,7 @@ class DropiChips {
|
|
|
6678
6683
|
}; }
|
|
6679
6684
|
}
|
|
6680
6685
|
|
|
6681
|
-
const dropiCitySelectorCss = () => `:host{display:block;width:100%;position:relative}*,*::before,*::after{box-sizing:border-box}.city-selector{position:relative;width:100%}.selector-trigger{width:100%;min-height:44px;padding:6px 12px;border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #ffffff);display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;text-align:left;font-family:inherit;transition:border-color 0.15s}.selector-trigger:hover:not(:disabled){border-color:var(--Gray-Gray-300, #a3abbf)}.selector-trigger:focus{outline:none;border-color:var(--Info-Info-500, #50a5f1)}.city-selector--disabled .selector-trigger{background:var(--Gray-Gray-50, #f7f8fa);border-color:var(--Gray-Gray-100, #e6eaf2);cursor:not-allowed;opacity:0.6}.chips-area{display:flex;flex-wrap:wrap;gap:4px;flex:1;min-height:26px;align-items:center}.placeholder{color:var(--Gray-Gray-400, #858ea6);font-size:var(--font-size-s, 14px)}.chip{display:inline-flex;align-items:center;gap:4px;background:var(--Primary-Primary-50, #fff8f0);border:1px solid var(--Primary-Primary-200, #fcd5a8);border-radius:var(--Border-1, 4px);padding:2px 6px;font-size:var(--font-size-xs, 12px);color:var(--Primary-Primary-700, #b85c00)}.chip-remove{background:none;border:none;cursor:pointer;padding:0;display:flex;align-items:center}.dropdown{position:absolute;top:calc(100% + 4px);left:0;right:0;background:var(--Neutral-White, #ffffff);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);box-shadow:0 8px 24px rgba(0, 0, 0, 0.10);z-index:
|
|
6686
|
+
const dropiCitySelectorCss = () => `:host{display:block;width:100%;position:relative}*,*::before,*::after{box-sizing:border-box}.city-selector{position:relative;width:100%}.selector-trigger{width:100%;min-height:44px;padding:6px 12px;border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #ffffff);display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;text-align:left;font-family:inherit;transition:border-color 0.15s}.selector-trigger:hover:not(:disabled){border-color:var(--Gray-Gray-300, #a3abbf)}.selector-trigger:focus{outline:none;border-color:var(--Info-Info-500, #50a5f1)}.city-selector--disabled .selector-trigger{background:var(--Gray-Gray-50, #f7f8fa);border-color:var(--Gray-Gray-100, #e6eaf2);cursor:not-allowed;opacity:0.6}.chips-area{display:flex;flex-wrap:wrap;gap:4px;flex:1;min-height:26px;align-items:center}.placeholder{color:var(--Gray-Gray-400, #858ea6);font-size:var(--font-size-s, 14px)}.chip{display:inline-flex;align-items:center;gap:4px;background:var(--Primary-Primary-50, #fff8f0);border:1px solid var(--Primary-Primary-200, #fcd5a8);border-radius:var(--Border-1, 4px);padding:2px 6px;font-size:var(--font-size-xs, 12px);color:var(--Primary-Primary-700, #b85c00)}.chip-remove{background:none;border:none;cursor:pointer;padding:0;display:flex;align-items:center}.dropdown{position:absolute;top:calc(100% + 4px);left:0;right:0;background:var(--Neutral-White, #ffffff);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);box-shadow:0 8px 24px rgba(0, 0, 0, 0.10);z-index:var(--dropi-z-index-overlay, 11000);overflow:hidden}.search-wrap{padding:10px 12px;border-bottom:1px solid var(--Gray-Gray-100, #e6eaf2)}.search-field{position:relative;display:flex;align-items:center}.search-input{width:100%;height:36px;padding:0 36px 0 12px;border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);font-size:var(--font-size-s, 14px);font-family:inherit;color:var(--Gray-Gray-700, #32394d);background:var(--Gray-Gray-50, #f7f8fa);outline:none;transition:border-color 0.15s}.search-input:focus{border-color:var(--Info-Info-500, #50a5f1);background:var(--Neutral-White, #ffffff)}.search-input::placeholder{color:var(--Gray-Gray-400, #858ea6)}.search-icon{position:absolute;right:10px;display:flex;align-items:center;pointer-events:none}.options-list{max-height:280px;overflow-y:auto;background:var(--Neutral-White, #ffffff)}.options-list::-webkit-scrollbar{width:6px}.options-list::-webkit-scrollbar-track{background:transparent}.options-list::-webkit-scrollbar-thumb{background:var(--Gray-Gray-200, #c3c9d9);border-radius:4px}.group-label{padding:14px 16px 8px;font-size:var(--font-size-m, 16px);font-weight:var(--font-weight-bold, 700);color:var(--Gray-Gray-800, #1f2433);background:var(--Neutral-White, #ffffff)}.city-option{padding:10px 16px;display:flex;align-items:center;gap:12px;cursor:pointer;font-size:var(--font-size-s, 14px);color:var(--Gray-Gray-700, #32394d);background:var(--Neutral-White, #ffffff);transition:background 0.1s;user-select:none}.city-option:hover{background:var(--Gray-Gray-50, #f7f8fa)}.city-option--selected .city-label{color:var(--Gray-Gray-800, #1f2433);font-weight:var(--font-weight-medium, 500)}.checkbox{width:22px;height:22px;border:1.5px solid var(--Gray-Gray-300, #c3c9d9);border-radius:var(--Border-1, 6px);background:var(--Neutral-White, #ffffff);display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:border-color 0.15s, background 0.15s}.checkbox--checked{border-color:var(--Primary-Primary-500, #f49a3d);background:var(--Primary-Primary-500, #f49a3d)}.city-label{flex:1}.no-results{padding:20px 16px;text-align:center;color:var(--Gray-Gray-400, #858ea6);font-size:var(--font-size-s, 14px)}`;
|
|
6682
6687
|
|
|
6683
6688
|
/**
|
|
6684
6689
|
* @component dropi-city-selector
|
|
@@ -6694,7 +6699,7 @@ const dropiCitySelectorCss = () => `:host{display:block;width:100%;position:rela
|
|
|
6694
6699
|
class DropiCitySelector {
|
|
6695
6700
|
constructor(hostRef) {
|
|
6696
6701
|
registerInstance(this, hostRef);
|
|
6697
|
-
this.selectedCitiesChange = createEvent(this, "selectedCitiesChange"
|
|
6702
|
+
this.selectedCitiesChange = createEvent(this, "selectedCitiesChange");
|
|
6698
6703
|
}
|
|
6699
6704
|
/** Grouped city options (array or JSON string) */
|
|
6700
6705
|
options = [];
|
|
@@ -6810,7 +6815,7 @@ const dropiColorPickerCss = () => `:host{display:block}.general-container{positi
|
|
|
6810
6815
|
class DropiColorPicker {
|
|
6811
6816
|
constructor(hostRef) {
|
|
6812
6817
|
registerInstance(this, hostRef);
|
|
6813
|
-
this.colorChange = createEvent(this, "colorChange"
|
|
6818
|
+
this.colorChange = createEvent(this, "colorChange");
|
|
6814
6819
|
}
|
|
6815
6820
|
get el() { return getElement(this); }
|
|
6816
6821
|
currentColor = '#ffffff';
|
|
@@ -7106,10 +7111,10 @@ class DropiColorPicker {
|
|
|
7106
7111
|
}
|
|
7107
7112
|
}
|
|
7108
7113
|
render() {
|
|
7109
|
-
return (hAsync("div", { key: '
|
|
7114
|
+
return (hAsync("div", { key: '18ea41f637e46cb88d57cb2bc513f5e6e3ef9617', class: "general-container" }, hAsync("div", { key: '653748e883bc4deaf05739ced8e516f857a7a26b', class: "main-input-container" }, hAsync("div", { key: 'b8a4e60b25d6017c3987fa4ea3420c78e3400db0', class: "overlay", onClick: () => this.showEditor() }), hAsync("div", { key: 'e22f4b3e95f099e2444a46ee560fefb9f6556b65', class: "line-color-preview" }, hAsync("div", { key: 'cf513dbb5ee9652a6d20aad0608508cae3e000af', class: "color-preview", style: { background: this.currentColor } })), hAsync("div", { key: '025b264ae8aca0fca79f662c58250eea43ccf0e7', class: "color-info" }, hAsync("input", { key: '60a379b53bd0cf0bb1f80d5e1bd5b4c4038686f9', type: "text", class: "color-input", value: this.currentColor, maxLength: 9, readOnly: true }))), hAsync("div", { key: '06e15b97ba156a9aa9dec9f60f2b24c924c0ac53', class: `color-picker-container position-${this.position} ${this.showEdit ? 'show' : ''}` }, hAsync("div", { key: 'ea9df13cdf62ae1378b600dc7689df61bec5fc9b', class: "main-color-canvas-container" }, hAsync("canvas", { key: '5d73426ccfcccca44102300588472fe5e54744f9', ref: (el) => this.colorCanvas = el, width: 256, height: 150, onMouseDown: (e) => this.onColorMouseDown(e) }), hAsync("div", { key: 'e710e7f8c1558ad20dcfb0f03c98969d9aee5e91', class: "color-selector-pointer", style: {
|
|
7110
7115
|
left: `${(this.saturation / 100) * 256}px`,
|
|
7111
7116
|
top: `${((100 - this.currentVal) / 100) * 150}px`
|
|
7112
|
-
} })), hAsync("div", { key: '
|
|
7117
|
+
} })), hAsync("div", { key: '239c7986572fade46b913629bbd374ec6f15e6fb', class: "slider-container" }, hAsync("div", { key: '35c4231f321c42fa95f362da5bf211daf1671c79', class: "slider-group" }, hAsync("div", { key: '20be2dc7eff210e31ab3215da10473a23db921f1', class: "hue-slider-container" }, hAsync("canvas", { key: '0795238e2a59747c4bfbd3437a2a2fd9396dc9e2', ref: (el) => this.hueCanvas = el, width: 256, height: 20, onMouseDown: (e) => this.onHueMouseDown(e) }), hAsync("div", { key: '17296210ecef2a958a46f23971a04da61d59402e', class: "slider-pointer", style: { left: `${(this.hue / 360) * 234}px` } }))), hAsync("div", { key: 'af7504663561d0e811ae7ef163cce80cfa256187', class: "slider-group" }, hAsync("div", { key: '7f3f01cfb0e4ca93403dad15787ab8acd7c1cd82', class: "opacity-slider-container" }, hAsync("canvas", { key: '9bac8eca65bfba529748eb9788fc749b87115ca6', ref: (el) => this.opacityCanvas = el, width: 256, height: 20, onMouseDown: (e) => this.onOpacityMouseDown(e) }), hAsync("div", { key: '34166bf45efd6f4148395ede39680164662f8a33', class: "slider-pointer", style: { left: `${(this.opacity / 100) * 234}px` } }))), hAsync("div", { key: 'b43c40db224a560adb19fd91a8790efe11719ff9', class: "color-info" }, hAsync("div", { key: 'aad6ef925f30835b5d8f51d23f872560bcb62360', class: "color-label" }, "HEX"), hAsync("input", { key: 'bdb5fd6ca689251a7c566f32bc6c308873117b2c', type: "text", class: "color-input", value: this.color, onInput: (e) => this.onHexInputChange(e), maxLength: 9 }))))));
|
|
7113
7118
|
}
|
|
7114
7119
|
static get watchers() { return {
|
|
7115
7120
|
"value": [{
|
|
@@ -7170,7 +7175,7 @@ class DropiCountryFlags {
|
|
|
7170
7175
|
style['width'] = this.width.includes('px') ? this.width : `${this.width}px`;
|
|
7171
7176
|
if (this.height)
|
|
7172
7177
|
style['height'] = this.height.includes('px') ? this.height : `${this.height}px`;
|
|
7173
|
-
return (hAsync("figure", { key: '
|
|
7178
|
+
return (hAsync("figure", { key: '451765b675d5b27dc0357a1a2b6dd338690361c8', class: `flag ${this.customStyle ?? 'flat'}` }, hAsync("img", { key: 'f58a64e7d78298d328be2ba625c852a5eddc392f', src: this.src, style: style, alt: `flag-${this.country}` })));
|
|
7174
7179
|
}
|
|
7175
7180
|
static get style() { return dropiCountryFlagsCss(); }
|
|
7176
7181
|
static get cmpMeta() { return {
|
|
@@ -7188,8 +7193,37 @@ class DropiCountryFlags {
|
|
|
7188
7193
|
}; }
|
|
7189
7194
|
}
|
|
7190
7195
|
|
|
7191
|
-
const dropiCountrySelectorCss = () => `:host{display:block;width:100%;text-align:left}*,*::before,*::after{box-sizing:border-box}.custom-select{position:relative;width:100%}label{display:block;font-size:var(--font-size-xs, 11px);font-weight:var(--font-weight-regular, 400);color:var(--Gray-Gray-600, #475066);margin-bottom:6px}.required{color:var(--Error-Error-500, #ef4444);margin-left:2px}.select-button{width:100%;height:44px;padding:0 12px;border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #ffffff);color:var(--Gray-Gray-500, #69738c);font-size:var(--font-size-s, 14px);font-family:inherit;display:flex;justify-content:space-between;align-items:center;text-align:left;cursor:pointer;transition:border-color 0.15s ease}.select-button:focus{outline:none;border-color:var(--Info-Info-500, #3b82f6)}.select-button:disabled{border-color:var(--Gray-Gray-200, #c3c9d9);color:var(--Gray-Gray-400, #858ea6);background:var(--Gray-Gray-50, #f7f8fa);cursor:not-allowed}.select-button.select-completed{color:var(--Gray-Gray-700, #32394d)}.select-button.select-invalid{border-color:var(--Error-Error-500, #ef4444)}.selected-content{display:flex;align-items:center;gap:8px;overflow:hidden;flex:1}.selected-option{display:flex;align-items:center;gap:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--Gray-Gray-700, #32394d);font-size:var(--font-size-s, 14px)}.placeholder-text{color:var(--Gray-Gray-400, #858ea6);font-size:var(--font-size-s, 14px)}.flag-img{border-radius:var(--Border-1, 4px);width:24px;height:24px;object-fit:cover;flex-shrink:0}.select-dropdown{position:absolute;top:calc(100% + 4px);left:0;right:0;background:var(--Neutral-White, #ffffff);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);z-index:
|
|
7192
|
-
|
|
7196
|
+
const dropiCountrySelectorCss = () => `:host{display:block;width:100%;text-align:left}*,*::before,*::after{box-sizing:border-box}.custom-select{position:relative;width:100%}label{display:block;font-size:var(--font-size-xs, 11px);font-weight:var(--font-weight-regular, 400);color:var(--Gray-Gray-600, #475066);margin-bottom:6px}.required{color:var(--Error-Error-500, #ef4444);margin-left:2px}.select-button{width:100%;height:44px;padding:0 12px;border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #ffffff);color:var(--Gray-Gray-500, #69738c);font-size:var(--font-size-s, 14px);font-family:inherit;display:flex;justify-content:space-between;align-items:center;text-align:left;cursor:pointer;transition:border-color 0.15s ease}.select-button:focus{outline:none;border-color:var(--Info-Info-500, #3b82f6)}.select-button:disabled{border-color:var(--Gray-Gray-200, #c3c9d9);color:var(--Gray-Gray-400, #858ea6);background:var(--Gray-Gray-50, #f7f8fa);cursor:not-allowed}.select-button.select-completed{color:var(--Gray-Gray-700, #32394d)}.select-button.select-invalid{border-color:var(--Error-Error-500, #ef4444)}.selected-content{display:flex;align-items:center;gap:8px;overflow:hidden;flex:1}.selected-option{display:flex;align-items:center;gap:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--Gray-Gray-700, #32394d);font-size:var(--font-size-s, 14px)}.placeholder-text{color:var(--Gray-Gray-400, #858ea6);font-size:var(--font-size-s, 14px)}.flag-img{border-radius:var(--Border-1, 4px);width:24px;height:24px;object-fit:cover;flex-shrink:0}.select-dropdown{position:absolute;top:calc(100% + 4px);left:0;right:0;background:var(--Neutral-White, #ffffff);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);z-index:var(--dropi-z-index-overlay, 11000);list-style:none;padding:0;margin:0;box-shadow:0 8px 24px rgba(0, 0, 0, 0.10);overflow:hidden;transition:max-height 0.2s ease, opacity 0.2s ease}.select-dropdown.expanded{max-height:300px;opacity:1;overflow-y:auto}.select-dropdown.collapsed{max-height:0;opacity:0;pointer-events:none;border-color:transparent;box-shadow:none}.select-dropdown::-webkit-scrollbar{width:6px}.select-dropdown::-webkit-scrollbar-track{background:transparent}.select-dropdown::-webkit-scrollbar-thumb{background:var(--Gray-Gray-200, #c3c9d9);border-radius:4px}.select-dropdown::-webkit-scrollbar-thumb:hover{background:var(--Gray-Gray-300, #a3abbf)}.search-li{padding:10px 12px;position:sticky;top:0;background:var(--Neutral-White, #ffffff);z-index:1;border-bottom:1px solid var(--Gray-Gray-100, #e6eaf2)}.search-field{position:relative;display:flex;align-items:center}.country-search{width:100%;height:36px;padding:0 36px 0 12px;border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);outline:none;font-size:var(--font-size-s, 14px);font-family:inherit;color:var(--Gray-Gray-700, #32394d);background:var(--Gray-Gray-50, #f7f8fa);transition:border-color 0.15s, background 0.15s}.country-search:focus{border-color:var(--Info-Info-500, #50a5f1);background:var(--Neutral-White, #ffffff)}.country-search::placeholder{color:var(--Gray-Gray-400, #858ea6)}.search-icon{position:absolute;right:10px;display:flex;align-items:center;pointer-events:none}.option{width:100%;min-height:44px;padding:10px 16px;border:none;background:transparent;text-align:left;color:var(--Gray-Gray-700, #32394d);font-size:var(--font-size-s, 14px);font-family:inherit;cursor:pointer;display:flex;align-items:center;gap:10px;transition:background 0.1s ease;white-space:nowrap}.option:hover{background:var(--Gray-Gray-50, #f7f8fa)}`;
|
|
7197
|
+
|
|
7198
|
+
const PORTAL_CSS = `
|
|
7199
|
+
.select-dropdown {
|
|
7200
|
+
background: #ffffff;
|
|
7201
|
+
border: 1px solid #c3c9d9;
|
|
7202
|
+
border-radius: 8px;
|
|
7203
|
+
list-style: none;
|
|
7204
|
+
padding: 0;
|
|
7205
|
+
margin: 0;
|
|
7206
|
+
box-shadow: 0 8px 24px rgba(0,0,0,.10);
|
|
7207
|
+
overflow: hidden;
|
|
7208
|
+
transition: max-height .2s ease, opacity .2s ease;
|
|
7209
|
+
font-family: inherit;
|
|
7210
|
+
font-size: 14px;
|
|
7211
|
+
}
|
|
7212
|
+
.select-dropdown.expanded { max-height: 300px; opacity: 1; overflow-y: auto; }
|
|
7213
|
+
.select-dropdown.collapsed { max-height: 0; opacity: 0; pointer-events: none; border-color: transparent; box-shadow: none; }
|
|
7214
|
+
.select-dropdown::-webkit-scrollbar { width: 6px; }
|
|
7215
|
+
.select-dropdown::-webkit-scrollbar-track { background: transparent; }
|
|
7216
|
+
.select-dropdown::-webkit-scrollbar-thumb { background: #c3c9d9; border-radius: 4px; }
|
|
7217
|
+
.search-li { padding: 10px 12px; position: sticky; top: 0; background: #ffffff; z-index: 1; border-bottom: 1px solid #e6eaf2; }
|
|
7218
|
+
.search-field { position: relative; display: flex; align-items: center; }
|
|
7219
|
+
.country-search { width: 100%; height: 36px; padding: 0 36px 0 12px; border: 1px solid #c3c9d9; border-radius: 8px; outline: none; font-size: 14px; font-family: inherit; color: #32394d; background: #f7f8fa; }
|
|
7220
|
+
.country-search:focus { border-color: #50a5f1; background: #ffffff; }
|
|
7221
|
+
.country-search::placeholder { color: #858ea6; }
|
|
7222
|
+
.search-icon { position: absolute; right: 10px; display: flex; align-items: center; pointer-events: none; }
|
|
7223
|
+
.option { width: 100%; min-height: 44px; padding: 10px 16px; border: none; background: transparent; text-align: left; color: #32394d; font-size: 14px; font-family: inherit; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: background .1s ease; white-space: nowrap; }
|
|
7224
|
+
.option:hover { background: #f7f8fa; }
|
|
7225
|
+
.flag-img { border-radius: 4px; width: 24px; height: 24px; object-fit: cover; flex-shrink: 0; }
|
|
7226
|
+
`;
|
|
7193
7227
|
const COUNTRIES$1 = [
|
|
7194
7228
|
{ name: 'Afghanistan', code: 'AF', codePhone: '93' },
|
|
7195
7229
|
{ name: 'Albania', code: 'AL', codePhone: '355' },
|
|
@@ -7291,7 +7325,7 @@ const COUNTRIES$1 = [
|
|
|
7291
7325
|
class DropiCountrySelector {
|
|
7292
7326
|
constructor(hostRef) {
|
|
7293
7327
|
registerInstance(this, hostRef);
|
|
7294
|
-
this.
|
|
7328
|
+
this.dropiChange = createEvent(this, "dropiChange");
|
|
7295
7329
|
}
|
|
7296
7330
|
/** Label above the select */
|
|
7297
7331
|
label = '';
|
|
@@ -7314,15 +7348,25 @@ class DropiCountrySelector {
|
|
|
7314
7348
|
* When provided, its non-null fields override individual props.
|
|
7315
7349
|
*/
|
|
7316
7350
|
selectProperties = null;
|
|
7351
|
+
/** When set to "body", the dropdown renders with fixed positioning to escape parent overflow clipping */
|
|
7352
|
+
appendTo = '';
|
|
7317
7353
|
/** Emitted when a country is selected. Detail is the CountryItem. */
|
|
7318
|
-
|
|
7354
|
+
dropiChange;
|
|
7319
7355
|
isOpen = false;
|
|
7320
7356
|
selected = null;
|
|
7321
7357
|
get el() { return getElement(this); }
|
|
7358
|
+
buttonRef;
|
|
7359
|
+
portalContainer = null;
|
|
7360
|
+
portalFocusedSelector = null;
|
|
7322
7361
|
handleDocClick(e) {
|
|
7323
|
-
if (this.isOpen
|
|
7324
|
-
|
|
7325
|
-
|
|
7362
|
+
if (!this.isOpen)
|
|
7363
|
+
return;
|
|
7364
|
+
const path = e.composedPath();
|
|
7365
|
+
if (path.includes(this.el))
|
|
7366
|
+
return;
|
|
7367
|
+
if (this.portalContainer && path.includes(this.portalContainer))
|
|
7368
|
+
return;
|
|
7369
|
+
this.isOpen = false;
|
|
7326
7370
|
}
|
|
7327
7371
|
searchInputRef;
|
|
7328
7372
|
currentSelectionChanged(val) {
|
|
@@ -7348,6 +7392,55 @@ class DropiCountrySelector {
|
|
|
7348
7392
|
if (this.currentSelection)
|
|
7349
7393
|
this.currentSelectionChanged(this.currentSelection);
|
|
7350
7394
|
}
|
|
7395
|
+
componentDidLoad() {
|
|
7396
|
+
if (this.appendTo !== 'body')
|
|
7397
|
+
return;
|
|
7398
|
+
this.portalContainer = document.createElement('div');
|
|
7399
|
+
const style = document.createElement('style');
|
|
7400
|
+
style.textContent = PORTAL_CSS;
|
|
7401
|
+
this.portalContainer.appendChild(style);
|
|
7402
|
+
document.body.appendChild(this.portalContainer);
|
|
7403
|
+
}
|
|
7404
|
+
disconnectedCallback() {
|
|
7405
|
+
this.returnUlToShadow();
|
|
7406
|
+
this.portalContainer?.remove();
|
|
7407
|
+
this.portalContainer = null;
|
|
7408
|
+
}
|
|
7409
|
+
componentWillRender() {
|
|
7410
|
+
if (!this.portalContainer)
|
|
7411
|
+
return;
|
|
7412
|
+
const active = document.activeElement;
|
|
7413
|
+
if (active && this.portalContainer.contains(active)) {
|
|
7414
|
+
this.portalFocusedSelector = '.' + Array.from(active.classList).join('.');
|
|
7415
|
+
}
|
|
7416
|
+
this.returnUlToShadow();
|
|
7417
|
+
}
|
|
7418
|
+
componentDidRender() {
|
|
7419
|
+
if (!this.portalContainer || !this.buttonRef)
|
|
7420
|
+
return;
|
|
7421
|
+
const ul = this.el.shadowRoot?.querySelector('ul.select-dropdown');
|
|
7422
|
+
if (!ul)
|
|
7423
|
+
return;
|
|
7424
|
+
const rect = this.buttonRef.getBoundingClientRect();
|
|
7425
|
+
ul.style.cssText = `position:fixed;top:${rect.bottom + 4}px;left:${rect.left}px;width:${rect.width}px;z-index:11000;`;
|
|
7426
|
+
this.portalContainer.appendChild(ul);
|
|
7427
|
+
if (this.portalFocusedSelector) {
|
|
7428
|
+
const el = this.portalContainer.querySelector(this.portalFocusedSelector);
|
|
7429
|
+
if (el) {
|
|
7430
|
+
const len = el.value?.length ?? 0;
|
|
7431
|
+
el.focus();
|
|
7432
|
+
el.setSelectionRange?.(len, len);
|
|
7433
|
+
}
|
|
7434
|
+
this.portalFocusedSelector = null;
|
|
7435
|
+
}
|
|
7436
|
+
}
|
|
7437
|
+
returnUlToShadow() {
|
|
7438
|
+
if (!this.portalContainer)
|
|
7439
|
+
return;
|
|
7440
|
+
const ul = this.portalContainer.querySelector('ul.select-dropdown');
|
|
7441
|
+
if (ul)
|
|
7442
|
+
this.el.shadowRoot?.querySelector('.custom-select')?.appendChild(ul);
|
|
7443
|
+
}
|
|
7351
7444
|
get filtered() {
|
|
7352
7445
|
if (!this.searchTerm)
|
|
7353
7446
|
return COUNTRIES$1;
|
|
@@ -7367,14 +7460,14 @@ class DropiCountrySelector {
|
|
|
7367
7460
|
this.isOpen = false;
|
|
7368
7461
|
this.searchTerm = '';
|
|
7369
7462
|
this.currentSelection = country.code;
|
|
7370
|
-
this.
|
|
7463
|
+
this.dropiChange.emit(country);
|
|
7371
7464
|
}
|
|
7372
7465
|
render() {
|
|
7373
|
-
return (hAsync("div", { key: '
|
|
7466
|
+
return (hAsync("div", { key: '1a510a9b0aad889618ab94b7b54670fab1e56729', class: "custom-select" }, this.label && (hAsync("label", { key: '3e86a64a1b3fe27708bc3a605d5de0dc0ef926ca' }, this.label, this.showObligatory && hAsync("span", { key: 'af72e01e496a42d59d48d2c3c5eaba04a73e708c', class: "required" }, "*"))), hAsync("button", { key: 'cbd2aa745610bffb96b507527c4fe88fd80cbbd1', type: "button", ref: (el) => { this.buttonRef = el; }, class: {
|
|
7374
7467
|
'select-button': true,
|
|
7375
7468
|
'select-completed': !!this.selected,
|
|
7376
7469
|
'select-invalid': this.hasError,
|
|
7377
|
-
}, disabled: this.disabled, onClick: () => this.open() }, hAsync("div", { key: '
|
|
7470
|
+
}, disabled: this.disabled, onClick: () => this.open() }, hAsync("div", { key: 'b50e848e8689d2e1aacfef0213b25d9cc85782c0', class: "selected-content" }, this.selected ? (hAsync("span", { class: "selected-option" }, hAsync("img", { class: "flag-img", src: `https://flagsapi.com/${this.selected.code}/shiny/24.png`, alt: this.selected.name }), this.selected.name)) : (hAsync("span", { class: "placeholder-text" }, this.placeholder))), hAsync("dropi-icon", { key: '324a2e95d8fbb6ee25c434912e6b84005af3d4fe', name: this.isOpen ? 'Arrow-Up-2' : 'Arrow-Down-2', iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-500" })), hAsync("ul", { key: 'f93d34cb715ea78dcb12242148cdb8dc143fbdbf', class: `select-dropdown${this.isOpen ? ' expanded' : ' collapsed'}` }, hAsync("li", { key: '7100ecf3ca9ddfebbc7f5461614d3ae5e714f9a7', class: "search-li" }, hAsync("div", { key: 'ca31fe6fa95231b0ac75e08bf96a97f28bc3f947', class: "search-field" }, hAsync("input", { key: '6d07a808c8982991934351b2f9d9b96ef136b4b3', ref: (el) => { this.searchInputRef = el; }, type: "text", class: "country-search", placeholder: "Buscar pa\u00EDs...", value: this.searchTerm, onInput: (e) => { this.searchTerm = e.target.value; } }), hAsync("span", { key: '77c15e6a1d92bbfa570eca92f862a6a29f167c67', class: "search-icon" }, hAsync("dropi-icon", { key: '8a49100954c335d09fbe418836c76037abd00e60', name: "Search", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-400" })))), this.filtered.map(country => (hAsync("li", { key: country.code }, hAsync("button", { class: "option", type: "button", onClick: () => this.select(country) }, hAsync("img", { class: "flag-img", src: `https://flagsapi.com/${country.code}/shiny/24.png`, alt: country.name }), country.name))))), this.textHelper && (hAsync("div", { key: '52089f00fe6c8ecc115a35068365f62a7328ecbe', class: { 'select-helper': true, 'select-helper-error': this.hasError } }, this.hasError && hAsync("dropi-icon", { key: '5272c813693f350a195990ae946ac50387b09723', name: "Warning-circle", iconWidth: "12px", iconHeight: "12px", color: "Error-Error-500" }), hAsync("span", { key: '7d74cd023b30b08753ea841ef1a1592497be9884' }, this.textHelper)))));
|
|
7378
7471
|
}
|
|
7379
7472
|
static get watchers() { return {
|
|
7380
7473
|
"currentSelection": [{
|
|
@@ -7398,6 +7491,7 @@ class DropiCountrySelector {
|
|
|
7398
7491
|
"textHelper": [1, "text-helper"],
|
|
7399
7492
|
"searchTerm": [1025, "search-term"],
|
|
7400
7493
|
"selectProperties": [8, "select-properties"],
|
|
7494
|
+
"appendTo": [1, "append-to"],
|
|
7401
7495
|
"isOpen": [32],
|
|
7402
7496
|
"selected": [32]
|
|
7403
7497
|
},
|
|
@@ -7422,9 +7516,9 @@ const DAYS_ES = ['Do', 'Lu', 'Ma', 'Mi', 'Ju', 'Vi', 'Sa'];
|
|
|
7422
7516
|
class DropiDatePicker {
|
|
7423
7517
|
constructor(hostRef) {
|
|
7424
7518
|
registerInstance(this, hostRef);
|
|
7425
|
-
this.
|
|
7426
|
-
this.
|
|
7427
|
-
this.dropiRangeChange = createEvent(this, "dropiRangeChange"
|
|
7519
|
+
this.dropiChangeDate = createEvent(this, "dropiChangeDate");
|
|
7520
|
+
this.dropiClosePanel = createEvent(this, "dropiClosePanel");
|
|
7521
|
+
this.dropiRangeChange = createEvent(this, "dropiRangeChange");
|
|
7428
7522
|
}
|
|
7429
7523
|
/** Selected date (ISO string, single mode) - matches Angular 'selectedDate' */
|
|
7430
7524
|
selectedDate = '';
|
|
@@ -7459,9 +7553,9 @@ class DropiDatePicker {
|
|
|
7459
7553
|
}
|
|
7460
7554
|
}
|
|
7461
7555
|
/** Emitted when date selected — matches Angular 'onChangeDate' */
|
|
7462
|
-
|
|
7556
|
+
dropiChangeDate;
|
|
7463
7557
|
/** Emitted when panel closes — matches Angular 'onClosePanel' */
|
|
7464
|
-
|
|
7558
|
+
dropiClosePanel;
|
|
7465
7559
|
/** Emitted when range selected */
|
|
7466
7560
|
dropiRangeChange;
|
|
7467
7561
|
get displayValue() {
|
|
@@ -7531,7 +7625,7 @@ class DropiDatePicker {
|
|
|
7531
7625
|
if (this.selectionMode !== 'range') {
|
|
7532
7626
|
this.selectedDate = iso;
|
|
7533
7627
|
this.open = false;
|
|
7534
|
-
this.
|
|
7628
|
+
this.dropiChangeDate.emit(iso);
|
|
7535
7629
|
return;
|
|
7536
7630
|
}
|
|
7537
7631
|
// Range mode
|
|
@@ -7583,12 +7677,12 @@ class DropiDatePicker {
|
|
|
7583
7677
|
render() {
|
|
7584
7678
|
const days = this.buildDays();
|
|
7585
7679
|
const today = new Date().toISOString().slice(0, 10);
|
|
7586
|
-
return (hAsync("div", { key: '
|
|
7680
|
+
return (hAsync("div", { key: '0c3cb89d77d6d8e7d3f955354d6be4b7a1f507fb', class: "dp-wrap" }, this.label && hAsync("label", { key: '672ad3d08337ed0df7c7e7d582ba8fe5af8d2b23', class: "dp-label" }, this.label), hAsync("button", { key: '848428a5ce236b37e8e988223c9ef8bd91ea16b3', class: {
|
|
7587
7681
|
'dp-trigger': true,
|
|
7588
7682
|
'dp-trigger--disabled': this.disabled,
|
|
7589
7683
|
'dp-trigger--invalid': this.isInvalid,
|
|
7590
7684
|
'dp-trigger--loading': this.loading
|
|
7591
|
-
}, onClick: () => this.open ? this.open = false : this.open_(), disabled: this.disabled || this.loading, type: "button" }, hAsync("dropi-icon", { key: '
|
|
7685
|
+
}, onClick: () => this.open ? this.open = false : this.open_(), disabled: this.disabled || this.loading, type: "button" }, hAsync("dropi-icon", { key: 'c51b9238996ec454f64f53d4e9ede35bf494fd95', name: "Calendar", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-400" }), hAsync("span", { key: 'b34ed963710695296a2986b0e790457b90a3ee60', class: { 'dp-trigger__value': true, 'dp-trigger__placeholder': !this.displayValue } }, this.displayValue || this.placeholder), hAsync("dropi-icon", { key: '8cbefce39dab39a5cba941f4538f46cf97db1c06', name: "Arrow-Down-2", iconWidth: "12px", iconHeight: "12px", color: "Gray-Gray-400" })), this.open && (hAsync("div", { key: '36a5db42655b136cee1abf31bb5e206a6d118beb', class: "dp-popup" }, hAsync("div", { key: '456c2778f035fae19450841baa20df5092f6dca4', class: "dp-nav" }, hAsync("button", { key: '8f05a6aa4e1f4e0dda08ee9dad89f189c130eef0', class: "dp-nav__btn", onClick: () => this.prevMonth(), type: "button" }, hAsync("dropi-icon", { key: '41f4e9b157e56669fa179cfed62d960ff1eadfd6', name: "Arrow-Left-2", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-600" })), hAsync("span", { key: '53556f3a356e1d2b63b59d4edda40ddf5fda9e5f', class: "dp-nav__title" }, hAsync("span", { key: '4bad1d735d4235b2ddaac33f3fa8f6335e753984' }, MONTHS_ES[this.viewMonth]), hAsync("span", { key: 'c7af6bb7edc5dead7751c65ee024485aa2a6cf65' }, this.viewYear)), hAsync("button", { key: '5ff7b70b69732c01ae7a45c7b65336982ea6eed8', class: "dp-nav__btn", onClick: () => this.nextMonth(), type: "button" }, hAsync("dropi-icon", { key: '718725e17a530de4e8081c97e639342ff7fd9a96', name: "Arrow-Right-2", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-600" }))), hAsync("div", { key: 'd3d899342a15a9a0f2b508dbd39945831ebbad0d', class: "dp-grid" }, DAYS_ES.map(d => (hAsync("div", { class: "dp-day-header" }, d))), days.map(({ iso, day, currentMonth }) => {
|
|
7592
7686
|
const isSelected = this.selectionMode !== 'range'
|
|
7593
7687
|
? iso === this.selectedDate
|
|
7594
7688
|
: iso === this.startDate || iso === this.endDate;
|
|
@@ -7610,16 +7704,16 @@ class DropiDatePicker {
|
|
|
7610
7704
|
if (this.selectionMode === 'range' && this.startDate && !this.endDate)
|
|
7611
7705
|
this.hoverDate = iso;
|
|
7612
7706
|
}, onMouseLeave: () => this.hoverDate = '' }, day));
|
|
7613
|
-
})), hAsync("div", { key: '
|
|
7707
|
+
})), hAsync("div", { key: '84c799762393b9de0161795f20188a680490d4d8', class: "dp-footer" }, hAsync("button", { key: '4696558b1be6bf8abe8461f341c129c640af46ce', class: "dp-footer__clear", type: "button", onClick: () => {
|
|
7614
7708
|
this.selectedDate = '';
|
|
7615
7709
|
this.startDate = '';
|
|
7616
7710
|
this.endDate = '';
|
|
7617
7711
|
this.open = false;
|
|
7618
|
-
} }, "Limpiar"), hAsync("button", { key: '
|
|
7712
|
+
} }, "Limpiar"), hAsync("button", { key: 'a87f6f92fa10829560d223835e70fd2951edc482', class: "dp-footer__today", type: "button", onClick: () => {
|
|
7619
7713
|
if (this.selectionMode !== 'range') {
|
|
7620
7714
|
this.selectedDate = today;
|
|
7621
7715
|
this.open = false;
|
|
7622
|
-
this.
|
|
7716
|
+
this.dropiChangeDate.emit(today);
|
|
7623
7717
|
}
|
|
7624
7718
|
else {
|
|
7625
7719
|
this.startDate = today;
|
|
@@ -7666,9 +7760,9 @@ const dropiDatePickerRangeCss = () => `:host{display:block;width:100%;max-width:
|
|
|
7666
7760
|
class DropiDatePickerRange {
|
|
7667
7761
|
constructor(hostRef) {
|
|
7668
7762
|
registerInstance(this, hostRef);
|
|
7669
|
-
this.startDateChange = createEvent(this, "startDateChange"
|
|
7670
|
-
this.endDateChange = createEvent(this, "endDateChange"
|
|
7671
|
-
this.dropiRangeChange = createEvent(this, "dropiRangeChange"
|
|
7763
|
+
this.startDateChange = createEvent(this, "startDateChange");
|
|
7764
|
+
this.endDateChange = createEvent(this, "endDateChange");
|
|
7765
|
+
this.dropiRangeChange = createEvent(this, "dropiRangeChange");
|
|
7672
7766
|
}
|
|
7673
7767
|
/** Start date (YYYY-MM-DD) */
|
|
7674
7768
|
startDate = '';
|
|
@@ -7791,7 +7885,7 @@ class DropiDatePickerRange {
|
|
|
7791
7885
|
}; }
|
|
7792
7886
|
}
|
|
7793
7887
|
|
|
7794
|
-
const dropiDrawerCss = () => `:host{display:contents;font-family:'Inter', sans-serif}*,*::before,*::after{box-sizing:border-box}.drawer-host{position:fixed;inset:0;z-index:
|
|
7888
|
+
const dropiDrawerCss = () => `:host{display:contents;font-family:'Inter', sans-serif}*,*::before,*::after{box-sizing:border-box}.drawer-host{position:fixed;inset:0;z-index:var(--dropi-z-index-drawer, 9999);pointer-events:none;visibility:hidden}.drawer-host--open{pointer-events:all;visibility:visible}.drawer-backdrop{position:absolute;inset:0;background:rgba(0, 0, 0, 0.5);opacity:0;transition:opacity 0.25s}.drawer-host--open .drawer-backdrop{opacity:1}.drawer-panel{position:absolute;background:var(--Neutral-White, #ffffff);display:flex;flex-direction:column;transition:transform 0.25s ease;overflow:hidden;max-width:100%;min-width:auto}.drawer-panel--right{top:0;right:0;bottom:0;transform:translateX(100%);box-shadow:-4px 0 24px rgba(0, 0, 0, 0.12)}.drawer-host--open .drawer-panel--right{transform:translateX(0)}.drawer-panel--left{top:0;left:0;bottom:0;transform:translateX(-100%);box-shadow:4px 0 24px rgba(0, 0, 0, 0.12)}.drawer-host--open .drawer-panel--left{transform:translateX(0)}.drawer-panel--bottom{bottom:0;left:0;right:0;transform:translateY(100%);border-radius:var(--Border-2, 8px) var(--Border-2, 8px) 0 0;box-shadow:0 -4px 24px rgba(0, 0, 0, 0.12)}.drawer-host--open .drawer-panel--bottom{transform:translateY(0)}.drawer-panel--top{top:0;left:0;right:0;transform:translateY(-100%);border-radius:0 0 var(--Border-2, 8px) var(--Border-2, 8px);box-shadow:0 4px 24px rgba(0, 0, 0, 0.12)}.drawer-host--open .drawer-panel--top{transform:translateY(0)}.drawer-panel--size-m{width:550px}.drawer-panel--size-l{width:1137px}.drawer-panel--size-xl{width:1280px}.drawer-panel--size-xxl{width:1330px}.drawer-header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--Size-4, 16px) var(--Size-4, 16px) var(--Size-3, 12px);border-bottom:1px solid var(--Gray-Gray-100, #eceef4);flex-shrink:0}.drawer-header--headless{display:none}.drawer-header__title{color:var(--Gray-700, #32394d);font-family:Inter, sans-serif;font-size:24px;font-style:normal;font-weight:700;line-height:110%;margin:0}.drawer-header__close{width:var(--Size-6, 32px);height:var(--Size-6, 32px);background:none;border:none;padding:0;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--Gray-400, #858ea6);border-radius:var(--Border-1, 4px);transition:background 0.15s;flex-shrink:0}.drawer-header__close:hover{background:var(--Gray-Gray-50, #f7f8fa)}.drawer-body{flex:1;overflow-y:auto;padding:var(--Size-4, 16px);display:flex;flex-direction:column}.drawer-footer{display:none}`;
|
|
7795
7889
|
|
|
7796
7890
|
/**
|
|
7797
7891
|
* @component dropi-drawer
|
|
@@ -7801,7 +7895,7 @@ const dropiDrawerCss = () => `:host{display:contents;font-family:'Inter', sans-s
|
|
|
7801
7895
|
class DropiDrawer {
|
|
7802
7896
|
constructor(hostRef) {
|
|
7803
7897
|
registerInstance(this, hostRef);
|
|
7804
|
-
this.dropiClose = createEvent(this, "dropiClose"
|
|
7898
|
+
this.dropiClose = createEvent(this, "dropiClose");
|
|
7805
7899
|
}
|
|
7806
7900
|
drawerTitle = '';
|
|
7807
7901
|
/** Controls visibility (alias of open for Angular parity) */
|
|
@@ -7854,10 +7948,10 @@ class DropiDrawer {
|
|
|
7854
7948
|
else
|
|
7855
7949
|
panelStyle['height'] = this.height;
|
|
7856
7950
|
}
|
|
7857
|
-
return (hAsync("div", { key: '
|
|
7951
|
+
return (hAsync("div", { key: 'e5138752d1821a27ec3b0396cdc3d09bc15f7c73', class: { 'drawer-host': true, 'drawer-host--open': this.open } }, hAsync("div", { key: 'ca7f2dff57eee0cc1d5a71486c8ce765b27c7307', class: "drawer-backdrop", onClick: () => {
|
|
7858
7952
|
if (this.closeOnBackdrop)
|
|
7859
7953
|
this.close();
|
|
7860
|
-
} }), hAsync("div", { key: '
|
|
7954
|
+
} }), hAsync("div", { key: '985b7c295391fa2326ee5880bed829910c56d082', class: `drawer-panel drawer-panel--${this.position}${sizeClass ? ' ' + sizeClass : ''}`, style: panelStyle, role: "dialog", "aria-modal": "true" }, hAsync("div", { key: 'be62a0009ab8c829cd20643552a66d17b8e877cf', class: { 'drawer-header': true, 'drawer-header--headless': this.headless } }, hAsync("h3", { key: 'e6f6a03c224c83fe8de9a2895a07bf93b9dbdea4', class: "drawer-header__title" }, this.drawerTitle), hAsync("button", { key: '66c251c8d8da1e0a0036f9bdeaeb6f09514dbfd4', class: "drawer-header__close", onClick: () => this.close(), "aria-label": "Cerrar" }, hAsync("dropi-icon", { key: '150a59e552636ec623d31926fc419ec36443cc22', name: "Close-small", iconWidth: "32px", iconHeight: "32px", color: "Gray-Gray-400" }))), hAsync("div", { key: '6982100fcf4e5ce4193bbff79baea9c557ad0722', class: "drawer-body" }, hAsync("slot", { key: '6ae61a0451322969ddb4684b77eb5851b942dd9a' })), hAsync("div", { key: '5d4df79ea4044d86edd51331a6c1cdd3a43bfc5d', class: "drawer-footer" }, hAsync("slot", { key: '49de1183444123c36076e20e882952b9d802a567', name: "footer" })))));
|
|
7861
7955
|
}
|
|
7862
7956
|
static get watchers() { return {
|
|
7863
7957
|
"open": [{
|
|
@@ -7898,7 +7992,7 @@ const dropiDropdownCss = () => `:host{display:block;width:100%}*,*::before,*::af
|
|
|
7898
7992
|
class DropiDropdown {
|
|
7899
7993
|
constructor(hostRef) {
|
|
7900
7994
|
registerInstance(this, hostRef);
|
|
7901
|
-
this.modelChange = createEvent(this, "modelChange"
|
|
7995
|
+
this.modelChange = createEvent(this, "modelChange");
|
|
7902
7996
|
}
|
|
7903
7997
|
/** Options array or JSON string */
|
|
7904
7998
|
options = [];
|
|
@@ -7978,7 +8072,7 @@ const dropiEmptyStateCss = () => `:host{display:block}*,*::before,*::after{box-s
|
|
|
7978
8072
|
class DropiEmptyState {
|
|
7979
8073
|
constructor(hostRef) {
|
|
7980
8074
|
registerInstance(this, hostRef);
|
|
7981
|
-
this.buttonClickEvent = createEvent(this, "buttonClickEvent"
|
|
8075
|
+
this.buttonClickEvent = createEvent(this, "buttonClickEvent");
|
|
7982
8076
|
}
|
|
7983
8077
|
/** Title text (matches Angular 'title') */
|
|
7984
8078
|
title = '';
|
|
@@ -7999,7 +8093,7 @@ class DropiEmptyState {
|
|
|
7999
8093
|
/** Emitted when button is clicked — matches Angular 'buttonClickEvent' */
|
|
8000
8094
|
buttonClickEvent;
|
|
8001
8095
|
render() {
|
|
8002
|
-
return (hAsync("div", { key: '
|
|
8096
|
+
return (hAsync("div", { key: '50a720a8b293a19dbabccce8f7aa0fa996e5fd63', class: "empty-state" }, hAsync("div", { key: 'd13894b011225337234301bd514891d89caac3d7', class: "empty-state-visual" }, this.imageUrl ? (hAsync("img", { class: "empty-state-img", src: this.imageUrl, alt: this.imageAlt })) : (hAsync("img", { class: "empty-state-img", src: `assets/icons/ilustration/${(!this.dropiIcon || String(this.dropiIcon) === 'undefined' || String(this.dropiIcon) === 'null') ? 'default' : this.dropiIcon}.svg`, alt: this.imageAlt, onError: (e) => e.target.src = 'assets/icons/ilustration/default.svg' }))), this.title && hAsync("h3", { key: 'eb40395b4bd3c623f27bc3290bb37427420c5e94', class: "empty-state-title" }, this.title), this.description && hAsync("p", { key: 'f942c17f7a8d320bbe81dfcd45d13e56d7ea8eba', class: "empty-state-description" }, this.description), hAsync("slot", { key: '513f49ffeeb77e2be1318d6d251a1bcabff2689a' }), this.buttonText && (hAsync("div", { key: 'f6d9c391feee26eac44a8904e1768678bbb1604c', class: "empty-state-actions" }, hAsync("dropi-button", { key: 'f9ea9563a76a80bd29b6e6aaf8405092046a62a8', text: this.buttonText, preIcon: this.buttonIcon, severity: this.buttonSeverity, onClick: () => this.buttonClickEvent.emit() })))));
|
|
8003
8097
|
}
|
|
8004
8098
|
static get style() { return dropiEmptyStateCss(); }
|
|
8005
8099
|
static get cmpMeta() { return {
|
|
@@ -8030,7 +8124,7 @@ const dropiFavoriteButtonCss = () => `:host{display:inline-flex}.fav-btn{display
|
|
|
8030
8124
|
class DropiFavoriteButton {
|
|
8031
8125
|
constructor(hostRef) {
|
|
8032
8126
|
registerInstance(this, hostRef);
|
|
8033
|
-
this.toggleFavorite = createEvent(this, "toggleFavorite"
|
|
8127
|
+
this.toggleFavorite = createEvent(this, "toggleFavorite");
|
|
8034
8128
|
}
|
|
8035
8129
|
/** Whether the item is currently marked as favorite */
|
|
8036
8130
|
isFavorite = false;
|
|
@@ -8042,7 +8136,7 @@ class DropiFavoriteButton {
|
|
|
8042
8136
|
this.toggleFavorite.emit(this.isFavorite);
|
|
8043
8137
|
}
|
|
8044
8138
|
render() {
|
|
8045
|
-
return (hAsync("button", { key: '
|
|
8139
|
+
return (hAsync("button", { key: 'da3d3c03b4c297f1d4bb754f8ade9222d3edc39d', class: { 'fav-btn': true, 'fav-btn--active': this.isFavorite }, onClick: () => this.toggle(), onMouseEnter: () => this.hovered = true, onMouseLeave: () => this.hovered = false, "aria-label": this.isFavorite ? 'Quitar de favoritos' : 'Agregar a favoritos', "aria-pressed": String(this.isFavorite) }, hAsync("dropi-icon", { key: '857967dd6982df82f5ac29db4370fa607369da34', name: this.isFavorite || this.hovered ? 'Heart-solid' : 'Heart', iconWidth: "19px", iconHeight: "19px", color: this.isFavorite || this.hovered ? 'Primary-Primary-500' : 'Gray-Gray-800' })));
|
|
8046
8140
|
}
|
|
8047
8141
|
static get style() { return dropiFavoriteButtonCss(); }
|
|
8048
8142
|
static get cmpMeta() { return {
|
|
@@ -8068,7 +8162,7 @@ const dropiFileUploadCss = () => `:host{display:block;width:100%}*,*::before,*::
|
|
|
8068
8162
|
class DropiFileUpload {
|
|
8069
8163
|
constructor(hostRef) {
|
|
8070
8164
|
registerInstance(this, hostRef);
|
|
8071
|
-
this.uploadedUrlsChange = createEvent(this, "uploadedUrlsChange"
|
|
8165
|
+
this.uploadedUrlsChange = createEvent(this, "uploadedUrlsChange");
|
|
8072
8166
|
}
|
|
8073
8167
|
/** Título mostrado arriba del componente */
|
|
8074
8168
|
title = '';
|
|
@@ -8290,7 +8384,7 @@ class DropiFileUpload {
|
|
|
8290
8384
|
const cardFiles = files.filter(f => f.typeView === 'card');
|
|
8291
8385
|
const showDropZone = files.length < (this.maxFiles ?? 1) && !this.isDropZoneHidden();
|
|
8292
8386
|
const isSmall = this.dragAndDropSize === 'small';
|
|
8293
|
-
return (hAsync("div", { key: '
|
|
8387
|
+
return (hAsync("div", { key: 'e5f37c05ca644260f8c2ba4c549cdde8e908a570', class: "upload-container" }, (this.title || this.label) && (hAsync("div", { key: '493ff72b35f924431d94b6906d654a2413a59c47', class: "upload-header" }, this.title && hAsync("div", { key: '8fe37e760e44f5db9a5e42578a92d9a939661bf9', class: "text title" }, this.title), this.label && hAsync("div", { key: '3329bea57a935a907e47d2f40f82d3044e5992ad', class: "text label" }, this.label))), this.error && (hAsync("dropi-alert", { key: '1551176ccb8ec320df5eeea8b42f937a795c02a8', message: this.errorMessage, type: "default", state: "error", dismissable: true, showButton: false, onDropiClose: () => { this.error = false; } })), showDropZone && (hAsync("div", { key: '2522e795c006794c20bfea3534014227636cc4bd', class: { 'file-upload': true, 'drag-over': this.dragging }, onDragOver: (e) => this.onDragOver(e), onDragEnter: (e) => this.onDragEnter(e), onDragLeave: () => this.onDragLeave(), onDrop: (e) => this.onDrop(e) }, hAsync("div", { key: 'da75ce3acdf2d3490079c0d8c25bfadcdda49586', class: `file-upload__zone${this.dragging ? ' drag-over' : ''}` }, !isSmall && (hAsync("svg", { key: 'e9fb52b7ceda0e0e463ab26739b294bffdf9ea34', width: "40", height: "40", viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { key: 'dfec7aa24e681811dfc8d6ff3b721dec084aa4a0', d: "M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z", fill: "#FEF8F1" }), hAsync("g", { key: '9fffcd3ce8931d8b7beeb6417585a7eb7f222f96', "clip-path": "url(#up)" }, hAsync("path", { key: '6f1aec8a5a60f26c09645b2655e51c6aa7b34ca2', d: "M19.3379 13.7187L19.3332 24.0107C19.3332 24.1875 19.4035 24.357 19.5285 24.4821C19.6535 24.6071 19.8231 24.6773 19.9999 24.6773C20.1767 24.6773 20.3463 24.6071 20.4713 24.4821C20.5963 24.357 20.6666 24.1875 20.6666 24.0107L20.6712 13.73L22.6126 15.672C22.7376 15.797 22.9071 15.8672 23.0839 15.8672C23.2607 15.8672 23.4302 15.797 23.5552 15.672C23.6802 15.547 23.7504 15.3774 23.7504 15.2007C23.7504 15.0239 23.6802 14.8543 23.5552 14.7293L21.4145 12.586C21.2288 12.4001 21.0083 12.2527 20.7655 12.1521C20.5228 12.0515 20.2626 11.9998 19.9999 11.9998C19.7371 11.9998 19.477 12.0515 19.2342 12.1521C18.9915 12.2527 18.771 12.4001 18.5852 12.586L16.4445 14.7273C16.3196 14.8523 16.2494 15.0219 16.2494 15.1987C16.2494 15.3754 16.3196 15.545 16.4445 15.67C16.5696 15.795 16.7391 15.8652 16.9159 15.8652C17.0927 15.8652 17.2622 15.795 17.3872 15.67L19.3379 13.7187Z", fill: "#F49A3D" }), hAsync("path", { key: '0c194dc527a19345b9fabc55e24cca08987a486a', d: "M26.6667 23.3329V25.9996C26.6667 26.1764 26.5964 26.346 26.4714 26.471C26.3464 26.596 26.1768 26.6663 26 26.6663H14C13.8232 26.6663 13.6536 26.596 13.5286 26.471C13.4036 26.346 13.3333 26.1764 13.3333 25.9996V23.3329C13.3333 23.1561 13.2631 22.9865 13.1381 22.8615C13.013 22.7365 12.8435 22.6663 12.6667 22.6663C12.4899 22.6663 12.3203 22.7365 12.1953 22.8615C12.0702 22.9865 12 23.1561 12 23.3329V25.9996C12 26.53 12.2107 27.0387 12.5858 27.4138C12.9609 27.7889 13.4696 27.9996 14 27.9996H26C26.5304 27.9996 27.0391 27.7889 27.4142 27.4138C27.7893 27.0387 28 26.53 28 25.9996V23.3329C28 23.1561 27.9298 22.9865 27.8047 22.8615C27.6797 22.7365 27.5101 22.6663 27.3333 22.6663C27.1565 22.6663 26.987 22.7365 26.8619 22.8615C26.7369 22.9865 26.6667 23.1561 26.6667 23.3329Z", fill: "#F49A3D" })), hAsync("defs", { key: '9b8c3526d936553239141c3cb4f81212377b5811' }, hAsync("clipPath", { key: '1be0970786af27a069ea237ec5bbd5292891b0cd', id: "up" }, hAsync("rect", { key: '5dbf5e86d6a7a9f07f9ada6e0c2d132b4eebd969', width: "16", height: "16", fill: "white", transform: "translate(12 12)" }))))), hAsync("div", { key: '5d06acbe6b129e60a49ae97c04bcd906e9abdfb9', class: isSmall ? 'info size-small-upload' : 'info' }, hAsync("div", { key: '30faf6e1ce359a4f2ed477a84c062994c3713506', class: "title" }, this.textDropZone), isSmall && (hAsync("dropi-button", { key: 'e6c3d40ff6c4c8b6381a7f0f49eedfbd407c0687', text: this.textButton, size: "small", onClick: (e) => { e.stopPropagation(); this.openFilePicker(); } }))), !isSmall && (hAsync("div", { key: '2680ec20dc360e2ccadb9a677569a5d51ebe2009', class: "info-desc" }, this.accept && hAsync("div", { key: '2ced48c536a4c9385b6941141f78566cf1624db6', class: "description" }, "Formatos admitidos: ", this.accept), hAsync("div", { key: '58bf63818e70de35113be94c9bf20bcd728d88ae', class: "description" }, "Tama\u00F1o m\u00E1ximo: ", this.maxFileSizeMB, "MB"))), !isSmall && (hAsync("dropi-button", { key: '96b20bf6d68b8e3f2572784ed8f27ffff4336cd1', text: this.textButton, size: "small", onClick: (e) => { e.stopPropagation(); this.openFilePicker(); } })), hAsync("input", { key: '3fefcd08176ad885be131d5be25b8a25e874da47', ref: (el) => this.inputRef = el, type: "file", accept: this.accept, multiple: this.multiple, class: "upload-hidden", onChange: (e) => this.onInputChange(e) })))), this.selectedFiles.length > 0 && (hAsync("div", { key: 'ab0c9d2d0067e594a2c5047f86ed4ca0a9f576cb', class: "files-container" }, gridFiles.length > 0 && (hAsync("div", { key: '13894a0c569b88051fe0dc695839562e054862e2', class: "grid-list" }, gridFiles.map(f => this.renderGridItem(f)), gridFiles.length < this.maxFiles && (hAsync("div", { key: 'ba4ff34d4e686891b056cd4f189741ace807294c', class: "add-img", onClick: () => this.addImage() }, hAsync("div", { key: '95c341ae449bb857fc39563ba3fec9764139d429', class: "icon" }, hAsync("svg", { key: '28dcdb54a5856683c455d11864af4e2f7ecc0414', width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { key: '50514d670498a1fbdaee785b0a883aebc5f4b66c', d: "M9.77774 6.4444H7.55551V4.22218C7.55551 4.07484 7.49698 3.93353 7.3928 3.82934C7.28861 3.72516 7.1473 3.66663 6.99996 3.66663C6.85262 3.66663 6.71131 3.72516 6.60712 3.82934C6.50294 3.93353 6.4444 4.07484 6.4444 4.22218V6.4444H4.22218C4.07484 6.4444 3.93353 6.50294 3.82934 6.60712C3.72516 6.71131 3.66663 6.85262 3.66663 6.99996C3.66663 7.1473 3.72516 7.28861 3.82934 7.3928C3.93353 7.49698 4.07484 7.55551 4.22218 7.55551H6.4444V9.77774C6.4444 9.92508 6.50294 10.0664 6.60712 10.1706C6.71131 10.2748 6.85262 10.3333 6.99996 10.3333C7.1473 10.3333 7.28861 10.2748 7.3928 10.1706C7.49698 10.0664 7.55551 9.92508 7.55551 9.77774V7.55551H9.77774C9.92508 7.55551 10.0664 7.49698 10.1706 7.3928C10.2748 7.28861 10.3333 7.1473 10.3333 6.99996C10.3333 6.85262 10.2748 6.71131 10.1706 6.60712C10.0664 6.50294 9.92508 6.4444 9.77774 6.4444Z", fill: "#32394D" }))), hAsync("div", { key: '44a13026e2324e33d1a5432b371fc89019e1909e', class: "text" }, "Agregar"))))), cardFiles.length > 0 && (hAsync("div", { key: 'e66fbbc9aad1dc78030e62e89c2470b018563655', class: "card-list" }, cardFiles.map(f => this.renderCardItem(f))))))));
|
|
8294
8388
|
}
|
|
8295
8389
|
static get style() { return dropiFileUploadCss(); }
|
|
8296
8390
|
static get cmpMeta() { return {
|
|
@@ -8330,9 +8424,9 @@ const dropiFileUploadProgressBarCss = () => `:host{display:block;width:100%}*,*:
|
|
|
8330
8424
|
class DropiFileUploadProgressBar {
|
|
8331
8425
|
constructor(hostRef) {
|
|
8332
8426
|
registerInstance(this, hostRef);
|
|
8333
|
-
this.deleteFile = createEvent(this, "deleteFile"
|
|
8334
|
-
this.uploadComplete = createEvent(this, "uploadComplete"
|
|
8335
|
-
this.viewFile = createEvent(this, "viewFile"
|
|
8427
|
+
this.deleteFile = createEvent(this, "deleteFile");
|
|
8428
|
+
this.uploadComplete = createEvent(this, "uploadComplete");
|
|
8429
|
+
this.viewFile = createEvent(this, "viewFile");
|
|
8336
8430
|
}
|
|
8337
8431
|
/** File name to display */
|
|
8338
8432
|
textFile = 'Nombre del archivo.xlsx';
|
|
@@ -8384,7 +8478,7 @@ class DropiFileUploadProgressBar {
|
|
|
8384
8478
|
};
|
|
8385
8479
|
}
|
|
8386
8480
|
render() {
|
|
8387
|
-
return (hAsync("div", { key: '
|
|
8481
|
+
return (hAsync("div", { key: '7de4db6162b6c7cea620c37bbd9dca5ae48ac26c', class: "container-progress-bar" }, hAsync("div", { key: '17f46bfb02d60643be4fea506aec6b00947a3700', class: "container-icon-info", style: { display: this.fileExtension !== 'pdf' ? 'flex' : 'none' } }, this.type !== 'image' && (hAsync("dropi-icon", { key: '43a34efb7bb1f5915758c9f04f06d354c028c8fd', name: "File-text", iconWidth: "24px", iconHeight: "24px", color: "Info-Info-600" })), this.type === 'image' && !this.urlImage && (hAsync("div", { key: 'a55ea895221f090db621162a265373c4cb71879b', style: { width: '34px', height: '34px', borderRadius: '8px', background: 'var(--Gray-Gray-100)' } })), this.type === 'image' && this.urlImage && (hAsync("img", { key: '85a7a6b045aa4447c03aef43060189eab84743d3', src: this.urlImage, class: "image-to-view", width: "34", height: "34", alt: "" }))), this.fileExtension === 'pdf' && (hAsync("div", { key: '4736fdefc583b44b9d19e397cc6662aa4bb71ef6', class: "icon-pdf" }, hAsync("svg", { key: '9e6e7074855d676bac56d856c94ed37534256193', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" }, hAsync("g", { key: '91fd32e4f2946a6cf4ddfbb7febbc43977d7a3e4', "clip-path": "url(#clip0_6227_22223)" }, hAsync("path", { key: 'bb19f6eea9ccc07d2c74cca23a20902e228ec876', d: "M16.6243 4.61667L13.716 1.70833C12.616 0.608333 11.1493 0 9.59102 0H5.83268C3.53268 0 1.66602 1.86667 1.66602 4.16667V15.8333C1.66602 18.1333 3.53268 20 5.83268 20H14.166C16.466 20 18.3327 18.1333 18.3327 15.8333V8.74167C18.3327 7.18333 17.7243 5.71667 16.6243 4.61667ZM15.4493 5.79167C15.716 6.05833 15.941 6.35 16.1243 6.66667H12.5077C12.0493 6.66667 11.6743 6.29167 11.6743 5.83333V2.21667C11.991 2.4 12.2827 2.625 12.5493 2.89167L15.4577 5.8L15.4493 5.79167ZM16.666 15.8333C16.666 17.2083 15.541 18.3333 14.166 18.3333H5.83268C4.45768 18.3333 3.33268 17.2083 3.33268 15.8333V4.16667C3.33268 2.79167 4.45768 1.66667 5.83268 1.66667H9.59102C9.72435 1.66667 9.86602 1.66667 9.99935 1.68333V5.83333C9.99935 7.20833 11.1243 8.33333 12.4993 8.33333H16.6493C16.666 8.46667 16.666 8.6 16.666 8.74167V15.8333ZM5.90768 10.8333H4.99935C4.54102 10.8333 4.16602 11.2083 4.16602 11.6667V15.3667C4.16602 15.6583 4.39935 15.8833 4.68268 15.8833C4.96602 15.8833 5.19935 15.65 5.19935 15.3667V14.35H5.89935C6.88268 14.35 7.68268 13.5583 7.68268 12.5917C7.68268 11.625 6.88268 10.8333 5.89935 10.8333H5.90768ZM5.90768 13.3083H5.21602V11.875H5.91602C6.31602 11.875 6.65768 12.2 6.65768 12.5917C6.65768 12.9833 6.31602 13.3083 5.91602 13.3083H5.90768ZM15.8493 11.3583C15.8493 11.65 15.616 11.875 15.3327 11.875H13.9243V12.825H14.9577C15.2493 12.825 15.4743 13.0583 15.4743 13.3417C15.4743 13.625 15.241 13.8583 14.9577 13.8583H13.9243V15.3583C13.9243 15.65 13.691 15.875 13.4077 15.875C13.1243 15.875 12.891 15.6417 12.891 15.3583V11.35C12.891 11.0583 13.1243 10.8333 13.4077 10.8333H15.3327C15.6243 10.8333 15.8493 11.0667 15.8493 11.35V11.3583ZM10.0743 10.8417H9.16602C8.70768 10.8417 8.33268 11.2167 8.33268 11.675V15.375C8.33268 15.6667 8.56602 15.8417 8.84935 15.8417C9.13268 15.8417 10.066 15.8417 10.066 15.8417C11.0493 15.8417 11.8493 15.05 11.8493 14.0833V12.6C11.8493 11.6333 11.0493 10.8417 10.066 10.8417H10.0743ZM10.816 14.0833C10.816 14.475 10.4743 14.8 10.0743 14.8H9.38268V11.8833H10.0827C10.4827 11.8833 10.8243 12.2083 10.8243 12.6V14.0833H10.816Z", fill: "#DE6061" })), hAsync("defs", { key: '6b761a9e96b13b85dbd2d87b0b1c108450f3c3a0' }, hAsync("clipPath", { key: 'c019250b1926e389eb053c10f9c1c67e0b11e55a', id: "clip0_6227_22223" }, hAsync("rect", { key: 'ced06b676a19158d7e93f41a8c4a47c7cd355dd2', width: "20", height: "20", fill: "white" })))))), hAsync("div", { key: 'c1ddf6e727ce42bf5be1f534f706195fae7fdd3d', class: "container-bar-title" }, hAsync("p", { key: 'a6707326b8351ba93f61d969347db84c9627d597' }, this.textFile), hAsync("progress", { key: 'b118931b77a2f51b3a8813bfc7676147d189d566', value: this.progress, max: "100" })), this.progress === 100 && this.isPreview && (hAsync("div", { key: '648edb23c1a2cba83ea7fda5dd02471b5e4dfb35', class: "view-icon", onClick: () => this.viewFile.emit() }, hAsync("svg", { key: '134717d673466a552625eaf167951f1d6c0942c0', xmlns: "http://www.w3.org/2000/svg", width: "18", height: "14", viewBox: "0 0 18 14", fill: "none" }, hAsync("path", { key: 'a80c09f43697d6fe264fdd6df7e43e004dce9f0c', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M7.07148 4.14758C7.64227 3.76618 8.31334 3.56262 8.99983 3.56262C9.92004 3.56372 10.8022 3.92976 11.4529 4.58045C12.1036 5.23114 12.4697 6.11334 12.4708 7.03355C12.4708 7.72004 12.2672 8.39111 11.8858 8.9619C11.5044 9.53269 10.9623 9.97757 10.3281 10.2403C9.69387 10.503 8.99598 10.5717 8.32268 10.4378C7.64939 10.3039 7.03092 9.9733 6.54551 9.48788C6.06009 9.00246 5.72951 8.384 5.59558 7.7107C5.46166 7.0374 5.53039 6.33951 5.7931 5.70528C6.05581 5.07105 6.50069 4.52897 7.07148 4.14758ZM7.84282 8.76514C8.18529 8.99398 8.58794 9.11612 8.99983 9.11612C9.55216 9.11612 10.0819 8.8967 10.4724 8.50615C10.863 8.11559 11.0824 7.58588 11.0824 7.03355C11.0824 6.62166 10.9602 6.21902 10.7314 5.87654C10.5026 5.53407 10.1773 5.26714 9.79679 5.10952C9.41625 4.95189 8.99752 4.91065 8.59354 4.99101C8.18956 5.07136 7.81849 5.26971 7.52723 5.56096C7.23598 5.85221 7.03764 6.22329 6.95728 6.62727C6.87693 7.03124 6.91817 7.44998 7.07579 7.83052C7.23342 8.21105 7.50034 8.53631 7.84282 8.76514Z", fill: "#475066" }), hAsync("path", { key: '12fc2332c38fd8c41319d47744e0f5e0b40c1f6b', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.99996 0.546387C13.2984 0.546387 15.7475 3.48835 16.8241 5.24187C17.157 5.78022 17.3333 6.40064 17.3333 7.03357C17.3333 7.6665 17.157 8.28692 16.8241 8.82526C15.7475 10.5788 13.2984 13.5207 8.99996 13.5207C4.70155 13.5207 2.25246 10.5788 1.17577 8.82526C0.842931 8.28692 0.666626 7.6665 0.666626 7.03357C0.666626 6.40064 0.842931 5.78022 1.17577 5.24187C2.25246 3.48835 4.70155 0.546387 8.99996 0.546387ZM8.99996 12.1324C12.6229 12.1324 14.7159 9.60206 15.6406 8.09845C15.8383 7.77846 15.943 7.40973 15.943 7.03357C15.943 6.6574 15.8383 6.28867 15.6406 5.96868C14.7159 4.4623 12.6229 1.93476 8.99996 1.93476C5.377 1.93476 3.28402 4.46507 2.35936 5.96868C2.16161 6.28867 2.05687 6.6574 2.05687 7.03357C2.05687 7.40973 2.16161 7.77846 2.35936 8.09845C3.28402 9.60206 5.377 12.1324 8.99996 12.1324Z", fill: "#475066" })))), this.progress === 100 && !this.disabled && (hAsync("div", { key: '1b93e90541615b5b45cabff2262cfc1668563f82', class: "container-icon-trash", onClick: () => this.deleteFile.emit() }, hAsync("svg", { key: 'b95127b8ee2ba3aeb6aaeb4050f194097a8dfa05', xmlns: "http://www.w3.org/2000/svg", width: "20", height: "21", viewBox: "0 0 20 21", fill: "none" }, hAsync("path", { key: '33534ae79504bfa0c1d1ee3f9c132ba4bc1a3a82', d: "M16.2501 4.94477H14.0973C13.9362 4.16103 13.5097 3.45682 12.8899 2.95082C12.27 2.44483 11.4947 2.168 10.6946 2.16699H9.30566C8.50552 2.168 7.73019 2.44483 7.11035 2.95082C6.49051 3.45682 6.06406 4.16103 5.90289 4.94477H3.75011C3.56593 4.94477 3.3893 5.01793 3.25906 5.14817C3.12883 5.2784 3.05566 5.45504 3.05566 5.63921C3.05566 5.82339 3.12883 6.00003 3.25906 6.13026C3.3893 6.26049 3.56593 6.33366 3.75011 6.33366H4.44455V15.3614C4.44566 16.282 4.81183 17.1645 5.46276 17.8155C6.11369 18.4664 6.99622 18.8326 7.91677 18.8337H12.0834C13.004 18.8326 13.8865 18.4664 14.5375 17.8155C15.1884 17.1645 15.5546 16.282 15.5557 15.3614V6.33366H16.2501C16.4343 6.33366 16.6109 6.26049 16.7412 6.13026C16.8714 6.00003 16.9446 5.82339 16.9446 5.63921C16.9446 5.45504 16.8714 5.2784 16.7412 5.14817C16.6109 5.01793 16.4343 4.94477 16.2501 4.94477ZM9.30566 3.55588H10.6946C11.1253 3.55641 11.5453 3.69017 11.8971 3.93883C12.2488 4.18749 12.515 4.53886 12.6591 4.94477H7.34108C7.48524 4.53886 7.75143 4.18749 8.10315 3.93883C8.45488 3.69017 8.87492 3.55641 9.30566 3.55588ZM14.1668 15.3614C14.1668 15.914 13.9473 16.4439 13.5566 16.8346C13.1659 17.2253 12.636 17.4448 12.0834 17.4448H7.91677C7.36424 17.4448 6.83434 17.2253 6.44364 16.8346C6.05294 16.4439 5.83344 15.914 5.83344 15.3614V6.33366H14.1668V15.3614Z", fill: "#DE6061" }), hAsync("path", { key: '56a2b6323d63c9d06fcb5044cb4aae51823fb357', d: "M8.61128 14.6666C8.79545 14.6666 8.97209 14.5934 9.10232 14.4632C9.23256 14.3329 9.30572 14.1563 9.30572 13.9721V9.80545C9.30572 9.62127 9.23256 9.44464 9.10232 9.3144C8.97209 9.18417 8.79545 9.11101 8.61128 9.11101C8.4271 9.11101 8.25046 9.18417 8.12023 9.3144C7.99 9.44464 7.91683 9.62127 7.91683 9.80545V13.9721C7.91683 14.1563 7.99 14.3329 8.12023 14.4632C8.25046 14.5934 8.4271 14.6666 8.61128 14.6666Z", fill: "#DE6061" }), hAsync("path", { key: '2487b04fb28c8d9f6e4cc2d325b9983e2c8c4cf5', d: "M11.389 14.6666C11.5731 14.6666 11.7498 14.5934 11.88 14.4632C12.0102 14.3329 12.0834 14.1563 12.0834 13.9721V9.80545C12.0834 9.62127 12.0102 9.44464 11.88 9.3144C11.7498 9.18417 11.5731 9.11101 11.389 9.11101C11.2048 9.11101 11.0281 9.18417 10.8979 9.3144C10.7677 9.44464 10.6945 9.62127 10.6945 9.80545V13.9721C10.6945 14.1563 10.7677 14.3329 10.8979 14.4632C11.0281 14.5934 11.2048 14.6666 11.389 14.6666Z", fill: "#DE6061" }))))));
|
|
8388
8482
|
}
|
|
8389
8483
|
static get watchers() { return {
|
|
8390
8484
|
"progress": [{
|
|
@@ -8413,7 +8507,7 @@ class DropiFileUploadProgressBar {
|
|
|
8413
8507
|
}; }
|
|
8414
8508
|
}
|
|
8415
8509
|
|
|
8416
|
-
const dropiIconCss = () => `:host{display:inline-flex;align-items:center;justify-content:center;fill:var(--icon-fill, currentColor);overflow:hidden}svg{fill:inherit;display:block;width:100%;height:100%;vertical-align:middle}.spin{animation:spin 1s linear infinite}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}`;
|
|
8510
|
+
const dropiIconCss = () => `:host{display:inline-flex;align-items:center;justify-content:center;fill:var(--icon-fill, currentColor);overflow:hidden}svg{fill:inherit;stroke:var(--icon-fill, currentColor);stroke-width:var(--icon-stroke-width, 0);display:block;width:100%;height:100%;vertical-align:middle}.spin{animation:spin 1s linear infinite}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}`;
|
|
8417
8511
|
|
|
8418
8512
|
/**
|
|
8419
8513
|
* @component dropi-icon
|
|
@@ -8431,6 +8525,8 @@ class DropiIcon {
|
|
|
8431
8525
|
iconWidth = '20px';
|
|
8432
8526
|
iconHeight = '20px';
|
|
8433
8527
|
color = 'currentColor';
|
|
8528
|
+
/** Stroke width for icons that use strokes */
|
|
8529
|
+
strokeWidth = '';
|
|
8434
8530
|
widthChanged() {
|
|
8435
8531
|
this.updateHostStyles();
|
|
8436
8532
|
}
|
|
@@ -8440,13 +8536,22 @@ class DropiIcon {
|
|
|
8440
8536
|
colorChanged() {
|
|
8441
8537
|
this.applyColor();
|
|
8442
8538
|
}
|
|
8539
|
+
strokeWidthChanged() {
|
|
8540
|
+
this.applyStrokeWidth();
|
|
8541
|
+
}
|
|
8443
8542
|
componentWillLoad() {
|
|
8444
8543
|
this.applyColor();
|
|
8544
|
+
this.applyStrokeWidth();
|
|
8445
8545
|
this.updateHostStyles();
|
|
8446
8546
|
}
|
|
8447
8547
|
componentDidUpdate() {
|
|
8448
8548
|
this.updateHostStyles();
|
|
8449
8549
|
}
|
|
8550
|
+
applyStrokeWidth() {
|
|
8551
|
+
if (this.strokeWidth) {
|
|
8552
|
+
this.el.style.setProperty('--icon-stroke-width', this.strokeWidth);
|
|
8553
|
+
}
|
|
8554
|
+
}
|
|
8450
8555
|
updateHostStyles() {
|
|
8451
8556
|
this.el.style.width = this.iconWidth;
|
|
8452
8557
|
this.el.style.height = this.iconHeight;
|
|
@@ -8462,7 +8567,7 @@ class DropiIcon {
|
|
|
8462
8567
|
this.el.style.setProperty('--icon-fill', fill);
|
|
8463
8568
|
}
|
|
8464
8569
|
render() {
|
|
8465
|
-
return (hAsync("svg", { key: '
|
|
8570
|
+
return (hAsync("svg", { key: '99f511720c6654b3f97490c966061520ee17d27f', width: this.iconWidth, height: this.iconHeight, class: { spin: (this.name ?? '') === 'Spinner' }, "aria-hidden": "true" }, hAsync("use", { key: '04792170d8c23b3606249d051f8cc903bd5d1211', href: `/assets/icons/symbol/svg/sprite.css.svg#${this.name ?? ''}` })));
|
|
8466
8571
|
}
|
|
8467
8572
|
static get watchers() { return {
|
|
8468
8573
|
"iconWidth": [{
|
|
@@ -8473,6 +8578,9 @@ class DropiIcon {
|
|
|
8473
8578
|
}],
|
|
8474
8579
|
"color": [{
|
|
8475
8580
|
"colorChanged": 0
|
|
8581
|
+
}],
|
|
8582
|
+
"strokeWidth": [{
|
|
8583
|
+
"strokeWidthChanged": 0
|
|
8476
8584
|
}]
|
|
8477
8585
|
}; }
|
|
8478
8586
|
static get style() { return dropiIconCss(); }
|
|
@@ -8483,7 +8591,8 @@ class DropiIcon {
|
|
|
8483
8591
|
"name": [1],
|
|
8484
8592
|
"iconWidth": [1, "icon-width"],
|
|
8485
8593
|
"iconHeight": [1, "icon-height"],
|
|
8486
|
-
"color": [1]
|
|
8594
|
+
"color": [1],
|
|
8595
|
+
"strokeWidth": [1, "stroke-width"]
|
|
8487
8596
|
},
|
|
8488
8597
|
"$listeners$": undefined,
|
|
8489
8598
|
"$lazyBundleId$": "-",
|
|
@@ -8522,13 +8631,13 @@ class DropiIlustrationIcon {
|
|
|
8522
8631
|
const map = {
|
|
8523
8632
|
success: 'Check-circle',
|
|
8524
8633
|
error: 'Cross-circle',
|
|
8525
|
-
info: '
|
|
8526
|
-
warning: '
|
|
8634
|
+
info: 'Comment-round_info',
|
|
8635
|
+
warning: 'Comment-round_info',
|
|
8527
8636
|
};
|
|
8528
|
-
return map[state] || '
|
|
8637
|
+
return map[state] || 'Comment-round_info';
|
|
8529
8638
|
}
|
|
8530
8639
|
render() {
|
|
8531
|
-
return (hAsync("div", { key: '
|
|
8640
|
+
return (hAsync("div", { key: 'd7fa7fce7346d3496ae99c580dee9de5fea934b8', class: "dropi-ilustration" }, this.type === 'dropi' && (hAsync("figure", { key: 'faa5686e775ac3a373037b6e1f9bf32076cfb495', class: "dropi-ilustration__image" }, hAsync("img", { key: '209017a72b774b3e14c8e34f7e3bface75ba592b', src: `assets/icons/ilustration/${(!this.state || String(this.state) === 'undefined' || String(this.state) === 'null') ? 'default' : this.state}.svg`, alt: this.state ?? 'default', onError: (e) => { e.target.src = 'assets/icons/ilustration/default.svg'; } }))), this.type === 'mb' && (hAsync("figure", { key: '75c82f5356c427d4ed35db3e9697d232e7f1b132', class: `dropi-ilustration__image-mb ${this.state}` }, ['success', 'error', 'info', 'warning'].includes(this.state) && (hAsync("dropi-icon", { key: '86a371bef276d6c945959405d39cea3a8dcecde3', name: this.getIconName(this.state), iconWidth: "24px", iconHeight: "24px", color: "Neutral-White" })))), this.type === 'insignia' && (hAsync("figure", { key: 'c1bef5162ba49d8493a1c8d6b16d886543215046', class: this.tagProduct ? 'dropi-ilustration-insignia-tag' : 'dropi-ilustration-insignia' }, hAsync("img", { key: '8d1313457cda0f356f278f095b42d75d960a1c27', src: this.insigniaIcons[this.stateInsignia], alt: this.stateInsignia }), this.tagProduct && (hAsync("p", { key: '303cce4a3a632e9e36f8c7e6d186b56cec9c5ed6', class: `tag tag--${this.stateInsignia}` }, hAsync("span", { key: '3c2b051198e41dcfc2944aa7b1f869ba30e56c2a', class: "Caption-S" }, this.stateInsignia.charAt(0).toUpperCase() + this.stateInsignia.slice(1))))))));
|
|
8532
8641
|
}
|
|
8533
8642
|
static get style() { return dropiIlustrationIconCss(); }
|
|
8534
8643
|
static get cmpMeta() { return {
|
|
@@ -8555,7 +8664,7 @@ const dropiImageMiniatureCss = () => `:host{display:block}*,*::before,*::after{b
|
|
|
8555
8664
|
class DropiImageMiniature {
|
|
8556
8665
|
constructor(hostRef) {
|
|
8557
8666
|
registerInstance(this, hostRef);
|
|
8558
|
-
this.dropiImageClick = createEvent(this, "dropiImageClick"
|
|
8667
|
+
this.dropiImageClick = createEvent(this, "dropiImageClick");
|
|
8559
8668
|
}
|
|
8560
8669
|
/** Optional label above the grid */
|
|
8561
8670
|
label = '';
|
|
@@ -8584,7 +8693,7 @@ class DropiImageMiniature {
|
|
|
8584
8693
|
}
|
|
8585
8694
|
render() {
|
|
8586
8695
|
const imgs = this.parsedImages;
|
|
8587
|
-
return (hAsync("div", { key: '
|
|
8696
|
+
return (hAsync("div", { key: 'aefd44eab41f586a8a5bf4bbc1675b6c9cc67124', class: "miniature" }, this.label && hAsync("span", { key: 'f61ea53ad1dfa354a93781877e0f02c120e0f445', class: "miniature__label" }, this.label), hAsync("div", { key: 'fbde49689bed4e93c63cab97e787e6d877a7fcb2', class: "miniature__grid" }, imgs.map((src, i) => (hAsync("div", { class: "miniature__item", style: { width: this.width, height: this.height }, key: i, onClick: () => this.dropiImageClick.emit({ images: imgs, index: i }) }, hAsync("img", { src: src, alt: `imagen ${i + 1}`, loading: "lazy", onError: (e) => this.handleError(e) }), hAsync("div", { class: "miniature__zoom" }, hAsync("dropi-icon", { name: "Search", iconWidth: "16px", iconHeight: "16px", color: "Neutral-White" }))))))));
|
|
8588
8697
|
}
|
|
8589
8698
|
static get style() { return dropiImageMiniatureCss(); }
|
|
8590
8699
|
static get cmpMeta() { return {
|
|
@@ -8611,7 +8720,7 @@ const dropiImageOverlayCss = () => `:host{display:block}.overlay{position:fixed;
|
|
|
8611
8720
|
class DropiImageOverlay {
|
|
8612
8721
|
constructor(hostRef) {
|
|
8613
8722
|
registerInstance(this, hostRef);
|
|
8614
|
-
this.dropiClose = createEvent(this, "dropiClose"
|
|
8723
|
+
this.dropiClose = createEvent(this, "dropiClose");
|
|
8615
8724
|
}
|
|
8616
8725
|
/** Whether the overlay is visible */
|
|
8617
8726
|
visible = false;
|
|
@@ -8698,10 +8807,10 @@ const dropiInputCss = () => `:host{display:block;width:100%}*,*::before,*::after
|
|
|
8698
8807
|
class DropiInput {
|
|
8699
8808
|
constructor(hostRef) {
|
|
8700
8809
|
registerInstance(this, hostRef);
|
|
8701
|
-
this.
|
|
8702
|
-
this.
|
|
8703
|
-
this.
|
|
8704
|
-
this.
|
|
8810
|
+
this.dropiInput = createEvent(this, "dropiInput");
|
|
8811
|
+
this.dropiChange = createEvent(this, "dropiChange");
|
|
8812
|
+
this.dropiFocus = createEvent(this, "dropiFocus");
|
|
8813
|
+
this.dropiBlur = createEvent(this, "dropiBlur");
|
|
8705
8814
|
if (hostRef.$hostElement$["s-ei"]) {
|
|
8706
8815
|
this.internals = hostRef.$hostElement$["s-ei"];
|
|
8707
8816
|
}
|
|
@@ -8776,13 +8885,13 @@ class DropiInput {
|
|
|
8776
8885
|
touched = false;
|
|
8777
8886
|
// ── Events ──────────────────────────────────────────────────
|
|
8778
8887
|
/** Emitted on every keystroke with the current value */
|
|
8779
|
-
|
|
8888
|
+
dropiInput;
|
|
8780
8889
|
/** Emitted on blur with the final value */
|
|
8781
|
-
|
|
8890
|
+
dropiChange;
|
|
8782
8891
|
/** Emitted on focus */
|
|
8783
|
-
|
|
8892
|
+
dropiFocus;
|
|
8784
8893
|
/** Emitted on blur */
|
|
8785
|
-
|
|
8894
|
+
dropiBlur;
|
|
8786
8895
|
inputPropertiesChanged(val) {
|
|
8787
8896
|
if (!val)
|
|
8788
8897
|
return;
|
|
@@ -8845,7 +8954,7 @@ class DropiInput {
|
|
|
8845
8954
|
val = this.formatThousands(val, this.isMoneyInput);
|
|
8846
8955
|
this.value = val;
|
|
8847
8956
|
this.internals.setFormValue(val);
|
|
8848
|
-
this.
|
|
8957
|
+
this.dropiInput.emit(val);
|
|
8849
8958
|
}
|
|
8850
8959
|
handleKeyDown(e) {
|
|
8851
8960
|
if ((this.isNumericInput || this.isMoneyInput || this.isThousandSeparator) && !this.isAllowedNumberKey(e)) {
|
|
@@ -8856,12 +8965,12 @@ class DropiInput {
|
|
|
8856
8965
|
}
|
|
8857
8966
|
}
|
|
8858
8967
|
handleFocus() {
|
|
8859
|
-
this.
|
|
8968
|
+
this.dropiFocus.emit();
|
|
8860
8969
|
}
|
|
8861
8970
|
handleBlur() {
|
|
8862
8971
|
this.touched = true;
|
|
8863
|
-
this.
|
|
8864
|
-
this.
|
|
8972
|
+
this.dropiChange.emit(this.value);
|
|
8973
|
+
this.dropiBlur.emit();
|
|
8865
8974
|
}
|
|
8866
8975
|
togglePassword() {
|
|
8867
8976
|
if (this.disabled)
|
|
@@ -8926,14 +9035,14 @@ class DropiInput {
|
|
|
8926
9035
|
render() {
|
|
8927
9036
|
const showObligatoryAsterisk = this.required && this.showObligatoryAsterisk && !this.disabled;
|
|
8928
9037
|
const showIconInline = !!this.icon;
|
|
8929
|
-
return (hAsync("div", { key: '
|
|
9038
|
+
return (hAsync("div", { key: '36a33fdb7048e3ba43dae3c2d3d71c9f69643cac', class: { 'fixed-label-container': this.fixedLabel } }, this.fixedLabel && (hAsync("div", { key: '699adfe37d662ed328cd13fdad428e857b70f01d', class: "input-label Body-S-Regular" }, this.label, showObligatoryAsterisk && hAsync("span", { key: 'b2d6f4757cdb50eacfb7879e4a878e30adf5235d', class: "asterisk" }, " *"))), hAsync("div", { key: 'dc080fc5d0ab12f0eadf7e1bb30cae5539f76640', class: "form-group" }, hAsync("div", { key: 'cf228d5e4c7e0a04735d38ba239a2b989f5247ca', class: { 'input-container': true, 'input-container--has-icon': showIconInline } }, showIconInline && (hAsync("dropi-icon", { key: '049e396ea1f2f11625de73bc074c0e0aecea96ab', class: "icon-input", name: this.icon, color: this.iconColor, iconWidth: "20px", iconHeight: "20px", style: { width: '20px', height: '20px' } })), this.passwordInput && (hAsync("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() })), hAsync("input", { key: '6d23ac748d0768d6eea0eb347bde7b13d8f20321', id: this.resolvedId, class: {
|
|
8930
9039
|
'form-control': true,
|
|
8931
9040
|
'form-control-valid': !this.isInvalid && this.touched && !!this.value,
|
|
8932
9041
|
'form-control-invalid': this.isInvalid,
|
|
8933
9042
|
'padding-icon': showIconInline,
|
|
8934
9043
|
'text-password': this.passwordInput && !this.showPassword,
|
|
8935
9044
|
'fixed-label-input': this.fixedLabel,
|
|
8936
|
-
}, type: this.inputType, value: this.value, placeholder: this.fixedLabel ? this.placeholder : ' ', disabled: this.disabled, required: this.required, maxLength: this.maxLength, inputMode: this.inputMode, "data-cy": undefined, onInput: e => this.handleInput(e), onKeyDown: e => this.handleKeyDown(e), onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur() }), !this.fixedLabel && (hAsync("label", { key: '
|
|
9045
|
+
}, type: this.inputType, value: this.value, placeholder: this.fixedLabel ? this.placeholder : ' ', disabled: this.disabled, required: this.required, maxLength: this.maxLength, inputMode: this.inputMode, "data-cy": undefined, onInput: e => this.handleInput(e), onKeyDown: e => this.handleKeyDown(e), onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur() }), !this.fixedLabel && (hAsync("label", { key: '8f26c9430cbc1c6b55286d62c2a350724dd0101f', class: "Body-S-Regular label-bottom", htmlFor: this.resolvedId }, this.label, showObligatoryAsterisk && hAsync("span", { key: '95d953c160cf22457b0e1d6265b8137a24d4092b', class: "asterisk" }, " *"))), this.showHelper && (hAsync("div", { key: 'ad3d4b5230fd32e97c661c64deadf97830caa550', class: "form-control-helper" }, this.isInvalid && hAsync("dropi-icon", { key: '7c28120d1cc46ccd288948b1d2d9e5cc24521af7', name: "Warning-circle", iconWidth: "12px", iconHeight: "12px", color: "Error-Error-500" }), hAsync("span", { key: '40eb1eedd2a204975aed61fcd24ccadd26d8aaef', class: {
|
|
8937
9046
|
'disabled-helper': this.disabled,
|
|
8938
9047
|
'invalid-color': this.isInvalid,
|
|
8939
9048
|
} }, this.textHelper)))))));
|
|
@@ -9001,13 +9110,13 @@ const dropiLanguagesSelectorCss = () => `:host{display:inline-block;position:rel
|
|
|
9001
9110
|
class DropiLanguagesSelector {
|
|
9002
9111
|
constructor(hostRef) {
|
|
9003
9112
|
registerInstance(this, hostRef);
|
|
9004
|
-
this.
|
|
9113
|
+
this.dropiLanguageChange = createEvent(this, "dropiLanguageChange");
|
|
9005
9114
|
}
|
|
9006
9115
|
/** Language options (array or JSON string) */
|
|
9007
9116
|
languages = [];
|
|
9008
9117
|
/** Currently selected language (LanguageOption or JSON string) */
|
|
9009
9118
|
selectedLang = null;
|
|
9010
|
-
|
|
9119
|
+
dropiLanguageChange;
|
|
9011
9120
|
isOpen = false;
|
|
9012
9121
|
parsedLanguages = [];
|
|
9013
9122
|
currentLang = null;
|
|
@@ -9034,7 +9143,7 @@ class DropiLanguagesSelector {
|
|
|
9034
9143
|
select(lang) {
|
|
9035
9144
|
this.currentLang = lang;
|
|
9036
9145
|
this.isOpen = false;
|
|
9037
|
-
this.
|
|
9146
|
+
this.dropiLanguageChange.emit(lang);
|
|
9038
9147
|
}
|
|
9039
9148
|
render() {
|
|
9040
9149
|
if (!this.currentLang)
|
|
@@ -9097,7 +9206,7 @@ class DropiLogo {
|
|
|
9097
9206
|
e.target.src = FALLBACK_SVG;
|
|
9098
9207
|
}
|
|
9099
9208
|
render() {
|
|
9100
|
-
return (hAsync("figure", { key: '
|
|
9209
|
+
return (hAsync("figure", { key: '2a5ed49bd2ac8592db5b06256ff4e911e26ee6fd', class: { 'dropi-logo': true, [`dropi-logo--${this.size}`]: true } }, hAsync("img", { key: 'f0f63e2e5ceb30c24eac3f7f5a3446858b632f90', src: this.urlLogo || FALLBACK_SVG, alt: "Dropi logo", onError: (e) => this.handleError(e) })));
|
|
9101
9210
|
}
|
|
9102
9211
|
static get style() { return dropiLogoCss(); }
|
|
9103
9212
|
static get cmpMeta() { return {
|
|
@@ -9158,8 +9267,8 @@ const dropiMediaPlayerCss = () => `:host{display:block;width:100%}*,*::before,*:
|
|
|
9158
9267
|
class DropiMediaPlayer {
|
|
9159
9268
|
constructor(hostRef) {
|
|
9160
9269
|
registerInstance(this, hostRef);
|
|
9161
|
-
this.dropiPlay = createEvent(this, "dropiPlay"
|
|
9162
|
-
this.dropiEnded = createEvent(this, "dropiEnded"
|
|
9270
|
+
this.dropiPlay = createEvent(this, "dropiPlay");
|
|
9271
|
+
this.dropiEnded = createEvent(this, "dropiEnded");
|
|
9163
9272
|
}
|
|
9164
9273
|
get el() { return getElement(this); }
|
|
9165
9274
|
src = '';
|
|
@@ -9368,7 +9477,7 @@ class DropiMediaPlayer {
|
|
|
9368
9477
|
}; }
|
|
9369
9478
|
}
|
|
9370
9479
|
|
|
9371
|
-
const dropiModalCss = () => `:host{display:contents}*,*::before,*::after{box-sizing:border-box}.modal-root{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;opacity:0;transition:opacity 0.18s ease;z-index:
|
|
9480
|
+
const dropiModalCss = () => `:host{display:contents}*,*::before,*::after{box-sizing:border-box}.modal-root{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;opacity:0;transition:opacity 0.18s ease;z-index:var(--dropi-z-index-modal, 9999);visibility:hidden}.modal-root--open{opacity:1;pointer-events:auto;visibility:visible}.modal-root--closing{opacity:1;pointer-events:none;visibility:visible}.modal-mask{position:absolute;inset:0;background:rgba(6,11,16,0.66);pointer-events:auto;opacity:0;transition:opacity 0.18s ease}.modal-root--open .modal-mask{opacity:1}.modal-root--closing .modal-mask{opacity:0}.modal-panel{position:relative;pointer-events:auto;display:flex;flex-direction:column;border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #ffffff);box-shadow:0 0 60px rgba(0,0,0,0.06);overflow:hidden;padding:var(--Size-6, 32px);gap:var(--Size-5, 24px);max-height:calc(100vh - 60px);opacity:0;transform:translateY(16px) scale(0.92);transition:opacity 0.18s ease, transform 0.18s ease}.modal-root--open .modal-panel{opacity:1;transform:none}.modal-root--closing .modal-panel{opacity:0;transform:translateY(-12px) scale(1.06)}.modal-header{display:flex;align-items:center;gap:4px}.modal-title{color:var(--Gray-Gray-700,#32394d);font-size:var(--Size-5, 24px);font-weight:var(--font-weight-bold);flex:1;text-align:left}.modal-close{margin-left:auto;border:0;background:transparent;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:var(--font-size-xxl);line-height:1;color:var(--Gray-Gray-400)}.modal-close:hover{opacity:0.7}.modal-content{padding-right:8px;overflow:auto;flex:1;display:flex;flex-direction:column;scrollbar-width:thin;scrollbar-color:var(--Gray-Gray-300,#a3abbf) var(--Gray-Gray-50,#f7f8fa)}.modal-content::-webkit-scrollbar{width:4px}.modal-content::-webkit-scrollbar-track{background:var(--Gray-Gray-50,#f7f8fa);border-radius:16px}.modal-content::-webkit-scrollbar-thumb{background:var(--Gray-Gray-300,#a3abbf);border-radius:16px}.modal-footer{display:flex;justify-content:flex-end;align-items:flex-start;gap:var(--Size-1, 4px);width:100%;margin-top:auto;flex-shrink:0}.modal-footer:empty{display:none}::slotted(.button-container){display:grid;grid-template-columns:1fr 1fr;gap:var(--Size-4, 16px);min-width:470px;width:100%}::slotted(.button-container)>*{width:100%}::slotted(.button-container) dropi-button{width:100%}.modal-panel.size-m .modal-footer,.modal-panel.size-s .modal-footer,.modal-panel.size-xs .modal-footer{justify-content:flex-end}.modal-panel.size-m .modal-footer ::slotted(.button-container),.modal-panel.size-s .modal-footer ::slotted(.button-container),.modal-panel.size-xs .modal-footer ::slotted(.button-container){min-width:unset !important;width:100%}.modal-panel.size-drawer-s .modal-footer ::slotted(.button-container){min-width:unset;display:flex;flex-direction:column-reverse;gap:var(--Size-4, 16px)}.modal-panel.size-full{width:100%;height:100vh;max-height:100vh;border-radius:0}.modal-panel.size-xxl{width:calc(100% - 60px);max-width:1520px;height:calc(100vh - 120px);max-height:900px}.modal-panel.size-l{width:1137px;max-width:1137px;max-height:754px}.modal-panel.size-m{max-width:550px;width:550px}.modal-panel.size-s{width:454px}.modal-panel.size-xs{width:320px;padding:24px;gap:16px}.modal-root--right{align-items:stretch;justify-content:flex-end}.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)}.modal-root--open.modal-root--right .modal-panel{transform:translateX(0)}.modal-root--closing.modal-root--right .modal-panel{transform:translateX(100%)}.modal-root--right .modal-panel.size-drawer-s{width:351px;padding:20px;box-shadow:0 8px 40px rgba(0,0,0,0.16)}.modal-root--right .modal-panel.size-drawer-m{width:550px;box-shadow:0 8px 40px rgba(0,0,0,0.16)}.modal-root--right .modal-panel.size-drawer-l{width:1137px;box-shadow:0 8px 40px rgba(0,0,0,0.16)}.modal-root--right .modal-panel.size-drawer-xxl{width:1214px;box-shadow:0 8px 40px rgba(0,0,0,0.16)}.modal-root--right .modal-panel.size-sidebar-half{width:50vw;min-width:600px;box-shadow:0 8px 40px rgba(0,0,0,0.16)}@media (max-width: 768px){.modal-root--right .modal-panel.size-drawer-s,.modal-root--right .modal-panel.size-drawer-m,.modal-root--right .modal-panel.size-drawer-l,.modal-root--right .modal-panel.size-drawer-xxl,.modal-root--right .modal-panel.size-sidebar-half{width:100vw;min-width:unset}}.modal-root--left{align-items:stretch;justify-content:flex-start}.modal-root--left .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)}.modal-root--open.modal-root--left .modal-panel{transform:translateX(0)}.modal-root--closing.modal-root--left .modal-panel{transform:translateX(-100%)}.modal-root--top{align-items:flex-start}.modal-root--bottom{align-items:flex-end}@media (max-width: 599px){.modal-panel{padding:20px;width:100% !important}.modal-panel:not(.size-s){border-radius:0 !important;height:100% !important;max-height:unset !important}.modal-root--right .modal-panel{width:100vw !important;min-width:unset !important}.modal-footer{justify-content:center}.modal-footer ::slotted(.button-container){width:100%;min-width:unset !important;display:flex;flex-direction:column-reverse;gap:var(--Size-4, 16px)}}@media (prefers-reduced-motion: reduce){.modal-root,.modal-mask,.modal-panel{transition:none !important}}`;
|
|
9372
9481
|
|
|
9373
9482
|
/**
|
|
9374
9483
|
* @component dropi-modal
|
|
@@ -9378,9 +9487,9 @@ const dropiModalCss = () => `:host{display:contents}*,*::before,*::after{box-siz
|
|
|
9378
9487
|
class DropiModal {
|
|
9379
9488
|
constructor(hostRef) {
|
|
9380
9489
|
registerInstance(this, hostRef);
|
|
9381
|
-
this.
|
|
9382
|
-
this.
|
|
9383
|
-
this.
|
|
9490
|
+
this.dropiShow = createEvent(this, "dropiShow");
|
|
9491
|
+
this.dropiHide = createEvent(this, "dropiHide");
|
|
9492
|
+
this.dropiVisibleChange = createEvent(this, "dropiVisibleChange");
|
|
9384
9493
|
}
|
|
9385
9494
|
visible = false;
|
|
9386
9495
|
header = null;
|
|
@@ -9410,25 +9519,25 @@ class DropiModal {
|
|
|
9410
9519
|
isDraggable = false;
|
|
9411
9520
|
/** No-op — kept for API parity with Angular (matches Angular `resizable`) */
|
|
9412
9521
|
resizable = false;
|
|
9413
|
-
|
|
9414
|
-
|
|
9415
|
-
|
|
9522
|
+
dropiShow;
|
|
9523
|
+
dropiHide;
|
|
9524
|
+
dropiVisibleChange;
|
|
9416
9525
|
isOpen = false;
|
|
9417
9526
|
isClosing = false;
|
|
9418
9527
|
mounted = false;
|
|
9419
9528
|
closeTimer = null;
|
|
9420
9529
|
keyHandler = null;
|
|
9421
|
-
|
|
9422
|
-
|
|
9423
|
-
|
|
9424
|
-
|
|
9425
|
-
|
|
9426
|
-
|
|
9427
|
-
|
|
9530
|
+
canDismiss = false;
|
|
9531
|
+
visibleChanged(val) {
|
|
9532
|
+
if (val) {
|
|
9533
|
+
this.openModal();
|
|
9534
|
+
}
|
|
9535
|
+
else {
|
|
9536
|
+
this.startClose();
|
|
9537
|
+
}
|
|
9428
9538
|
}
|
|
9429
9539
|
componentDidLoad() {
|
|
9430
|
-
|
|
9431
|
-
if (isVisible)
|
|
9540
|
+
if (this.visible)
|
|
9432
9541
|
this.openModal();
|
|
9433
9542
|
}
|
|
9434
9543
|
disconnectedCallback() {
|
|
@@ -9439,32 +9548,37 @@ class DropiModal {
|
|
|
9439
9548
|
document.body.classList.remove('dropi-modal-open');
|
|
9440
9549
|
}
|
|
9441
9550
|
}
|
|
9442
|
-
async
|
|
9443
|
-
this.visible
|
|
9444
|
-
|
|
9445
|
-
|
|
9551
|
+
async dismiss() {
|
|
9552
|
+
if (this.visible) {
|
|
9553
|
+
this.visible = false;
|
|
9554
|
+
this.dropiVisibleChange.emit(false);
|
|
9555
|
+
}
|
|
9556
|
+
else {
|
|
9557
|
+
this.startClose();
|
|
9558
|
+
}
|
|
9446
9559
|
}
|
|
9447
|
-
async
|
|
9560
|
+
async openModalExternally() {
|
|
9448
9561
|
this.visible = true;
|
|
9449
|
-
this.
|
|
9450
|
-
this.openModal();
|
|
9562
|
+
this.dropiVisibleChange.emit(true);
|
|
9451
9563
|
}
|
|
9452
9564
|
openModal() {
|
|
9453
9565
|
if (this.closeTimer) {
|
|
9454
9566
|
clearTimeout(this.closeTimer);
|
|
9455
9567
|
this.closeTimer = null;
|
|
9456
9568
|
}
|
|
9457
|
-
|
|
9569
|
+
// Safety: ensure it's not already open or in a closing state
|
|
9458
9570
|
this.isClosing = false;
|
|
9459
|
-
this.
|
|
9571
|
+
this.mounted = true;
|
|
9460
9572
|
requestAnimationFrame(() => requestAnimationFrame(() => {
|
|
9461
9573
|
this.isOpen = true;
|
|
9462
|
-
this.
|
|
9574
|
+
this.dropiShow.emit();
|
|
9463
9575
|
}));
|
|
9464
9576
|
this.addKeyHandler();
|
|
9577
|
+
this.canDismiss = false;
|
|
9578
|
+
setTimeout(() => { this.canDismiss = true; }, 300);
|
|
9465
9579
|
}
|
|
9466
9580
|
startClose() {
|
|
9467
|
-
if (this.isClosing)
|
|
9581
|
+
if (this.isClosing || !this.mounted)
|
|
9468
9582
|
return;
|
|
9469
9583
|
this.isClosing = true;
|
|
9470
9584
|
this.isOpen = false;
|
|
@@ -9475,15 +9589,15 @@ class DropiModal {
|
|
|
9475
9589
|
this.mounted = false;
|
|
9476
9590
|
this.isClosing = false;
|
|
9477
9591
|
this.closeTimer = null;
|
|
9478
|
-
this.
|
|
9592
|
+
this.dropiHide.emit();
|
|
9479
9593
|
}, 200);
|
|
9480
9594
|
}
|
|
9481
9595
|
addKeyHandler() {
|
|
9482
9596
|
if (!this.closeOnEscape)
|
|
9483
9597
|
return;
|
|
9484
9598
|
this.keyHandler = (e) => {
|
|
9485
|
-
if (e.key === 'Escape' && this.visible && this.dismissable)
|
|
9486
|
-
this.
|
|
9599
|
+
if (e.key === 'Escape' && this.visible && this.dismissable && this.canDismiss)
|
|
9600
|
+
this.dismiss();
|
|
9487
9601
|
};
|
|
9488
9602
|
document.addEventListener('keydown', this.keyHandler);
|
|
9489
9603
|
}
|
|
@@ -9494,7 +9608,7 @@ class DropiModal {
|
|
|
9494
9608
|
}
|
|
9495
9609
|
}
|
|
9496
9610
|
render() {
|
|
9497
|
-
return (hAsync("div", { key: '
|
|
9611
|
+
return (hAsync("div", { key: '95847ba48baae69b93888cb59ecaa9d2130ae17a', class: `modal-root modal-root--${this.position}${this.isOpen ? ' modal-root--open' : ''}${this.isClosing ? ' modal-root--closing' : ''}` }, (this.modal ?? true) && hAsync("div", { key: '78acc3c2f1b7327b6fc1770a9536cdf0c2c57f99', class: "modal-mask", onClick: () => this.canDismiss && this.dismissable && this.dismiss() }), hAsync("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 && (hAsync("div", { key: '7d960505ea8fd7804ac67ceb88b9195e6ad1998d', class: "modal-header" }, this.header && hAsync("span", { key: 'fed4b8a2e6c89fca39a8766d0e843db7c184be59', class: "modal-title" }, this.header), hAsync("slot", { key: 'b2c6c5cc1f019229c3ad5028e42b1fd887494abd', name: "header" }), this.showCloseIcon && (hAsync("button", { key: '24fc8ff422ea5c7e6a8c0737acbb29c1d7467f40', class: "modal-close", onClick: () => this.dismiss(), "aria-label": "Cerrar" }, "\u00D7")))), hAsync("div", { key: '472a7dfe704b0b8d129b00bc88204602ead66403', class: "modal-content" }, hAsync("slot", { key: '6b3e6fdefca0c6510d4fdbbccce53a5efa52e4c8' })), this.showFooter && hAsync("div", { key: '5bd3c15d4d1fb2ebffad79c9314d03d1d72dae29', class: "modal-footer" }, hAsync("slot", { key: '1980d019b142e2a00f55a3a755e9e08d0393c5e5', name: "footer" })))));
|
|
9498
9612
|
}
|
|
9499
9613
|
static get watchers() { return {
|
|
9500
9614
|
"visible": [{
|
|
@@ -9506,7 +9620,7 @@ class DropiModal {
|
|
|
9506
9620
|
"$flags$": 777,
|
|
9507
9621
|
"$tagName$": "dropi-modal",
|
|
9508
9622
|
"$members$": {
|
|
9509
|
-
"visible": [
|
|
9623
|
+
"visible": [1540],
|
|
9510
9624
|
"header": [1],
|
|
9511
9625
|
"showCloseIcon": [4, "show-close-icon"],
|
|
9512
9626
|
"dismissable": [4],
|
|
@@ -9531,8 +9645,8 @@ class DropiModal {
|
|
|
9531
9645
|
"isOpen": [32],
|
|
9532
9646
|
"isClosing": [32],
|
|
9533
9647
|
"mounted": [32],
|
|
9534
|
-
"
|
|
9535
|
-
"
|
|
9648
|
+
"dismiss": [64],
|
|
9649
|
+
"openModalExternally": [64]
|
|
9536
9650
|
},
|
|
9537
9651
|
"$listeners$": undefined,
|
|
9538
9652
|
"$lazyBundleId$": "-",
|
|
@@ -9549,10 +9663,10 @@ const dropiNavbarCss = () => `:host{display:block;width:100%}*,*::before,*::afte
|
|
|
9549
9663
|
class DropiNavbar {
|
|
9550
9664
|
constructor(hostRef) {
|
|
9551
9665
|
registerInstance(this, hostRef);
|
|
9552
|
-
this.clickLoadItem = createEvent(this, "clickLoadItem"
|
|
9553
|
-
this.dropiNotificationsClick = createEvent(this, "dropiNotificationsClick"
|
|
9554
|
-
this.dropiUserClick = createEvent(this, "dropiUserClick"
|
|
9555
|
-
this.dropiMenuToggle = createEvent(this, "dropiMenuToggle"
|
|
9666
|
+
this.clickLoadItem = createEvent(this, "clickLoadItem");
|
|
9667
|
+
this.dropiNotificationsClick = createEvent(this, "dropiNotificationsClick");
|
|
9668
|
+
this.dropiUserClick = createEvent(this, "dropiUserClick");
|
|
9669
|
+
this.dropiMenuToggle = createEvent(this, "dropiMenuToggle");
|
|
9556
9670
|
}
|
|
9557
9671
|
/** Logo URL */
|
|
9558
9672
|
logoUrl = '';
|
|
@@ -9586,9 +9700,9 @@ class DropiNavbar {
|
|
|
9586
9700
|
}
|
|
9587
9701
|
render() {
|
|
9588
9702
|
const items = this.parsedData;
|
|
9589
|
-
return (hAsync("nav", { key: '
|
|
9703
|
+
return (hAsync("nav", { key: '83ec218a7545739c65d8f1f61197b429b0e7d407', class: "navbar" }, hAsync("div", { key: 'e40038630c33a280f3c231b3dd26643f1c853ea3', class: "navbar__left" }, this.showMenuToggle && (hAsync("button", { key: '0ecbae684b9324c48cd01a6081fd1951b3ba7cf8', class: "navbar__menu-btn", onClick: () => this.dropiMenuToggle.emit(), "aria-label": "Men\u00FA" }, hAsync("dropi-icon", { key: '9edea72a4508a984be2e6785f3f0fa6abe0625c4', name: "Menu", iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-700" }))), this.logoUrl && (hAsync("img", { key: 'b8cd9896736d505dad05b8df5f10928d40f250dd', class: "navbar__logo", src: this.logoUrl, alt: this.logoAlt })), this.title && hAsync("span", { key: '4e5dae851fe28f1bc913d7a5d4d42a2413342635', class: "navbar__title" }, this.title)), items.length > 0 && (hAsync("ul", { key: 'b951cc880b8aaf718b85403e3420d73ac976aa60', class: "navbar__items" }, items.map(item => (hAsync("li", null, hAsync("button", { class: { 'navbar__item': true, 'navbar__item--active': item.id === this.activeId }, onClick: () => this.clickLoadItem.emit(item), type: "button" }, item.icon && hAsync("dropi-icon", { name: item.icon, iconWidth: "16px", iconHeight: "16px", color: item.id === this.activeId ? 'Primary-Primary-500' : 'Gray-Gray-600' }), hAsync("span", null, item.name?.value || item.label), item.badge != null && String(item.badge) !== '0' && (hAsync("span", { class: "navbar__badge" }, item.badge)))))))), hAsync("div", { key: '8fe68f93af722982bac11890b106a35a292b3d98', class: "navbar__right" }, hAsync("button", { key: 'a4d0ff928dca2502384cd21e0bc852cacc895a30', class: "navbar__icon-btn", onClick: () => this.dropiNotificationsClick.emit(), "aria-label": "Notificaciones" }, hAsync("dropi-icon", { key: '41007746a151c27059d41db7c4672a2b551882d1', name: "Bell", iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-600" }), this.notifications > 0 && (hAsync("span", { key: 'a0e5c6c9f8e2aaf3e67cc22bdff2ae65472b7cb5', class: "navbar__notif-badge" }, this.notifications > 99 ? '99+' : this.notifications))), hAsync("button", { key: 'e1996f9e1fa922cd03a4e9c5721f5be838a941d3', class: "navbar__user-btn", onClick: () => this.dropiUserClick.emit(), type: "button" }, this.userAvatar
|
|
9590
9704
|
? hAsync("img", { class: "navbar__avatar", src: this.userAvatar, alt: this.userName })
|
|
9591
|
-
: hAsync("div", { class: "navbar__avatar-placeholder" }, this.userName ? this.userName[0].toUpperCase() : '?'), this.userName && hAsync("span", { key: '
|
|
9705
|
+
: hAsync("div", { class: "navbar__avatar-placeholder" }, this.userName ? this.userName[0].toUpperCase() : '?'), this.userName && hAsync("span", { key: 'd539c8f456564aa8d3a29e9d2e2ed6250241f411', class: "navbar__user-name" }, this.userName), hAsync("dropi-icon", { key: 'd32cba548201f28a051142e889f6de207a4e67d2', name: "Arrow-Down-2", iconWidth: "12px", iconHeight: "12px", color: "Gray-Gray-400" })))));
|
|
9592
9706
|
}
|
|
9593
9707
|
static get style() { return dropiNavbarCss(); }
|
|
9594
9708
|
static get cmpMeta() { return {
|
|
@@ -9613,18 +9727,17 @@ class DropiNavbar {
|
|
|
9613
9727
|
|
|
9614
9728
|
const dropiOtpSendCodeCss = () => `:host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}.otp{display:flex;flex-direction:column;align-items:center;gap:var(--Size-4, 16px)}.otp__label{font-size:var(--font-size-s, 12px);color:var(--Gray-Gray-600, #475066);text-align:center;margin:0}.otp__inputs{display:flex;gap:var(--Size-4, 16px)}.otp__digit{width:56px;height:56px;border:1.5px solid var(--Gray-Gray-200, #d3d7de);border-radius:var(--Border-2, 8px);text-align:center;font-size:22px;font-weight:var(--font-weight-bold, 700);font-family:inherit;color:var(--Gray-Gray-800, #1f2433);outline:none;transition:border-color 0.15s ease;background:var(--Neutral-White, #ffffff)}.otp__digit:focus{border:2px solid var(--Primary-Primary-500, #f49a3d)}.otp__digit--filled{border:1px solid var(--Success-Success-500, #0abb87);color:var(--Neutral-Neutral-900, #0e111a)}.otp__digit--error{border:1px solid var(--Error-Error-500, #f46a6b)}.otp__error{margin:0;font-size:var(--font-size-xs, 10px);color:var(--Error-Error-500, #f46a6b);text-align:center}.otp__resend{text-align:center}.otp__countdown{font-size:var(--font-size-xs, 10px);color:var(--Gray-Gray-400, #858ea6)}.otp__resend-btn{background:none;border:none;padding:0;font-size:var(--font-size-s, 12px);font-weight:var(--font-weight-bold, 700);color:var(--Primary-Primary-500, #f49a3d);cursor:pointer;text-decoration:underline}`;
|
|
9615
9729
|
|
|
9616
|
-
const OTP_LENGTH = 6;
|
|
9617
9730
|
const RESEND_SECONDS = 30;
|
|
9618
9731
|
/**
|
|
9619
9732
|
* @component dropi-otp-send-code
|
|
9620
|
-
*
|
|
9733
|
+
* OTP input with configurable length, countdown timer and resend capability.
|
|
9621
9734
|
*/
|
|
9622
9735
|
class DropiOtpSendCode {
|
|
9623
9736
|
constructor(hostRef) {
|
|
9624
9737
|
registerInstance(this, hostRef);
|
|
9625
|
-
this.codeCompleted = createEvent(this, "codeCompleted"
|
|
9626
|
-
this.codeAccepted = createEvent(this, "codeAccepted"
|
|
9627
|
-
this.dropiResend = createEvent(this, "dropiResend"
|
|
9738
|
+
this.codeCompleted = createEvent(this, "codeCompleted");
|
|
9739
|
+
this.codeAccepted = createEvent(this, "codeAccepted");
|
|
9740
|
+
this.dropiResend = createEvent(this, "dropiResend");
|
|
9628
9741
|
}
|
|
9629
9742
|
/** Delivery method label */
|
|
9630
9743
|
engine = 'email';
|
|
@@ -9634,19 +9747,30 @@ class DropiOtpSendCode {
|
|
|
9634
9747
|
showLabelContact = false;
|
|
9635
9748
|
/** Error message to display */
|
|
9636
9749
|
errorMessage = '';
|
|
9637
|
-
digits
|
|
9638
|
-
|
|
9750
|
+
/** Number of digits for the OTP */
|
|
9751
|
+
digitsCount = 6;
|
|
9752
|
+
digits = [];
|
|
9753
|
+
digitStates = [];
|
|
9639
9754
|
countdown = RESEND_SECONDS;
|
|
9640
9755
|
canResend = false;
|
|
9641
9756
|
error = false;
|
|
9642
9757
|
inputs = [];
|
|
9643
9758
|
timer;
|
|
9644
|
-
|
|
9759
|
+
handleDigitsCountChange(newValue) {
|
|
9760
|
+
this.digits = Array(newValue).fill('');
|
|
9761
|
+
this.digitStates = Array(newValue).fill('idle');
|
|
9762
|
+
this.inputs = [];
|
|
9763
|
+
}
|
|
9764
|
+
/** Emitted when all digits are entered. */
|
|
9645
9765
|
codeCompleted;
|
|
9646
|
-
/** Emitted when all
|
|
9766
|
+
/** Emitted when all digits are entered (alternative event). */
|
|
9647
9767
|
codeAccepted;
|
|
9648
9768
|
/** Emitted when resend is requested */
|
|
9649
9769
|
dropiResend;
|
|
9770
|
+
componentWillLoad() {
|
|
9771
|
+
this.digits = Array(this.digitsCount).fill('');
|
|
9772
|
+
this.digitStates = Array(this.digitsCount).fill('idle');
|
|
9773
|
+
}
|
|
9650
9774
|
componentDidLoad() { this.startCountdown(); }
|
|
9651
9775
|
disconnectedCallback() { clearInterval(this.timer); }
|
|
9652
9776
|
startCountdown() {
|
|
@@ -9663,13 +9787,13 @@ class DropiOtpSendCode {
|
|
|
9663
9787
|
}
|
|
9664
9788
|
handleInput(e, index) {
|
|
9665
9789
|
const val = e.target.value.replace(/\D/g, '').slice(-1);
|
|
9666
|
-
const newDigits = [...
|
|
9790
|
+
const newDigits = [...this.digits];
|
|
9667
9791
|
newDigits[index] = val;
|
|
9668
9792
|
this.digits = newDigits;
|
|
9669
|
-
const newStates = [...
|
|
9793
|
+
const newStates = [...this.digitStates];
|
|
9670
9794
|
newStates[index] = val ? 'filled' : 'idle';
|
|
9671
9795
|
this.digitStates = newStates;
|
|
9672
|
-
if (val && index <
|
|
9796
|
+
if (val && index < this.digitsCount - 1)
|
|
9673
9797
|
this.inputs[index + 1]?.focus();
|
|
9674
9798
|
if (newDigits.every(d => d !== '')) {
|
|
9675
9799
|
const finalCode = newDigits.join('');
|
|
@@ -9678,18 +9802,18 @@ class DropiOtpSendCode {
|
|
|
9678
9802
|
}
|
|
9679
9803
|
}
|
|
9680
9804
|
handleKeyDown(e, index) {
|
|
9681
|
-
if (e.key === 'Backspace' && !
|
|
9805
|
+
if (e.key === 'Backspace' && !this.digits[index] && index > 0) {
|
|
9682
9806
|
this.inputs[index - 1]?.focus();
|
|
9683
9807
|
}
|
|
9684
9808
|
}
|
|
9685
9809
|
handlePaste(e) {
|
|
9686
9810
|
e.preventDefault();
|
|
9687
|
-
const text = e.clipboardData?.getData('text')?.replace(/\D/g, '').slice(0,
|
|
9688
|
-
const newDigits = Array(
|
|
9811
|
+
const text = e.clipboardData?.getData('text')?.replace(/\D/g, '').slice(0, this.digitsCount) || '';
|
|
9812
|
+
const newDigits = Array(this.digitsCount).fill('');
|
|
9689
9813
|
text.split('').forEach((c, i) => { newDigits[i] = c; });
|
|
9690
9814
|
this.digits = newDigits;
|
|
9691
9815
|
this.digitStates = newDigits.map(d => d ? 'filled' : 'idle');
|
|
9692
|
-
this.inputs[Math.min(text.length,
|
|
9816
|
+
this.inputs[Math.min(text.length, this.digitsCount - 1)]?.focus();
|
|
9693
9817
|
if (newDigits.every(d => d !== '')) {
|
|
9694
9818
|
const finalCode = newDigits.join('');
|
|
9695
9819
|
this.codeCompleted.emit(finalCode);
|
|
@@ -9698,15 +9822,20 @@ class DropiOtpSendCode {
|
|
|
9698
9822
|
}
|
|
9699
9823
|
render() {
|
|
9700
9824
|
const engineLabel = this.engine === 'sms' ? 'SMS' : this.engine === '2fa' ? 'autenticador' : 'correo';
|
|
9701
|
-
return (hAsync("div", { key: '
|
|
9825
|
+
return (hAsync("div", { key: 'c9c6c3387cec2371049c547d87742563268bf28d', class: "otp" }, this.showLabelContact && (hAsync("p", { key: 'c3f36c62d7502eff8f86ef8202c3dfc65d846ba1', class: "otp__label" }, "Ingresa el c\u00F3digo enviado a tu ", engineLabel, this.labelContact && hAsync("strong", { key: '25c05d8f0773bf6f2af83f6154ac76638499e4d7' }, " ", this.labelContact))), hAsync("div", { key: '3ca2687723735b3eb6ada997f622a4a50c2d7ee9', class: "otp__inputs", onPaste: (e) => this.handlePaste(e) }, this.digits.map((_, i) => (hAsync("input", { key: i, ref: (el) => {
|
|
9702
9826
|
if (el)
|
|
9703
9827
|
this.inputs[i] = el;
|
|
9704
9828
|
}, class: {
|
|
9705
9829
|
'otp__digit': true,
|
|
9706
|
-
'otp__digit--filled':
|
|
9830
|
+
'otp__digit--filled': this.digitStates[i] === 'filled',
|
|
9707
9831
|
'otp__digit--error': this.error,
|
|
9708
|
-
}, type: "text", inputMode: "numeric", maxLength: 1, value:
|
|
9832
|
+
}, type: "text", inputMode: "numeric", maxLength: 1, value: this.digits[i] ?? '', onInput: (e) => this.handleInput(e, i), onKeyDown: (e) => this.handleKeyDown(e, i) })))), this.error && this.errorMessage && (hAsync("p", { key: 'ddcdd5dacc533b73e6353c2670f762168c2803d3', class: "otp__error" }, this.errorMessage)), hAsync("div", { key: 'a21650c43d7a62f9e187bd9f4eb307d275ff37be', class: "otp__resend" }, this.canResend ? (hAsync("button", { class: "otp__resend-btn", onClick: () => { this.startCountdown(); this.dropiResend.emit(); } }, "Reenviar c\u00F3digo")) : (hAsync("span", { class: "otp__countdown" }, "Reenviar en ", this.countdown, "s")))));
|
|
9709
9833
|
}
|
|
9834
|
+
static get watchers() { return {
|
|
9835
|
+
"digitsCount": [{
|
|
9836
|
+
"handleDigitsCountChange": 0
|
|
9837
|
+
}]
|
|
9838
|
+
}; }
|
|
9710
9839
|
static get style() { return dropiOtpSendCodeCss(); }
|
|
9711
9840
|
static get cmpMeta() { return {
|
|
9712
9841
|
"$flags$": 521,
|
|
@@ -9716,6 +9845,7 @@ class DropiOtpSendCode {
|
|
|
9716
9845
|
"labelContact": [1, "label-contact"],
|
|
9717
9846
|
"showLabelContact": [4, "show-label-contact"],
|
|
9718
9847
|
"errorMessage": [1, "error-message"],
|
|
9848
|
+
"digitsCount": [2, "digits-count"],
|
|
9719
9849
|
"digits": [32],
|
|
9720
9850
|
"digitStates": [32],
|
|
9721
9851
|
"countdown": [32],
|
|
@@ -9737,7 +9867,7 @@ const dropiPaginatorCss = () => `:host{display:block}*,*::before,*::after{box-si
|
|
|
9737
9867
|
class DropiPaginator {
|
|
9738
9868
|
constructor(hostRef) {
|
|
9739
9869
|
registerInstance(this, hostRef);
|
|
9740
|
-
this.
|
|
9870
|
+
this.dropiPageChange = createEvent(this, "dropiPageChange");
|
|
9741
9871
|
}
|
|
9742
9872
|
/** Total number of pages */
|
|
9743
9873
|
totalPages = 1;
|
|
@@ -9752,7 +9882,7 @@ class DropiPaginator {
|
|
|
9752
9882
|
/** Hide "Anterior"/"Siguiente" text labels, show only arrows */
|
|
9753
9883
|
noLabels = false;
|
|
9754
9884
|
/** Emitted when page changes. e.detail = new page number */
|
|
9755
|
-
|
|
9885
|
+
dropiPageChange;
|
|
9756
9886
|
get pageNumbers() {
|
|
9757
9887
|
const total = this.totalPages;
|
|
9758
9888
|
const cur = this.currentPage;
|
|
@@ -9783,15 +9913,15 @@ class DropiPaginator {
|
|
|
9783
9913
|
if (this.disabled || p < 1 || p > this.totalPages || p === this.currentPage)
|
|
9784
9914
|
return;
|
|
9785
9915
|
this.currentPage = p;
|
|
9786
|
-
this.
|
|
9916
|
+
this.dropiPageChange.emit(this.currentPage);
|
|
9787
9917
|
}
|
|
9788
9918
|
render() {
|
|
9789
9919
|
const pages = this.pageNumbers;
|
|
9790
9920
|
const isFirst = this.currentPage <= 1;
|
|
9791
9921
|
const isLast = this.currentPage >= this.totalPages;
|
|
9792
|
-
return (hAsync("div", { key: '
|
|
9922
|
+
return (hAsync("div", { key: 'af6614df5a241ef536b6723d30bde12c8a6f474f', class: "paginator" }, hAsync("div", { key: '8b5405baa717a36042fc03ca2e68370799c01ff7', class: "paginator-pages" }, !isFirst && !this.noLabels && (hAsync("button", { key: 'c340304b29d658ef9eaa8105a91540660c829048', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(1), "aria-label": "Primera p\u00E1gina", disabled: this.disabled }, hAsync("dropi-icon", { key: '3adfc1508cbcedbb91f99e467db2270c40a4ac83', name: "Arrow-double-small-left", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-600" }))), !isFirst && (hAsync("button", { key: '5936642c4b9e5b72546229996fbc72fe973e6f5f', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(this.currentPage - 1), "aria-label": "Anterior", disabled: this.disabled }, hAsync("dropi-icon", { key: 'c9f7eb1c0c27a738ee31e859617964fc75e514cc', name: "Dropdown-left", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-600" }), !this.noLabels && hAsync("span", { key: '5d448a9a6536c90c56fafd700e7c5998a85d6fdf', class: "paginator-label" }, "Anterior"))), pages.map((p, i) => p === '...'
|
|
9793
9923
|
? hAsync("span", { class: "paginator-ellipsis", key: `e${i}` }, "\u2026")
|
|
9794
|
-
: hAsync("button", { key: p, class: { 'paginator-btn': true, 'paginator-btn--active': p === this.currentPage }, onClick: () => this.goTo(p), "aria-current": p === this.currentPage ? 'page' : undefined, disabled: this.disabled }, p)), !isLast && (hAsync("button", { key: '
|
|
9924
|
+
: hAsync("button", { key: p, class: { 'paginator-btn': true, 'paginator-btn--active': p === this.currentPage }, onClick: () => this.goTo(p), "aria-current": p === this.currentPage ? 'page' : undefined, disabled: this.disabled }, p)), !isLast && (hAsync("button", { key: '1a43d8dde37cdbc40527eb1c66bc5001a64cf59f', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(this.currentPage + 1), "aria-label": "Siguiente", disabled: this.disabled }, !this.noLabels && hAsync("span", { key: 'f76ccd791d02b25d78c509341b73e1c1bca0b986', class: "paginator-label" }, "Siguiente"), hAsync("dropi-icon", { key: '822a3a7e4ac651e00c469b565e300a7efcc5614b', name: "Dropdown-Right", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-600" }))), !isLast && !this.noLabels && (hAsync("button", { key: '2b4f7435f9083ab9c4d9ce81be5c259eda830e4a', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(this.totalPages), "aria-label": "\u00DAltima p\u00E1gina", disabled: this.disabled }, hAsync("dropi-icon", { key: '63ab5568c44ed3cbda917842defe4dc4254bb3f1', name: "Arrow-double-small-right", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-600" }))))));
|
|
9795
9925
|
}
|
|
9796
9926
|
static get style() { return dropiPaginatorCss(); }
|
|
9797
9927
|
static get cmpMeta() { return {
|
|
@@ -9811,7 +9941,7 @@ class DropiPaginator {
|
|
|
9811
9941
|
}; }
|
|
9812
9942
|
}
|
|
9813
9943
|
|
|
9814
|
-
const dropiPhoneInputCss = () => `:host{display:block;width:100%;position:relative;font-family:'Inter', sans-serif}*,*::before,*::after{box-sizing:border-box}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}input[type='number']{-moz-appearance:textfield;appearance:textfield}.phone-wrap{width:100%}.phone-label{display:block;font-size:var(--font-size-xs, 10px);color:var(--Gray-Gray-600, #475066);margin-bottom:4px}.phone-input-container{display:flex;align-items:center;gap:8px}.custom-select{position:relative;width:50%}.form-control{flex:1;width:100%;border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:5px;font-size:14px;font-family:inherit;transition:border-color 0.3s ease-in-out;height:40px;padding:0 12px;outline:none;color:var(--Gray-Gray-700, #32394d);background-color:var(--Neutral-White, #ffffff)}.form-control::placeholder{color:var(--Gray-Gray-500, #69738c)}.form-control:focus::placeholder{color:var(--Gray-Gray-500, #69738c)}.form-control:focus{border-color:var(--Info-Info-500, #50a5f1);outline:none}.form-control:disabled{border:1px solid var(--Gray-Gray-200, #c3c9d9) !important;color:var(--Gray-Gray-400, #858ea6);background-color:var(--Gray-Gray-50, #f7f8fa);outline:none}.form-control.is-invalid{background:#fffbfb;border-color:var(--Error-Error-500, #f46a6b) !important}.select-button{width:100%;height:40px;padding:0.47rem 0.75rem;padding-right:7px;border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #ffffff);color:var(--Gray-Gray-500, #69738c);font-size:var(--font-size-s, 12px);font-family:inherit;display:flex;justify-content:space-between;align-items:center;text-align:left;cursor:pointer}.select-button img{width:20px;height:20px}.select-button:focus{border-color:var(--Info-Info-500, #50a5f1) !important;outline:none}.select-button:disabled{border-color:var(--Gray-Gray-200, #c3c9d9);color:var(--Gray-Gray-400, #858ea6);background-color:var(--Gray-Gray-50, #f7f8fa);cursor:unset}.select-button.select-completed{border-color:var(--Gray-Gray-400, #858ea6);color:var(--Gray-Gray-600, #475066);background:var(--Neutral-White, #ffffff)}.select-button.select-invalid{border-color:var(--Error-Error-500, #f46a6b) !important}.select-dropdown{position:absolute;width:100%;overflow:hidden;list-style:none;padding:0;margin:4px 0 0 0;border:1px solid transparent;border-radius:var(--Border-2, 8px);overflow-y:scroll;z-index:
|
|
9944
|
+
const dropiPhoneInputCss = () => `:host{display:block;width:100%;position:relative;font-family:'Inter', sans-serif}*,*::before,*::after{box-sizing:border-box}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}input[type='number']{-moz-appearance:textfield;appearance:textfield}.phone-wrap{width:100%}.phone-label{display:block;font-size:var(--font-size-xs, 10px);color:var(--Gray-Gray-600, #475066);margin-bottom:4px}.phone-input-container{display:flex;align-items:center;gap:8px}.custom-select{position:relative;width:50%}.form-control{flex:1;width:100%;border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:5px;font-size:14px;font-family:inherit;transition:border-color 0.3s ease-in-out;height:40px;padding:0 12px;outline:none;color:var(--Gray-Gray-700, #32394d);background-color:var(--Neutral-White, #ffffff)}.form-control::placeholder{color:var(--Gray-Gray-500, #69738c)}.form-control:focus::placeholder{color:var(--Gray-Gray-500, #69738c)}.form-control:focus{border-color:var(--Info-Info-500, #50a5f1);outline:none}.form-control:disabled{border:1px solid var(--Gray-Gray-200, #c3c9d9) !important;color:var(--Gray-Gray-400, #858ea6);background-color:var(--Gray-Gray-50, #f7f8fa);outline:none}.form-control.is-invalid{background:#fffbfb;border-color:var(--Error-Error-500, #f46a6b) !important}.select-button{width:100%;height:40px;padding:0.47rem 0.75rem;padding-right:7px;border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #ffffff);color:var(--Gray-Gray-500, #69738c);font-size:var(--font-size-s, 12px);font-family:inherit;display:flex;justify-content:space-between;align-items:center;text-align:left;cursor:pointer}.select-button img{width:20px;height:20px}.select-button:focus{border-color:var(--Info-Info-500, #50a5f1) !important;outline:none}.select-button:disabled{border-color:var(--Gray-Gray-200, #c3c9d9);color:var(--Gray-Gray-400, #858ea6);background-color:var(--Gray-Gray-50, #f7f8fa);cursor:unset}.select-button.select-completed{border-color:var(--Gray-Gray-400, #858ea6);color:var(--Gray-Gray-600, #475066);background:var(--Neutral-White, #ffffff)}.select-button.select-invalid{border-color:var(--Error-Error-500, #f46a6b) !important}.select-dropdown{position:absolute;width:100%;overflow:hidden;list-style:none;padding:0;margin:4px 0 0 0;border:1px solid transparent;border-radius:var(--Border-2, 8px);overflow-y:scroll;z-index:var(--dropi-z-index-overlay, 11000)}.select-dropdown::-webkit-scrollbar{width:6px}.select-dropdown::-webkit-scrollbar-thumb{background-color:var(--Gray-Gray-300, #d1d6e1);border-radius:4px}.expanded-select{max-height:250px;background:var(--Neutral-White, #ffffff);box-shadow:var(--Shadow-medium, 0 4px 16px rgba(0, 0, 0, 0.08));border:1px solid var(--Gray-Gray-200, #c3c9d9);transition:max-height 0.2s ease-in}.collapsed-select{max-height:0;background:transparent;box-shadow:none;border:1px solid transparent;transition:max-height 0.2s ease-out, background 0.6s ease-out, box-shadow 0.6s ease-out}.select-dropdown li{margin:0;padding:0}.option{width:100%;height:45px;border-radius:var(--Border-2, 8px);padding-top:var(--Size-3, 12px);padding-right:var(--Size-4, 16px);padding-bottom:var(--Size-3, 12px);padding-left:var(--Size-4, 16px);border:none;background:transparent;text-align:left;color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-s, 12px);font-family:inherit;cursor:pointer;display:flex;align-items:center;gap:8px}.option img{width:20px;height:20px}.option:hover{background:var(--Gray-Gray-50, #f7f8fa)}.option:disabled{color:var(--Gray-Gray-400, #858ea6);background-color:var(--Gray-Gray-50, #f7f8fa);cursor:unset}.invalid-color{color:var(--Error-Error-500, #f46a6b) !important}.phone-error{margin:4px 0 0;font-size:var(--font-size-xs, 10px);color:var(--Error-Error-500, #f46a6b)}`;
|
|
9815
9945
|
|
|
9816
9946
|
const COUNTRIES = [
|
|
9817
9947
|
{ code: '57', name: 'Colombia', flag: 'CO', maxLength: 10 },
|
|
@@ -9915,10 +10045,10 @@ const COUNTRIES = [
|
|
|
9915
10045
|
class DropiPhoneInput {
|
|
9916
10046
|
constructor(hostRef) {
|
|
9917
10047
|
registerInstance(this, hostRef);
|
|
9918
|
-
this.
|
|
9919
|
-
this.
|
|
9920
|
-
this.
|
|
9921
|
-
this.
|
|
10048
|
+
this.dropiCodChange = createEvent(this, "dropiCodChange");
|
|
10049
|
+
this.dropiPhoneChange = createEvent(this, "dropiPhoneChange");
|
|
10050
|
+
this.dropiVerify = createEvent(this, "dropiVerify");
|
|
10051
|
+
this.dropiChangeSelect = createEvent(this, "dropiChangeSelect");
|
|
9922
10052
|
}
|
|
9923
10053
|
get el() { return getElement(this); }
|
|
9924
10054
|
/** Initial country dial code (e.g. "57") — matches Angular 'CodArea' setter */
|
|
@@ -9946,13 +10076,13 @@ class DropiPhoneInput {
|
|
|
9946
10076
|
selectProperties = null;
|
|
9947
10077
|
open = false;
|
|
9948
10078
|
/** Emitted when country dial code changes — matches Angular 'ngModelChangeCod' */
|
|
9949
|
-
|
|
10079
|
+
dropiCodChange;
|
|
9950
10080
|
/** Emitted when phone number changes — matches Angular 'ngModelChangePhone' */
|
|
9951
|
-
|
|
10081
|
+
dropiPhoneChange;
|
|
9952
10082
|
/** Emitted on field verification — matches Angular 'verifiedField' */
|
|
9953
|
-
|
|
10083
|
+
dropiVerify;
|
|
9954
10084
|
/** Emitted when country selection changes — matches Angular 'onChangeSelect' */
|
|
9955
|
-
|
|
10085
|
+
dropiChangeSelect;
|
|
9956
10086
|
codAreaChanged() {
|
|
9957
10087
|
this.ngModelPhone = '';
|
|
9958
10088
|
}
|
|
@@ -9974,14 +10104,14 @@ class DropiPhoneInput {
|
|
|
9974
10104
|
selectCountry(c) {
|
|
9975
10105
|
this.codArea = c.code;
|
|
9976
10106
|
this.open = false;
|
|
9977
|
-
this.
|
|
9978
|
-
this.
|
|
10107
|
+
this.dropiCodChange.emit(c.code);
|
|
10108
|
+
this.dropiChangeSelect.emit(c);
|
|
9979
10109
|
}
|
|
9980
10110
|
handleInput(e) {
|
|
9981
10111
|
const raw = e.target.value.replace(/\D/g, '');
|
|
9982
10112
|
this.ngModelPhone = raw.slice(0, this.selectedCountry.maxLength);
|
|
9983
10113
|
e.target.value = this.ngModelPhone;
|
|
9984
|
-
this.
|
|
10114
|
+
this.dropiPhoneChange.emit(this.ngModelPhone);
|
|
9985
10115
|
}
|
|
9986
10116
|
handleWindowClick(ev) {
|
|
9987
10117
|
const path = ev.composedPath();
|
|
@@ -9992,10 +10122,10 @@ class DropiPhoneInput {
|
|
|
9992
10122
|
render() {
|
|
9993
10123
|
const country = this.selectedCountry;
|
|
9994
10124
|
const isInvalid = this.isValidPhone === false;
|
|
9995
|
-
return (hAsync("div", { key: '
|
|
10125
|
+
return (hAsync("div", { key: 'a377fcfcfdb239d79f319f0e058f5d54cbcfac02', class: "phone-wrap" }, hAsync("div", { key: '83719d2b76b491f1f7a9f3e202eb61c61abb2c31', class: "phone-input-container" }, hAsync("div", { key: 'c92ff5d9f260b80ad4e7b8f7e290b7b4e1f595f0', class: "custom-select" }, hAsync("button", { key: '35c56642c1828d86b7f211face2845dc79878fd4', type: "button", class: { 'select-button': true, 'select-invalid': isInvalid }, disabled: this.disabledInput, onClick: () => {
|
|
9996
10126
|
if (!this.disabledInput)
|
|
9997
10127
|
this.open = !this.open;
|
|
9998
|
-
} }, hAsync("span", { key: '
|
|
10128
|
+
} }, hAsync("span", { key: 'e39cdac451df1c9a47c6552e7f133cb7662cae7f', style: { display: 'flex', gap: '0.5rem', alignItems: 'center' } }, hAsync("img", { key: '620c8efc2695ee26fed0c2bcd7f6132af05cdbed', src: `https://flagsapi.com/${country.flag}/flat/24.png`, alt: "flag" }), country.code), hAsync("dropi-icon", { key: 'cf57cc1ef06e12b0112fdbbb063fb8f045c17e39', name: this.open ? 'Dropdown-up' : 'Dropdown-down', iconWidth: "14px", iconHeight: "14px", color: "Gray-Gray-500" })), hAsync("ul", { key: '1009d2e4212267bbfaf4aa26c0c2152606a8d092', class: { 'select-dropdown': true, 'expanded-select': this.open, 'collapsed-select': !this.open } }, COUNTRIES.map(option => (hAsync("li", null, hAsync("button", { type: "button", class: "option", onMouseDown: (e) => { e.preventDefault(); this.selectCountry(option); } }, hAsync("img", { src: `https://flagsapi.com/${option.flag}/flat/24.png`, alt: option.flag }), option.code)))))), hAsync("input", { key: '87be58fc820c63741b076b04d807b7410e292344', 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) }))));
|
|
9999
10129
|
}
|
|
10000
10130
|
static get watchers() { return {
|
|
10001
10131
|
"codArea": [{
|
|
@@ -10026,6 +10156,59 @@ class DropiPhoneInput {
|
|
|
10026
10156
|
}; }
|
|
10027
10157
|
}
|
|
10028
10158
|
|
|
10159
|
+
const dropiProgressBarCss = () => `:host{display:block;width:100%}.progress-container{width:100%;display:flex;flex-direction:column;gap:4px}.progress-header{display:flex;justify-content:flex-end}.progress-value{font-size:var(--font-size-xs, 12px);color:var(--Gray-Gray-600, #475066);font-weight:500}.progress-track{width:100%;border-radius:999px;overflow:hidden;position:relative}.progress-fill{height:100%;border-radius:999px;transition:width 0.3s ease-in-out, background-color 0.3s ease-in-out}`;
|
|
10160
|
+
|
|
10161
|
+
class DropiProgressBar {
|
|
10162
|
+
constructor(hostRef) {
|
|
10163
|
+
registerInstance(this, hostRef);
|
|
10164
|
+
}
|
|
10165
|
+
/** The progress value (0-100) */
|
|
10166
|
+
value = 0;
|
|
10167
|
+
/** The color scheme of the progress bar */
|
|
10168
|
+
severity = 'primary';
|
|
10169
|
+
/** Height of the progress bar */
|
|
10170
|
+
height = '8px';
|
|
10171
|
+
/** Whether to show the value as text */
|
|
10172
|
+
showValue = false;
|
|
10173
|
+
/** Background color of the track (optional, defaults to gray-100) */
|
|
10174
|
+
trackColor = 'var(--Gray-Gray-100, #F7F8FA)';
|
|
10175
|
+
/** Custom color for the progress fill (overrides severity) */
|
|
10176
|
+
color = '';
|
|
10177
|
+
render() {
|
|
10178
|
+
const fillStyle = {
|
|
10179
|
+
width: `${Math.min(100, Math.max(0, this.value))}%`,
|
|
10180
|
+
backgroundColor: this.color || `var(--${this.getSeverityVariable()}, #50A5F1)`,
|
|
10181
|
+
};
|
|
10182
|
+
return (hAsync("div", { key: 'f68b88240ebc188f1f0378424b8d1617c2e7440e', class: "progress-container" }, this.showValue && (hAsync("div", { key: 'f8116e4eb824031d4bd1ac9d694e2bd3bca1ed6d', class: "progress-header" }, hAsync("span", { key: '892813f8e0a028ce286c00edd0489d489dd271c4', class: "progress-value" }, this.value, "%"))), hAsync("div", { key: '2e740487a59df1ec7def96565a9ee64d53b773b8', class: "progress-track", style: { height: this.height, backgroundColor: this.trackColor } }, hAsync("div", { key: '4f6fd1c436563cacac31e385d84c4a21945f6e10', class: "progress-fill", style: fillStyle }))));
|
|
10183
|
+
}
|
|
10184
|
+
getSeverityVariable() {
|
|
10185
|
+
switch (this.severity) {
|
|
10186
|
+
case 'success': return 'Success-Success-500';
|
|
10187
|
+
case 'warning': return 'Warning-Warning-500';
|
|
10188
|
+
case 'error': return 'Error-Error-500';
|
|
10189
|
+
case 'info': return 'Info-Info-500';
|
|
10190
|
+
case 'neutral': return 'Gray-Gray-400';
|
|
10191
|
+
default: return 'Primary-Primary-500';
|
|
10192
|
+
}
|
|
10193
|
+
}
|
|
10194
|
+
static get style() { return dropiProgressBarCss(); }
|
|
10195
|
+
static get cmpMeta() { return {
|
|
10196
|
+
"$flags$": 521,
|
|
10197
|
+
"$tagName$": "dropi-progress-bar",
|
|
10198
|
+
"$members$": {
|
|
10199
|
+
"value": [2],
|
|
10200
|
+
"severity": [1],
|
|
10201
|
+
"height": [1],
|
|
10202
|
+
"showValue": [4, "show-value"],
|
|
10203
|
+
"trackColor": [1, "track-color"],
|
|
10204
|
+
"color": [1]
|
|
10205
|
+
},
|
|
10206
|
+
"$listeners$": undefined,
|
|
10207
|
+
"$lazyBundleId$": "-",
|
|
10208
|
+
"$attrsToReflect$": []
|
|
10209
|
+
}; }
|
|
10210
|
+
}
|
|
10211
|
+
|
|
10029
10212
|
const dropiRadioButtonCss = () => `:host{display:inline-block}*,*::before,*::after{box-sizing:border-box}.dropi-radio-button{display:flex;align-items:center;justify-content:flex-start;gap:20px}label{display:flex;flex-direction:row;align-items:center;gap:8px;cursor:pointer;color:var(--Gray-Gray-700, #32394d);font-size:var(--font-size-s, 12px);font-weight:var(--font-weight-regular, 400);line-height:1.5}input[type='radio']{appearance:none;-webkit-appearance:none;width:20px;height:20px;min-width:20px;border:2px solid var(--Gray-Gray-200, #c3c9d9);border-radius:50%;background-color:transparent;position:relative;cursor:pointer;outline:none;flex-shrink:0;align-self:center;vertical-align:middle;margin:0}input[type='radio']::before{content:'';position:absolute;top:3px;left:3px;width:10px;height:10px;background-color:var(--Primary-Primary-400, #f7b46f);border-radius:50%;display:none}input[type='radio']:checked{border:2px solid var(--Primary-Primary-500, #f49a3d)}input[type='radio']:checked::before{display:block}`;
|
|
10030
10213
|
|
|
10031
10214
|
/**
|
|
@@ -10035,7 +10218,7 @@ const dropiRadioButtonCss = () => `:host{display:inline-block}*,*::before,*::aft
|
|
|
10035
10218
|
class DropiRadioButton {
|
|
10036
10219
|
constructor(hostRef) {
|
|
10037
10220
|
registerInstance(this, hostRef);
|
|
10038
|
-
this.
|
|
10221
|
+
this.dropiChange = createEvent(this, "dropiChange");
|
|
10039
10222
|
}
|
|
10040
10223
|
/** Label text displayed next to the radio */
|
|
10041
10224
|
label = '';
|
|
@@ -10051,17 +10234,17 @@ class DropiRadioButton {
|
|
|
10051
10234
|
*/
|
|
10052
10235
|
resetTrigger = false;
|
|
10053
10236
|
/** Emitted when the radio is selected */
|
|
10054
|
-
|
|
10237
|
+
dropiChange;
|
|
10055
10238
|
onResetTrigger(val) {
|
|
10056
10239
|
if (val)
|
|
10057
10240
|
this.checked = false;
|
|
10058
10241
|
}
|
|
10059
10242
|
handleChange(e) {
|
|
10060
10243
|
this.checked = e.target.checked;
|
|
10061
|
-
this.
|
|
10244
|
+
this.dropiChange.emit(e);
|
|
10062
10245
|
}
|
|
10063
10246
|
render() {
|
|
10064
|
-
return (hAsync("div", { key: '
|
|
10247
|
+
return (hAsync("div", { key: '9f4c4f3be63c0aa0bcd1c48dacb97cec903db98d', class: "dropi-radio-button" }, hAsync("label", { key: 'c29bd1ccc6c468b57fdcb4dd6c15cf541255cb71', htmlFor: this.id }, hAsync("input", { key: '19533ffd5e5eb1b43d7e0f42971aa81652c8c926', id: this.id, type: "radio", name: this.name, checked: this.checked, onChange: (e) => this.handleChange(e) }), this.label)));
|
|
10065
10248
|
}
|
|
10066
10249
|
static get formAssociated() { return true; }
|
|
10067
10250
|
static get watchers() { return {
|
|
@@ -10095,8 +10278,8 @@ const dropiRadioSelectionListCss = () => `:host{display:block;width:100%}*,*::be
|
|
|
10095
10278
|
class DropiRadioSelectionList {
|
|
10096
10279
|
constructor(hostRef) {
|
|
10097
10280
|
registerInstance(this, hostRef);
|
|
10098
|
-
this.
|
|
10099
|
-
this.
|
|
10281
|
+
this.dropiChange = createEvent(this, "dropiChange");
|
|
10282
|
+
this.dropiSearch = createEvent(this, "dropiSearch");
|
|
10100
10283
|
}
|
|
10101
10284
|
/** Options array or JSON string */
|
|
10102
10285
|
options = [];
|
|
@@ -10115,9 +10298,9 @@ class DropiRadioSelectionList {
|
|
|
10115
10298
|
filterText = '';
|
|
10116
10299
|
parsedOptions = [];
|
|
10117
10300
|
/** Emitted on selection change. e.detail = selected option id */
|
|
10118
|
-
|
|
10301
|
+
dropiChange;
|
|
10119
10302
|
/** Emitted on search — matches Angular 'onSearch' */
|
|
10120
|
-
|
|
10303
|
+
dropiSearch;
|
|
10121
10304
|
optionsChanged(val) {
|
|
10122
10305
|
this.parsedOptions = typeof val === 'string' ? JSON.parse(val) : (val || []);
|
|
10123
10306
|
}
|
|
@@ -10129,12 +10312,12 @@ class DropiRadioSelectionList {
|
|
|
10129
10312
|
return this.parsedOptions.filter(o => o.name?.toLowerCase().includes(q));
|
|
10130
10313
|
}
|
|
10131
10314
|
render() {
|
|
10132
|
-
return (hAsync("div", { key: '
|
|
10315
|
+
return (hAsync("div", { key: '296bdc955d13b8163ca954f6d399543343e7e121', class: "rsl" }, this.showFilter && (hAsync("div", { key: '4cdd3764411f389d2b6ce1145f5b6759bb20fc7b', class: "rsl__search" }, hAsync("dropi-icon", { key: '81af80a3dddb6176625b6ba575b084501741cd81', name: "Search", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-400" }), hAsync("input", { key: 'aa0e762f4403431225375f95c792af8596529588', class: "rsl__search-input", type: "text", placeholder: this.filterPlaceholder, value: this.filterText, onInput: (e) => {
|
|
10133
10316
|
this.filterText = e.target.value;
|
|
10134
|
-
this.
|
|
10135
|
-
} }))), hAsync("div", { key: '
|
|
10317
|
+
this.dropiSearch.emit({ searchValue: this.filterText, filteredOptions: this.filtered });
|
|
10318
|
+
} }))), hAsync("div", { key: 'd153875a1c09957b74648f61f70320968ea6cd40', class: "rsl__list" }, this.filtered.map(opt => {
|
|
10136
10319
|
const isSelected = opt.id === this.selectedOption;
|
|
10137
|
-
return (hAsync("div", { class: { 'rsl__item': true, 'rsl__item--selected': isSelected }, key: opt.id, onClick: () => { this.selectedOption = opt.id; this.
|
|
10320
|
+
return (hAsync("div", { class: { 'rsl__item': true, 'rsl__item--selected': isSelected }, key: opt.id, onClick: () => { this.selectedOption = opt.id; this.dropiChange.emit(opt.id); } }, hAsync("div", { class: { 'rsl__radio': true, 'rsl__radio--checked': isSelected } }, isSelected && hAsync("div", { class: "rsl__radio-dot" })), hAsync("div", { class: "rsl__content" }, hAsync("span", { class: "rsl__name" }, opt.name), (isSelected || this.alwaysShowDescription) && opt.description && (hAsync("span", { class: "rsl__desc" }, opt.description)))));
|
|
10138
10321
|
}))));
|
|
10139
10322
|
}
|
|
10140
10323
|
static get watchers() { return {
|
|
@@ -10197,7 +10380,7 @@ class DropiReadMore {
|
|
|
10197
10380
|
}
|
|
10198
10381
|
render() {
|
|
10199
10382
|
const showToggle = this.needsTruncation && (this.expanded ? this.showSeeLess : true);
|
|
10200
|
-
return (hAsync("div", { key: '
|
|
10383
|
+
return (hAsync("div", { key: '6accf9aa0a6f7377c7de6e8cbcb9e2a7ee99573a', class: "read-more" }, hAsync("p", { key: '96e5493df8b065008f9bc45cea1ba768eabfc0a2', class: "read-more__text", style: this.textStyle ? this.textStyle : undefined }, this.displayText, showToggle && (hAsync("button", { key: '195d962715c5c618701c3e86df618289915e3a9b', class: "read-more__toggle", style: this.buttonStyle ? this.buttonStyle : undefined, onClick: () => this.expanded = !this.expanded }, this.expanded ? ' Ver menos' : '... Ver más')))));
|
|
10201
10384
|
}
|
|
10202
10385
|
static get style() { return dropiReadMoreCss(); }
|
|
10203
10386
|
static get cmpMeta() { return {
|
|
@@ -10227,12 +10410,12 @@ const dropiSearchCss = () => `:host{display:block;width:100%;position:relative}*
|
|
|
10227
10410
|
class DropiSearch {
|
|
10228
10411
|
constructor(hostRef) {
|
|
10229
10412
|
registerInstance(this, hostRef);
|
|
10230
|
-
this.
|
|
10231
|
-
this.
|
|
10232
|
-
this.
|
|
10233
|
-
this.
|
|
10234
|
-
this.
|
|
10235
|
-
this.
|
|
10413
|
+
this.dropiInput = createEvent(this, "dropiInput");
|
|
10414
|
+
this.dropiBlur = createEvent(this, "dropiBlur");
|
|
10415
|
+
this.dropiKeyEnter = createEvent(this, "dropiKeyEnter");
|
|
10416
|
+
this.dropiChange = createEvent(this, "dropiChange");
|
|
10417
|
+
this.dropiClear = createEvent(this, "dropiClear");
|
|
10418
|
+
this.dropiModelChange = createEvent(this, "dropiModelChange");
|
|
10236
10419
|
}
|
|
10237
10420
|
/** Visual variant (matches Angular `type`) */
|
|
10238
10421
|
type = 'default';
|
|
@@ -10266,17 +10449,17 @@ class DropiSearch {
|
|
|
10266
10449
|
selected = [];
|
|
10267
10450
|
parsedOptions = [];
|
|
10268
10451
|
/** Emitted on input change. e.detail = current text */
|
|
10269
|
-
|
|
10452
|
+
dropiInput;
|
|
10270
10453
|
/** Emitted on blur */
|
|
10271
|
-
|
|
10454
|
+
dropiBlur;
|
|
10272
10455
|
/** Emitted when Enter is pressed. e.detail = current text */
|
|
10273
|
-
|
|
10456
|
+
dropiKeyEnter;
|
|
10274
10457
|
/** Emitted on change event of the native input (matches Angular `onChange`) */
|
|
10275
|
-
|
|
10458
|
+
dropiChange;
|
|
10276
10459
|
/** Emitted when clear button clicked */
|
|
10277
|
-
|
|
10460
|
+
dropiClear;
|
|
10278
10461
|
/** Emitted when selection changes. e.detail = selected items */
|
|
10279
|
-
|
|
10462
|
+
dropiModelChange;
|
|
10280
10463
|
optionsChanged(val) {
|
|
10281
10464
|
this.parsedOptions = typeof val === 'string' ? JSON.parse(val) : (val || []);
|
|
10282
10465
|
}
|
|
@@ -10292,20 +10475,20 @@ class DropiSearch {
|
|
|
10292
10475
|
handleInput(e) {
|
|
10293
10476
|
this.textInput = e.target.value;
|
|
10294
10477
|
this.open = this.parsedOptions.length > 0;
|
|
10295
|
-
this.
|
|
10296
|
-
this.
|
|
10478
|
+
this.dropiInput.emit(this.textInput);
|
|
10479
|
+
this.dropiChange.emit(this.textInput);
|
|
10297
10480
|
}
|
|
10298
10481
|
handleKeyDown(e) {
|
|
10299
10482
|
if (e.key === 'Enter')
|
|
10300
|
-
this.
|
|
10483
|
+
this.dropiKeyEnter.emit(this.textInput);
|
|
10301
10484
|
if (e.key === 'Escape')
|
|
10302
10485
|
this.open = false;
|
|
10303
10486
|
}
|
|
10304
10487
|
handleClear() {
|
|
10305
10488
|
this.textInput = '';
|
|
10306
10489
|
this.open = false;
|
|
10307
|
-
this.
|
|
10308
|
-
this.
|
|
10490
|
+
this.dropiClear.emit();
|
|
10491
|
+
this.dropiInput.emit('');
|
|
10309
10492
|
}
|
|
10310
10493
|
isSelected(opt) {
|
|
10311
10494
|
return this.selected.some(s => s[this.dataName] === opt[this.dataName]);
|
|
@@ -10324,14 +10507,14 @@ class DropiSearch {
|
|
|
10324
10507
|
this.selected = [opt];
|
|
10325
10508
|
this.open = false;
|
|
10326
10509
|
}
|
|
10327
|
-
this.
|
|
10510
|
+
this.dropiModelChange.emit(this.selected);
|
|
10328
10511
|
}
|
|
10329
10512
|
render() {
|
|
10330
10513
|
const showDropdown = this.open && this.parsedOptions.length > 0;
|
|
10331
|
-
return (hAsync("div", { key: '
|
|
10514
|
+
return (hAsync("div", { key: '594b15b4b31044f4a02376dc773ea36da893d773', class: "search-wrap" }, this.label && hAsync("label", { key: '297a989441ad892715b09421f9a53618851c1b52', class: "search-label" }, this.label), hAsync("div", { key: '6bbaf4ea5c1bc6ff831626117fccde647e68ba19', class: `search-input-row search-input-row--${this.type}` }, this.showIcon && hAsync("dropi-icon", { key: 'e94c3a3895a14e950a018023d5d7a281a230abae', class: "search-icon", name: "Search", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-400" }), hAsync("input", { key: '820bf2f4c9ecaf9907aceaaa08bd3fa309606e90', 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: () => {
|
|
10332
10515
|
if (this.parsedOptions.length)
|
|
10333
10516
|
this.open = true;
|
|
10334
|
-
}, onBlur: () => { setTimeout(() => this.open = false, 150); this.
|
|
10517
|
+
}, onBlur: () => { setTimeout(() => this.open = false, 150); this.dropiBlur.emit(); } }), this.showClear && this.textInput && (hAsync("button", { key: 'e2fd7c3d5fee45a83f030589f58d4fee9f3af69c', class: "search-clear", onClick: () => this.handleClear(), "aria-label": "Limpiar" }, hAsync("dropi-icon", { key: 'a530b0adb83d76b205cd2b22792f14229950836e', name: "Close-small", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-400" })))), showDropdown && (hAsync("div", { key: '8c062d43dccb41c84b2a599ed6d1a5e049a75b65', class: `search-dropdown search-dropdown--${this.position}`, style: { '--dropdown-height': `${this.heightOverlay}px` } }, this.filtered.length === 0 ? (hAsync("div", { class: "search-no-results" }, "Sin resultados")) : (this.filtered.map((opt, i) => (hAsync("div", { class: { 'search-option': true, 'search-option--selected': this.isSelected(opt) }, key: i, onMouseDown: (e) => { e.preventDefault(); this.selectOption(opt); } }, this.multipleSelectModel && hAsync("dropi-checkbox", { checked: this.isSelected(opt) }), hAsync("span", { class: "search-option__label" }, opt[this.dataName])))))))));
|
|
10335
10518
|
}
|
|
10336
10519
|
static get watchers() { return {
|
|
10337
10520
|
"dataToSearch": [{
|
|
@@ -10367,7 +10550,7 @@ class DropiSearch {
|
|
|
10367
10550
|
}; }
|
|
10368
10551
|
}
|
|
10369
10552
|
|
|
10370
|
-
const dropiSelectCss = () => `:host{display:block;width:100%;text-align:left}*,*::before,*::after{box-sizing:border-box}.custom-select{position:relative;width:100%}.custom-select label{display:block;font-size:var(--font-size-xs, 10px);font-weight:var(--font-weight-regular, 400);color:var(--Gray-Gray-600, #475066)}.disabled-label{color:var(--Gray-Gray-400, #858ea6) !important}.asterisk{color:var(--Error-Error-500, #f46a6b)}.dropdown-container{display:flex;align-items:center;gap:4px}.left-label{color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-m, 14px);white-space:nowrap}.select-button{box-sizing:border-box;width:100%;height:40px;padding:0 0.75rem;border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #ffffff);color:var(--Gray-Gray-500, #69738c);font-size:var(--font-size-s, 12px);font-family:inherit;display:flex;justify-content:space-between;align-items:center;text-align:left;cursor:pointer;transition:border-color 0.2s ease;gap:8px}.select-button:focus{outline:none;border-color:var(--Info-Info-500, #50a5f1)}.select-button:disabled{border-color:var(--Gray-Gray-200, #c3c9d9);color:var(--Gray-Gray-400, #858ea6);background-color:var(--Gray-Gray-50, #f7f8fa);cursor:not-allowed}.select-completed{border-color:var(--Gray-Gray-400, #858ea6);color:var(--Gray-Gray-600, #475066)}.select-button-error{border-color:var(--Error-Error-500, #f46a6b) !important}.no-border{border:none !important;color:var(--Gray-Gray-600, #475066);padding:var(--Size-4, 16px);background-color:transparent !important;gap:var(--Size-2, 8px)}.no-border:disabled{background-color:transparent !important}.button-content{display:flex;align-items:center;gap:8px;overflow:hidden;flex:1;min-width:0}.elipsis{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-dropdown-overlay{position:fixed;max-height:250px;overflow-y:auto;list-style:none;padding:var(--Size-4, 16px) var(--Size-4, 16px) var(--Size-3, 12px);margin:0;border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #ffffff);box-shadow:0px 8px 24px rgba(0, 0, 0, 0.12);z-index:
|
|
10553
|
+
const dropiSelectCss = () => `:host{display:block;width:100%;text-align:left}*,*::before,*::after{box-sizing:border-box}.custom-select{position:relative;width:100%}.custom-select label{display:block;font-size:var(--font-size-xs, 10px);font-weight:var(--font-weight-regular, 400);color:var(--Gray-Gray-600, #475066)}.disabled-label{color:var(--Gray-Gray-400, #858ea6) !important}.asterisk{color:var(--Error-Error-500, #f46a6b)}.dropdown-container{display:flex;align-items:center;gap:4px}.left-label{color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-m, 14px);white-space:nowrap}.select-button{box-sizing:border-box;width:100%;height:40px;padding:0 0.75rem;border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #ffffff);color:var(--Gray-Gray-500, #69738c);font-size:var(--font-size-s, 12px);font-family:inherit;display:flex;justify-content:space-between;align-items:center;text-align:left;cursor:pointer;transition:border-color 0.2s ease;gap:8px}.select-button:focus{outline:none;border-color:var(--Info-Info-500, #50a5f1)}.select-button:disabled{border-color:var(--Gray-Gray-200, #c3c9d9);color:var(--Gray-Gray-400, #858ea6);background-color:var(--Gray-Gray-50, #f7f8fa);cursor:not-allowed}.select-completed{border-color:var(--Gray-Gray-400, #858ea6);color:var(--Gray-Gray-600, #475066)}.select-button-error{border-color:var(--Error-Error-500, #f46a6b) !important}.no-border{border:none !important;color:var(--Gray-Gray-600, #475066);padding:var(--Size-4, 16px);background-color:transparent !important;gap:var(--Size-2, 8px)}.no-border:disabled{background-color:transparent !important}.button-content{display:flex;align-items:center;gap:8px;overflow:hidden;flex:1;min-width:0}.elipsis{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-dropdown-overlay{position:fixed;max-height:250px;overflow-y:auto;list-style:none;padding:var(--Size-4, 16px) var(--Size-4, 16px) var(--Size-3, 12px);margin:0;border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #ffffff);box-shadow:0px 8px 24px rgba(0, 0, 0, 0.12);z-index:var(--dropi-z-index-overlay, 11000);animation:dropdown-open 120ms ease-out}.select-dropdown-overlay.within-modal{position:absolute}@keyframes dropdown-open{from{opacity:0;transform:scaleY(0.95);transform-origin:top}to{opacity:1;transform:scaleY(1);transform-origin:top}}.option{box-sizing:border-box;width:100%;min-height:40px;border-radius:var(--Border-2, 8px);padding:var(--Size-3, 12px) var(--Size-4, 16px);border:none;background:transparent;text-align:left;color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-s, 12px);font-family:inherit;cursor:pointer;display:flex;align-items:center;gap:var(--Size-2, 8px);transition:background 0.15s ease}.option:hover:not(:disabled){background:var(--Gray-Gray-50, #f7f8fa)}.option:disabled,.disabled-option{opacity:0.5;cursor:not-allowed}.option.selected-option:not(.option-radio){background:var(--Primary-Primary-50, #fef8f2);color:var(--Primary-Primary-500, #f49a3d)}.option-group-title{padding:var(--Size-3, 12px) var(--Size-4, 16px);font-size:var(--font-size-s, 12px);font-weight:var(--font-weight-medium, 500);color:var(--Gray-Gray-500, #69738c);list-style:none}.option-group{padding-left:var(--Size-6, 32px)}.sticky-search{position:sticky;top:calc(-1 * var(--Size-4, 16px));background:var(--Neutral-White, #ffffff);z-index:10;margin:calc(-1 * var(--Size-4, 16px)) calc(-1 * var(--Size-4, 16px)) 0;padding:var(--Size-2, 8px) var(--Size-4, 16px);border-bottom:1px solid var(--Gray-Gray-100, #e6eaf2);list-style:none}.search-wrapper{display:flex;align-items:center;gap:8px;border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);padding:6px 10px;background:var(--Neutral-White, #ffffff)}.search-input{flex:1;border:none;outline:none;font-size:var(--font-size-s, 12px);font-family:inherit;color:var(--Gray-Gray-700, #32394d);background:transparent}.search-input::placeholder{color:var(--Gray-Gray-400, #858ea6)}.search-clear{background:none;border:none;cursor:pointer;padding:0;display:flex;align-items:center}.multi-checkbox{width:18px;height:18px;min-width:18px;border-radius:var(--Border-1, 4px);border:2px solid var(--Gray-Gray-200, #c3c9d9);display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background 0.15s, border-color 0.15s}.multi-checkbox.checked{background:var(--Primary-Primary-500, #f49a3d);border-color:var(--Primary-Primary-500, #f49a3d)}.option-radio{display:flex;align-items:center;gap:12px}.option-radio.selected-option{border-radius:var(--Border-2, 8px);background:var(--Primary-Primary-50, #fef8f2);color:var(--Primary-Primary-500, #f49a3d)}.option-radio.selected-option .option-second-label{color:var(--Primary-Primary-500, #f49a3d)}.radio{width:20px;height:20px;min-width:20px;border-radius:50%;border:2px solid var(--Gray-Gray-200, #c3c9d9);display:flex;align-items:center;justify-content:center;flex-shrink:0}.radio.selected{border-color:var(--Primary-Primary-500, #f49a3d)}.circle{width:12px;height:12px;border-radius:50%;background:var(--Primary-Primary-500, #f49a3d)}.labels-container{display:flex;justify-content:space-between;width:100%;min-width:0}.option-image{width:24px;height:24px;border-radius:60px;object-fit:cover;flex-shrink:0}.small-image{width:20px;height:20px}.option-image-fallback{width:24px;height:24px;border-radius:60px;background:var(--Primary-Primary-500, #f49a3d);color:white;font-size:13px;font-weight:var(--font-weight-bold);display:flex;justify-content:center;align-items:center;flex-shrink:0}.small-image.option-image-fallback{width:20px;height:20px}.option-second-label{color:var(--Gray-Gray-700, #32394d);font-weight:var(--font-weight-bold);white-space:nowrap}.flag-placeholder{font-size:11px;font-weight:var(--font-weight-semibold);color:var(--Gray-Gray-500, #69738c);flex-shrink:0}.select-helper,.select-helper-error{display:flex;gap:var(--Size-1, 4px);align-items:center;margin-top:var(--Size-1, 4px)}.select-helper span{color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-xs, 10px)}.select-helper-error span{color:var(--Error-Error-500, #f46a6b);font-size:var(--font-size-xs, 10px)}.no-results{padding:var(--Size-3, 12px) var(--Size-4, 16px);color:var(--Gray-Gray-400, #858ea6);font-size:var(--font-size-s, 12px);list-style:none;text-align:center}`;
|
|
10371
10554
|
|
|
10372
10555
|
/**
|
|
10373
10556
|
* @component dropi-select
|
|
@@ -10392,11 +10575,11 @@ const dropiSelectCss = () => `:host{display:block;width:100%;text-align:left}*,*
|
|
|
10392
10575
|
class DropiSelect {
|
|
10393
10576
|
constructor(hostRef) {
|
|
10394
10577
|
registerInstance(this, hostRef);
|
|
10395
|
-
this.
|
|
10396
|
-
this.
|
|
10397
|
-
this.
|
|
10398
|
-
this.
|
|
10399
|
-
this.
|
|
10578
|
+
this.dropiChangeSelect = createEvent(this, "dropiChangeSelect");
|
|
10579
|
+
this.dropiClear = createEvent(this, "dropiClear");
|
|
10580
|
+
this.dropiSearch = createEvent(this, "dropiSearch");
|
|
10581
|
+
this.dropiScrollEnd = createEvent(this, "dropiScrollEnd");
|
|
10582
|
+
this.dropiKeyEnter = createEvent(this, "dropiKeyEnter");
|
|
10400
10583
|
if (hostRef.$hostElement$["s-ei"]) {
|
|
10401
10584
|
this.internals = hostRef.$hostElement$["s-ei"];
|
|
10402
10585
|
}
|
|
@@ -10442,6 +10625,8 @@ class DropiSelect {
|
|
|
10442
10625
|
selectedOption = null;
|
|
10443
10626
|
/** Custom CSS class for the dropdown overlay */
|
|
10444
10627
|
overlayClass = '';
|
|
10628
|
+
/** If true, uses absolute positioning instead of fixed (better for modals with transforms) */
|
|
10629
|
+
withinModal = false;
|
|
10445
10630
|
/**
|
|
10446
10631
|
* Convenience object prop — matches Angular `selectProperties: SelectProperties`.
|
|
10447
10632
|
* Fields: label, placeholder, options, showObligatory, textHelper,
|
|
@@ -10461,15 +10646,15 @@ class DropiSelect {
|
|
|
10461
10646
|
};
|
|
10462
10647
|
// ── Events ───────────────────────────────────────────────────
|
|
10463
10648
|
/** Emitted when an option is selected — matches Angular 'onChangeSelect' */
|
|
10464
|
-
|
|
10649
|
+
dropiChangeSelect;
|
|
10465
10650
|
/** Emitted when the selection is cleared — matches Angular 'onClear' */
|
|
10466
|
-
|
|
10651
|
+
dropiClear;
|
|
10467
10652
|
/** Emitted on search input — matches Angular 'onSearch' */
|
|
10468
|
-
|
|
10653
|
+
dropiSearch;
|
|
10469
10654
|
/** Emitted when the list is scrolled to the end — matches Angular 'scrolledToEnd' */
|
|
10470
|
-
|
|
10655
|
+
dropiScrollEnd;
|
|
10471
10656
|
/** Emitted on Enter key inside search — matches Angular 'onKeyEnter' */
|
|
10472
|
-
|
|
10657
|
+
dropiKeyEnter;
|
|
10473
10658
|
// ── Lifecycle ────────────────────────────────────────────────
|
|
10474
10659
|
componentWillLoad() {
|
|
10475
10660
|
if (this.selectProperties)
|
|
@@ -10550,13 +10735,27 @@ class DropiSelect {
|
|
|
10550
10735
|
this._selectedOption = null;
|
|
10551
10736
|
this.multiSelected = [];
|
|
10552
10737
|
this.internals.setFormValue('');
|
|
10553
|
-
this.
|
|
10738
|
+
this.dropiClear.emit();
|
|
10554
10739
|
}
|
|
10555
10740
|
/** Reset multi-select state and show a placeholder label */
|
|
10556
10741
|
async resetMultiSelect(_placeholder) {
|
|
10557
10742
|
this.multiSelected = [];
|
|
10558
10743
|
this.internals.setFormValue('');
|
|
10559
10744
|
}
|
|
10745
|
+
// ── Scroll & Resize listeners ──────────────────────────────
|
|
10746
|
+
handleWindowScroll(e) {
|
|
10747
|
+
if (!this.isOpen || this.withinModal)
|
|
10748
|
+
return;
|
|
10749
|
+
// When scroll originates inside shadow DOM, e.target is retargeted to the host element
|
|
10750
|
+
if (e.target === this.el)
|
|
10751
|
+
return;
|
|
10752
|
+
this.closeDropdown();
|
|
10753
|
+
}
|
|
10754
|
+
handleWindowResize() {
|
|
10755
|
+
if (this.isOpen && !this.withinModal) {
|
|
10756
|
+
this.closeDropdown();
|
|
10757
|
+
}
|
|
10758
|
+
}
|
|
10560
10759
|
// ── Click outside ────────────────────────────────────────────
|
|
10561
10760
|
handleOutsideClick(e) {
|
|
10562
10761
|
if (this.isOpen && !e.composedPath().includes(this.el)) {
|
|
@@ -10600,8 +10799,8 @@ class DropiSelect {
|
|
|
10600
10799
|
return this.placeholder;
|
|
10601
10800
|
}
|
|
10602
10801
|
// ── Dropdown positioning ─────────────────────────────────────
|
|
10603
|
-
|
|
10604
|
-
if (this.
|
|
10802
|
+
updateDropdownPosition() {
|
|
10803
|
+
if (!this.buttonRef)
|
|
10605
10804
|
return;
|
|
10606
10805
|
const rect = this.buttonRef.getBoundingClientRect();
|
|
10607
10806
|
const viewportHeight = window.innerHeight;
|
|
@@ -10615,6 +10814,18 @@ class DropiSelect {
|
|
|
10615
10814
|
left: `${rect.left}px`,
|
|
10616
10815
|
width: `${rect.width}px`,
|
|
10617
10816
|
};
|
|
10817
|
+
}
|
|
10818
|
+
openDropdown() {
|
|
10819
|
+
if (this.withinModal) {
|
|
10820
|
+
this.dropdownStyle = {
|
|
10821
|
+
top: `${this.el.offsetHeight}px`,
|
|
10822
|
+
left: '0px',
|
|
10823
|
+
width: '100%',
|
|
10824
|
+
};
|
|
10825
|
+
}
|
|
10826
|
+
else {
|
|
10827
|
+
this.updateDropdownPosition();
|
|
10828
|
+
}
|
|
10618
10829
|
this.isOpen = true;
|
|
10619
10830
|
if (this.searchEnabled) {
|
|
10620
10831
|
setTimeout(() => {
|
|
@@ -10644,12 +10855,12 @@ class DropiSelect {
|
|
|
10644
10855
|
this.multiSelected = [...this.multiSelected, option];
|
|
10645
10856
|
}
|
|
10646
10857
|
this.internals.setFormValue(this.multiSelected.map(o => o.id).join(','));
|
|
10647
|
-
this.
|
|
10858
|
+
this.dropiChangeSelect.emit([...this.multiSelected]);
|
|
10648
10859
|
}
|
|
10649
10860
|
else {
|
|
10650
10861
|
this._selectedOption = option;
|
|
10651
10862
|
this.internals.setFormValue(String(option.id));
|
|
10652
|
-
this.
|
|
10863
|
+
this.dropiChangeSelect.emit(option);
|
|
10653
10864
|
this.closeDropdown();
|
|
10654
10865
|
}
|
|
10655
10866
|
}
|
|
@@ -10659,7 +10870,7 @@ class DropiSelect {
|
|
|
10659
10870
|
// ── Search ───────────────────────────────────────────────────
|
|
10660
10871
|
handleSearch(term) {
|
|
10661
10872
|
this.searchTerm = term;
|
|
10662
|
-
this.
|
|
10873
|
+
this.dropiSearch.emit(term);
|
|
10663
10874
|
const lower = term.toLowerCase().trim();
|
|
10664
10875
|
if (!lower) {
|
|
10665
10876
|
this.filteredOptions = [...this.options];
|
|
@@ -10687,7 +10898,7 @@ class DropiSelect {
|
|
|
10687
10898
|
this.hasEmittedScrollEnd = false;
|
|
10688
10899
|
this.lastScrollTop = el.scrollTop;
|
|
10689
10900
|
if (distFromBottom <= threshold && !this.hasEmittedScrollEnd) {
|
|
10690
|
-
this.
|
|
10901
|
+
this.dropiScrollEnd.emit();
|
|
10691
10902
|
this.hasEmittedScrollEnd = true;
|
|
10692
10903
|
setTimeout(() => { this.hasEmittedScrollEnd = false; }, 1000);
|
|
10693
10904
|
}
|
|
@@ -10735,16 +10946,16 @@ class DropiSelect {
|
|
|
10735
10946
|
renderDropdown() {
|
|
10736
10947
|
if (!this.isOpen)
|
|
10737
10948
|
return null;
|
|
10738
|
-
return (hAsync("ul", { class: `select-dropdown-overlay ${this.overlayClass}`, style: this.dropdownStyle, onScroll: (e) => this.handleScroll(e) }, this.searchEnabled && (hAsync("li", { class: "sticky-search" }, hAsync("div", { class: "search-wrapper" }, hAsync("dropi-icon", { name: "Search", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-400" }), hAsync("input", { class: "search-input", type: "text", placeholder: this.placeHolderSearch, value: this.searchTerm, onInput: (e) => this.handleSearch(e.target.value), onKeyDown: (e) => {
|
|
10949
|
+
return (hAsync("ul", { class: `select-dropdown-overlay ${this.overlayClass} ${this.withinModal ? 'within-modal' : ''}`, style: this.dropdownStyle, onScroll: (e) => this.handleScroll(e) }, this.searchEnabled && (hAsync("li", { class: "sticky-search" }, hAsync("div", { class: "search-wrapper" }, hAsync("dropi-icon", { name: "Search", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-400" }), hAsync("input", { class: "search-input", type: "text", placeholder: this.placeHolderSearch, value: this.searchTerm, onInput: (e) => this.handleSearch(e.target.value), onKeyDown: (e) => {
|
|
10739
10950
|
if (e.key === 'Enter')
|
|
10740
|
-
this.
|
|
10951
|
+
this.dropiKeyEnter.emit(e);
|
|
10741
10952
|
} }), this.searchTerm && (hAsync("button", { type: "button", class: "search-clear", onClick: () => this.handleSearch('') }, hAsync("dropi-icon", { name: "Close", iconWidth: "14px", iconHeight: "14px", color: "Gray-Gray-400" })))))), this.isGrouped && this.filteredOptions.map(group => [
|
|
10742
10953
|
hAsync("li", { class: "option-group-title" }, group.category),
|
|
10743
10954
|
...group.options.map(opt => (hAsync("li", { key: opt.id }, hAsync("button", { type: "button", class: { option: true, 'option-group': true, 'disabled-option': !!opt.disabled }, disabled: opt.disabled, onClick: () => this.selectOption(opt) }, opt.preIcon && hAsync("dropi-icon", { name: opt.preIcon, iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-500" }), hAsync("span", { class: "elipsis" }, opt.label))))),
|
|
10744
10955
|
]), !this.isGrouped && this.filteredOptions.map(opt => this.renderOption(opt)), this.filteredOptions.length === 0 && (hAsync("li", { class: "no-results" }, "Sin resultados"))));
|
|
10745
10956
|
}
|
|
10746
10957
|
render() {
|
|
10747
|
-
return (hAsync("div", { key: '
|
|
10958
|
+
return (hAsync("div", { key: '4f34c329d9993926758230f0e9ca0f8d0e57ef6e', class: "custom-select" }, !this.dropdownType && this.label && (hAsync("label", { key: '743013592658ee415d4a9e3db8ec648472a3428e', class: { 'disabled-label': this.disabled } }, this.label, this.showObligatory && !this.disabled && hAsync("span", { key: '56183248733eb18956664c859c8f7d4057f3fa11', class: "asterisk" }, " *"))), hAsync("div", { key: 'c93f45456478ac5419d542512092e877a04f28b7', class: "dropdown-container" }, this.dropdownType && this.label && (hAsync("div", { key: '0632779b9ba71f1fb91944b54b477999f607a3f5', class: "left-label" }, this.label)), this.renderTrigger()), this.textHelper && !this.hasError && (hAsync("div", { key: '3e57fc2b53715abb9800db573119cf77b0333d37', class: "select-helper" }, hAsync("span", { key: 'baf3d1f0ae4d535acae2a08df8d2079996afdcff' }, this.textHelper))), this.hasError && this.errorText && (hAsync("div", { key: '8b25aae92b9370a02fcfd81f50b98df145d3cb0e', class: "select-helper-error" }, hAsync("dropi-icon", { key: '60643f0b7e54f8533dc9fd7dd17715aec59d851c', name: "Warning-circle", iconWidth: "12px", iconHeight: "12px", color: "Error-Error-500" }), hAsync("span", { key: '35bcdfd3c9825cbac269b1085d4c552df694f33a' }, this.errorText))), this.renderDropdown()));
|
|
10748
10959
|
}
|
|
10749
10960
|
static get formAssociated() { return true; }
|
|
10750
10961
|
static get watchers() { return {
|
|
@@ -10785,6 +10996,7 @@ class DropiSelect {
|
|
|
10785
10996
|
"defaultSelectedId": [1032, "default-selected-id"],
|
|
10786
10997
|
"selectedOption": [1040],
|
|
10787
10998
|
"overlayClass": [1, "overlay-class"],
|
|
10999
|
+
"withinModal": [4, "within-modal"],
|
|
10788
11000
|
"selectProperties": [8, "select-properties"],
|
|
10789
11001
|
"isOpen": [32],
|
|
10790
11002
|
"_selectedOption": [32],
|
|
@@ -10797,7 +11009,7 @@ class DropiSelect {
|
|
|
10797
11009
|
"clearSelection": [64],
|
|
10798
11010
|
"resetMultiSelect": [64]
|
|
10799
11011
|
},
|
|
10800
|
-
"$listeners$": [[4, "click", "handleOutsideClick"]],
|
|
11012
|
+
"$listeners$": [[11, "scroll", "handleWindowScroll"], [9, "resize", "handleWindowResize"], [4, "click", "handleOutsideClick"]],
|
|
10801
11013
|
"$lazyBundleId$": "-",
|
|
10802
11014
|
"$attrsToReflect$": [["disabled", "disabled"]]
|
|
10803
11015
|
}; }
|
|
@@ -10813,7 +11025,7 @@ const dropiSidebarCss = () => `:host{display:block}.main-sidebar-container{margi
|
|
|
10813
11025
|
class DropiSidebar {
|
|
10814
11026
|
constructor(hostRef) {
|
|
10815
11027
|
registerInstance(this, hostRef);
|
|
10816
|
-
this.
|
|
11028
|
+
this.dropiIndexChange = createEvent(this, "dropiIndexChange");
|
|
10817
11029
|
}
|
|
10818
11030
|
/**
|
|
10819
11031
|
* Define las propiedades y la cantidad de elementos a renderizar.
|
|
@@ -10823,7 +11035,7 @@ class DropiSidebar {
|
|
|
10823
11035
|
/**
|
|
10824
11036
|
* Evento emitido cuando se selecciona una opción en el menú o un sub-hijo.
|
|
10825
11037
|
*/
|
|
10826
|
-
|
|
11038
|
+
dropiIndexChange;
|
|
10827
11039
|
parsedProperties = [];
|
|
10828
11040
|
watchPropHandler(newValue) {
|
|
10829
11041
|
this.parsedProperties = typeof newValue === 'string' ? JSON.parse(newValue) : (newValue || []);
|
|
@@ -10843,16 +11055,16 @@ class DropiSidebar {
|
|
|
10843
11055
|
}
|
|
10844
11056
|
}
|
|
10845
11057
|
onItemClick(itemClicked) {
|
|
10846
|
-
this.
|
|
11058
|
+
this.dropiIndexChange.emit(itemClicked);
|
|
10847
11059
|
if (itemClicked.subItems && itemClicked.subItems.length > 0) {
|
|
10848
11060
|
this.setExpandedPropertie(itemClicked.id);
|
|
10849
11061
|
}
|
|
10850
11062
|
}
|
|
10851
11063
|
onSubItemClick(itemClicked) {
|
|
10852
|
-
this.
|
|
11064
|
+
this.dropiIndexChange.emit(itemClicked);
|
|
10853
11065
|
}
|
|
10854
11066
|
render() {
|
|
10855
|
-
return (hAsync("div", { key: '
|
|
11067
|
+
return (hAsync("div", { key: '3e45416a116488871747c54c14cbb73ecf1d9a4d', class: "main-sidebar-container" }, this.parsedProperties.map(item => {
|
|
10856
11068
|
return [
|
|
10857
11069
|
/* Item Principal */
|
|
10858
11070
|
hAsync("div", { class: {
|
|
@@ -11104,21 +11316,21 @@ const dropiSwitchCss = () => `:host{display:inline-block}*,*::before,*::after{bo
|
|
|
11104
11316
|
class DropiSwitch {
|
|
11105
11317
|
constructor(hostRef) {
|
|
11106
11318
|
registerInstance(this, hostRef);
|
|
11107
|
-
this.
|
|
11319
|
+
this.dropiChange = createEvent(this, "dropiChange");
|
|
11108
11320
|
}
|
|
11109
11321
|
/** Whether the switch is on */
|
|
11110
11322
|
isChecked = false;
|
|
11111
11323
|
/** Whether the switch is disabled */
|
|
11112
11324
|
disabled = false;
|
|
11113
11325
|
/** Emitted when the toggle state changes */
|
|
11114
|
-
|
|
11326
|
+
dropiChange;
|
|
11115
11327
|
onToggleChange(event) {
|
|
11116
11328
|
const input = event.target;
|
|
11117
11329
|
this.isChecked = input.checked;
|
|
11118
|
-
this.
|
|
11330
|
+
this.dropiChange.emit(this.isChecked);
|
|
11119
11331
|
}
|
|
11120
11332
|
render() {
|
|
11121
|
-
return (hAsync("label", { key: '
|
|
11333
|
+
return (hAsync("label", { key: '977f209e9d6411bf386637c1073dca0f5d1c72f3', class: "toggle-switch" }, hAsync("input", { key: '8deef7c0c079d8d5662bd05372eb74d5cc68429f', type: "checkbox", checked: this.isChecked, disabled: this.disabled, onChange: (e) => this.onToggleChange(e) }), hAsync("span", { key: '2f6dd3b87996271d0c6abddc86697791de4da9b1', class: "slider" })));
|
|
11122
11334
|
}
|
|
11123
11335
|
static get formAssociated() { return true; }
|
|
11124
11336
|
static get style() { return dropiSwitchCss(); }
|
|
@@ -11144,20 +11356,20 @@ const dropiTableCss = () => `:host{display:block;width:100%;min-width:0}*,*::bef
|
|
|
11144
11356
|
class DropiTable {
|
|
11145
11357
|
constructor(hostRef) {
|
|
11146
11358
|
registerInstance(this, hostRef);
|
|
11147
|
-
this.dropiSort = createEvent(this, "dropiSort"
|
|
11148
|
-
this.dropiSelection = createEvent(this, "dropiSelection"
|
|
11149
|
-
this.dropiRowClick = createEvent(this, "dropiRowClick"
|
|
11150
|
-
this.dropiSearch = createEvent(this, "dropiSearch"
|
|
11151
|
-
this.dropiPageChange = createEvent(this, "dropiPageChange"
|
|
11152
|
-
this.dropiPageSizeChange = createEvent(this, "dropiPageSizeChange"
|
|
11153
|
-
this.dropiAction = createEvent(this, "dropiAction"
|
|
11154
|
-
this.
|
|
11155
|
-
this.
|
|
11156
|
-
this.
|
|
11157
|
-
this.
|
|
11158
|
-
this.
|
|
11159
|
-
this.
|
|
11160
|
-
this.expandChildren = createEvent(this, "expandChildren"
|
|
11359
|
+
this.dropiSort = createEvent(this, "dropiSort");
|
|
11360
|
+
this.dropiSelection = createEvent(this, "dropiSelection");
|
|
11361
|
+
this.dropiRowClick = createEvent(this, "dropiRowClick");
|
|
11362
|
+
this.dropiSearch = createEvent(this, "dropiSearch");
|
|
11363
|
+
this.dropiPageChange = createEvent(this, "dropiPageChange");
|
|
11364
|
+
this.dropiPageSizeChange = createEvent(this, "dropiPageSizeChange");
|
|
11365
|
+
this.dropiAction = createEvent(this, "dropiAction");
|
|
11366
|
+
this.dropiRowsSelected = createEvent(this, "dropiRowsSelected");
|
|
11367
|
+
this.dropiActionClick = createEvent(this, "dropiActionClick");
|
|
11368
|
+
this.dropiPageChangeAngular = createEvent(this, "dropiPageChangeAngular");
|
|
11369
|
+
this.dropiSizeChangeAngular = createEvent(this, "dropiSizeChangeAngular");
|
|
11370
|
+
this.dropiSortChangeAngular = createEvent(this, "dropiSortChangeAngular");
|
|
11371
|
+
this.dropiSearchChangeAngular = createEvent(this, "dropiSearchChangeAngular");
|
|
11372
|
+
this.expandChildren = createEvent(this, "expandChildren");
|
|
11161
11373
|
}
|
|
11162
11374
|
/** Column definitions */
|
|
11163
11375
|
columns = [];
|
|
@@ -11230,17 +11442,17 @@ class DropiTable {
|
|
|
11230
11442
|
dropiAction;
|
|
11231
11443
|
// ── Angular-parity events ────────────────────────────────────
|
|
11232
11444
|
/** Matches Angular `rowsSelected` */
|
|
11233
|
-
|
|
11445
|
+
dropiRowsSelected;
|
|
11234
11446
|
/** Matches Angular `actionClicked` */
|
|
11235
|
-
|
|
11447
|
+
dropiActionClick;
|
|
11236
11448
|
/** Matches Angular `onPageChange` */
|
|
11237
|
-
|
|
11449
|
+
dropiPageChangeAngular;
|
|
11238
11450
|
/** Matches Angular `onSizeChange` */
|
|
11239
|
-
|
|
11451
|
+
dropiSizeChangeAngular;
|
|
11240
11452
|
/** Matches Angular `onSortChange` */
|
|
11241
|
-
|
|
11453
|
+
dropiSortChangeAngular;
|
|
11242
11454
|
/** Matches Angular `onSearchChange` */
|
|
11243
|
-
|
|
11455
|
+
dropiSearchChangeAngular;
|
|
11244
11456
|
/** Matches Angular `expandChildren` */
|
|
11245
11457
|
expandChildren;
|
|
11246
11458
|
columnsChanged(val) {
|
|
@@ -11332,7 +11544,7 @@ class DropiTable {
|
|
|
11332
11544
|
this.sortAsc = true;
|
|
11333
11545
|
}
|
|
11334
11546
|
this.dropiSort.emit({ key: this.sortKey, dir: this.sortDir });
|
|
11335
|
-
this.
|
|
11547
|
+
this.dropiSortChangeAngular.emit({ key: this.sortKey, dir: this.sortDir });
|
|
11336
11548
|
}
|
|
11337
11549
|
toggleRow(idx) {
|
|
11338
11550
|
const next = new Set(this.selectedKeys);
|
|
@@ -11343,13 +11555,13 @@ class DropiTable {
|
|
|
11343
11555
|
this.selectedKeys = next;
|
|
11344
11556
|
const selected = Array.from(next);
|
|
11345
11557
|
this.dropiSelection.emit(selected);
|
|
11346
|
-
this.
|
|
11558
|
+
this.dropiRowsSelected.emit(selected.map(i => this.pagedRows[i]));
|
|
11347
11559
|
}
|
|
11348
11560
|
toggleAll(checked) {
|
|
11349
11561
|
this.selectedKeys = checked ? new Set(this.pagedRows.map((_, i) => i)) : new Set();
|
|
11350
11562
|
const selected = Array.from(this.selectedKeys);
|
|
11351
11563
|
this.dropiSelection.emit(selected);
|
|
11352
|
-
this.
|
|
11564
|
+
this.dropiRowsSelected.emit(selected.map(i => this.pagedRows[i]));
|
|
11353
11565
|
}
|
|
11354
11566
|
renderCellValue(value) {
|
|
11355
11567
|
if (value === null || value === undefined)
|
|
@@ -11370,6 +11582,14 @@ class DropiTable {
|
|
|
11370
11582
|
return (hAsync("div", { class: "image-label" }, hAsync("div", { class: "img-container" }, hAsync("img", { src: value.imageUrl, alt: value.value })), hAsync("span", null, value.value)));
|
|
11371
11583
|
case 'textWrap':
|
|
11372
11584
|
return hAsync("div", { class: "text-wrap-label", style: { maxWidth: value.maxWidth || '220px' } }, value.value);
|
|
11585
|
+
case 'textCopy':
|
|
11586
|
+
case 'tokenAction':
|
|
11587
|
+
return (hAsync("div", { class: "text-icon-label", style: { display: 'flex', alignItems: 'center' } }, hAsync("div", { style: { display: 'flex', alignItems: 'center' } }, hAsync("span", { style: { overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' } }, value.value)), hAsync("div", { style: { display: 'flex', justifyContent: 'flex-start', paddingLeft: '0.5rem' } }, hAsync("dropi-icon", { name: value.revealed ? "Clon" : "Eye", iconWidth: "18px", iconHeight: "18px", color: "Gray-Gray-500", style: { cursor: 'pointer', flexShrink: '0' }, onClick: (e) => {
|
|
11588
|
+
e.stopPropagation();
|
|
11589
|
+
const actionId = value.revealed ? 'copy' : 'reveal';
|
|
11590
|
+
this.dropiAction.emit({ row: value.row, action: { id: actionId, value: value.value } });
|
|
11591
|
+
this.dropiActionClick.emit({ row: value.row, action: { id: actionId, value: value.value } });
|
|
11592
|
+
} }))));
|
|
11373
11593
|
default:
|
|
11374
11594
|
return hAsync("span", { class: "table-labels" }, String(value.value ?? '—'));
|
|
11375
11595
|
}
|
|
@@ -11384,10 +11604,10 @@ class DropiTable {
|
|
|
11384
11604
|
const allSelected = rows.length > 0 && this.selectedKeys.size === rows.length;
|
|
11385
11605
|
const hasActions = this.parsedRowActions.length > 0;
|
|
11386
11606
|
const cols = this.visibleColumns;
|
|
11387
|
-
return (hAsync("div", { class: "table-container" }, (this.showSearch || this.showColumnSelector || this.tableTitle) && (hAsync("div", { class: "search-container" }, this.tableTitle && hAsync("div", { class: "table-title Body-L-Bold" }, this.tableTitle), hAsync("div", { class: `search-actions${this.showSearch ? '' : ' only-filter'}` }, this.showSearch && (hAsync("dropi-input", { placeholder: "Buscar", value: this.searchTerm,
|
|
11607
|
+
return (hAsync("div", { class: "table-container" }, (this.showSearch || this.showColumnSelector || this.tableTitle) && (hAsync("div", { class: "search-container" }, this.tableTitle && hAsync("div", { class: "table-title Body-L-Bold" }, this.tableTitle), hAsync("div", { class: `search-actions${this.showSearch ? '' : ' only-filter'}` }, this.showSearch && (hAsync("dropi-input", { placeholder: "Buscar", value: this.searchTerm, onDropiInput: (e) => {
|
|
11388
11608
|
this.searchTerm = e.detail;
|
|
11389
11609
|
this.dropiSearch.emit(e.detail);
|
|
11390
|
-
this.
|
|
11610
|
+
this.dropiSearchChangeAngular.emit(e.detail);
|
|
11391
11611
|
} })), this.showColumnSelector && (hAsync("div", { class: "table-tools" }, hAsync("div", { class: "column-selector-container" }, hAsync("button", { class: "column-selector-btn", onClick: () => this.showColumnMenu = !this.showColumnMenu }, hAsync("dropi-icon", { name: "list-table", iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-500" })), this.showColumnMenu && (hAsync("div", { class: "column-selector-menu" }, this.parsedColumns.map(col => (hAsync("div", { class: "column-selector-option", onClick: () => {
|
|
11392
11612
|
const next = new Set(this.hiddenColumns);
|
|
11393
11613
|
if (next.has(col.key))
|
|
@@ -11399,15 +11619,15 @@ class DropiTable {
|
|
|
11399
11619
|
this.hiddenColumns = this.hiddenColumns.size === 0
|
|
11400
11620
|
? new Set(this.parsedColumns.map(c => c.key))
|
|
11401
11621
|
: new Set();
|
|
11402
|
-
} }, hAsync("dropi-checkbox", { checked: this.hiddenColumns.size === 0 }), hAsync("span", null, "Mostrar / Ocultar todo"))))))))))), hAsync("div", { class: `table-wrapper${hasActions ? ' has-sticky-actions' : ''}` }, hAsync("table", { class: `custom-table${this.showCheckbox ? ' has-checkbox' : ''}` }, hAsync("thead", null, hAsync("tr", null, this.showCheckbox && (hAsync("th", { class: "checkbox-header" }, hAsync("dropi-checkbox", { checked: allSelected,
|
|
11622
|
+
} }, hAsync("dropi-checkbox", { checked: this.hiddenColumns.size === 0 }), hAsync("span", null, "Mostrar / Ocultar todo"))))))))))), hAsync("div", { class: `table-wrapper${hasActions ? ' has-sticky-actions' : ''}` }, hAsync("table", { class: `custom-table${this.showCheckbox ? ' has-checkbox' : ''}` }, hAsync("thead", null, hAsync("tr", null, this.showCheckbox && (hAsync("th", { class: "checkbox-header" }, hAsync("dropi-checkbox", { checked: allSelected, onDropiChange: (e) => this.toggleAll(e.detail) }))), cols.map(col => (hAsync("th", { class: { sortable: !!col.sortable, 'low-opacity': !!col.disabledColumn, 'highlight-column': !!col.highlightColumn }, style: { textAlign: col.align || 'center', minWidth: col.minWidth, maxWidth: col.maxWidth }, onClick: () => this.handleSort(col) }, hAsync("div", { class: `headers-container${col.align === 'left' ? ' align-left' : col.align === 'right' ? ' align-right' : ''}` }, hAsync("div", { class: `headers${col.align === 'left' ? ' align-left' : col.align === 'right' ? ' align-right' : ''}` }, hAsync("span", null, col.label), col.sortable && (hAsync("div", { class: "order-icons" }, hAsync("dropi-icon", { name: "Caret-up", iconWidth: "12px", iconHeight: "12px", color: this.sortAsc ? 'Gray-Gray-500' : 'Gray-Gray-200' }), hAsync("dropi-icon", { name: "Caret-down", iconWidth: "12px", iconHeight: "12px", color: !this.sortAsc ? 'Gray-Gray-500' : 'Gray-Gray-200' })))))))), hasActions && hAsync("th", { class: "actions-header actions" }, "Acciones"))), hAsync("tbody", null, this.loading ? (Array.from({ length: 5 }).map(() => (hAsync("tr", { class: "table-row" }, this.showCheckbox && hAsync("td", null, hAsync("div", { class: "skeleton skeleton--sm" })), cols.map(() => hAsync("td", null, hAsync("div", { class: "skeleton" }))), hasActions && hAsync("td", null))))) : rows.length === 0 ? (hAsync("tr", null, hAsync("td", { colSpan: cols.length + (this.showCheckbox ? 1 : 0) + (hasActions ? 1 : 0) }, hAsync("div", { class: "empty-table" }, hAsync("div", { class: "empty-message-container" }, this.emptyMessage))))) : (rows.map((row, i) => (hAsync("tr", { class: "table-row", onClick: () => this.dropiRowClick.emit({ row, index: i }) }, this.showCheckbox && (hAsync("td", { onClick: (e) => e.stopPropagation() }, hAsync("dropi-checkbox", { checked: this.selectedKeys.has(i), onDropiChange: () => this.toggleRow(i) }))), cols.map(col => (hAsync("td", { class: { 'low-opacity': !!col.disabledColumn, 'highlight-column': !!col.highlightColumn }, style: { minWidth: col.minWidth, maxWidth: col.maxWidth, overflow: col.maxWidth ? 'hidden' : undefined } }, hAsync("div", { class: "cell-content", style: { textAlign: col.align || 'center' } }, this.renderCellValue(row[col.key]))))), hasActions && (hAsync("td", { class: "action-button actions", onClick: (e) => e.stopPropagation() }, this.parsedRowActions.length > 2 ? (hAsync("div", { style: { display: "flex", justifyContent: "center", width: "100%" } }, hAsync("dropi-icon", { class: "action-icon", name: "Menu-dots-vertical", iconWidth: "24px", iconHeight: "24px", color: "Gray-Gray-500", onClick: () => this.openActionRow = this.openActionRow === i ? -1 : i }), this.openActionRow === i && (hAsync("div", { class: "actions-menu" }, this.parsedRowActions.map(action => (hAsync("div", { class: "action-item", onClick: () => { this.openActionRow = -1; this.dropiAction.emit({ row, action }); this.dropiActionClick.emit({ row, action }); } }, hAsync("dropi-icon", { name: action.icon, iconWidth: "20px", iconHeight: "20px", color: action.iconColor || 'Gray-Gray-500' }), action.label))))))) : (hAsync("div", { class: "short-actions" }, this.parsedRowActions.map(action => (hAsync("dropi-icon", { class: "action-icon", name: action.icon, iconWidth: "24px", iconHeight: "24px", color: action.iconColor || 'Gray-Gray-500', onClick: () => { this.dropiAction.emit({ row, action }); this.dropiActionClick.emit({ row, action }); } })))))))))))))), this.showPaginator && (hAsync("div", { class: "pagination" }, hAsync("div", { class: "page-size-selector" }, hAsync("label", null, "Mostrar"), hAsync("select", { onChange: (e) => {
|
|
11403
11623
|
this.pageSize = Number(e.target.value);
|
|
11404
11624
|
this.currentPage = 1;
|
|
11405
11625
|
this.dropiPageSizeChange.emit(this.pageSize);
|
|
11406
|
-
this.
|
|
11407
|
-
} }, this.parsedPageSizes.map(s => (hAsync("option", { value: s, selected: this.pageSize === s }, s))))), hAsync("dropi-paginator", { totalPages: this.totalPages, currentPage: this.currentPage,
|
|
11626
|
+
this.dropiSizeChangeAngular.emit(this.pageSize);
|
|
11627
|
+
} }, this.parsedPageSizes.map(s => (hAsync("option", { value: s, selected: this.pageSize === s }, s))))), hAsync("dropi-paginator", { totalPages: this.totalPages, currentPage: this.currentPage, onDropiPageChange: (e) => {
|
|
11408
11628
|
this.currentPage = e.detail;
|
|
11409
11629
|
this.dropiPageChange.emit(e.detail);
|
|
11410
|
-
this.
|
|
11630
|
+
this.dropiPageChangeAngular.emit(e.detail);
|
|
11411
11631
|
} })))));
|
|
11412
11632
|
}
|
|
11413
11633
|
static get watchers() { return {
|
|
@@ -11491,7 +11711,7 @@ const dropiTabsCss = () => `:host{display:block;width:100%}*,*::before,*::after{
|
|
|
11491
11711
|
class DropiTabs {
|
|
11492
11712
|
constructor(hostRef) {
|
|
11493
11713
|
registerInstance(this, hostRef);
|
|
11494
|
-
this.
|
|
11714
|
+
this.dropiIndexChange = createEvent(this, "dropiIndexChange");
|
|
11495
11715
|
}
|
|
11496
11716
|
/** Array of TabItem or JSON string (matches Angular 'configuration') */
|
|
11497
11717
|
configuration = [];
|
|
@@ -11502,7 +11722,7 @@ class DropiTabs {
|
|
|
11502
11722
|
/** Stop tab action programmatically */
|
|
11503
11723
|
stopAction = false;
|
|
11504
11724
|
/** Emitted on tab click. e.detail = TabItem */
|
|
11505
|
-
|
|
11725
|
+
dropiIndexChange;
|
|
11506
11726
|
parsedTabs = [];
|
|
11507
11727
|
tabsChanged(val) {
|
|
11508
11728
|
this.parsedTabs = typeof val === 'string' ? JSON.parse(val) : (val ?? []);
|
|
@@ -11514,10 +11734,10 @@ class DropiTabs {
|
|
|
11514
11734
|
if (tab.disabled || this.stopAction)
|
|
11515
11735
|
return;
|
|
11516
11736
|
this.activeTab = tab.id;
|
|
11517
|
-
this.
|
|
11737
|
+
this.dropiIndexChange.emit(tab);
|
|
11518
11738
|
}
|
|
11519
11739
|
render() {
|
|
11520
|
-
return (hAsync("div", { key: '
|
|
11740
|
+
return (hAsync("div", { key: '5e8facb7611d02c9b7fad97f676a50ce419c6852', class: "tabs-container", role: "tablist" }, this.parsedTabs.map(tab => {
|
|
11521
11741
|
const isActive = tab.id === this.activeTab;
|
|
11522
11742
|
return (hAsync("div", { role: "tab", "aria-selected": String(isActive), class: { 'tab-item': true, 'tab-item--active': isActive && !tab.disabled, 'tab-item--disabled': !!tab.disabled }, onClick: () => this.handleClick(tab) }, hAsync("span", { class: "tab-label-row" }, hAsync("span", { class: "tab-label" }, tab.label), tab.counter !== undefined && tab.counter !== null && (hAsync("span", { class: { 'tab-counter': true, 'tab-counter--active': isActive } }, tab.counter))), this.showIcon && (tab.completed
|
|
11523
11743
|
? hAsync("dropi-icon", { name: "Check-circle", iconWidth: "12px", iconHeight: "12px", color: "Success-Success-500" })
|
|
@@ -11546,7 +11766,7 @@ class DropiTabs {
|
|
|
11546
11766
|
}; }
|
|
11547
11767
|
}
|
|
11548
11768
|
|
|
11549
|
-
const dropiTagCss = () => `:host{display:inline-flex}*,*::before,*::after{box-sizing:border-box}.container-chips{display:
|
|
11769
|
+
const dropiTagCss = () => `:host{display:inline-flex}*,*::before,*::after{box-sizing:border-box}.container-chips{display:flex;align-items:center;justify-content:center}.tags{display:inline-flex;padding:4px 8px;justify-content:center;align-items:center;gap:4px;border-radius:var(--Border-5, 9999px);overflow:hidden;text-align:center;text-overflow:ellipsis;font-size:var(--font-size-xs, 12px);font-weight:var(--font-weight-medium, 500);line-height:var(--lineheight-large, 150%);animation:fade-in 200ms ease-out}.tags.dot-variant,.tags.text-variant{padding:0;gap:8px;background-color:transparent !important;line-height:normal}.dot-indicator{width:10px;height:10px;border-radius:50%;flex-shrink:0}@keyframes fade-in{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:scale(1)}}`;
|
|
11550
11770
|
|
|
11551
11771
|
/**
|
|
11552
11772
|
* @component dropi-tag
|
|
@@ -11556,6 +11776,8 @@ class DropiTag {
|
|
|
11556
11776
|
constructor(hostRef) {
|
|
11557
11777
|
registerInstance(this, hostRef);
|
|
11558
11778
|
}
|
|
11779
|
+
/** tag (default) | dot (status dot + text) | text (colored text only) */
|
|
11780
|
+
variant = 'tag';
|
|
11559
11781
|
/** primary (filled) | secondary (soft) */
|
|
11560
11782
|
type = 'primary';
|
|
11561
11783
|
/** Color state of the tag */
|
|
@@ -11584,11 +11806,25 @@ class DropiTag {
|
|
|
11584
11806
|
}
|
|
11585
11807
|
get textColor() {
|
|
11586
11808
|
const base = this.colorMap[this.state];
|
|
11809
|
+
if (this.variant === 'text')
|
|
11810
|
+
return this.dotColor;
|
|
11811
|
+
if (this.variant === 'dot' || this.showIcon) {
|
|
11812
|
+
return 'var(--Gray-Gray-500)';
|
|
11813
|
+
}
|
|
11587
11814
|
if (this.type === 'primary')
|
|
11588
11815
|
return `var(--Neutral-White)`;
|
|
11589
11816
|
const shade = this.state === 'default' ? '-500' : '-700';
|
|
11590
11817
|
return `var(--${base}${shade})`;
|
|
11591
11818
|
}
|
|
11819
|
+
get dotColor() {
|
|
11820
|
+
const base = this.colorMap[this.state];
|
|
11821
|
+
return `var(--${base}-500)`;
|
|
11822
|
+
}
|
|
11823
|
+
get fontWeight() {
|
|
11824
|
+
if (this.type === 'secondary' && !this.showIcon)
|
|
11825
|
+
return '300';
|
|
11826
|
+
return '500';
|
|
11827
|
+
}
|
|
11592
11828
|
get iconColor() {
|
|
11593
11829
|
if (this.type === 'primary')
|
|
11594
11830
|
return 'Neutral-White';
|
|
@@ -11600,7 +11836,16 @@ class DropiTag {
|
|
|
11600
11836
|
return typeof this.text === 'string' && this.text.trim().length > 0;
|
|
11601
11837
|
}
|
|
11602
11838
|
render() {
|
|
11603
|
-
return (hAsync("div", { key: '
|
|
11839
|
+
return (hAsync("div", { key: '6a50111c0057b7ef3380dde9f639e9409b7fbea9', class: "container-chips" }, hAsync("div", { key: 'f2f78c3682aa2e8bef5f3f1b43a1729cae8ae293', class: {
|
|
11840
|
+
tags: true,
|
|
11841
|
+
'icon-only': this.showIcon && !this.hasContent,
|
|
11842
|
+
'dot-variant': this.variant === 'dot',
|
|
11843
|
+
'text-variant': this.variant === 'text'
|
|
11844
|
+
}, style: {
|
|
11845
|
+
backgroundColor: (this.variant === 'dot' || this.variant === 'text') ? 'transparent' : this.bgColor,
|
|
11846
|
+
color: this.textColor,
|
|
11847
|
+
fontWeight: this.fontWeight
|
|
11848
|
+
} }, this.variant === 'dot' && (hAsync("div", { key: '5364569230575b79b1160e06cc29046220bdf198', class: "dot-indicator", style: { backgroundColor: this.dotColor } })), this.showIcon && this.icon && (hAsync("dropi-icon", { key: '8ea74f9ad58e7892405e3e748289b71456945de6', class: "file-icon", name: this.icon, iconWidth: "16px", iconHeight: "16px", color: this.variant === 'dot' ? 'Gray-Gray-500' : this.iconColor })), this.hasContent && hAsync("span", { key: '99409549735fd48cf0a40e411f1f236716e53939' }, this.text))));
|
|
11604
11849
|
}
|
|
11605
11850
|
static get watchers() { return {
|
|
11606
11851
|
"type": [{
|
|
@@ -11608,6 +11853,9 @@ class DropiTag {
|
|
|
11608
11853
|
}],
|
|
11609
11854
|
"state": [{
|
|
11610
11855
|
"propsChanged": 0
|
|
11856
|
+
}],
|
|
11857
|
+
"variant": [{
|
|
11858
|
+
"propsChanged": 0
|
|
11611
11859
|
}]
|
|
11612
11860
|
}; }
|
|
11613
11861
|
static get style() { return dropiTagCss(); }
|
|
@@ -11615,6 +11863,7 @@ class DropiTag {
|
|
|
11615
11863
|
"$flags$": 521,
|
|
11616
11864
|
"$tagName$": "dropi-tag",
|
|
11617
11865
|
"$members$": {
|
|
11866
|
+
"variant": [513],
|
|
11618
11867
|
"type": [513],
|
|
11619
11868
|
"state": [513],
|
|
11620
11869
|
"showIcon": [4, "show-icon"],
|
|
@@ -11623,7 +11872,7 @@ class DropiTag {
|
|
|
11623
11872
|
},
|
|
11624
11873
|
"$listeners$": undefined,
|
|
11625
11874
|
"$lazyBundleId$": "-",
|
|
11626
|
-
"$attrsToReflect$": [["type", "type"], ["state", "state"], ["icon", "icon"], ["text", "text"]]
|
|
11875
|
+
"$attrsToReflect$": [["variant", "variant"], ["type", "type"], ["state", "state"], ["icon", "icon"], ["text", "text"]]
|
|
11627
11876
|
}; }
|
|
11628
11877
|
}
|
|
11629
11878
|
|
|
@@ -11640,7 +11889,7 @@ class DropiTagTypeProduct {
|
|
|
11640
11889
|
/** Label text. Default: VARIABLE */
|
|
11641
11890
|
label = 'VARIABLE';
|
|
11642
11891
|
render() {
|
|
11643
|
-
return hAsync("div", { key: '
|
|
11892
|
+
return hAsync("div", { key: '6d27b4fc40c66e6bfd8400e4727aa9a9c2e8dc8c', class: "type-variation" }, this.label);
|
|
11644
11893
|
}
|
|
11645
11894
|
static get style() { return dropiTagTypeProductCss(); }
|
|
11646
11895
|
static get cmpMeta() { return {
|
|
@@ -11665,10 +11914,10 @@ const dropiTextAreaCss = () => `:host{display:flex;flex-direction:column;width:1
|
|
|
11665
11914
|
class DropiTextArea {
|
|
11666
11915
|
constructor(hostRef) {
|
|
11667
11916
|
registerInstance(this, hostRef);
|
|
11668
|
-
this.dropiInput = createEvent(this, "dropiInput"
|
|
11669
|
-
this.dropiChange = createEvent(this, "dropiChange"
|
|
11670
|
-
this.dropiFocus = createEvent(this, "dropiFocus"
|
|
11671
|
-
this.dropiBlur = createEvent(this, "dropiBlur"
|
|
11917
|
+
this.dropiInput = createEvent(this, "dropiInput");
|
|
11918
|
+
this.dropiChange = createEvent(this, "dropiChange");
|
|
11919
|
+
this.dropiFocus = createEvent(this, "dropiFocus");
|
|
11920
|
+
this.dropiBlur = createEvent(this, "dropiBlur");
|
|
11672
11921
|
if (hostRef.$hostElement$["s-ei"]) {
|
|
11673
11922
|
this.internals = hostRef.$hostElement$["s-ei"];
|
|
11674
11923
|
}
|
|
@@ -11770,12 +12019,12 @@ class DropiTextArea {
|
|
|
11770
12019
|
render() {
|
|
11771
12020
|
const showAsterisk = this.required && this.showObligatoryAsterisk && !this.disabled;
|
|
11772
12021
|
const showHelper = this.textHelper || this.isInvalid;
|
|
11773
|
-
return (hAsync("div", { key: '
|
|
12022
|
+
return (hAsync("div", { key: 'cd317dd0e813d6ce6ae659b56ddac00fa822e68e', class: "textarea-wrapper" }, this.label && (hAsync("label", { key: '220344751b55843a6d1ee3a8188b53e8d0fc5d34', htmlFor: this.resolvedId, style: { color: this.disabled ? 'var(--Gray-Gray-400)' : 'var(--Gray-Gray-600)' } }, this.label, showAsterisk && hAsync("span", { key: '3ddb9f3adac61fa8990f81e16ae6334de8552849', class: "asterisk" }, " *"))), hAsync("div", { key: '1a6d603bd7cfe7e6b37fd20c4dad6c7bc2bf0278', class: "textarea-container" }, hAsync("textarea", { key: '3eb838fece4e03cc68be9e01eeb1e02709a926f9', id: this.resolvedId, class: {
|
|
11774
12023
|
'form-control': true,
|
|
11775
12024
|
'Body-M-Regular': true,
|
|
11776
12025
|
'form-control-valid': !this.isInvalid && this.touched && !!this.value,
|
|
11777
12026
|
'form-control-invalid': this.isInvalid,
|
|
11778
|
-
}, rows: this.rows, placeholder: this.placeholder, maxLength: this.maxLength, minLength: this.minLength, disabled: this.disabled, required: this.required, style: { resize: this.resize }, onInput: (e) => this.handleInput(e), onFocus: () => this.dropiFocus.emit(), onBlur: () => this.handleBlur() }, this.value), this.maxLength > 0 && (hAsync("div", { key: '
|
|
12027
|
+
}, rows: this.rows, placeholder: this.placeholder, maxLength: this.maxLength, minLength: this.minLength, disabled: this.disabled, required: this.required, style: { resize: this.resize }, onInput: (e) => this.handleInput(e), onFocus: () => this.dropiFocus.emit(), onBlur: () => this.handleBlur() }, this.value), this.maxLength > 0 && (hAsync("div", { key: '49dfd2cb7fe373769a945c405e58e7716e9489f2', class: "char-counter" }, this.charCount, "/", this.maxLength))), showHelper && (hAsync("div", { key: 'e1388e815c35baab42466029ae17914da28c9294', class: "form-control-helper" }, this.isInvalid && (hAsync("dropi-icon", { key: '39aebce7cca327e9c535ce918d053eb5f106f734', name: "Warning-circle", iconWidth: "12px", iconHeight: "12px", color: "Error-Error-500" })), hAsync("span", { key: 'ae255ca0db1e35e0069ef8b68fa901bced14ba8a', class: { 'invalid-color': this.isInvalid }, style: { color: this.disabled ? 'var(--Gray-Gray-400)' : undefined } }, this.textHelper)))));
|
|
11779
12028
|
}
|
|
11780
12029
|
static get formAssociated() { return true; }
|
|
11781
12030
|
static get watchers() { return {
|
|
@@ -11839,7 +12088,7 @@ class DropiTimeLine {
|
|
|
11839
12088
|
}
|
|
11840
12089
|
render() {
|
|
11841
12090
|
const steps = this.parsedSteps;
|
|
11842
|
-
return (hAsync("div", { key: '
|
|
12091
|
+
return (hAsync("div", { key: '22a2f8ff7a33e892096c3aaf381e23b110ec6b0a', class: "timeline" }, steps.map((step, i) => {
|
|
11843
12092
|
const isLast = i === steps.length - 1;
|
|
11844
12093
|
return (hAsync("div", { class: { 'tl-step': true, [`tl-step--${step.status}`]: true }, key: step.id || i }, hAsync("div", { class: "tl-step__marker" }, hAsync("div", { class: "tl-step__icon" }, step.icon ? (hAsync("dropi-icon", { name: step.icon, iconWidth: "16px", iconHeight: "16px", color: step.status === 'done' ? 'Neutral-White' : step.status === 'active' ? 'Primary-Primary-500' : 'Gray-Gray-400' })) : (hAsync("span", { class: "tl-step__dot" }))), !isLast && hAsync("div", { class: "tl-step__line" })), hAsync("div", { class: "tl-step__content" }, hAsync("span", { class: "tl-step__label" }, step.label), step.subtitle && hAsync("span", { class: "tl-step__subtitle" }, step.subtitle))));
|
|
11845
12094
|
})));
|
|
@@ -11857,7 +12106,7 @@ class DropiTimeLine {
|
|
|
11857
12106
|
}; }
|
|
11858
12107
|
}
|
|
11859
12108
|
|
|
11860
|
-
const dropiToastCss = () => `:host{display:contents}*,*::before,*::after{box-sizing:border-box}.toast-container{position:fixed;z-index:
|
|
12109
|
+
const dropiToastCss = () => `:host{display:contents}*,*::before,*::after{box-sizing:border-box}.toast-container{position:fixed;z-index:var(--dropi-z-index-toast, 12000);display:flex;flex-direction:column;gap:8px;max-width:380px;width:100%;pointer-events:none}.toast-container--top-right{top:80px;right:0;padding:var(--Size-2, 8px)}.toast-container--top-left{top:80px;left:0;padding:var(--Size-2, 8px)}.toast-container--bottom-right{bottom:24px;right:0;padding:var(--Size-2, 8px);flex-direction:column-reverse}.toast-container--bottom-left{bottom:24px;left:0;padding:var(--Size-2, 8px);flex-direction:column-reverse}.toast-container--top-center{top:80px;left:50%;transform:translateX(-50%);padding:var(--Size-2, 8px)}.toast-container--bottom-center{bottom:24px;left:50%;transform:translateX(-50%);padding:var(--Size-2, 8px);flex-direction:column-reverse}.toast-wrapper{pointer-events:auto;animation:toast-in 0.28s ease;transition:opacity 0.28s ease, transform 0.28s ease, max-height 0.32s ease;overflow:hidden;max-height:200px}.toast-wrapper--leaving{opacity:0;transform:translateX(20px);max-height:0;pointer-events:none}@keyframes toast-in{from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}.toast{position:relative;display:flex;align-items:flex-start;border-radius:var(--Border-2,8px);background:var(--Neutral-White, #ffffff);box-shadow:0.5px -1px 7px 0px rgba(0, 0, 0, 0.06), 0px 4px 20px 0px rgba(0, 0, 0, 0.12);border-left:var(--Size-2, 8px) solid;overflow:hidden;min-width:300px}.toast--success{border-color:var(--Success-Success-500,#34c38f)}.toast--error{border-color:var(--Error-Error-500,#f46a6b)}.toast--warn{border-color:var(--Warning-Warning-500,#f1b44c)}.toast--info{border-color:var(--Info-Info-500,#50a5f1)}.toast-content{display:flex;flex-direction:row;align-items:flex-start;padding:var(--Size-5) var(--Size-5) var(--Size-5) calc(var(--Size-5) - var(--Size-2, 8px));gap:var(--Size-4, 16px)}.lottie-img{width:50px;height:50px;flex-shrink:0;display:flex;align-items:center;justify-content:center;position:relative}.lottie-player-container{position:absolute;top:0;left:0;width:100%;height:100%;z-index:2;display:flex;align-items:center;justify-content:center}lottie-player{width:100%;height:100%;display:block}.info-container{flex:1;min-width:0;align-self:center;display:flex;flex-direction:column;gap:var(--Size-1, 4px)}.title{margin:0;font-size:var(--font-size-l,18px);font-weight:var(--font-weight-bold,700);color:var(--Gray-Gray-700,#32394d);line-height:1.1;text-align:left;max-width:250px}.description{margin:0;font-size:var(--font-size-s,14px);color:var(--Gray-Gray-500, #69738c);line-height:1.4;text-align:left;max-width:250px}.toast-close{position:absolute;top:18px;right:10px;background:none;border:none;cursor:pointer;padding:0;flex-shrink:0;display:flex;align-items:center;justify-content:center}.toast-close:hover{opacity:0.7}`;
|
|
11861
12110
|
|
|
11862
12111
|
/**
|
|
11863
12112
|
* @component dropi-toast
|
|
@@ -11911,7 +12160,7 @@ class DropiToast {
|
|
|
11911
12160
|
return `<lottie-player src="${this.lottieMap[severity]}" background="transparent" speed="1" loop autoplay></lottie-player>`;
|
|
11912
12161
|
}
|
|
11913
12162
|
render() {
|
|
11914
|
-
return (hAsync("div", { key: '
|
|
12163
|
+
return (hAsync("div", { key: '962972e53e84a968b538feb28c2588f9051276ff', class: `toast-container toast-container--${this.position}` }, (this.items ?? []).map(item => (hAsync("div", { key: item.msg.id, class: { 'toast-wrapper': true, 'toast-wrapper--leaving': item.leaving } }, hAsync("div", { class: `toast toast--${item.msg.severity}` }, hAsync("div", { class: "toast-content" }, hAsync("div", { class: "lottie-img" }, hAsync("div", { class: "lottie-player-container", innerHTML: this.getLottieHtml(item.msg.severity) })), hAsync("div", { class: "info-container" }, hAsync("p", { class: "title" }, item.msg.summary), item.msg.detail && hAsync("p", { class: "description" }, item.msg.detail))), item.msg.closable && (hAsync("button", { class: "toast-close", onClick: () => this.remove(item.msg.id) }, hAsync("dropi-icon", { name: "Close-small", iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-400" })))))))));
|
|
11915
12164
|
}
|
|
11916
12165
|
static get style() { return dropiToastCss(); }
|
|
11917
12166
|
static get cmpMeta() { return {
|
|
@@ -11930,7 +12179,7 @@ class DropiToast {
|
|
|
11930
12179
|
}; }
|
|
11931
12180
|
}
|
|
11932
12181
|
|
|
11933
|
-
const dropiTooltipCss$1 = () => `:host{display:inline-block;position:relative}.tooltip-simple-bubble{position:absolute;background:var(--Gray-Gray-800, #1e293b);color:white;padding:4px 8px;border-radius:4px;font-size:12px;bottom:100%;left:50%;transform:translateX(-50%);margin-bottom:8px;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity 0.2s;z-index:
|
|
12182
|
+
const dropiTooltipCss$1 = () => `:host{display:inline-block;position:relative}.tooltip-simple-bubble{position:absolute;background:var(--Gray-Gray-800, #1e293b);color:white;padding:4px 8px;border-radius:4px;font-size:12px;bottom:100%;left:50%;transform:translateX(-50%);margin-bottom:8px;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity 0.2s;z-index:var(--dropi-z-index-overlay, 11000)}:host(:hover) .tooltip-simple-bubble{opacity:1}.tooltip-simple--outlined .tooltip-simple-bubble{border:1px solid var(--Gray-Gray-300);background:white;color:var(--Gray-Gray-800)}`;
|
|
11934
12183
|
|
|
11935
12184
|
/**
|
|
11936
12185
|
* @component dropi-tooltip
|
|
@@ -11945,7 +12194,7 @@ class DropiTooltip {
|
|
|
11945
12194
|
/** Whether the tooltip has an outline style (matches Angular `outlined`) */
|
|
11946
12195
|
outlined = false;
|
|
11947
12196
|
render() {
|
|
11948
|
-
return (hAsync("div", { key: '
|
|
12197
|
+
return (hAsync("div", { key: '1c580849e5fdfc99ecfedc7c14508dfd50b789c9', class: { 'tooltip-simple': true, 'tooltip-simple--outlined': this.outlined } }, hAsync("slot", { key: '8881e587966e67408a725e36a5a45828755e10a6' }), this.text && (hAsync("div", { key: 'f4f1c4a1d47e3324fe4d9af25d46342c4c650a0f', class: "tooltip-simple-bubble" }, this.text))));
|
|
11949
12198
|
}
|
|
11950
12199
|
static get style() { return dropiTooltipCss$1(); }
|
|
11951
12200
|
static get cmpMeta() { return {
|
|
@@ -11961,7 +12210,7 @@ class DropiTooltip {
|
|
|
11961
12210
|
}; }
|
|
11962
12211
|
}
|
|
11963
12212
|
|
|
11964
|
-
const dropiTooltipCss = () => `:host{display:inline-block}*,*::before,*::after{box-sizing:border-box}.tooltip-wrapper{position:relative;display:inline-flex;align-items:center;justify-content:center}.tooltip-bubble{position:absolute;z-index:
|
|
12213
|
+
const dropiTooltipCss = () => `:host{display:inline-block}*,*::before,*::after{box-sizing:border-box}.tooltip-wrapper{position:relative;display:inline-flex;align-items:center;justify-content:center}.tooltip-bubble{position:absolute;z-index:var(--dropi-z-index-overlay, 11000);background:var(--Gray-Gray-800);color:var(--Neutral-White, #ffffff);font-size:var(--font-size-s,14px);line-height:1.5;padding:8px 12px;border-radius:8px;white-space:normal;pointer-events:none;opacity:0;transition:opacity 0.15s ease, transform 0.15s ease;word-break:break-word;box-shadow:var(--Shadow-medium);text-align:left;width:max-content}.tooltip-bubble--visible{opacity:1}.tooltip-bubble--top{bottom:calc(100% + 12px);left:50%;transform:translateX(-50%)}.tooltip-bubble--bottom{top:calc(100% + 12px);left:50%;transform:translateX(-50%)}.tooltip-bubble--left{right:calc(100% + 12px);top:50%;transform:translateY(-50%)}.tooltip-bubble--right{left:calc(100% + 12px);top:50%;transform:translateY(-50%)}.tooltip-arrow{position:absolute;width:12px;height:6px}.tooltip-arrow::before{content:'';position:absolute;width:0;height:0}.tooltip-arrow--top{top:100%;left:50%;transform:translateX(-50%)}.tooltip-arrow--top::before{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid var(--Gray-Gray-800)}.tooltip-arrow--bottom{bottom:100%;left:50%;transform:translateX(-50%)}.tooltip-arrow--bottom::before{border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid var(--Gray-Gray-800)}.tooltip-arrow--left{left:100%;top:50%;transform:translateY(-50%)}.tooltip-arrow--left::before{border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid var(--Gray-Gray-800)}.tooltip-arrow--right{right:100%;top:50%;transform:translateY(-50%)}.tooltip-arrow--right::before{border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:6px solid var(--Gray-Gray-800)}`;
|
|
11965
12214
|
|
|
11966
12215
|
/**
|
|
11967
12216
|
* @component dropi-tooltip
|
|
@@ -12086,12 +12335,12 @@ class DropiTooltipV2 {
|
|
|
12086
12335
|
const bubbleStyle = { maxWidth: this.maxWidth };
|
|
12087
12336
|
if (this.minWidth)
|
|
12088
12337
|
bubbleStyle.minWidth = this.minWidth;
|
|
12089
|
-
return (hAsync("div", { key: '
|
|
12338
|
+
return (hAsync("div", { key: 'e2ce31df52e00568920e754904b1f5910ff4c8ba', class: "tooltip-wrapper", onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onClick: this.handleClick, onFocusin: this.handleFocusin, onFocusout: this.handleFocusout }, this.showIcon && (hAsync("dropi-icon", { key: 'aa3213451bcfb60561043b0c3854bb20c3a4703a', name: this.iconName, iconWidth: `${this.iconSize}px`, iconHeight: `${this.iconSize}px`, color: this.iconColor })), hAsync("slot", { key: '5ce4929e6f96d4c605d149a970aba1746e82078a' }), this.displayContent && (hAsync("div", { key: '66a1193abf25ce4161ec35f1ca0c344ec418cce8', class: {
|
|
12090
12339
|
'tooltip-bubble': true,
|
|
12091
12340
|
[`tooltip-bubble--${this.position}`]: true,
|
|
12092
12341
|
[`tooltip-bubble--arrow-${this.arrowPosition}`]: true,
|
|
12093
12342
|
'tooltip-bubble--visible': this.visible,
|
|
12094
|
-
}, style: bubbleStyle, role: "tooltip" }, this.showX && (hAsync("button", { key: '
|
|
12343
|
+
}, style: bubbleStyle, role: "tooltip" }, this.showX && (hAsync("button", { key: '168741ebb1986f7235aee5be58695ae7cfacfe7b', class: "tooltip-close", onClick: this.handleClose, "aria-label": "Cerrar" }, hAsync("dropi-icon", { key: 'c9154dada59cced1056f24689591f0fead22328f', name: "Close-small", iconWidth: "12px", iconHeight: "12px", color: "Gray-Gray-500" }))), this.title && !this.text && hAsync("strong", { key: 'cd432eb19d7616f50d27613b55c191d59f70732e', class: "tooltip-title" }, this.title), this.label && !this.text && hAsync("span", { key: 'c443cab1372947d0219a7384f491184fb1a7c5b3', class: "tooltip-label" }, this.label), this.text && hAsync("span", { key: 'ea5dafb67ec9533052a66cf045b288cbefdf9d69' }, this.text), hAsync("span", { key: '977257d29af4688c8a264685a1687c048faac9e5', class: `tooltip-arrow tooltip-arrow--${this.position}` })))));
|
|
12095
12344
|
}
|
|
12096
12345
|
static get style() { return dropiTooltipCss(); }
|
|
12097
12346
|
static get cmpMeta() { return {
|
|
@@ -12130,7 +12379,7 @@ const dropiVerticalStepsCss = () => `:host{display:block}*,*::before,*::after{bo
|
|
|
12130
12379
|
class DropiVerticalSteps {
|
|
12131
12380
|
constructor(hostRef) {
|
|
12132
12381
|
registerInstance(this, hostRef);
|
|
12133
|
-
this.stepClick = createEvent(this, "stepClick"
|
|
12382
|
+
this.stepClick = createEvent(this, "stepClick");
|
|
12134
12383
|
}
|
|
12135
12384
|
/** Array of steps. Pass as JSON string or array */
|
|
12136
12385
|
steps = [];
|
|
@@ -12165,7 +12414,7 @@ class DropiVerticalSteps {
|
|
|
12165
12414
|
}
|
|
12166
12415
|
render() {
|
|
12167
12416
|
const steps = this.parsedSteps;
|
|
12168
|
-
return (hAsync("div", { key: '
|
|
12417
|
+
return (hAsync("div", { key: '9b0e19a21eaa78b51d82994747604623f9431d56', class: "vertical-steps" }, steps.map((step, i) => {
|
|
12169
12418
|
const state = this.resolveState(i, step);
|
|
12170
12419
|
const isLast = i === steps.length - 1;
|
|
12171
12420
|
const isClickable = this.clickable && state === 'completed';
|
|
@@ -12218,7 +12467,7 @@ class DropiYoutubeLazyVideo {
|
|
|
12218
12467
|
return `https://www.youtube.com/embed/${this.videoId}?autoplay=1&rel=0&modestbranding=1`;
|
|
12219
12468
|
}
|
|
12220
12469
|
render() {
|
|
12221
|
-
return (hAsync("div", { key: '
|
|
12470
|
+
return (hAsync("div", { key: 'c3fadb91dcf1c32964ed0f0cb847ab3d874f2d7a', class: `video-wrapper${this.isPlaying ? ' playing' : ''}` }, !this.isPlaying && (hAsync("div", { key: '7bc533e24d3221d8c4dd763e629ec836642d504f', class: "thumbnail", onClick: () => { this.isPlaying = true; } }, hAsync("img", { key: '6e47aefd8e8fab4ecf8b6a7160bc5557ecace088', src: this.thumbnail, alt: `Video thumbnail ${this.videoId}` }), hAsync("button", { key: '1acb93790a95117c78d5855807f24dac76b98008', class: "play-button", "aria-label": "Reproducir video" }, hAsync("dropi-icon", { key: '09974fac159a0c88b160c8044f88e1c3dfab79c0', name: "Play", iconWidth: "17px", iconHeight: "21px", color: "Neutral-White" })))), this.isPlaying && (hAsync("iframe", { key: '7650e6f8f8591cc1b24e0958e0924e5eff118ad9', src: this.videoUrl, title: this.videoTitle, frameborder: "0", allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture", allowFullScreen: true, loading: "lazy" }))));
|
|
12222
12471
|
}
|
|
12223
12472
|
static get style() { return dropiYoutubeLazyVideoCss(); }
|
|
12224
12473
|
static get cmpMeta() { return {
|
|
@@ -12281,6 +12530,7 @@ registerComponents([
|
|
|
12281
12530
|
DropiOtpSendCode,
|
|
12282
12531
|
DropiPaginator,
|
|
12283
12532
|
DropiPhoneInput,
|
|
12533
|
+
DropiProgressBar,
|
|
12284
12534
|
DropiRadioButton,
|
|
12285
12535
|
DropiRadioSelectionList,
|
|
12286
12536
|
DropiReadMore,
|