@dropi/ui 0.1.49 → 0.1.50
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/dist/cjs/dropi-alert-modal.cjs.entry.js +30 -1
- package/dist/cjs/index-C8kwDvpf.js +2773 -0
- package/dist/cjs/index-CEWSDq65.js +2773 -0
- package/dist/cjs/{index-VFDdqTlC.js → index-DydfpGMc.js} +10 -45
- package/dist/collection/components/dropi-alert/dropi-alert.js +2 -2
- package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.js +59 -21
- package/dist/collection/components/dropi-avatars/dropi-avatars.js +1 -1
- package/dist/collection/components/dropi-badge/dropi-badge.js +1 -1
- package/dist/collection/components/dropi-breadcrumb/dropi-breadcrumb.js +2 -2
- package/dist/collection/components/dropi-button/dropi-button.js +5 -5
- package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.js +1 -1
- package/dist/collection/components/dropi-chips/dropi-chips.js +2 -2
- package/dist/collection/components/dropi-city-selector/dropi-city-selector.js +1 -1
- package/dist/collection/components/dropi-country-selector/dropi-country-selector.js +1 -1
- package/dist/collection/components/dropi-date-picker-range/dropi-date-picker-range.js +1 -1
- package/dist/collection/components/dropi-dropdown/dropi-dropdown.js +2 -2
- package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.js +3 -3
- package/dist/collection/components/dropi-input/dropi-input.js +1 -1
- package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.js +3 -3
- package/dist/collection/components/dropi-modal/dropi-modal.js +2 -2
- package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.js +2 -2
- package/dist/collection/components/dropi-search/dropi-search.js +3 -3
- package/dist/collection/components/dropi-sidebar/dropi-sidebar.js +2 -2
- package/dist/collection/components/dropi-simple-stepper/dropi-simple-stepper.js +2 -2
- package/dist/collection/components/dropi-skeleton/dropi-skeleton.js +1 -1
- package/dist/collection/components/dropi-steps/dropi-steps.js +2 -2
- package/dist/collection/components/dropi-table/dropi-table.js +5 -5
- package/dist/collection/components/dropi-tabs/dropi-tabs.js +2 -2
- package/dist/collection/components/dropi-tag/dropi-tag.js +3 -3
- package/dist/collection/components/dropi-text-area/dropi-text-area.js +2 -2
- package/dist/collection/components/dropi-time-line/dropi-time-line.js +1 -1
- package/dist/collection/components/dropi-toast/dropi-toast.js +1 -1
- package/dist/collection/components/dropi-tooltip-v2/dropi-tooltip.js +3 -3
- package/dist/collection/components/dropi-vertical-steps/dropi-vertical-steps.js +1 -1
- package/dist/components/dropi-alert-modal.js +1 -1
- package/dist/components/p-1YjHPRto.js +1 -0
- package/dist/components/p-2YgFOle2.js +1 -0
- package/dist/components/p-9CkX3ALN.js +1 -0
- package/dist/components/p-B9R8Apw7.js +1 -0
- package/dist/components/p-BDYn1JDe.js +1 -0
- package/dist/components/p-BGb7xtJN.js +1 -0
- package/dist/components/p-BHV6BYSS.js +1 -0
- package/dist/components/p-BKTMBQVw.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-62Q3xlFX.js → p-BqJ52YOH.js} +1 -1
- package/dist/components/{p-D950-HcO.js → p-BrR1YjVi.js} +1 -1
- package/dist/components/p-BrnGRyf0.js +1 -0
- package/dist/components/p-BtkDdEAq.js +1 -0
- package/dist/components/p-Btsw7sPN.js +1 -0
- package/dist/components/p-BvIwy9Yl.js +1 -0
- package/dist/components/p-BzCPv3ND.js +1 -0
- package/dist/components/p-C44-ijf2.js +1 -0
- package/dist/components/p-CHb992Wr.js +1 -0
- package/dist/components/p-CJ4s6SQT.js +1 -0
- package/dist/components/p-CKflT57p.js +1 -0
- package/dist/components/p-CV_oz45O.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-CgRY3n1J.js +1 -0
- package/dist/components/p-Cjq4FTif.js +1 -0
- package/dist/components/p-Cujt3jky.js +1 -0
- package/dist/components/p-D5UeShUa.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-R8EYlzGW.js → p-DLyzE3Kh.js} +1 -1
- 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-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-BxrlUqdP.js → p-DfdhNT9F.js} +1 -1
- package/dist/components/{p-Cs6YwqtK.js → p-Dgeh9Yg8.js} +1 -1
- package/dist/components/p-DlaiuH5K.js +1 -0
- package/dist/components/p-DvLWbKsf.js +1 -0
- package/dist/components/p-DvaFep4Y.js +1 -0
- package/dist/components/p-Dz9uN5Nw.js +1 -0
- package/dist/components/p-ETg0qC-7.js +1 -0
- package/dist/components/p-FAhcOdS-.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-a-hGQrJd.js +1 -0
- package/dist/components/{p-DATJEZ93.js → p-dbZuh0Uq.js} +1 -1
- 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-DF9kqJr-.js → p-ndQSfLKF.js} +1 -1
- 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/docs.json +89 -80
- package/dist/dropi-ui/dropi-accordion-item.entry.js +1 -1
- package/dist/dropi-ui/dropi-accordion.entry.js +1 -1
- package/dist/dropi-ui/dropi-alert-legacy.entry.js +1 -1
- package/dist/dropi-ui/dropi-alert-modal.entry.js +1 -1
- package/dist/dropi-ui/dropi-alert.entry.js +1 -1
- package/dist/dropi-ui/dropi-avatars.entry.js +1 -1
- package/dist/dropi-ui/dropi-badge-legacy.entry.js +1 -1
- 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 +1 -1
- package/dist/dropi-ui/dropi-card-checkbox.entry.js +1 -1
- package/dist/dropi-ui/dropi-card-product.entry.js +1 -1
- package/dist/dropi-ui/dropi-card-section.entry.js +1 -1
- package/dist/dropi-ui/dropi-carousel.entry.js +1 -1
- package/dist/dropi-ui/dropi-checkbox-selection-list.entry.js +1 -1
- package/dist/dropi-ui/dropi-checkbox.entry.js +1 -1
- package/dist/dropi-ui/dropi-chips.entry.js +1 -1
- package/dist/dropi-ui/dropi-city-selector.entry.js +1 -1
- package/dist/dropi-ui/dropi-color-picker.entry.js +1 -1
- package/dist/dropi-ui/dropi-country-flags.entry.js +1 -1
- package/dist/dropi-ui/dropi-country-selector.entry.js +1 -1
- package/dist/dropi-ui/dropi-date-picker-range.entry.js +1 -1
- package/dist/dropi-ui/dropi-date-picker.entry.js +1 -1
- package/dist/dropi-ui/dropi-drawer.entry.js +1 -1
- package/dist/dropi-ui/dropi-dropdown.entry.js +1 -1
- package/dist/dropi-ui/dropi-empty-state.entry.js +1 -1
- package/dist/dropi-ui/dropi-favorite-button.entry.js +1 -1
- package/dist/dropi-ui/dropi-file-upload-progress-bar.entry.js +1 -1
- package/dist/dropi-ui/dropi-file-upload.entry.js +1 -1
- package/dist/dropi-ui/dropi-icon.entry.js +2 -4
- package/dist/dropi-ui/dropi-icon.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-ilustration-icon.entry.js +7 -11
- package/dist/dropi-ui/dropi-ilustration-icon.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-image-miniature.entry.js +1 -1
- package/dist/dropi-ui/dropi-image-overlay.entry.js +1 -1
- package/dist/dropi-ui/dropi-input.entry.js +4 -4
- package/dist/dropi-ui/dropi-input.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-languages-selector.entry.js +1 -1
- package/dist/dropi-ui/dropi-logo.entry.js +1 -1
- package/dist/dropi-ui/dropi-lottie-loader.entry.js +2 -2
- package/dist/dropi-ui/dropi-lottie-loader.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-media-player.entry.js +1 -1
- package/dist/dropi-ui/dropi-modal.entry.js +1 -1
- package/dist/dropi-ui/dropi-navbar.entry.js +1 -1
- package/dist/dropi-ui/dropi-otp-send-code.entry.js +1 -1
- package/dist/dropi-ui/dropi-paginator.entry.js +1 -1
- package/dist/dropi-ui/dropi-phone-input.entry.js +1 -1
- package/dist/dropi-ui/dropi-progress-bar.entry.js +1 -1
- package/dist/dropi-ui/dropi-radio-button.entry.js +1 -1
- package/dist/dropi-ui/dropi-radio-selection-list.entry.js +1 -1
- package/dist/dropi-ui/dropi-read-more.entry.js +1 -1
- package/dist/dropi-ui/dropi-search.entry.js +1 -1
- package/dist/dropi-ui/dropi-select.entry.js +1 -1
- package/dist/dropi-ui/dropi-sidebar.entry.js +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 +1 -1
- package/dist/dropi-ui/dropi-table.entry.js +1 -1
- package/dist/dropi-ui/dropi-tabs.entry.js +1 -1
- package/dist/dropi-ui/dropi-tag-type-product.entry.js +1 -1
- package/dist/dropi-ui/dropi-tag.entry.js +1 -1
- package/dist/dropi-ui/dropi-text-area.entry.js +1 -1
- package/dist/dropi-ui/dropi-time-line.entry.js +1 -1
- package/dist/dropi-ui/dropi-toast.entry.js +1 -1
- package/dist/dropi-ui/dropi-tooltip-v2.entry.js +1 -1
- package/dist/dropi-ui/dropi-tooltip.entry.js +1 -1
- package/dist/dropi-ui/dropi-ui.esm.js +1 -1
- package/dist/dropi-ui/dropi-ui.esm.js.map +1 -1
- package/dist/dropi-ui/dropi-vertical-steps.entry.js +1 -1
- package/dist/dropi-ui/dropi-youtube-lazy-video.entry.js +1 -1
- package/dist/dropi-ui/index-Cvp2LQOM.js +4585 -0
- package/dist/dropi-ui/index-Cvp2LQOM.js.map +1 -0
- package/dist/dropi-ui/{index-CZu1AKUh.js → index-D0Z06C2b.js} +22 -62
- 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-01e4fe42.entry.js +1 -0
- package/dist/dropi-ui/{p-b53bdc88.entry.js → p-03515548.entry.js} +1 -1
- 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-524a47f5.entry.js → p-09462f7b.entry.js} +1 -1
- package/dist/dropi-ui/p-0946a1f7.entry.js +1 -0
- package/dist/dropi-ui/p-099f4475.entry.js +1 -0
- package/dist/dropi-ui/p-09aa9a3c.entry.js +1 -0
- package/dist/dropi-ui/{p-61b8675a.entry.js → p-09cf560a.entry.js} +1 -1
- 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-b9b80e3a.entry.js → p-0ef73e45.entry.js} +1 -1
- 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-c0661515.entry.js → p-1558c22f.entry.js} +1 -1
- package/dist/dropi-ui/p-16674c7c.entry.js +1 -0
- package/dist/dropi-ui/p-17b16a74.entry.js +1 -0
- package/dist/dropi-ui/p-17c53e19.entry.js +1 -0
- package/dist/dropi-ui/p-17c56074.entry.js +1 -0
- package/dist/dropi-ui/p-19031bf8.entry.js +1 -0
- package/dist/dropi-ui/p-1a07b3a6.entry.js +1 -0
- package/dist/dropi-ui/p-1cd4d630.entry.js +1 -0
- package/dist/dropi-ui/p-1ce00757.entry.js +1 -0
- package/dist/dropi-ui/p-1d3d6a32.entry.js +1 -0
- package/dist/dropi-ui/p-1d75dff6.entry.js +1 -0
- package/dist/dropi-ui/p-20a6a2aa.entry.js +1 -0
- package/dist/dropi-ui/p-229dddb0.entry.js +1 -0
- package/dist/dropi-ui/p-256bf069.entry.js +1 -0
- package/dist/dropi-ui/p-25f0c2c9.entry.js +1 -0
- package/dist/dropi-ui/p-278281d2.entry.js +1 -0
- package/dist/dropi-ui/p-28f960a1.entry.js +1 -0
- package/dist/dropi-ui/{p-ca7c025d.entry.js → p-2ad8d3c1.entry.js} +1 -1
- 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-2d9978c1.entry.js +1 -0
- package/dist/dropi-ui/{p-3615e06b.entry.js → p-2f9072e7.entry.js} +1 -1
- package/dist/dropi-ui/{p-86edabef.entry.js → p-30377b7e.entry.js} +1 -1
- package/dist/dropi-ui/{p-8220e6b4.entry.js → p-342eaf9e.entry.js} +1 -1
- package/dist/dropi-ui/p-3496cc01.entry.js +1 -0
- package/dist/dropi-ui/p-35b37d1a.entry.js +1 -0
- package/dist/dropi-ui/p-369a069e.entry.js +1 -0
- package/dist/dropi-ui/{p-ea6718c9.entry.js → p-372a5023.entry.js} +1 -1
- package/dist/dropi-ui/{p-ae4ebdab.entry.js → p-378b165b.entry.js} +1 -1
- package/dist/dropi-ui/p-37bdbadc.entry.js +1 -0
- package/dist/dropi-ui/p-38ea66e4.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-8fdedca9.entry.js → p-3e36c8b8.entry.js} +1 -1
- package/dist/dropi-ui/p-3ebc9b7b.entry.js +1 -0
- package/dist/dropi-ui/{p-ccb4e71c.entry.js → p-3ec6620c.entry.js} +1 -1
- package/dist/dropi-ui/p-3f76c680.entry.js +1 -0
- package/dist/dropi-ui/{p-07767ed6.entry.js → p-42a85ce5.entry.js} +1 -1
- package/dist/dropi-ui/{p-27f96cec.entry.js → p-43e21ed8.entry.js} +1 -1
- 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-4e401fbc.entry.js +1 -0
- package/dist/dropi-ui/p-508cfd38.entry.js +1 -0
- package/dist/dropi-ui/{p-581e548d.entry.js → p-50e851b7.entry.js} +1 -1
- package/dist/dropi-ui/{p-cc011b6a.entry.js → p-51028e22.entry.js} +1 -1
- package/dist/dropi-ui/p-510ad065.entry.js +1 -0
- package/dist/dropi-ui/{p-42d914c5.entry.js → p-532136cc.entry.js} +1 -1
- package/dist/dropi-ui/p-53a7a37d.entry.js +1 -0
- package/dist/dropi-ui/p-53d2905c.entry.js +1 -0
- package/dist/dropi-ui/p-54bfb072.entry.js +1 -0
- package/dist/dropi-ui/{p-5241c2ef.entry.js → p-5730ca4e.entry.js} +1 -1
- 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-5915d227.entry.js +1 -0
- package/dist/dropi-ui/p-5c0cd221.entry.js +1 -0
- package/dist/dropi-ui/{p-a085fc89.entry.js → p-5cee6721.entry.js} +1 -1
- package/dist/dropi-ui/{p-4c723992.entry.js → p-5e0da387.entry.js} +1 -1
- 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-1f02fad2.entry.js → p-60901aa7.entry.js} +1 -1
- package/dist/dropi-ui/p-61f8905c.entry.js +1 -0
- package/dist/dropi-ui/{p-9c498aba.entry.js → p-62847b6f.entry.js} +1 -1
- package/dist/dropi-ui/{p-86449ef1.entry.js → p-647bab57.entry.js} +1 -1
- package/dist/dropi-ui/p-648e5340.entry.js +1 -0
- package/dist/dropi-ui/p-650a7679.entry.js +1 -0
- package/dist/dropi-ui/p-66d7d67b.entry.js +1 -0
- package/dist/dropi-ui/{p-44bbd5da.entry.js → p-673a5cfd.entry.js} +1 -1
- package/dist/dropi-ui/{p-0f743398.entry.js → p-67ba7d35.entry.js} +1 -1
- package/dist/dropi-ui/{p-ab803fe0.entry.js → p-68cae74b.entry.js} +1 -1
- package/dist/dropi-ui/p-692b665a.entry.js +1 -0
- package/dist/dropi-ui/{p-09c7790e.entry.js → p-69cf66c1.entry.js} +1 -1
- package/dist/dropi-ui/{p-11b83d87.entry.js → p-69f07cca.entry.js} +1 -1
- package/dist/dropi-ui/{p-44998336.entry.js → p-6a148627.entry.js} +1 -1
- package/dist/dropi-ui/{p-e272bfce.entry.js → p-6a51f80c.entry.js} +1 -1
- package/dist/dropi-ui/{p-8652ce1a.entry.js → p-6b925a36.entry.js} +1 -1
- package/dist/dropi-ui/{p-2c529f8f.entry.js → p-6c45c910.entry.js} +1 -1
- 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-cfef0047.entry.js → p-6ef4affd.entry.js} +1 -1
- 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-719a01cb.entry.js +1 -0
- package/dist/dropi-ui/{p-383defa8.entry.js → p-721ef2b1.entry.js} +1 -1
- 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-7369b3b4.entry.js +1 -0
- package/dist/dropi-ui/p-7450d195.entry.js +1 -0
- package/dist/dropi-ui/{p-a1286aef.entry.js → p-754aed1c.entry.js} +1 -1
- 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-86f7a5a6.entry.js → p-774aab1a.entry.js} +1 -1
- package/dist/dropi-ui/p-77cd2fcb.entry.js +1 -0
- package/dist/dropi-ui/{p-68891c64.entry.js → p-7822b081.entry.js} +1 -1
- package/dist/dropi-ui/{p-3bc24b37.entry.js → p-78282471.entry.js} +1 -1
- package/dist/dropi-ui/p-78aa7fb3.entry.js +1 -0
- package/dist/dropi-ui/p-7a18b7a0.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-a86eb425.entry.js → p-7c5ea4c5.entry.js} +1 -1
- package/dist/dropi-ui/{p-20418f9e.entry.js → p-7e526178.entry.js} +1 -1
- 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-0cf0e9b8.entry.js → p-7fc195ee.entry.js} +1 -1
- 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-cf7fa098.entry.js → p-82909f07.entry.js} +1 -1
- package/dist/dropi-ui/p-83887880.entry.js +1 -0
- package/dist/dropi-ui/p-83dbc407.entry.js +1 -0
- package/dist/dropi-ui/p-84019422.entry.js +1 -0
- package/dist/dropi-ui/{p-82b566d2.entry.js → p-84c63ece.entry.js} +1 -1
- package/dist/dropi-ui/{p-06953c99.entry.js → p-850b92f0.entry.js} +1 -1
- package/dist/dropi-ui/p-85444414.entry.js +1 -0
- package/dist/dropi-ui/p-85c637bd.entry.js +1 -0
- package/dist/dropi-ui/{p-2024ae1e.entry.js → p-85ee6d6a.entry.js} +1 -1
- package/dist/dropi-ui/p-86283e99.entry.js +1 -0
- package/dist/dropi-ui/p-87cc4dcd.entry.js +1 -0
- package/dist/dropi-ui/p-899089f0.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-8c107dbe.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-b04fa246.entry.js → p-8dbc6bc8.entry.js} +1 -1
- package/dist/dropi-ui/p-8fc3dbcb.entry.js +1 -0
- package/dist/dropi-ui/{p-007ad183.entry.js → p-9032ba00.entry.js} +1 -1
- package/dist/dropi-ui/p-90abda79.entry.js +1 -0
- package/dist/dropi-ui/p-92291873.entry.js +1 -0
- package/dist/dropi-ui/p-928b59e8.entry.js +1 -0
- package/dist/dropi-ui/p-929bc2b6.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-89eb5eec.entry.js → p-9a569a4e.entry.js} +1 -1
- package/dist/dropi-ui/p-9ac8caea.entry.js +1 -0
- package/dist/dropi-ui/p-9b037086.entry.js +1 -0
- package/dist/dropi-ui/p-9b24e8fd.entry.js +1 -0
- package/dist/dropi-ui/p-9b288982.entry.js +1 -0
- package/dist/dropi-ui/{p-48d87efd.entry.js → p-9b55c8ad.entry.js} +1 -1
- 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-9c73b4ce.entry.js +1 -0
- package/dist/dropi-ui/p-9c7698ef.entry.js +1 -0
- package/dist/dropi-ui/p-9e0129cc.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-9ffec3f7.entry.js +1 -0
- package/dist/dropi-ui/p-B-h7fjQz.js +2 -0
- package/dist/dropi-ui/p-D5SAM1O2.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-a348c40a.entry.js → p-a3c3e479.entry.js} +1 -1
- package/dist/dropi-ui/p-a3c4d677.entry.js +1 -0
- package/dist/dropi-ui/p-a3d602fd.entry.js +1 -0
- package/dist/dropi-ui/p-a457e8ca.entry.js +1 -0
- package/dist/dropi-ui/p-a470a24a.entry.js +1 -0
- package/dist/dropi-ui/p-a4e1df5e.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-a580e8c8.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-a8f24270.entry.js +1 -0
- package/dist/dropi-ui/p-a96c54ed.entry.js +1 -0
- package/dist/dropi-ui/p-a9f93e82.entry.js +1 -0
- package/dist/dropi-ui/p-aa0f5964.entry.js +1 -0
- package/dist/dropi-ui/p-aa48e5cb.entry.js +1 -0
- package/dist/dropi-ui/p-aadd5863.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-ae35d538.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-b25faf92.entry.js +1 -0
- package/dist/dropi-ui/p-b2623a5c.entry.js +1 -0
- package/dist/dropi-ui/p-b2e7cf4f.entry.js +1 -0
- package/dist/dropi-ui/{p-ad1b004e.entry.js → p-b2e8c0e2.entry.js} +1 -1
- package/dist/dropi-ui/{p-eb12e6dc.entry.js → p-b320ca5a.entry.js} +1 -1
- package/dist/dropi-ui/p-b325f7cf.entry.js +1 -0
- package/dist/dropi-ui/p-b3d3c72e.entry.js +1 -0
- package/dist/dropi-ui/p-b605d3d9.entry.js +1 -0
- package/dist/dropi-ui/p-b63f5d03.entry.js +1 -0
- package/dist/dropi-ui/p-b7748488.entry.js +1 -0
- package/dist/dropi-ui/p-b8050ef5.entry.js +1 -0
- package/dist/dropi-ui/p-b99fee29.entry.js +1 -0
- package/dist/dropi-ui/p-ba3779a2.entry.js +1 -0
- package/dist/dropi-ui/{p-75069b57.entry.js → p-baac546d.entry.js} +1 -1
- package/dist/dropi-ui/p-bb6a2bdd.entry.js +1 -0
- package/dist/dropi-ui/p-bbb5e0ae.entry.js +1 -0
- package/dist/dropi-ui/p-bbf374d6.entry.js +1 -0
- package/dist/dropi-ui/{p-ed4bd1cc.entry.js → p-bc6bb893.entry.js} +1 -1
- 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-b04dfc40.entry.js → p-bfd43bdf.entry.js} +1 -1
- package/dist/dropi-ui/{p-e25218b6.entry.js → p-c08b8995.entry.js} +1 -1
- package/dist/dropi-ui/p-c173db8c.entry.js +1 -0
- package/dist/dropi-ui/{p-807dac7d.entry.js → p-c1d5d4ab.entry.js} +1 -1
- package/dist/dropi-ui/p-c218524f.entry.js +1 -0
- package/dist/dropi-ui/p-c4d2881d.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-b4d949cc.entry.js → p-c6926604.entry.js} +1 -1
- package/dist/dropi-ui/p-c6ac1b6d.entry.js +1 -0
- package/dist/dropi-ui/{p-0f10ff36.entry.js → p-c8d0727a.entry.js} +1 -1
- 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-b782bc0e.entry.js → p-caa6ba65.entry.js} +1 -1
- package/dist/dropi-ui/{p-1c3a5cee.entry.js → p-cb4ad8d2.entry.js} +1 -1
- package/dist/dropi-ui/p-cb87d3c7.entry.js +1 -0
- package/dist/dropi-ui/p-cbf5367e.entry.js +1 -0
- package/dist/dropi-ui/{p-44787a81.entry.js → p-cc954850.entry.js} +1 -1
- package/dist/dropi-ui/p-cf7cd408.entry.js +1 -0
- package/dist/dropi-ui/{p-d47d4b01.entry.js → p-d02dfc6a.entry.js} +1 -1
- package/dist/dropi-ui/p-d11524ca.entry.js +1 -0
- package/dist/dropi-ui/p-d1aeb373.entry.js +1 -0
- 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-d42d4ef7.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-d724ced4.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-6f8e779c.entry.js → p-db71d065.entry.js} +1 -1
- package/dist/dropi-ui/p-dc53a798.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-e1b3c9a3.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-e3c120ba.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-6fda2336.entry.js → p-eaa10fe8.entry.js} +1 -1
- 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-ec263862.entry.js +1 -0
- package/dist/dropi-ui/p-edcf5623.entry.js +1 -0
- package/dist/dropi-ui/{p-4e7ff518.entry.js → p-edeacd44.entry.js} +1 -1
- package/dist/dropi-ui/p-edef4506.entry.js +1 -0
- package/dist/dropi-ui/p-edf796ee.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-f2527a45.entry.js +1 -0
- package/dist/dropi-ui/{p-9693bb64.entry.js → p-f3f27534.entry.js} +1 -1
- 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-f6c9057d.entry.js +1 -0
- package/dist/dropi-ui/{p-471b2bc5.entry.js → p-f6ed3cbb.entry.js} +1 -1
- 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-f7fd7832.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 -0
- package/dist/dropi-ui/p-f9af2041.entry.js +1 -0
- package/dist/dropi-ui/p-f9d05b69.entry.js +1 -0
- package/dist/dropi-ui/p-faa59cd8.entry.js +1 -0
- package/dist/dropi-ui/p-fb39dfdc.entry.js +1 -0
- package/dist/dropi-ui/{p-0ea55df0.entry.js → p-fb4856ea.entry.js} +1 -1
- 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/dropi-ui/p-ffd415a2.entry.js +1 -0
- package/dist/esm/dropi-alert-modal.entry.js +30 -1
- package/dist/esm/{index-Ci7eVebe.js → index-B-h7fjQz.js} +10 -45
- package/dist/esm/index-D5SAM1O2.js +2763 -0
- package/dist/esm/index-a2fb4CHk.js +2763 -0
- package/dist/types/components/dropi-alert-modal/dropi-alert-modal.d.ts +38 -0
- package/dist/types/components.d.ts +70 -0
- package/hydrate/index.js +39 -1
- package/hydrate/index.mjs +39 -1
- package/package.json +3 -2
- package/scripts/generate-lottie-map.js +0 -3
- package/dist/components/p-1u2h41fl.js +0 -1
- package/dist/components/p-7lGbTojq.js +0 -1
- package/dist/components/p-B3c6ZPh9.js +0 -1
- package/dist/components/p-BBtJlnY0.js +0 -1
- package/dist/components/p-BIAfpLva.js +0 -1
- package/dist/components/p-BJzJ1Wch.js +0 -1
- package/dist/components/p-Bp2-jUNL.js +0 -1
- package/dist/components/p-BwOjDv2h.js +0 -1
- package/dist/components/p-BxQ2iEWd.js +0 -1
- package/dist/components/p-BxY2GZpL.js +0 -1
- package/dist/components/p-C6EbAYsJ.js +0 -1
- package/dist/components/p-C9mRfQtW.js +0 -1
- package/dist/components/p-CL1y944C.js +0 -1
- package/dist/components/p-CMtyf9Em.js +0 -1
- package/dist/components/p-CebbBCKU.js +0 -1
- package/dist/components/p-CsZv3Tkb.js +0 -1
- package/dist/components/p-D7AQWDrY.js +0 -1
- package/dist/components/p-DGLfVHY2.js +0 -1
- package/dist/components/p-DSffXVlZ.js +0 -1
- package/dist/components/p-DTQFcg-H.js +0 -1
- package/dist/components/p-DWEoG5qY.js +0 -1
- package/dist/components/p-eOpeIETx.js +0 -1
- package/dist/components/p-fXJlOfAI.js +0 -1
- package/dist/components/p-kbHlk6pH.js +0 -1
- package/dist/components/p-oofWcbNe.js +0 -1
- package/dist/components/p-sfkbdPEo.js +0 -1
- package/dist/dropi-ui/index-CZu1AKUh.js.map +0 -1
- package/dist/dropi-ui/p-0086fbc8.entry.js +0 -1
- package/dist/dropi-ui/p-046354b8.entry.js +0 -1
- package/dist/dropi-ui/p-082a2fd7.entry.js +0 -1
- package/dist/dropi-ui/p-1c0d5c00.entry.js +0 -1
- package/dist/dropi-ui/p-2cab50f5.entry.js +0 -1
- package/dist/dropi-ui/p-3d7a3ea5.entry.js +0 -1
- package/dist/dropi-ui/p-3df9dd35.entry.js +0 -1
- package/dist/dropi-ui/p-430b7e6c.entry.js +0 -1
- package/dist/dropi-ui/p-47c1220f.entry.js +0 -1
- package/dist/dropi-ui/p-4d95a49c.entry.js +0 -1
- package/dist/dropi-ui/p-4fe80c82.entry.js +0 -1
- package/dist/dropi-ui/p-589c4efa.entry.js +0 -1
- package/dist/dropi-ui/p-664566f3.entry.js +0 -1
- package/dist/dropi-ui/p-88b9cca8.entry.js +0 -1
- package/dist/dropi-ui/p-97446f5e.entry.js +0 -1
- package/dist/dropi-ui/p-99305fc4.entry.js +0 -1
- package/dist/dropi-ui/p-99359271.entry.js +0 -1
- package/dist/dropi-ui/p-9d1feb88.entry.js +0 -1
- package/dist/dropi-ui/p-9e263286.entry.js +0 -1
- package/dist/dropi-ui/p-Ci7eVebe.js +0 -2
- package/dist/dropi-ui/p-a71694c6.entry.js +0 -1
- package/dist/dropi-ui/p-ae611e1b.entry.js +0 -1
- package/dist/dropi-ui/p-c1799d2a.entry.js +0 -1
- package/dist/dropi-ui/p-caffc973.entry.js +0 -1
- package/dist/dropi-ui/p-d2e033bc.entry.js +0 -1
- package/dist/dropi-ui/p-de4913da.entry.js +0 -1
- package/dist/dropi-ui/p-f034679a.entry.js +0 -1
- package/dist/dropi-ui/p-fa0cace7.entry.js +0 -1
|
@@ -1,26 +1,64 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
export type AlertModalType = 'question' | 'warning' | 'success' | 'error' | 'loading';
|
|
3
|
+
/**
|
|
4
|
+
* @component dropi-alert-modal
|
|
5
|
+
* Confirmation/alert modal with Lottie animation, title, message and action buttons.
|
|
6
|
+
* Uses dropi-modal internally.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* const el = document.querySelector('dropi-alert-modal');
|
|
10
|
+
* el.visible = true;
|
|
11
|
+
*/
|
|
3
12
|
export declare class DropiAlertModal {
|
|
4
13
|
el: HTMLElement;
|
|
14
|
+
/** Controls visibility */
|
|
5
15
|
visible: any;
|
|
16
|
+
/** Modal type — determines Lottie animation */
|
|
6
17
|
type: AlertModalType;
|
|
18
|
+
/** Bold title */
|
|
7
19
|
tittle: string;
|
|
20
|
+
/** Body message */
|
|
8
21
|
message: string;
|
|
22
|
+
/** Primary button label */
|
|
9
23
|
primaryButton: string;
|
|
24
|
+
/** Secondary button label (hidden if empty) */
|
|
10
25
|
secondaryButton: string;
|
|
26
|
+
/** Show loading state with loading.json Lottie */
|
|
11
27
|
loading: boolean;
|
|
28
|
+
/** Show close icon in header */
|
|
12
29
|
closable: boolean;
|
|
30
|
+
/** Hide action buttons */
|
|
13
31
|
displayButtons: boolean;
|
|
32
|
+
/** Loading title */
|
|
14
33
|
loadingTitle: string;
|
|
34
|
+
/** Loading message */
|
|
15
35
|
loadingMessage: string;
|
|
36
|
+
/**
|
|
37
|
+
* When true, primary button does NOT auto-close the modal (matches Angular `isStep`).
|
|
38
|
+
* Useful for step-by-step flows.
|
|
39
|
+
*/
|
|
16
40
|
isStep: boolean;
|
|
41
|
+
/** Base z-index for the internal modal overlay (matches Angular `baseZIndex`) */
|
|
17
42
|
baseZIndex: number;
|
|
43
|
+
/**
|
|
44
|
+
* Use White Label (MB) illustration style instead of Lottie animation.
|
|
45
|
+
*/
|
|
18
46
|
isWhiteLabel: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Convenience object prop — matches Angular `params: ModalParams`.
|
|
49
|
+
* Fields: tittle, type, message, primaryButton, secondaryButton, loadingTitle,
|
|
50
|
+
* loadingMessage, closable, displayButtons.
|
|
51
|
+
* When provided, its values override the corresponding individual props.
|
|
52
|
+
*/
|
|
19
53
|
params: any;
|
|
20
54
|
paramsChanged(val: any): void;
|
|
55
|
+
/** Emitted when primary button is clicked — matches Angular 'primaryButtonEvent' */
|
|
21
56
|
dropiPrimaryClick: EventEmitter<boolean>;
|
|
57
|
+
/** Emitted when secondary button is clicked — matches Angular 'secondaryButtonEvent' */
|
|
22
58
|
dropiSecondaryClick: EventEmitter<boolean>;
|
|
59
|
+
/** Emitted when modal open state changes — matches Angular 'modalOpenChange' */
|
|
23
60
|
dropiVisibleChange: EventEmitter<boolean>;
|
|
61
|
+
/** Emitted when modal is hidden — matches Angular 'onHide' */
|
|
24
62
|
dropiHide: EventEmitter<void>;
|
|
25
63
|
componentWillLoad(): void;
|
|
26
64
|
show(): Promise<void>;
|
|
@@ -202,66 +202,88 @@ export namespace Components {
|
|
|
202
202
|
*/
|
|
203
203
|
"visible": boolean;
|
|
204
204
|
}
|
|
205
|
+
/**
|
|
206
|
+
* @component dropi-alert-modal
|
|
207
|
+
* Confirmation/alert modal with Lottie animation, title, message and action buttons.
|
|
208
|
+
* Uses dropi-modal internally.
|
|
209
|
+
* @example const el = document.querySelector('dropi-alert-modal');
|
|
210
|
+
* el.visible = true;
|
|
211
|
+
*/
|
|
205
212
|
interface DropiAlertModal {
|
|
206
213
|
/**
|
|
214
|
+
* Base z-index for the internal modal overlay (matches Angular `baseZIndex`)
|
|
207
215
|
* @default 0
|
|
208
216
|
*/
|
|
209
217
|
"baseZIndex": number;
|
|
210
218
|
/**
|
|
219
|
+
* Show close icon in header
|
|
211
220
|
* @default false
|
|
212
221
|
*/
|
|
213
222
|
"closable": boolean;
|
|
214
223
|
/**
|
|
224
|
+
* Hide action buttons
|
|
215
225
|
* @default true
|
|
216
226
|
*/
|
|
217
227
|
"displayButtons": boolean;
|
|
218
228
|
"hide": () => Promise<void>;
|
|
219
229
|
/**
|
|
230
|
+
* When true, primary button does NOT auto-close the modal (matches Angular `isStep`). Useful for step-by-step flows.
|
|
220
231
|
* @default false
|
|
221
232
|
*/
|
|
222
233
|
"isStep": boolean;
|
|
223
234
|
/**
|
|
235
|
+
* Use White Label (MB) illustration style instead of Lottie animation.
|
|
224
236
|
* @default false
|
|
225
237
|
*/
|
|
226
238
|
"isWhiteLabel": boolean;
|
|
227
239
|
/**
|
|
240
|
+
* Show loading state with loading.json Lottie
|
|
228
241
|
* @default false
|
|
229
242
|
*/
|
|
230
243
|
"loading": boolean;
|
|
231
244
|
/**
|
|
245
|
+
* Loading message
|
|
232
246
|
* @default 'Please wait a moment'
|
|
233
247
|
*/
|
|
234
248
|
"loadingMessage": string;
|
|
235
249
|
/**
|
|
250
|
+
* Loading title
|
|
236
251
|
* @default 'Loading'
|
|
237
252
|
*/
|
|
238
253
|
"loadingTitle": string;
|
|
239
254
|
/**
|
|
255
|
+
* Body message
|
|
240
256
|
* @default ''
|
|
241
257
|
*/
|
|
242
258
|
"message": string;
|
|
243
259
|
/**
|
|
260
|
+
* Convenience object prop — matches Angular `params: ModalParams`. Fields: tittle, type, message, primaryButton, secondaryButton, loadingTitle, loadingMessage, closable, displayButtons. When provided, its values override the corresponding individual props.
|
|
244
261
|
* @default null
|
|
245
262
|
*/
|
|
246
263
|
"params": any;
|
|
247
264
|
/**
|
|
265
|
+
* Primary button label
|
|
248
266
|
* @default 'Accept'
|
|
249
267
|
*/
|
|
250
268
|
"primaryButton": string;
|
|
251
269
|
/**
|
|
270
|
+
* Secondary button label (hidden if empty)
|
|
252
271
|
* @default ''
|
|
253
272
|
*/
|
|
254
273
|
"secondaryButton": string;
|
|
255
274
|
"show": () => Promise<void>;
|
|
256
275
|
/**
|
|
276
|
+
* Bold title
|
|
257
277
|
* @default ''
|
|
258
278
|
*/
|
|
259
279
|
"tittle": string;
|
|
260
280
|
/**
|
|
281
|
+
* Modal type — determines Lottie animation
|
|
261
282
|
* @default 'question'
|
|
262
283
|
*/
|
|
263
284
|
"type": AlertModalType;
|
|
264
285
|
/**
|
|
286
|
+
* Controls visibility
|
|
265
287
|
* @default false
|
|
266
288
|
*/
|
|
267
289
|
"visible": any;
|
|
@@ -2990,6 +3012,13 @@ declare global {
|
|
|
2990
3012
|
"dropiVisibleChange": boolean;
|
|
2991
3013
|
"dropiHide": void;
|
|
2992
3014
|
}
|
|
3015
|
+
/**
|
|
3016
|
+
* @component dropi-alert-modal
|
|
3017
|
+
* Confirmation/alert modal with Lottie animation, title, message and action buttons.
|
|
3018
|
+
* Uses dropi-modal internally.
|
|
3019
|
+
* @example const el = document.querySelector('dropi-alert-modal');
|
|
3020
|
+
* el.visible = true;
|
|
3021
|
+
*/
|
|
2993
3022
|
interface HTMLDropiAlertModalElement extends Components.DropiAlertModal, HTMLStencilElement {
|
|
2994
3023
|
addEventListener<K extends keyof HTMLDropiAlertModalElementEventMap>(type: K, listener: (this: HTMLDropiAlertModalElement, ev: DropiAlertModalCustomEvent<HTMLDropiAlertModalElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2995
3024
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -4386,68 +4415,102 @@ declare namespace LocalJSX {
|
|
|
4386
4415
|
*/
|
|
4387
4416
|
"visible"?: boolean;
|
|
4388
4417
|
}
|
|
4418
|
+
/**
|
|
4419
|
+
* @component dropi-alert-modal
|
|
4420
|
+
* Confirmation/alert modal with Lottie animation, title, message and action buttons.
|
|
4421
|
+
* Uses dropi-modal internally.
|
|
4422
|
+
* @example const el = document.querySelector('dropi-alert-modal');
|
|
4423
|
+
* el.visible = true;
|
|
4424
|
+
*/
|
|
4389
4425
|
interface DropiAlertModal {
|
|
4390
4426
|
/**
|
|
4427
|
+
* Base z-index for the internal modal overlay (matches Angular `baseZIndex`)
|
|
4391
4428
|
* @default 0
|
|
4392
4429
|
*/
|
|
4393
4430
|
"baseZIndex"?: number;
|
|
4394
4431
|
/**
|
|
4432
|
+
* Show close icon in header
|
|
4395
4433
|
* @default false
|
|
4396
4434
|
*/
|
|
4397
4435
|
"closable"?: boolean;
|
|
4398
4436
|
/**
|
|
4437
|
+
* Hide action buttons
|
|
4399
4438
|
* @default true
|
|
4400
4439
|
*/
|
|
4401
4440
|
"displayButtons"?: boolean;
|
|
4402
4441
|
/**
|
|
4442
|
+
* When true, primary button does NOT auto-close the modal (matches Angular `isStep`). Useful for step-by-step flows.
|
|
4403
4443
|
* @default false
|
|
4404
4444
|
*/
|
|
4405
4445
|
"isStep"?: boolean;
|
|
4406
4446
|
/**
|
|
4447
|
+
* Use White Label (MB) illustration style instead of Lottie animation.
|
|
4407
4448
|
* @default false
|
|
4408
4449
|
*/
|
|
4409
4450
|
"isWhiteLabel"?: boolean;
|
|
4410
4451
|
/**
|
|
4452
|
+
* Show loading state with loading.json Lottie
|
|
4411
4453
|
* @default false
|
|
4412
4454
|
*/
|
|
4413
4455
|
"loading"?: boolean;
|
|
4414
4456
|
/**
|
|
4457
|
+
* Loading message
|
|
4415
4458
|
* @default 'Please wait a moment'
|
|
4416
4459
|
*/
|
|
4417
4460
|
"loadingMessage"?: string;
|
|
4418
4461
|
/**
|
|
4462
|
+
* Loading title
|
|
4419
4463
|
* @default 'Loading'
|
|
4420
4464
|
*/
|
|
4421
4465
|
"loadingTitle"?: string;
|
|
4422
4466
|
/**
|
|
4467
|
+
* Body message
|
|
4423
4468
|
* @default ''
|
|
4424
4469
|
*/
|
|
4425
4470
|
"message"?: string;
|
|
4471
|
+
/**
|
|
4472
|
+
* Emitted when modal is hidden — matches Angular 'onHide'
|
|
4473
|
+
*/
|
|
4426
4474
|
"onDropiHide"?: (event: DropiAlertModalCustomEvent<void>) => void;
|
|
4475
|
+
/**
|
|
4476
|
+
* Emitted when primary button is clicked — matches Angular 'primaryButtonEvent'
|
|
4477
|
+
*/
|
|
4427
4478
|
"onDropiPrimaryClick"?: (event: DropiAlertModalCustomEvent<boolean>) => void;
|
|
4479
|
+
/**
|
|
4480
|
+
* Emitted when secondary button is clicked — matches Angular 'secondaryButtonEvent'
|
|
4481
|
+
*/
|
|
4428
4482
|
"onDropiSecondaryClick"?: (event: DropiAlertModalCustomEvent<boolean>) => void;
|
|
4483
|
+
/**
|
|
4484
|
+
* Emitted when modal open state changes — matches Angular 'modalOpenChange'
|
|
4485
|
+
*/
|
|
4429
4486
|
"onDropiVisibleChange"?: (event: DropiAlertModalCustomEvent<boolean>) => void;
|
|
4430
4487
|
/**
|
|
4488
|
+
* Convenience object prop — matches Angular `params: ModalParams`. Fields: tittle, type, message, primaryButton, secondaryButton, loadingTitle, loadingMessage, closable, displayButtons. When provided, its values override the corresponding individual props.
|
|
4431
4489
|
* @default null
|
|
4432
4490
|
*/
|
|
4433
4491
|
"params"?: any;
|
|
4434
4492
|
/**
|
|
4493
|
+
* Primary button label
|
|
4435
4494
|
* @default 'Accept'
|
|
4436
4495
|
*/
|
|
4437
4496
|
"primaryButton"?: string;
|
|
4438
4497
|
/**
|
|
4498
|
+
* Secondary button label (hidden if empty)
|
|
4439
4499
|
* @default ''
|
|
4440
4500
|
*/
|
|
4441
4501
|
"secondaryButton"?: string;
|
|
4442
4502
|
/**
|
|
4503
|
+
* Bold title
|
|
4443
4504
|
* @default ''
|
|
4444
4505
|
*/
|
|
4445
4506
|
"tittle"?: string;
|
|
4446
4507
|
/**
|
|
4508
|
+
* Modal type — determines Lottie animation
|
|
4447
4509
|
* @default 'question'
|
|
4448
4510
|
*/
|
|
4449
4511
|
"type"?: AlertModalType;
|
|
4450
4512
|
/**
|
|
4513
|
+
* Controls visibility
|
|
4451
4514
|
* @default false
|
|
4452
4515
|
*/
|
|
4453
4516
|
"visible"?: any;
|
|
@@ -7979,6 +8042,13 @@ declare module "@stencil/core" {
|
|
|
7979
8042
|
* Legacy alert component for backward compatibility with Angular core.
|
|
7980
8043
|
*/
|
|
7981
8044
|
"dropi-alert-legacy": LocalJSX.IntrinsicElements["dropi-alert-legacy"] & JSXBase.HTMLAttributes<HTMLDropiAlertLegacyElement>;
|
|
8045
|
+
/**
|
|
8046
|
+
* @component dropi-alert-modal
|
|
8047
|
+
* Confirmation/alert modal with Lottie animation, title, message and action buttons.
|
|
8048
|
+
* Uses dropi-modal internally.
|
|
8049
|
+
* @example const el = document.querySelector('dropi-alert-modal');
|
|
8050
|
+
* el.visible = true;
|
|
8051
|
+
*/
|
|
7982
8052
|
"dropi-alert-modal": LocalJSX.IntrinsicElements["dropi-alert-modal"] & JSXBase.HTMLAttributes<HTMLDropiAlertModalElement>;
|
|
7983
8053
|
/**
|
|
7984
8054
|
* @component dropi-avatars
|
package/hydrate/index.js
CHANGED
|
@@ -5608,6 +5608,15 @@ const LOTTIE_MAP = {
|
|
|
5608
5608
|
|
|
5609
5609
|
const dropiAlertModalCss = () => `:host{display:contents}.body-alert{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--Size-3);width:100%;flex:1;overflow:visible;padding-bottom:var(--Size-2)}.lottie-img{width:120px;height:120px;overflow:hidden;flex-shrink:0;align-self:center;margin-top:-8px;margin-bottom:var(--Size-2)}.lottie-img lottie-player{display:block;width:120px;height:120px}.lottie-img--loading{width:100%;height:120px;overflow:hidden;display:flex;align-items:center;justify-content:center}.lottie-img--loading lottie-player{width:300px;height:auto;flex-shrink:0}.content-alert{text-align:center;width:100%;display:flex;flex-direction:column;align-items:center}.content-alert h2{color:var(--Gray-Gray-800);font-size:19px;font-weight:var(--font-weight-semibold);margin:0}.content-alert p{color:var(--Gray-Gray-500);font-size:var(--font-size-s);margin-bottom:var(--Size-2);overflow-wrap:anywhere;max-height:100px;overflow:auto}.custom-content{width:100%;text-align:left;margin-top:var(--Size-2);display:flex;flex-direction:column;gap:var(--Size-3)}.actions{display:flex;gap:var(--Size-3);width:100%}.actions dropi-button{flex:1;display:flex;justify-content:center}@media (max-width: 768px){.actions{flex-direction:column}.actions dropi-button{width:100%}}`;
|
|
5610
5610
|
|
|
5611
|
+
/**
|
|
5612
|
+
* @component dropi-alert-modal
|
|
5613
|
+
* Confirmation/alert modal with Lottie animation, title, message and action buttons.
|
|
5614
|
+
* Uses dropi-modal internally.
|
|
5615
|
+
*
|
|
5616
|
+
* @example
|
|
5617
|
+
* const el = document.querySelector('dropi-alert-modal');
|
|
5618
|
+
* el.visible = true;
|
|
5619
|
+
*/
|
|
5611
5620
|
class DropiAlertModal {
|
|
5612
5621
|
constructor(hostRef) {
|
|
5613
5622
|
registerInstance(this, hostRef);
|
|
@@ -5617,20 +5626,45 @@ class DropiAlertModal {
|
|
|
5617
5626
|
this.dropiHide = createEvent(this, "dropiHide");
|
|
5618
5627
|
}
|
|
5619
5628
|
get el() { return getElement(this); }
|
|
5629
|
+
/** Controls visibility */
|
|
5620
5630
|
visible = false;
|
|
5631
|
+
/** Modal type — determines Lottie animation */
|
|
5621
5632
|
type = 'question';
|
|
5633
|
+
/** Bold title */
|
|
5622
5634
|
tittle = '';
|
|
5635
|
+
/** Body message */
|
|
5623
5636
|
message = '';
|
|
5637
|
+
/** Primary button label */
|
|
5624
5638
|
primaryButton = 'Accept';
|
|
5639
|
+
/** Secondary button label (hidden if empty) */
|
|
5625
5640
|
secondaryButton = '';
|
|
5641
|
+
/** Show loading state with loading.json Lottie */
|
|
5626
5642
|
loading = false;
|
|
5643
|
+
/** Show close icon in header */
|
|
5627
5644
|
closable = false;
|
|
5645
|
+
/** Hide action buttons */
|
|
5628
5646
|
displayButtons = true;
|
|
5647
|
+
/** Loading title */
|
|
5629
5648
|
loadingTitle = 'Loading';
|
|
5649
|
+
/** Loading message */
|
|
5630
5650
|
loadingMessage = 'Please wait a moment';
|
|
5651
|
+
/**
|
|
5652
|
+
* When true, primary button does NOT auto-close the modal (matches Angular `isStep`).
|
|
5653
|
+
* Useful for step-by-step flows.
|
|
5654
|
+
*/
|
|
5631
5655
|
isStep = false;
|
|
5656
|
+
/** Base z-index for the internal modal overlay (matches Angular `baseZIndex`) */
|
|
5632
5657
|
baseZIndex = 0;
|
|
5658
|
+
/**
|
|
5659
|
+
* Use White Label (MB) illustration style instead of Lottie animation.
|
|
5660
|
+
*/
|
|
5633
5661
|
isWhiteLabel = false;
|
|
5662
|
+
/**
|
|
5663
|
+
* Convenience object prop — matches Angular `params: ModalParams`.
|
|
5664
|
+
* Fields: tittle, type, message, primaryButton, secondaryButton, loadingTitle,
|
|
5665
|
+
* loadingMessage, closable, displayButtons.
|
|
5666
|
+
* When provided, its values override the corresponding individual props.
|
|
5667
|
+
*/
|
|
5634
5668
|
params = null;
|
|
5635
5669
|
paramsChanged(val) {
|
|
5636
5670
|
if (!val)
|
|
@@ -5654,9 +5688,13 @@ class DropiAlertModal {
|
|
|
5654
5688
|
if (val.displayButtons !== undefined)
|
|
5655
5689
|
this.displayButtons = val.displayButtons;
|
|
5656
5690
|
}
|
|
5691
|
+
/** Emitted when primary button is clicked — matches Angular 'primaryButtonEvent' */
|
|
5657
5692
|
dropiPrimaryClick;
|
|
5693
|
+
/** Emitted when secondary button is clicked — matches Angular 'secondaryButtonEvent' */
|
|
5658
5694
|
dropiSecondaryClick;
|
|
5695
|
+
/** Emitted when modal open state changes — matches Angular 'modalOpenChange' */
|
|
5659
5696
|
dropiVisibleChange;
|
|
5697
|
+
/** Emitted when modal is hidden — matches Angular 'onHide' */
|
|
5660
5698
|
dropiHide;
|
|
5661
5699
|
componentWillLoad() {
|
|
5662
5700
|
if (this.params)
|
|
@@ -5689,7 +5727,7 @@ class DropiAlertModal {
|
|
|
5689
5727
|
const lottieKey = this.loading ? 'loading' : this.type;
|
|
5690
5728
|
const isLottieLoading = lottieKey === 'loading';
|
|
5691
5729
|
const lottieSrc = LOTTIE_MAP[lottieKey];
|
|
5692
|
-
return (hAsync("dropi-modal", { key: '
|
|
5730
|
+
return (hAsync("dropi-modal", { key: '9e44e3e2336cea618ad493257a9057f6ed05b3b9', visible: this.visible, showHeader: this.closable, showCloseIcon: this.closable, dismissable: false, closeOnEscape: false, showFooter: false, size: "s", onDropiHide: () => this.onModalHide() }, hAsync("div", { key: '2c83ef5ed1bce3821221404572e08ff83e5788a7', class: "body-alert" }, lottieSrc && (hAsync("div", { key: 'aef9b32ed8f6a9eed2d49b78a579efca7c30de35', class: `lottie-img${isLottieLoading ? ' lottie-img--loading' : ''}` }, hAsync("lottie-player", { key: lottieKey, src: lottieSrc, background: "transparent", speed: "1", loop: true, autoplay: true }))), hAsync("div", { key: '5c5161f34e04e783120cda34cbfda41da0061b40', class: "content-alert" }, hAsync("h2", { key: 'ea451c2f1d424a4ca9453eee500055929a4ee0cd' }, this.loading ? this.loadingTitle : this.tittle), hAsync("p", { key: '6fc476e3b79305a8542a9e3254a648df46e612c2' }, this.loading ? this.loadingMessage : this.message)), hAsync("div", { key: 'c6b62bd577696a2f474c05f6a91030f3caa17c9e', class: "custom-content" }, hAsync("slot", { key: '42957aad93193457111a074bad254c6209c5fb12' })), !this.loading && this.displayButtons && (hAsync("div", { key: 'f6bec3425de91611537bc418c7896b7dc510ace6', class: "actions" }, this.secondaryButton && hAsync("dropi-button", { key: 'e169fb4dbd9d6d5548095d59ddde524b6540b7a8', text: this.secondaryButton, severity: "secondary", onDropiClick: () => this.handleSecondary(), fullWidth: true }), hAsync("dropi-button", { key: 'f892a5d0fce7eae2d24fedc71a925c5c2cf767dd', text: this.primaryButton, severity: "primary", onDropiClick: () => this.handlePrimary(), fullWidth: true }))))));
|
|
5693
5731
|
}
|
|
5694
5732
|
static get watchers() { return {
|
|
5695
5733
|
"params": [{
|
package/hydrate/index.mjs
CHANGED
|
@@ -5606,6 +5606,15 @@ const LOTTIE_MAP = {
|
|
|
5606
5606
|
|
|
5607
5607
|
const dropiAlertModalCss = () => `:host{display:contents}.body-alert{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--Size-3);width:100%;flex:1;overflow:visible;padding-bottom:var(--Size-2)}.lottie-img{width:120px;height:120px;overflow:hidden;flex-shrink:0;align-self:center;margin-top:-8px;margin-bottom:var(--Size-2)}.lottie-img lottie-player{display:block;width:120px;height:120px}.lottie-img--loading{width:100%;height:120px;overflow:hidden;display:flex;align-items:center;justify-content:center}.lottie-img--loading lottie-player{width:300px;height:auto;flex-shrink:0}.content-alert{text-align:center;width:100%;display:flex;flex-direction:column;align-items:center}.content-alert h2{color:var(--Gray-Gray-800);font-size:19px;font-weight:var(--font-weight-semibold);margin:0}.content-alert p{color:var(--Gray-Gray-500);font-size:var(--font-size-s);margin-bottom:var(--Size-2);overflow-wrap:anywhere;max-height:100px;overflow:auto}.custom-content{width:100%;text-align:left;margin-top:var(--Size-2);display:flex;flex-direction:column;gap:var(--Size-3)}.actions{display:flex;gap:var(--Size-3);width:100%}.actions dropi-button{flex:1;display:flex;justify-content:center}@media (max-width: 768px){.actions{flex-direction:column}.actions dropi-button{width:100%}}`;
|
|
5608
5608
|
|
|
5609
|
+
/**
|
|
5610
|
+
* @component dropi-alert-modal
|
|
5611
|
+
* Confirmation/alert modal with Lottie animation, title, message and action buttons.
|
|
5612
|
+
* Uses dropi-modal internally.
|
|
5613
|
+
*
|
|
5614
|
+
* @example
|
|
5615
|
+
* const el = document.querySelector('dropi-alert-modal');
|
|
5616
|
+
* el.visible = true;
|
|
5617
|
+
*/
|
|
5609
5618
|
class DropiAlertModal {
|
|
5610
5619
|
constructor(hostRef) {
|
|
5611
5620
|
registerInstance(this, hostRef);
|
|
@@ -5615,20 +5624,45 @@ class DropiAlertModal {
|
|
|
5615
5624
|
this.dropiHide = createEvent(this, "dropiHide");
|
|
5616
5625
|
}
|
|
5617
5626
|
get el() { return getElement(this); }
|
|
5627
|
+
/** Controls visibility */
|
|
5618
5628
|
visible = false;
|
|
5629
|
+
/** Modal type — determines Lottie animation */
|
|
5619
5630
|
type = 'question';
|
|
5631
|
+
/** Bold title */
|
|
5620
5632
|
tittle = '';
|
|
5633
|
+
/** Body message */
|
|
5621
5634
|
message = '';
|
|
5635
|
+
/** Primary button label */
|
|
5622
5636
|
primaryButton = 'Accept';
|
|
5637
|
+
/** Secondary button label (hidden if empty) */
|
|
5623
5638
|
secondaryButton = '';
|
|
5639
|
+
/** Show loading state with loading.json Lottie */
|
|
5624
5640
|
loading = false;
|
|
5641
|
+
/** Show close icon in header */
|
|
5625
5642
|
closable = false;
|
|
5643
|
+
/** Hide action buttons */
|
|
5626
5644
|
displayButtons = true;
|
|
5645
|
+
/** Loading title */
|
|
5627
5646
|
loadingTitle = 'Loading';
|
|
5647
|
+
/** Loading message */
|
|
5628
5648
|
loadingMessage = 'Please wait a moment';
|
|
5649
|
+
/**
|
|
5650
|
+
* When true, primary button does NOT auto-close the modal (matches Angular `isStep`).
|
|
5651
|
+
* Useful for step-by-step flows.
|
|
5652
|
+
*/
|
|
5629
5653
|
isStep = false;
|
|
5654
|
+
/** Base z-index for the internal modal overlay (matches Angular `baseZIndex`) */
|
|
5630
5655
|
baseZIndex = 0;
|
|
5656
|
+
/**
|
|
5657
|
+
* Use White Label (MB) illustration style instead of Lottie animation.
|
|
5658
|
+
*/
|
|
5631
5659
|
isWhiteLabel = false;
|
|
5660
|
+
/**
|
|
5661
|
+
* Convenience object prop — matches Angular `params: ModalParams`.
|
|
5662
|
+
* Fields: tittle, type, message, primaryButton, secondaryButton, loadingTitle,
|
|
5663
|
+
* loadingMessage, closable, displayButtons.
|
|
5664
|
+
* When provided, its values override the corresponding individual props.
|
|
5665
|
+
*/
|
|
5632
5666
|
params = null;
|
|
5633
5667
|
paramsChanged(val) {
|
|
5634
5668
|
if (!val)
|
|
@@ -5652,9 +5686,13 @@ class DropiAlertModal {
|
|
|
5652
5686
|
if (val.displayButtons !== undefined)
|
|
5653
5687
|
this.displayButtons = val.displayButtons;
|
|
5654
5688
|
}
|
|
5689
|
+
/** Emitted when primary button is clicked — matches Angular 'primaryButtonEvent' */
|
|
5655
5690
|
dropiPrimaryClick;
|
|
5691
|
+
/** Emitted when secondary button is clicked — matches Angular 'secondaryButtonEvent' */
|
|
5656
5692
|
dropiSecondaryClick;
|
|
5693
|
+
/** Emitted when modal open state changes — matches Angular 'modalOpenChange' */
|
|
5657
5694
|
dropiVisibleChange;
|
|
5695
|
+
/** Emitted when modal is hidden — matches Angular 'onHide' */
|
|
5658
5696
|
dropiHide;
|
|
5659
5697
|
componentWillLoad() {
|
|
5660
5698
|
if (this.params)
|
|
@@ -5687,7 +5725,7 @@ class DropiAlertModal {
|
|
|
5687
5725
|
const lottieKey = this.loading ? 'loading' : this.type;
|
|
5688
5726
|
const isLottieLoading = lottieKey === 'loading';
|
|
5689
5727
|
const lottieSrc = LOTTIE_MAP[lottieKey];
|
|
5690
|
-
return (hAsync("dropi-modal", { key: '
|
|
5728
|
+
return (hAsync("dropi-modal", { key: '9e44e3e2336cea618ad493257a9057f6ed05b3b9', visible: this.visible, showHeader: this.closable, showCloseIcon: this.closable, dismissable: false, closeOnEscape: false, showFooter: false, size: "s", onDropiHide: () => this.onModalHide() }, hAsync("div", { key: '2c83ef5ed1bce3821221404572e08ff83e5788a7', class: "body-alert" }, lottieSrc && (hAsync("div", { key: 'aef9b32ed8f6a9eed2d49b78a579efca7c30de35', class: `lottie-img${isLottieLoading ? ' lottie-img--loading' : ''}` }, hAsync("lottie-player", { key: lottieKey, src: lottieSrc, background: "transparent", speed: "1", loop: true, autoplay: true }))), hAsync("div", { key: '5c5161f34e04e783120cda34cbfda41da0061b40', class: "content-alert" }, hAsync("h2", { key: 'ea451c2f1d424a4ca9453eee500055929a4ee0cd' }, this.loading ? this.loadingTitle : this.tittle), hAsync("p", { key: '6fc476e3b79305a8542a9e3254a648df46e612c2' }, this.loading ? this.loadingMessage : this.message)), hAsync("div", { key: 'c6b62bd577696a2f474c05f6a91030f3caa17c9e', class: "custom-content" }, hAsync("slot", { key: '42957aad93193457111a074bad254c6209c5fb12' })), !this.loading && this.displayButtons && (hAsync("div", { key: 'f6bec3425de91611537bc418c7896b7dc510ace6', class: "actions" }, this.secondaryButton && hAsync("dropi-button", { key: 'e169fb4dbd9d6d5548095d59ddde524b6540b7a8', text: this.secondaryButton, severity: "secondary", onDropiClick: () => this.handleSecondary(), fullWidth: true }), hAsync("dropi-button", { key: 'f892a5d0fce7eae2d24fedc71a925c5c2cf767dd', text: this.primaryButton, severity: "primary", onDropiClick: () => this.handlePrimary(), fullWidth: true }))))));
|
|
5691
5729
|
}
|
|
5692
5730
|
static get watchers() { return {
|
|
5693
5731
|
"params": [{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dropi/ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.50",
|
|
4
4
|
"description": "Dropi Design System — Web Components for Angular, React and Vue",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -51,7 +51,8 @@
|
|
|
51
51
|
"packages/*"
|
|
52
52
|
],
|
|
53
53
|
"scripts": {
|
|
54
|
-
"
|
|
54
|
+
"generate:maps": "node scripts/generate-icon-map.js && node scripts/generate-illustration-map.js && node scripts/generate-lottie-map.js",
|
|
55
|
+
"build": "npm run generate:maps && stencil build && npm run build --workspace=packages/react && npm run build --workspace=packages/angular",
|
|
55
56
|
"clear:cache": "node -e \"const fs=require('fs');['.stencil','node_modules/.cache'].forEach(p=>{try{fs.rmSync(p,{recursive:true,force:true})}catch(e){}})\"",
|
|
56
57
|
"publish:react": "npm run build && npm publish --workspace=packages/react",
|
|
57
58
|
"dev": "stencil build --dev --watch & npm run watch --workspace=packages/react",
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
const fs = require('fs');
|
|
4
4
|
const path = require('path');
|
|
5
5
|
|
|
6
|
-
// Keys match dropi-alert-modal's lottieMap; values are the JSON file names
|
|
7
6
|
const ENTRIES = [
|
|
8
7
|
{ key: 'question', file: 'question.json' },
|
|
9
8
|
{ key: 'warning', file: 'warning.json' },
|
|
@@ -23,9 +22,7 @@ for (const { key, file } of ENTRIES) {
|
|
|
23
22
|
console.warn(`⚠️ Missing lottie file: ${file} — skipping`);
|
|
24
23
|
continue;
|
|
25
24
|
}
|
|
26
|
-
// Store as a minified JSON string to avoid runtime JSON.stringify cost
|
|
27
25
|
const json = JSON.stringify(JSON.parse(fs.readFileSync(filePath, 'utf8')));
|
|
28
|
-
// Escape backticks and template literal dollar signs
|
|
29
26
|
const escaped = json.replace(/`/g, '\\`').replace(/\$/g, '\\$');
|
|
30
27
|
lines.push(` '${key}': \`${escaped}\``);
|
|
31
28
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as r,p as e,H as t,c as i,h as a}from"./index.js";import{d as o}from"./p-CL1y944C.js";const s={success:"Check-circle",error:"Cross-circle",warning:"Warning-circle",info:"Info"},n={success:"Success-Success-500",error:"Error-Error-500",warning:"Warning-Warning-500",info:"Info-Info-500"},l=e(class extends t{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.dropiClose=i(this,"dropiClose"),this.dropiButtonClick=i(this,"dropiButtonClick"),this.dropiLinkClick=i(this,"dropiLinkClick")}message="";type="default";state="success";dismissable=!0;showButton=!1;buttonText="Close";anchorText="";anchorUrl="";showAlert=!0;textLink="";linkUrl="";clickedText="";dropiClose;dropiButtonClick;dropiLinkClick;render(){return this.showAlert?a("div",{class:{alert:!0,[`alert--${this.type}`]:!0,[`alert--${this.state}`]:!0}},"flag"!==this.type&&a("div",{class:"alert__icon"},a("dropi-icon",{name:s[this.state],iconWidth:"18px",iconHeight:"18px",color:n[this.state]})),a("div",{class:"alert__body"},a("span",{class:"alert__message",innerHTML:this.message}),this.clickedText&&a("a",{class:"alert__link",href:"#",onClick:r=>{r.preventDefault(),this.dropiLinkClick.emit()}},this.clickedText),(this.anchorText||this.textLink)&&a("a",{class:"alert__link",href:this.anchorUrl||this.linkUrl||"#",onClick:r=>{r.preventDefault(),this.dropiLinkClick.emit()}},this.anchorText||this.textLink)),a("div",{class:"alert__actions"},this.showButton&&this.buttonText&&"flag"!==this.type&&a("button",{class:"alert__btn",onClick:()=>this.dropiButtonClick.emit()},this.buttonText),this.dismissable&&a("button",{class:"alert__close",onClick:()=>{this.showAlert=!1,this.dropiClose.emit()},"aria-label":"Cerrar"},a("dropi-icon",{name:"Close-small",iconWidth:"18px",iconHeight:"18px",color:"Gray-Gray-500"})))):null}static get style(){return":host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}.alert{display:flex;align-items:center;gap:var(--Size-2, 8px);padding:var(--Size-3, 12px);border-radius:var(--Border-2, 8px);border:1px solid transparent;width:100%}.alert--success{background:var(--Success-Success-50, #e7f8f3);border-color:var(--Success-Success-500, #0abb87)}.alert--error{background:var(--Error-Error-50, #fef0f0);border-color:var(--Error-Error-500, #f46a6b)}.alert--warning{background:var(--Warning-Warning-50, #fef8ed);border-color:var(--Warning-Warning-500, #f1b44c)}.alert--info{background:var(--Info-Info-50, #eef6fe);border-color:var(--Info-Info-500, #50a5f1)}.alert--flag{padding:var(--Size-1, 4px) var(--Size-2, 8px);border-radius:var(--Border-1, 4px);border:none !important;justify-content:center}.alert--flag .alert__body{justify-content:center;text-align:center}.alert--flag .alert__message{font-size:var(--font-size-xs);font-weight:var(--font-weight-regular)}.alert__icon{display:flex;align-items:center;flex-shrink:0;padding-top:1px}.alert__body{flex:1;display:flex;flex-wrap:wrap;align-items:center;gap:var(--Size-1, 4px)}.alert__message{font-size:var(--font-size-s);color:var(--Gray-600, #475066);font-weight:var(--font-weight-medium);line-height:1.5}.alert__link{font-size:var(--font-size-s, 12px);font-weight:var(--font-weight-bold, 700);color:var(--Primary-Primary-500, #f49a3d);text-decoration:underline;cursor:pointer}.alert__actions{display:flex;align-items:center;gap:var(--Size-2, 8px);flex-shrink:0}.alert__btn{height:28px;padding:0 var(--Size-3, 12px);border-radius:var(--Border-2, 8px);border:1px solid var(--Primary-Primary-500, #f49a3d);background:transparent;color:var(--Primary-Primary-500, #f49a3d);font-size:var(--font-size-xs, 10px);font-family:inherit;font-weight:var(--font-weight-bold, 700);cursor:pointer;transition:background 0.15s, color 0.15s}.alert__btn:hover{background:var(--Primary-Primary-500, #f49a3d);color:var(--Neutral-White, #ffffff)}.alert__close{display:flex;align-items:center;justify-content:center;background:none;border:none;padding:0;cursor:pointer;opacity:0.6;transition:opacity 0.15s}.alert__close:hover{opacity:1}"}},[513,"dropi-alert",{message:[1],type:[1],state:[1],dismissable:[4],showButton:[4,"show-button"],buttonText:[1,"button-text"],anchorText:[1,"anchor-text"],anchorUrl:[1,"anchor-url"],showAlert:[1028,"show-alert"],textLink:[1,"text-link"],linkUrl:[1,"link-url"],clickedText:[1,"clicked-text"]}]);function c(){"undefined"!=typeof customElements&&["dropi-alert","dropi-icon"].forEach((e=>{switch(e){case"dropi-alert":customElements.get(r(e))||customElements.define(r(e),l);break;case"dropi-icon":customElements.get(r(e))||o()}}))}c();export{l as D,c as d}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t,p as e,H as i,c as o,h as r}from"./index.js";import{d as s}from"./p-DWEoG5qY.js";const a=e(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.dropiInput=o(this,"dropiInput"),this.dropiChange=o(this,"dropiChange"),this.dropiFocus=o(this,"dropiFocus"),this.dropiBlur=o(this,"dropiBlur"),this.internals=this.attachInternals()}internals;inputId="";name="";label="";placeholder=" ";value="";maxLength;disabled=!1;required=!1;showObligatoryAsterisk=!0;fixedLabel=!1;inputMode="text";passwordInput=!1;isMoneyInput=!1;isThousandSeparator=!1;isNumericInput=!1;allowDecimals=!1;isLettersOnly=!1;icon="";iconColor="Gray-Gray-400";hasError=!1;textHelper="";showHelperOnlyOnError=!1;inputProperties=null;showPassword=!1;touched=!1;dropiInput;dropiChange;dropiFocus;dropiBlur;inputPropertiesChanged(t){t&&(void 0!==t.id&&(this.inputId=t.id),void 0!==t.inputId&&(this.inputId=t.inputId),void 0!==t.label&&(this.label=t.label),void 0!==t.placeholder&&(this.placeholder=t.placeholder),void 0!==t.maxLength&&(this.maxLength=t.maxLength),void 0!==t.textHelper&&(this.textHelper=t.textHelper),void 0!==t.passwordInput&&(this.passwordInput=t.passwordInput),void 0!==t.isPasswordInput&&(this.passwordInput=t.isPasswordInput),void 0!==t.icon&&(this.icon=t.icon),void 0!==t.iconColor&&(this.iconColor=t.iconColor),void 0!==t.isMoneyInput&&(this.isMoneyInput=t.isMoneyInput),void 0!==t.showObligatoryAsterisk&&(this.showObligatoryAsterisk=t.showObligatoryAsterisk),void 0!==t.isNumericInput&&(this.isNumericInput=t.isNumericInput),void 0!==t.allowDecimals&&(this.allowDecimals=t.allowDecimals),void 0!==t.isThousandSeparator&&(this.isThousandSeparator=t.isThousandSeparator),void 0!==t.showHelperOnlyOnError&&(this.showHelperOnlyOnError=t.showHelperOnlyOnError),void 0!==t.isLettersOnly&&(this.isLettersOnly=t.isLettersOnly),void 0!==t.inputMode&&(this.inputMode=t.inputMode))}valueChanged(t){this.internals.setFormValue(t)}disabledChanged(t){this.internals.setValidity(t?{customError:!0}:{},t?"Field is disabled":"")}componentWillLoad(){this.internals.setFormValue(this.value??""),this.inputProperties&&this.inputPropertiesChanged(this.inputProperties)}handleInput(t){let e=t.target.value;this.isNumericInput&&(e=this.filterNumbers(e)),this.isLettersOnly&&(e=this.filterLetters(e)),(this.isMoneyInput||this.isThousandSeparator)&&(e=this.formatThousands(e,this.isMoneyInput)),this.value=e,this.internals.setFormValue(e),this.dropiInput.emit(e),this.dropiChange.emit(e)}handleKeyDown(t){(this.isNumericInput||this.isMoneyInput||this.isThousandSeparator)&&!this.isAllowedNumberKey(t)&&t.preventDefault(),this.isLettersOnly&&!this.isAllowedLetterKey(t)&&t.preventDefault()}handleFocus(){this.dropiFocus.emit()}handleBlur(){this.touched=!0,this.dropiBlur.emit()}togglePassword(){this.disabled||(this.showPassword=!this.showPassword)}filterNumbers(t){return t.replace(this.allowDecimals?/[^0-9.]/g:/[^0-9]/g,"")}filterLetters(t){return t.replace(/[^a-zA-ZáéíóúÁÉÍÓÚñÑüÜ\s]/g,"")}isAllowedNumberKey(t){return!!(["Backspace","Delete","ArrowLeft","ArrowRight","Tab","Enter","Home","End"].includes(t.key)||t.ctrlKey||t.metaKey||/^[0-9]$/.test(t.key)||this.allowDecimals&&"."===t.key)}isAllowedLetterKey(t){return!!["Backspace","Delete","ArrowLeft","ArrowRight","Tab","Enter","Home","End"," "].includes(t.key)||!(!t.ctrlKey&&!t.metaKey)||/^[a-zA-ZáéíóúÁÉÍÓÚñÑüÜ]$/.test(t.key)}formatThousands(t,e){const i=t.replace(/[^0-9.]/g,""),[o,r]=i.split("."),s=o.replace(/\B(?=(\d{3})+(?!\d))/g,","),a=void 0!==r?`${s}.${r}`:s;return e?`$${a}`:a}get resolvedId(){return this.inputId||this.label}get inputType(){return this.passwordInput?this.showPassword?"text":"password":"text"}get showHelper(){return!!this.textHelper&&(!this.showHelperOnlyOnError||this.hasError&&this.touched)}get isInvalid(){return this.hasError&&this.touched}render(){const t=this.required&&this.showObligatoryAsterisk&&!this.disabled,e=!!this.icon;return r("div",{key:"e4c796c7993efaff51795c1bd98e5ebdd8d290b9",class:{"fixed-label-container":this.fixedLabel}},this.fixedLabel&&r("div",{key:"4beb27652c590c5eeda86ca86bd91695eebc9a28",class:"input-label Body-S-Regular"},this.label,t&&r("span",{key:"907fb3444cdd81b2573c120cf11d03d9eb43abf5",class:"asterisk"}," *")),r("div",{key:"57f9b151ed4588f8907b5d7eb167c7a6db6d1d20",class:"form-group"},r("div",{key:"5d9f1e8d9f02af3b44285c8af32cce234678a16c",class:{"input-container":!0,"input-container--has-icon":e}},e&&r("dropi-icon",{key:"7ed928ebce2196a0b31a7b1b620670b6c7b1047c",class:"icon-input",name:this.icon,color:this.iconColor,iconWidth:"20px",iconHeight:"20px",style:{width:"20px",height:"20px"}}),this.passwordInput&&r("dropi-icon",{key:"9c69320fd760eb8a41f375d902e5fb371cf024f3",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()}),r("input",{key:"c3e958c4e7293b1c96425fb2f23b9150d8e22b1b",id:this.resolvedId,class:{"form-control":!0,"form-control-valid":!this.isInvalid&&this.touched&&!!this.value,"form-control-invalid":this.isInvalid,"padding-icon":e,"text-password":this.passwordInput&&!this.showPassword,"fixed-label-input":this.fixedLabel},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":void 0,onInput:t=>this.handleInput(t),onKeyDown:t=>this.handleKeyDown(t),onFocus:()=>this.handleFocus(),onBlur:()=>this.handleBlur()}),!this.fixedLabel&&r("label",{key:"6c04977ffa24ee362830bb5dc8c3b2600e19c3c0",class:"Body-S-Regular label-bottom",htmlFor:this.resolvedId},this.label,t&&r("span",{key:"98361181d292d929c438c3dd70c920db510499ef",class:"asterisk"}," *")),this.showHelper&&r("div",{key:"21a2e9229eb21a8c0b48ec51a609a143ee8ba2c4",class:"form-control-helper"},this.isInvalid&&r("dropi-icon",{key:"18d18c43c8ea7c35ac5d4a294cbb36a8e05930fc",name:"Warning-circle",iconWidth:"12px",iconHeight:"12px",color:"Error-Error-500"}),r("span",{key:"1c684fa4c25ef0afb852592ca1e2fb059e0db491",class:{"disabled-helper":this.disabled,"invalid-color":this.isInvalid}},this.textHelper)))))}static get formAssociated(){return!0}static get watchers(){return{inputProperties:[{inputPropertiesChanged:0}],value:[{valueChanged:0}],disabled:[{disabledChanged:0}]}}static get style(){return":host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}.fixed-label-container{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:8px}.input-label{color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-xs, 10px);font-weight:var(--font-weight-regular, 400);text-align:left}.asterisk{color:var(--Error-Error-500, #f46a6b)}.form-group{position:relative;width:100%}.input-container{position:relative}.icon-input{position:absolute;top:50%;left:12px;transform:translateY(-50%);z-index:1;display:flex;align-items:center;justify-content:center}.icon-input-password{position:absolute;top:50%;right:13px;transform:translateY(-50%);cursor:pointer;z-index:1;display:flex;align-items:center;justify-content:center}.form-control{box-sizing:border-box;width:100%;padding:var(--Size-2, 8px);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #ffffff);font-size:var(--font-size-s, 12px);font-family:inherit;color:var(--Gray-Gray-700, #32394d);transition:border-color 0.3s ease-in-out;height:40px;outline:none;appearance:none;text-align:left}.form-control::placeholder{color:transparent;transition:color 0.2s ease-in-out}.form-control:focus::placeholder,.fixed-label-input::placeholder{color:var(--Gray-Gray-400, #858ea6)}.form-control:focus{border-color:var(--Info-Info-500, #50a5f1)}.form-control-valid{border-color:var(--Gray-Gray-400, #858ea6) !important;color:var(--Gray-Gray-600, #475066)}.form-control-invalid{border-color:var(--Error-Error-500, #f46a6b) !important;color:var(--Gray-Gray-600, #475066)}.form-control:disabled{border-color:var(--Gray-Gray-200, #c3c9d9) !important;color:var(--Gray-Gray-400, #858ea6);background-color:var(--Gray-Gray-50, #f7f8fa);cursor:not-allowed}.padding-icon{padding-left:40px}.input-container--has-icon label.label-bottom{left:40px}.input-container--has-icon .form-control:focus+label.label-bottom,.input-container--has-icon .form-control:not(:placeholder-shown)+label.label-bottom{left:0}.text-password{-webkit-text-security:disc;text-security:disc}label.label-bottom{position:absolute;font-weight:var(--font-weight-regular, 400);top:10px;font-size:var(--font-size-s, 12px);color:var(--Gray-Gray-500, #69738c);left:10px;transition:all 0.2s ease-in-out;pointer-events:none;overflow:hidden;width:90%;white-space:nowrap}.form-control:focus+label.label-bottom,.form-control:not(:placeholder-shown)+label.label-bottom{top:-22px;left:0;font-size:var(--font-size-xs, 10px);color:var(--Gray-Gray-600, #475066);width:unset}.form-control:disabled+label.label-bottom{color:var(--Gray-Gray-400, #858ea6)}.form-control-helper{display:flex;position:absolute;top:100%;left:0;gap:4px;align-items:center;margin-top:4px}.form-control-helper span{display:block;color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-xs, 10px)}.invalid-color{color:var(--Error-Error-500, #f46a6b) !important}.disabled-helper{color:var(--Gray-Gray-400, #858ea6) !important}.disabled-helper{color:var(--Gray-Gray-400, #858ea6) !important}"}},[577,"dropi-input",{inputId:[1025,"input-id"],name:[513],label:[1025],placeholder:[1025],value:[1025],maxLength:[1026,"max-length"],disabled:[516],required:[516],showObligatoryAsterisk:[1028,"show-obligatory-asterisk"],fixedLabel:[4,"fixed-label"],inputMode:[1025,"input-mode"],passwordInput:[1028,"password-input"],isMoneyInput:[1028,"is-money-input"],isThousandSeparator:[1028,"is-thousand-separator"],isNumericInput:[1028,"is-numeric-input"],allowDecimals:[1028,"allow-decimals"],isLettersOnly:[1028,"is-letters-only"],icon:[1025],iconColor:[1025,"icon-color"],hasError:[1028,"has-error"],textHelper:[1025,"text-helper"],showHelperOnlyOnError:[1028,"show-helper-only-on-error"],inputProperties:[8,"input-properties"],showPassword:[32],touched:[32]},void 0,{inputProperties:[{inputPropertiesChanged:0}],value:[{valueChanged:0}],disabled:[{disabledChanged:0}]}]);function n(){"undefined"!=typeof customElements&&["dropi-input","dropi-icon"].forEach((e=>{switch(e){case"dropi-input":customElements.get(t(e))||customElements.define(t(e),a);break;case"dropi-icon":customElements.get(t(e))||s()}}))}n();export{a as D,n as d}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t,p as e,H as i,c as o,h as r}from"./index.js";import{d as s}from"./p-C9mRfQtW.js";const a=e(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.dropiInput=o(this,"dropiInput"),this.dropiChange=o(this,"dropiChange"),this.dropiFocus=o(this,"dropiFocus"),this.dropiBlur=o(this,"dropiBlur"),this.internals=this.attachInternals()}internals;inputId="";name="";label="";placeholder=" ";value="";maxLength;disabled=!1;required=!1;showObligatoryAsterisk=!0;fixedLabel=!1;inputMode="text";passwordInput=!1;isMoneyInput=!1;isThousandSeparator=!1;isNumericInput=!1;allowDecimals=!1;isLettersOnly=!1;icon="";iconColor="Gray-Gray-400";hasError=!1;textHelper="";showHelperOnlyOnError=!1;inputProperties=null;showPassword=!1;touched=!1;dropiInput;dropiChange;dropiFocus;dropiBlur;inputPropertiesChanged(t){t&&(void 0!==t.id&&(this.inputId=t.id),void 0!==t.inputId&&(this.inputId=t.inputId),void 0!==t.label&&(this.label=t.label),void 0!==t.placeholder&&(this.placeholder=t.placeholder),void 0!==t.maxLength&&(this.maxLength=t.maxLength),void 0!==t.textHelper&&(this.textHelper=t.textHelper),void 0!==t.passwordInput&&(this.passwordInput=t.passwordInput),void 0!==t.isPasswordInput&&(this.passwordInput=t.isPasswordInput),void 0!==t.icon&&(this.icon=t.icon),void 0!==t.iconColor&&(this.iconColor=t.iconColor),void 0!==t.isMoneyInput&&(this.isMoneyInput=t.isMoneyInput),void 0!==t.showObligatoryAsterisk&&(this.showObligatoryAsterisk=t.showObligatoryAsterisk),void 0!==t.isNumericInput&&(this.isNumericInput=t.isNumericInput),void 0!==t.allowDecimals&&(this.allowDecimals=t.allowDecimals),void 0!==t.isThousandSeparator&&(this.isThousandSeparator=t.isThousandSeparator),void 0!==t.showHelperOnlyOnError&&(this.showHelperOnlyOnError=t.showHelperOnlyOnError),void 0!==t.isLettersOnly&&(this.isLettersOnly=t.isLettersOnly),void 0!==t.inputMode&&(this.inputMode=t.inputMode))}valueChanged(t){this.internals.setFormValue(t)}disabledChanged(t){this.internals.setValidity(t?{customError:!0}:{},t?"Field is disabled":"")}componentWillLoad(){this.internals.setFormValue(this.value??""),this.inputProperties&&this.inputPropertiesChanged(this.inputProperties)}handleInput(t){let e=t.target.value;this.isNumericInput&&(e=this.filterNumbers(e)),this.isLettersOnly&&(e=this.filterLetters(e)),(this.isMoneyInput||this.isThousandSeparator)&&(e=this.formatThousands(e,this.isMoneyInput)),this.value=e,this.internals.setFormValue(e),this.dropiInput.emit(e),this.dropiChange.emit(e)}handleKeyDown(t){(this.isNumericInput||this.isMoneyInput||this.isThousandSeparator)&&!this.isAllowedNumberKey(t)&&t.preventDefault(),this.isLettersOnly&&!this.isAllowedLetterKey(t)&&t.preventDefault()}handleFocus(){this.dropiFocus.emit()}handleBlur(){this.touched=!0,this.dropiBlur.emit()}togglePassword(){this.disabled||(this.showPassword=!this.showPassword)}filterNumbers(t){return t.replace(this.allowDecimals?/[^0-9.]/g:/[^0-9]/g,"")}filterLetters(t){return t.replace(/[^a-zA-ZáéíóúÁÉÍÓÚñÑüÜ\s]/g,"")}isAllowedNumberKey(t){return!!(["Backspace","Delete","ArrowLeft","ArrowRight","Tab","Enter","Home","End"].includes(t.key)||t.ctrlKey||t.metaKey||/^[0-9]$/.test(t.key)||this.allowDecimals&&"."===t.key)}isAllowedLetterKey(t){return!!["Backspace","Delete","ArrowLeft","ArrowRight","Tab","Enter","Home","End"," "].includes(t.key)||!(!t.ctrlKey&&!t.metaKey)||/^[a-zA-ZáéíóúÁÉÍÓÚñÑüÜ]$/.test(t.key)}formatThousands(t,e){const i=t.replace(/[^0-9.]/g,""),[o,r]=i.split("."),s=o.replace(/\B(?=(\d{3})+(?!\d))/g,","),a=void 0!==r?`${s}.${r}`:s;return e?`$${a}`:a}get resolvedId(){return this.inputId||this.label}get inputType(){return this.passwordInput?this.showPassword?"text":"password":"text"}get showHelper(){return!!this.textHelper&&(!this.showHelperOnlyOnError||this.hasError&&this.touched)}get isInvalid(){return this.hasError&&this.touched}render(){const t=this.required&&this.showObligatoryAsterisk&&!this.disabled,e=!!this.icon;return r("div",{key:"e4c796c7993efaff51795c1bd98e5ebdd8d290b9",class:{"fixed-label-container":this.fixedLabel}},this.fixedLabel&&r("div",{key:"4beb27652c590c5eeda86ca86bd91695eebc9a28",class:"input-label Body-S-Regular"},this.label,t&&r("span",{key:"907fb3444cdd81b2573c120cf11d03d9eb43abf5",class:"asterisk"}," *")),r("div",{key:"57f9b151ed4588f8907b5d7eb167c7a6db6d1d20",class:"form-group"},r("div",{key:"5d9f1e8d9f02af3b44285c8af32cce234678a16c",class:{"input-container":!0,"input-container--has-icon":e}},e&&r("dropi-icon",{key:"7ed928ebce2196a0b31a7b1b620670b6c7b1047c",class:"icon-input",name:this.icon,color:this.iconColor,iconWidth:"20px",iconHeight:"20px",style:{width:"20px",height:"20px"}}),this.passwordInput&&r("dropi-icon",{key:"9c69320fd760eb8a41f375d902e5fb371cf024f3",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()}),r("input",{key:"c3e958c4e7293b1c96425fb2f23b9150d8e22b1b",id:this.resolvedId,class:{"form-control":!0,"form-control-valid":!this.isInvalid&&this.touched&&!!this.value,"form-control-invalid":this.isInvalid,"padding-icon":e,"text-password":this.passwordInput&&!this.showPassword,"fixed-label-input":this.fixedLabel},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":void 0,onInput:t=>this.handleInput(t),onKeyDown:t=>this.handleKeyDown(t),onFocus:()=>this.handleFocus(),onBlur:()=>this.handleBlur()}),!this.fixedLabel&&r("label",{key:"6c04977ffa24ee362830bb5dc8c3b2600e19c3c0",class:"Body-S-Regular label-bottom",htmlFor:this.resolvedId},this.label,t&&r("span",{key:"98361181d292d929c438c3dd70c920db510499ef",class:"asterisk"}," *")),this.showHelper&&r("div",{key:"21a2e9229eb21a8c0b48ec51a609a143ee8ba2c4",class:"form-control-helper"},this.isInvalid&&r("dropi-icon",{key:"18d18c43c8ea7c35ac5d4a294cbb36a8e05930fc",name:"Warning-circle",iconWidth:"12px",iconHeight:"12px",color:"Error-Error-500"}),r("span",{key:"1c684fa4c25ef0afb852592ca1e2fb059e0db491",class:{"disabled-helper":this.disabled,"invalid-color":this.isInvalid}},this.textHelper)))))}static get formAssociated(){return!0}static get watchers(){return{inputProperties:[{inputPropertiesChanged:0}],value:[{valueChanged:0}],disabled:[{disabledChanged:0}]}}static get style(){return":host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}.fixed-label-container{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:8px}.input-label{color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-xs, 10px);font-weight:var(--font-weight-regular, 400);text-align:left}.asterisk{color:var(--Error-Error-500, #f46a6b)}.form-group{position:relative;width:100%}.input-container{position:relative}.icon-input{position:absolute;top:50%;left:12px;transform:translateY(-50%);z-index:1;display:flex;align-items:center;justify-content:center}.icon-input-password{position:absolute;top:50%;right:13px;transform:translateY(-50%);cursor:pointer;z-index:1;display:flex;align-items:center;justify-content:center}.form-control{box-sizing:border-box;width:100%;padding:var(--Size-2, 8px);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #ffffff);font-size:var(--font-size-s, 12px);font-family:inherit;color:red;transition:border-color 0.3s ease-in-out;height:40px;outline:none;appearance:none;text-align:left}.form-control::placeholder{color:transparent;transition:color 0.2s ease-in-out}.form-control:focus::placeholder,.fixed-label-input::placeholder{color:var(--Gray-Gray-400, #858ea6)}.form-control:focus{border-color:var(--Info-Info-500, #50a5f1)}.form-control-valid{border-color:var(--Gray-Gray-400, #858ea6) !important;color:var(--Gray-Gray-600, #475066)}.form-control-invalid{border-color:var(--Error-Error-500, #f46a6b) !important;color:var(--Gray-Gray-600, #475066)}.form-control:disabled{border-color:var(--Gray-Gray-200, #c3c9d9) !important;color:var(--Gray-Gray-400, #858ea6);background-color:var(--Gray-Gray-50, #f7f8fa);cursor:not-allowed}.padding-icon{padding-left:40px}.input-container--has-icon label.label-bottom{left:40px}.input-container--has-icon .form-control:focus+label.label-bottom,.input-container--has-icon .form-control:not(:placeholder-shown)+label.label-bottom{left:0}.text-password{-webkit-text-security:disc;text-security:disc}label.label-bottom{position:absolute;font-weight:var(--font-weight-regular, 400);top:10px;font-size:var(--font-size-s, 12px);color:var(--Gray-Gray-500, #69738c);left:10px;transition:all 0.2s ease-in-out;pointer-events:none;overflow:hidden;width:90%;white-space:nowrap}.form-control:focus+label.label-bottom,.form-control:not(:placeholder-shown)+label.label-bottom{top:-22px;left:0;font-size:var(--font-size-xs, 10px);color:var(--Gray-Gray-600, #475066);width:unset}.form-control:disabled+label.label-bottom{color:var(--Gray-Gray-400, #858ea6)}.form-control-helper{display:flex;position:absolute;top:100%;left:0;gap:4px;align-items:center;margin-top:4px}.form-control-helper span{display:block;color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-xs, 10px)}.invalid-color{color:var(--Error-Error-500, #f46a6b) !important}.disabled-helper{color:var(--Gray-Gray-400, #858ea6) !important}.disabled-helper{color:var(--Gray-Gray-400, #858ea6) !important}"}},[577,"dropi-input",{inputId:[1025,"input-id"],name:[513],label:[1025],placeholder:[1025],value:[1025],maxLength:[1026,"max-length"],disabled:[516],required:[516],showObligatoryAsterisk:[1028,"show-obligatory-asterisk"],fixedLabel:[4,"fixed-label"],inputMode:[1025,"input-mode"],passwordInput:[1028,"password-input"],isMoneyInput:[1028,"is-money-input"],isThousandSeparator:[1028,"is-thousand-separator"],isNumericInput:[1028,"is-numeric-input"],allowDecimals:[1028,"allow-decimals"],isLettersOnly:[1028,"is-letters-only"],icon:[1025],iconColor:[1025,"icon-color"],hasError:[1028,"has-error"],textHelper:[1025,"text-helper"],showHelperOnlyOnError:[1028,"show-helper-only-on-error"],inputProperties:[8,"input-properties"],showPassword:[32],touched:[32]},void 0,{inputProperties:[{inputPropertiesChanged:0}],value:[{valueChanged:0}],disabled:[{disabledChanged:0}]}]);function n(){"undefined"!=typeof customElements&&["dropi-input","dropi-icon"].forEach((e=>{switch(e){case"dropi-input":customElements.get(t(e))||customElements.define(t(e),a);break;case"dropi-icon":customElements.get(t(e))||s()}}))}n();export{a as D,n as d}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as i,p as t,H as e,h as a}from"./index.js";import{d as s}from"./p-CL1y944C.js";const r=t(class extends e{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow()}type="dropi";state="default";stateInsignia="verified";tagProduct=!1;basePath="/node_modules/@dropi/ui/assets/icons/ilustration";get insigniaIcons(){return{verified:`${this.basePath}/verified-new.svg`,premium:`${this.basePath}/premium-new.svg`,exclusive:`${this.basePath}/exclusive.svg`}}getIconName(i){return{success:"Check-circle",error:"Cross-circle",info:"Comment-round_info",warning:"Comment-round_info"}[i]||"Comment-round_info"}render(){return a("div",{key:"452266c0500ed2426ae0b0d7552a735c0022500b",class:"dropi-ilustration"},"dropi"===this.type&&a("figure",{key:"4ac1e8e482b5b80df9dceaa93630308b52d5db0d",class:"dropi-ilustration__image"},a("img",{key:"019a5c80798fc898a08ce851ab69b381d784e3f9",src:`${this.basePath}/${this.state&&"undefined"!==String(this.state)&&"null"!==String(this.state)?this.state:"default"}.svg`,alt:this.state??"default",onError:i=>{i.target.src=`${this.basePath}/default.svg`}})),"mb"===this.type&&a("figure",{key:"e7416f766fe3c0d633379bd9172ecfbb4b7f2a43",class:`dropi-ilustration__image-mb ${this.state}`},["success","error","info","warning"].includes(this.state)&&a("dropi-icon",{key:"c0fdd2564c0c0f821987cb13a519837a71afddbc",name:this.getIconName(this.state),iconWidth:"24px",iconHeight:"24px",color:"Neutral-White"})),"insignia"===this.type&&a("figure",{key:"8f1f4ace45532d06dbc38d34b3e1e32317d542b7",class:this.tagProduct?"dropi-ilustration-insignia-tag":"dropi-ilustration-insignia"},a("img",{key:"0d114a0b12bb3d31c222a34b09a47bd6a42e1dba",src:this.insigniaIcons[this.stateInsignia],alt:this.stateInsignia,onError:i=>{i.target.src=`${this.basePath}/default.svg`}}),this.tagProduct&&a("p",{key:"d1ef34a4fd92ee7b97a5a224d9a21b9e54976989",class:`tag tag--${this.stateInsignia}`},a("span",{key:"72ea7cef3bbc86f6330abb9c4f34c89e62ac3417",class:"Caption-S"},this.stateInsignia.charAt(0).toUpperCase()+this.stateInsignia.slice(1)))))}static get style(){return":host{display:inline-flex}.dropi-ilustration{display:inline-flex;align-items:center;justify-content:center}.dropi-ilustration__image,.dropi-ilustration-insignia{margin:0;display:flex;align-items:center;justify-content:center}.dropi-ilustration__image img{max-width:100%;height:auto}.dropi-ilustration__image-mb{width:60px;height:60px;display:flex;align-items:center;justify-content:center;border-radius:50%;margin:0}.dropi-ilustration__image-mb.success{background:var(--Success-Success-500, #22c55e)}.dropi-ilustration__image-mb.error{background:var(--Error-Error-500, #ef4444)}.dropi-ilustration__image-mb.info{background:var(--Info-Info-500, #3b82f6)}.dropi-ilustration__image-mb.warning{background:url('assets/icons/ilustration/bg-warning.svg') no-repeat center;background-size:contain;border-radius:0}.dropi-ilustration-insignia-tag{display:flex;align-items:center;margin:0}.dropi-ilustration-insignia-tag img{position:relative;z-index:2;height:32px;width:auto}.tag{border-radius:32px;color:var(--Neutral-White, #ffffff);text-transform:capitalize;margin:0 0 0 -20px;display:flex;align-items:center;justify-content:flex-start}.tag span{color:var(--Neutral-White, #ffffff);padding:4px 8px 4px 18px;font-size:var(--font-size-xxs)}.tag--verified{background:linear-gradient(90deg, #ffc10d 41.3%, #ff6102 112.32%)}.tag--premium{background:linear-gradient(90deg, #ff6102 56.52%, #ffc10d 107.25%)}.tag--exclusive{background:linear-gradient(90deg, var(--Gray-900, #0e111a) 26.09%, #ff6102 116.67%)}"}},[513,"dropi-ilustration-icon",{type:[1],state:[1],stateInsignia:[1,"state-insignia"],tagProduct:[4,"tag-product"],basePath:[1,"base-path"]}]);function n(){"undefined"!=typeof customElements&&["dropi-ilustration-icon","dropi-icon"].forEach((t=>{switch(t){case"dropi-ilustration-icon":customElements.get(i(t))||customElements.define(i(t),r);break;case"dropi-icon":customElements.get(i(t))||s()}}))}n();export{r as D,n as d}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as i,p as t,H as e,h as a}from"./index.js";import{d as s}from"./p-C9mRfQtW.js";const r=t(class extends e{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow()}type="dropi";state="default";stateInsignia="verified";tagProduct=!1;basePath="/node_modules/@dropi/ui/assets/icons/ilustration";get insigniaIcons(){return{verified:`${this.basePath}/verified-new.svg`,premium:`${this.basePath}/premium-new.svg`,exclusive:`${this.basePath}/exclusive.svg`}}getIconName(i){return{success:"Check-circle",error:"Cross-circle",info:"Comment-round_info",warning:"Comment-round_info"}[i]||"Comment-round_info"}render(){return a("div",{key:"452266c0500ed2426ae0b0d7552a735c0022500b",class:"dropi-ilustration"},"dropi"===this.type&&a("figure",{key:"4ac1e8e482b5b80df9dceaa93630308b52d5db0d",class:"dropi-ilustration__image"},a("img",{key:"019a5c80798fc898a08ce851ab69b381d784e3f9",src:`${this.basePath}/${this.state&&"undefined"!==String(this.state)&&"null"!==String(this.state)?this.state:"default"}.svg`,alt:this.state??"default",onError:i=>{i.target.src=`${this.basePath}/default.svg`}})),"mb"===this.type&&a("figure",{key:"e7416f766fe3c0d633379bd9172ecfbb4b7f2a43",class:`dropi-ilustration__image-mb ${this.state}`},["success","error","info","warning"].includes(this.state)&&a("dropi-icon",{key:"c0fdd2564c0c0f821987cb13a519837a71afddbc",name:this.getIconName(this.state),iconWidth:"24px",iconHeight:"24px",color:"Neutral-White"})),"insignia"===this.type&&a("figure",{key:"8f1f4ace45532d06dbc38d34b3e1e32317d542b7",class:this.tagProduct?"dropi-ilustration-insignia-tag":"dropi-ilustration-insignia"},a("img",{key:"0d114a0b12bb3d31c222a34b09a47bd6a42e1dba",src:this.insigniaIcons[this.stateInsignia],alt:this.stateInsignia,onError:i=>{i.target.src=`${this.basePath}/default.svg`}}),this.tagProduct&&a("p",{key:"d1ef34a4fd92ee7b97a5a224d9a21b9e54976989",class:`tag tag--${this.stateInsignia}`},a("span",{key:"72ea7cef3bbc86f6330abb9c4f34c89e62ac3417",class:"Caption-S"},this.stateInsignia.charAt(0).toUpperCase()+this.stateInsignia.slice(1)))))}static get style(){return":host{display:inline-flex}.dropi-ilustration{display:inline-flex;align-items:center;justify-content:center}.dropi-ilustration__image,.dropi-ilustration-insignia{margin:0;display:flex;align-items:center;justify-content:center}.dropi-ilustration__image img{max-width:100%;height:auto}.dropi-ilustration__image-mb{width:60px;height:60px;display:flex;align-items:center;justify-content:center;border-radius:50%;margin:0}.dropi-ilustration__image-mb.success{background:var(--Success-Success-500, #22c55e)}.dropi-ilustration__image-mb.error{background:var(--Error-Error-500, #ef4444)}.dropi-ilustration__image-mb.info{background:var(--Info-Info-500, #3b82f6)}.dropi-ilustration__image-mb.warning{background:url('assets/icons/ilustration/bg-warning.svg') no-repeat center;background-size:contain;border-radius:0}.dropi-ilustration-insignia-tag{display:flex;align-items:center;margin:0}.dropi-ilustration-insignia-tag img{position:relative;z-index:2;height:32px;width:auto}.tag{border-radius:32px;color:var(--Neutral-White, #ffffff);text-transform:capitalize;margin:0 0 0 -20px;display:flex;align-items:center;justify-content:flex-start}.tag span{color:var(--Neutral-White, #ffffff);padding:4px 8px 4px 18px;font-size:var(--font-size-xxs)}.tag--verified{background:linear-gradient(90deg, #ffc10d 41.3%, #ff6102 112.32%)}.tag--premium{background:linear-gradient(90deg, #ff6102 56.52%, #ffc10d 107.25%)}.tag--exclusive{background:linear-gradient(90deg, var(--Gray-900, #0e111a) 26.09%, #ff6102 116.67%)}"}},[513,"dropi-ilustration-icon",{type:[1],state:[1],stateInsignia:[1,"state-insignia"],tagProduct:[4,"tag-product"],basePath:[1,"base-path"]}]);function n(){"undefined"!=typeof customElements&&["dropi-ilustration-icon","dropi-icon"].forEach((t=>{switch(t){case"dropi-ilustration-icon":customElements.get(i(t))||customElements.define(i(t),r);break;case"dropi-icon":customElements.get(i(t))||s()}}))}n();export{r as D,n as d}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t,p as e,H as i,c as o,h as r}from"./index.js";import{d as s}from"./p-BxQ2iEWd.js";const a=e(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.dropiInput=o(this,"dropiInput"),this.dropiChange=o(this,"dropiChange"),this.dropiFocus=o(this,"dropiFocus"),this.dropiBlur=o(this,"dropiBlur"),this.internals=this.attachInternals()}internals;inputId="";name="";label="";placeholder=" ";value="";maxLength;disabled=!1;required=!1;showObligatoryAsterisk=!0;fixedLabel=!1;inputMode="text";passwordInput=!1;isMoneyInput=!1;isThousandSeparator=!1;isNumericInput=!1;allowDecimals=!1;isLettersOnly=!1;icon="";iconColor="Gray-Gray-400";hasError=!1;textHelper="";showHelperOnlyOnError=!1;inputProperties=null;showPassword=!1;touched=!1;dropiInput;dropiChange;dropiFocus;dropiBlur;inputPropertiesChanged(t){t&&(void 0!==t.id&&(this.inputId=t.id),void 0!==t.inputId&&(this.inputId=t.inputId),void 0!==t.label&&(this.label=t.label),void 0!==t.placeholder&&(this.placeholder=t.placeholder),void 0!==t.maxLength&&(this.maxLength=t.maxLength),void 0!==t.textHelper&&(this.textHelper=t.textHelper),void 0!==t.passwordInput&&(this.passwordInput=t.passwordInput),void 0!==t.isPasswordInput&&(this.passwordInput=t.isPasswordInput),void 0!==t.icon&&(this.icon=t.icon),void 0!==t.iconColor&&(this.iconColor=t.iconColor),void 0!==t.isMoneyInput&&(this.isMoneyInput=t.isMoneyInput),void 0!==t.showObligatoryAsterisk&&(this.showObligatoryAsterisk=t.showObligatoryAsterisk),void 0!==t.isNumericInput&&(this.isNumericInput=t.isNumericInput),void 0!==t.allowDecimals&&(this.allowDecimals=t.allowDecimals),void 0!==t.isThousandSeparator&&(this.isThousandSeparator=t.isThousandSeparator),void 0!==t.showHelperOnlyOnError&&(this.showHelperOnlyOnError=t.showHelperOnlyOnError),void 0!==t.isLettersOnly&&(this.isLettersOnly=t.isLettersOnly),void 0!==t.inputMode&&(this.inputMode=t.inputMode))}valueChanged(t){this.internals.setFormValue(t)}disabledChanged(t){this.internals.setValidity(t?{customError:!0}:{},t?"Field is disabled":"")}componentWillLoad(){this.internals.setFormValue(this.value??""),this.inputProperties&&this.inputPropertiesChanged(this.inputProperties)}handleInput(t){let e=t.target.value;this.isNumericInput&&(e=this.filterNumbers(e)),this.isLettersOnly&&(e=this.filterLetters(e)),(this.isMoneyInput||this.isThousandSeparator)&&(e=this.formatThousands(e,this.isMoneyInput)),this.value=e,this.internals.setFormValue(e),this.dropiInput.emit(e),this.dropiChange.emit(e)}handleKeyDown(t){(this.isNumericInput||this.isMoneyInput||this.isThousandSeparator)&&!this.isAllowedNumberKey(t)&&t.preventDefault(),this.isLettersOnly&&!this.isAllowedLetterKey(t)&&t.preventDefault()}handleFocus(){this.dropiFocus.emit()}handleBlur(){this.touched=!0,this.dropiBlur.emit()}togglePassword(){this.disabled||(this.showPassword=!this.showPassword)}filterNumbers(t){return t.replace(this.allowDecimals?/[^0-9.]/g:/[^0-9]/g,"")}filterLetters(t){return t.replace(/[^a-zA-ZáéíóúÁÉÍÓÚñÑüÜ\s]/g,"")}isAllowedNumberKey(t){return!!(["Backspace","Delete","ArrowLeft","ArrowRight","Tab","Enter","Home","End"].includes(t.key)||t.ctrlKey||t.metaKey||/^[0-9]$/.test(t.key)||this.allowDecimals&&"."===t.key)}isAllowedLetterKey(t){return!!["Backspace","Delete","ArrowLeft","ArrowRight","Tab","Enter","Home","End"," "].includes(t.key)||!(!t.ctrlKey&&!t.metaKey)||/^[a-zA-ZáéíóúÁÉÍÓÚñÑüÜ]$/.test(t.key)}formatThousands(t,e){const i=t.replace(/[^0-9.]/g,""),[o,r]=i.split("."),s=o.replace(/\B(?=(\d{3})+(?!\d))/g,","),a=void 0!==r?`${s}.${r}`:s;return e?`$${a}`:a}get resolvedId(){return this.inputId||this.label}get inputType(){return this.passwordInput?this.showPassword?"text":"password":"text"}get showHelper(){return!!this.textHelper&&(!this.showHelperOnlyOnError||this.hasError&&this.touched)}get isInvalid(){return this.hasError&&this.touched}render(){const t=this.required&&this.showObligatoryAsterisk&&!this.disabled,e=!!this.icon;return r("div",{key:"e4c796c7993efaff51795c1bd98e5ebdd8d290b9",class:{"fixed-label-container":this.fixedLabel}},this.fixedLabel&&r("div",{key:"4beb27652c590c5eeda86ca86bd91695eebc9a28",class:"input-label Body-S-Regular"},this.label,t&&r("span",{key:"907fb3444cdd81b2573c120cf11d03d9eb43abf5",class:"asterisk"}," *")),r("div",{key:"57f9b151ed4588f8907b5d7eb167c7a6db6d1d20",class:"form-group"},r("div",{key:"5d9f1e8d9f02af3b44285c8af32cce234678a16c",class:{"input-container":!0,"input-container--has-icon":e}},e&&r("dropi-icon",{key:"7ed928ebce2196a0b31a7b1b620670b6c7b1047c",class:"icon-input",name:this.icon,color:this.iconColor,iconWidth:"20px",iconHeight:"20px",style:{width:"20px",height:"20px"}}),this.passwordInput&&r("dropi-icon",{key:"9c69320fd760eb8a41f375d902e5fb371cf024f3",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()}),r("input",{key:"c3e958c4e7293b1c96425fb2f23b9150d8e22b1b",id:this.resolvedId,class:{"form-control":!0,"form-control-valid":!this.isInvalid&&this.touched&&!!this.value,"form-control-invalid":this.isInvalid,"padding-icon":e,"text-password":this.passwordInput&&!this.showPassword,"fixed-label-input":this.fixedLabel},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":void 0,onInput:t=>this.handleInput(t),onKeyDown:t=>this.handleKeyDown(t),onFocus:()=>this.handleFocus(),onBlur:()=>this.handleBlur()}),!this.fixedLabel&&r("label",{key:"6c04977ffa24ee362830bb5dc8c3b2600e19c3c0",class:"Body-S-Regular label-bottom",htmlFor:this.resolvedId},this.label,t&&r("span",{key:"98361181d292d929c438c3dd70c920db510499ef",class:"asterisk"}," *")),this.showHelper&&r("div",{key:"21a2e9229eb21a8c0b48ec51a609a143ee8ba2c4",class:"form-control-helper"},this.isInvalid&&r("dropi-icon",{key:"18d18c43c8ea7c35ac5d4a294cbb36a8e05930fc",name:"Warning-circle",iconWidth:"12px",iconHeight:"12px",color:"Error-Error-500"}),r("span",{key:"1c684fa4c25ef0afb852592ca1e2fb059e0db491",class:{"disabled-helper":this.disabled,"invalid-color":this.isInvalid}},this.textHelper)))))}static get formAssociated(){return!0}static get watchers(){return{inputProperties:[{inputPropertiesChanged:0}],value:[{valueChanged:0}],disabled:[{disabledChanged:0}]}}static get style(){return":host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}.fixed-label-container{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:8px}.input-label{color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-xs, 10px);font-weight:var(--font-weight-regular, 400);text-align:left}.asterisk{color:var(--Error-Error-500, #f46a6b)}.form-group{position:relative;width:100%}.input-container{position:relative}.icon-input{position:absolute;top:50%;left:12px;transform:translateY(-50%);z-index:1;display:flex;align-items:center;justify-content:center}.icon-input-password{position:absolute;top:50%;right:13px;transform:translateY(-50%);cursor:pointer;z-index:1;display:flex;align-items:center;justify-content:center}.form-control{box-sizing:border-box;width:100%;padding:var(--Size-2, 8px);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #ffffff);font-size:var(--font-size-s, 12px);font-family:inherit;color:var(--Gray-Gray-700, #32394d);transition:border-color 0.3s ease-in-out;height:40px;outline:none;appearance:none;text-align:left}.form-control::placeholder{color:transparent;transition:color 0.2s ease-in-out}.form-control:focus::placeholder,.fixed-label-input::placeholder{color:var(--Gray-Gray-400, #858ea6)}.form-control:focus{border-color:var(--Info-Info-500, #50a5f1)}.form-control-valid{border-color:var(--Gray-Gray-400, #858ea6) !important;color:var(--Gray-Gray-600, #475066)}.form-control-invalid{border-color:var(--Error-Error-500, #f46a6b) !important;color:var(--Gray-Gray-600, #475066)}.form-control:disabled{border-color:var(--Gray-Gray-200, #c3c9d9) !important;color:var(--Gray-Gray-400, #858ea6);background-color:var(--Gray-Gray-50, #f7f8fa);cursor:not-allowed}.padding-icon{padding-left:40px}.input-container--has-icon label.label-bottom{left:40px}.input-container--has-icon .form-control:focus+label.label-bottom,.input-container--has-icon .form-control:not(:placeholder-shown)+label.label-bottom{left:0}.text-password{-webkit-text-security:disc;text-security:disc}label.label-bottom{position:absolute;font-weight:var(--font-weight-regular, 400);top:10px;font-size:var(--font-size-s, 12px);color:var(--Gray-Gray-500, #69738c);left:10px;transition:all 0.2s ease-in-out;pointer-events:none;overflow:hidden;width:90%;white-space:nowrap}.form-control:focus+label.label-bottom,.form-control:not(:placeholder-shown)+label.label-bottom{top:-22px;left:0;font-size:var(--font-size-xs, 10px);color:var(--Gray-Gray-600, #475066);width:unset}.form-control:disabled+label.label-bottom{color:var(--Gray-Gray-400, #858ea6)}.form-control-helper{display:flex;position:absolute;top:100%;left:0;gap:4px;align-items:center;margin-top:4px}.form-control-helper span{display:block;color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-xs, 10px)}.invalid-color{color:var(--Error-Error-500, #f46a6b) !important}.disabled-helper{color:var(--Gray-Gray-400, #858ea6) !important}.disabled-helper{color:var(--Gray-Gray-400, #858ea6) !important}"}},[577,"dropi-input",{inputId:[1025,"input-id"],name:[513],label:[1025],placeholder:[1025],value:[1025],maxLength:[1026,"max-length"],disabled:[516],required:[516],showObligatoryAsterisk:[1028,"show-obligatory-asterisk"],fixedLabel:[4,"fixed-label"],inputMode:[1025,"input-mode"],passwordInput:[1028,"password-input"],isMoneyInput:[1028,"is-money-input"],isThousandSeparator:[1028,"is-thousand-separator"],isNumericInput:[1028,"is-numeric-input"],allowDecimals:[1028,"allow-decimals"],isLettersOnly:[1028,"is-letters-only"],icon:[1025],iconColor:[1025,"icon-color"],hasError:[1028,"has-error"],textHelper:[1025,"text-helper"],showHelperOnlyOnError:[1028,"show-helper-only-on-error"],inputProperties:[8,"input-properties"],showPassword:[32],touched:[32]},void 0,{inputProperties:[{inputPropertiesChanged:0}],value:[{valueChanged:0}],disabled:[{disabledChanged:0}]}]);function n(){"undefined"!=typeof customElements&&["dropi-input","dropi-icon"].forEach((e=>{switch(e){case"dropi-input":customElements.get(t(e))||customElements.define(t(e),a);break;case"dropi-icon":customElements.get(t(e))||s()}}))}n();export{a as D,n as d}
|