@dropi/ui 0.1.49 → 0.1.51
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/dropi-date-picker-range.cjs.entry.js +135 -28
- package/dist/cjs/dropi-ui.cjs.js +1 -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/cjs/loader.cjs.js +1 -1
- 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.css +169 -83
- package/dist/collection/components/dropi-date-picker-range/dropi-date-picker-range.js +173 -32
- 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/dropi-date-picker-range.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 +142 -87
- 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-4f498d26.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/dropi-date-picker-range.entry.js +136 -29
- package/dist/esm/dropi-ui.js +1 -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/esm/loader.js +1 -1
- package/dist/types/components/dropi-alert-modal/dropi-alert-modal.d.ts +38 -0
- package/dist/types/components/dropi-date-picker-range/dropi-date-picker-range.d.ts +18 -5
- package/dist/types/components.d.ts +91 -10
- package/hydrate/index.js +186 -36
- package/hydrate/index.mjs +186 -36
- 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
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": [{
|
|
@@ -7556,11 +7594,11 @@ class DropiCountrySelector {
|
|
|
7556
7594
|
|
|
7557
7595
|
const dropiDatePickerCss = () => `:host{display:block;width:100%;position:relative}*,*::before,*::after{box-sizing:border-box}.dp-label{display:block;font-size:var(--font-size-xxs, 10px);color:var(--Gray-Gray-600, #475066);margin-bottom:4px}.dp-trigger{width:100%;height:44px;display:flex;align-items:center;gap:var(--Size-2, 8px);padding:0 var(--Size-3, 12px);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #ffffff);cursor:pointer;font-family:inherit;transition:border-color 0.2s}.dp-trigger:hover:not(:disabled){border-color:var(--Info-Info-500, #50a5f1)}.dp-trigger--disabled{background:var(--Gray-Gray-50, #f7f8fa);cursor:not-allowed;opacity:0.6}.dp-trigger__value{flex:1;text-align:left;font-size:var(--font-size-xs, 12px);color:var(--Gray-Gray-700, #32394d);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dp-trigger__placeholder{color:var(--Gray-Gray-400, #858ea6)}.dp-popup{position:absolute;top:calc(100% + 8px);left:0;width:320px;background:var(--Neutral-White, #ffffff);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-3, 12px);box-shadow:0 4px 16px rgba(0,0,0,0.08);z-index:300;padding:var(--Size-4, 16px)}.dp-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--Size-4, 16px)}.dp-nav__btn{background:none;border:none;padding:0;cursor:pointer;border-radius:50%;display:flex;align-items:center;justify-content:center;width:32px;height:32px;transition:background 0.15s}.dp-nav__btn:hover{background:var(--Gray-Gray-50, #f7f8fa)}.dp-nav__title{font-size:var(--font-size-s, 14px);font-weight:var(--font-weight-bold, 700);color:var(--Gray-Gray-700, #32394d);display:flex;gap:8px}.dp-grid{display:grid;grid-template-columns:repeat(7, 1fr);row-gap:8px;column-gap:4px}.dp-day-header{font-size:var(--font-size-s, 14px);color:var(--Gray-Gray-700, #32394d);text-align:center;padding:8px 0;font-weight:var(--font-weight-bold, 700)}.dp-cell{aspect-ratio:1;display:flex;align-items:center;justify-content:center;font-size:var(--font-size-xs, 12px);font-family:inherit;border:none;cursor:pointer;background:transparent;color:var(--Gray-Gray-600, #475066);width:100%;position:relative;z-index:1;padding:0}.dp-cell::after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;border-radius:50%;transition:all 0.2s;z-index:-1;background:transparent}.dp-cell::before{content:"";position:absolute;top:0;bottom:0;z-index:-2;border-radius:0;background:transparent}.dp-cell:hover:not(:disabled)::after{background:var(--Gray-Gray-100, #e6eaf2)}.dp-cell--other-month{color:var(--Gray-Gray-300, #a0a9c0)}.dp-cell--today{font-weight:var(--font-weight-bold, 700)}.dp-cell--today::after{background:var(--Gray-Gray-100, #e6eaf2)}.dp-cell--selected{color:var(--Neutral-White, #ffffff);font-weight:var(--font-weight-bold, 700)}.dp-cell--selected::after{background:var(--Orange-orange-500, #f49a3d) !important}.dp-cell--range-start,.dp-cell--range-end{color:var(--Neutral-White, #ffffff);font-weight:var(--font-weight-bold, 700)}.dp-cell--range-start::after,.dp-cell--range-end::after{background:var(--Orange-orange-500, #f49a3d) !important}.dp-cell--in-range{color:var(--Orange-orange-500, #f49a3d);font-weight:var(--font-weight-bold, 700)}.dp-cell--in-range::before{left:-2px;right:-2px;background:var(--Orange-orange-50, #fef5ec)}.dp-cell--range-start::before{left:50%;right:-2px;background:var(--Orange-orange-50, #fef5ec)}.dp-cell--range-end::before{left:-2px;right:50%;background:var(--Orange-orange-50, #fef5ec)}.dp-cell--range-start.dp-cell--range-end::before{background:transparent}.dp-cell--disabled{opacity:0.35;cursor:not-allowed}.dp-footer{display:flex;justify-content:space-between;margin-top:var(--Size-3, 12px);border-top:1px solid var(--Gray-Gray-100, #e6eaf2);padding-top:var(--Size-2, 8px)}.dp-footer__clear,.dp-footer__today{background:none;border:none;padding:4px 8px;font-size:var(--font-size-xxs, 10px);font-family:inherit;cursor:pointer;border-radius:var(--Border-1, 4px);transition:background 0.15s}.dp-footer__clear{color:var(--Gray-Gray-500, #69738c)}.dp-footer__today{color:var(--Orange-orange-500, #f49a3d);font-weight:var(--font-weight-bold, 700)}.dp-footer__clear:hover{background:var(--Gray-Gray-50, #f7f8fa)}.dp-footer__today:hover{background:var(--Orange-orange-50, #fef5ec)}`;
|
|
7558
7596
|
|
|
7559
|
-
const MONTHS_ES = [
|
|
7597
|
+
const MONTHS_ES$1 = [
|
|
7560
7598
|
'Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio',
|
|
7561
7599
|
'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'
|
|
7562
7600
|
];
|
|
7563
|
-
const DAYS_ES = ['Do', 'Lu', 'Ma', 'Mi', 'Ju', 'Vi', 'Sa'];
|
|
7601
|
+
const DAYS_ES$1 = ['Do', 'Lu', 'Ma', 'Mi', 'Ju', 'Vi', 'Sa'];
|
|
7564
7602
|
/**
|
|
7565
7603
|
* @component dropi-date-picker
|
|
7566
7604
|
* Calendar date picker with optional date range mode.
|
|
@@ -7759,7 +7797,7 @@ class DropiDatePicker {
|
|
|
7759
7797
|
'dp-trigger--disabled': this.disabled,
|
|
7760
7798
|
'dp-trigger--invalid': this.isInvalid,
|
|
7761
7799
|
'dp-trigger--loading': this.loading
|
|
7762
|
-
}, onClick: () => this.open ? this.open = false : this.open_(), disabled: this.disabled || this.loading, type: "button" }, hAsync("dropi-icon", { key: '1044cef59317f88cc472d2a466a6937a0c4d58f7', name: "Calendar", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-400" }), hAsync("span", { key: '6a7c5687cd06b9b2f42c256bc03ff0f412ca5573', class: { 'dp-trigger__value': true, 'dp-trigger__placeholder': !this.displayValue } }, this.displayValue || this.placeholder), hAsync("dropi-icon", { key: '4be1fc67ed6f9ffb5a5d936e3e8d8330bb91fb0b', name: "Arrow-Down-2", iconWidth: "12px", iconHeight: "12px", color: "Gray-Gray-400" })), this.open && (hAsync("div", { key: '5ad107e256d62a46b57e4bd1bebead70ecc8e46c', class: "dp-popup" }, hAsync("div", { key: 'e3d51afbd24df88867777e43c9bd63dd41c3f542', class: "dp-nav" }, hAsync("button", { key: '8819f79389c1d50ec639f719228aab88be4d0335', class: "dp-nav__btn", onClick: () => this.prevMonth(), type: "button" }, hAsync("dropi-icon", { key: 'a17004ad24ce40590474d91227a826f46edf50ba', name: "Arrow-Left-2", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-600" })), hAsync("span", { key: 'e91c8a46b963a1e7f0d01c56610c2e4bb6fa3d39', class: "dp-nav__title" }, hAsync("span", { key: '214a575cbd83e8c3bafe64ffbd93e914119b09aa' }, MONTHS_ES[this.viewMonth]), hAsync("span", { key: '1f71a83e7110bf8a91f7b5e14e0400b09ba28e1a' }, this.viewYear)), hAsync("button", { key: '21dbc0fdaabc423bd864bfb33ba314b72ca62d48', class: "dp-nav__btn", onClick: () => this.nextMonth(), type: "button" }, hAsync("dropi-icon", { key: 'f248e65855555878afdbda7d1ba9a802d9eae4d5', name: "Arrow-Right-2", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-600" }))), hAsync("div", { key: '4fb29792028bf2132ea78a105c7694cf3806ff05', class: "dp-grid" }, DAYS_ES.map(d => (hAsync("div", { class: "dp-day-header" }, d))), days.map(({ iso, day, currentMonth }) => {
|
|
7800
|
+
}, onClick: () => this.open ? this.open = false : this.open_(), disabled: this.disabled || this.loading, type: "button" }, hAsync("dropi-icon", { key: '1044cef59317f88cc472d2a466a6937a0c4d58f7', name: "Calendar", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-400" }), hAsync("span", { key: '6a7c5687cd06b9b2f42c256bc03ff0f412ca5573', class: { 'dp-trigger__value': true, 'dp-trigger__placeholder': !this.displayValue } }, this.displayValue || this.placeholder), hAsync("dropi-icon", { key: '4be1fc67ed6f9ffb5a5d936e3e8d8330bb91fb0b', name: "Arrow-Down-2", iconWidth: "12px", iconHeight: "12px", color: "Gray-Gray-400" })), this.open && (hAsync("div", { key: '5ad107e256d62a46b57e4bd1bebead70ecc8e46c', class: "dp-popup" }, hAsync("div", { key: 'e3d51afbd24df88867777e43c9bd63dd41c3f542', class: "dp-nav" }, hAsync("button", { key: '8819f79389c1d50ec639f719228aab88be4d0335', class: "dp-nav__btn", onClick: () => this.prevMonth(), type: "button" }, hAsync("dropi-icon", { key: 'a17004ad24ce40590474d91227a826f46edf50ba', name: "Arrow-Left-2", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-600" })), hAsync("span", { key: 'e91c8a46b963a1e7f0d01c56610c2e4bb6fa3d39', class: "dp-nav__title" }, hAsync("span", { key: '214a575cbd83e8c3bafe64ffbd93e914119b09aa' }, MONTHS_ES$1[this.viewMonth]), hAsync("span", { key: '1f71a83e7110bf8a91f7b5e14e0400b09ba28e1a' }, this.viewYear)), hAsync("button", { key: '21dbc0fdaabc423bd864bfb33ba314b72ca62d48', class: "dp-nav__btn", onClick: () => this.nextMonth(), type: "button" }, hAsync("dropi-icon", { key: 'f248e65855555878afdbda7d1ba9a802d9eae4d5', name: "Arrow-Right-2", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-600" }))), hAsync("div", { key: '4fb29792028bf2132ea78a105c7694cf3806ff05', class: "dp-grid" }, DAYS_ES$1.map(d => (hAsync("div", { class: "dp-day-header" }, d))), days.map(({ iso, day, currentMonth }) => {
|
|
7763
7801
|
const isSelected = this.selectionMode !== 'range'
|
|
7764
7802
|
? iso === this.selectedDate
|
|
7765
7803
|
: iso === this.startDate || iso === this.endDate;
|
|
@@ -7838,14 +7876,19 @@ class DropiDatePicker {
|
|
|
7838
7876
|
}; }
|
|
7839
7877
|
}
|
|
7840
7878
|
|
|
7841
|
-
const dropiDatePickerRangeCss = () => `:host{display:block;width:100%;
|
|
7879
|
+
const dropiDatePickerRangeCss = () => `:host{display:block;width:100%;position:relative}*,*::before,*::after{box-sizing:border-box}.dpr-label{display:block;font-size:var(--font-size-xxs, 10px);color:var(--Gray-Gray-600, #475066);margin-bottom:4px}.dpr-trigger{width:100%;height:44px;display:flex;align-items:center;gap:var(--Size-2, 8px);padding:0 var(--Size-3, 12px);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #ffffff);cursor:pointer;font-family:inherit;transition:border-color 0.2s}.dpr-trigger:hover:not(:disabled){border-color:var(--Info-Info-500, #50a5f1)}.dpr-trigger--disabled{background:var(--Gray-Gray-50, #f7f8fa);cursor:not-allowed;opacity:0.6}.dpr-trigger__value{flex:1;text-align:left;font-size:var(--font-size-xs, 12px);color:var(--Gray-Gray-700, #32394d);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dpr-trigger__placeholder{color:var(--Gray-Gray-400, #858ea6)}.dpr-popup{position:absolute;top:calc(100% + 8px);left:0;display:flex;flex-direction:row;background:var(--Neutral-White, #ffffff);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-3, 12px);box-shadow:0 4px 16px rgba(0,0,0,0.08);z-index:300;overflow:hidden}.dpr-calendar{padding:var(--Size-4, 16px);width:300px;flex-shrink:0}.dpr-divider{width:1px;background:var(--Gray-Gray-100, #e6eaf2);flex-shrink:0}.dpr-shortcuts{padding:var(--Size-4, 16px) var(--Size-3, 12px);display:flex;flex-direction:column;gap:2px;min-width:140px}.shortcut-btn{background:transparent;border:1px solid transparent;padding:6px 10px;font-size:13px;font-family:inherit;color:var(--Gray-Gray-700, #32394d);cursor:pointer;text-align:left;border-radius:6px;transition:background 0.1s ease;font-weight:var(--font-weight-regular);white-space:nowrap}.shortcut-btn:hover{background:var(--Gray-Gray-50, #f5f6f8)}.shortcut-btn--active{border-color:var(--Gray-Gray-200, #c3c9d9);font-weight:var(--font-weight-semibold);background:var(--Gray-Gray-50, #f5f6f8)}.warning-box{margin-top:8px;padding:4px 8px;border:1px solid var(--Warning-Warning-400);border-radius:4px;background:var(--Warning-Warning-50)}.warning-message{color:#495057;font-size:var(--font-size-xxs);line-height:16px}.dp-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--Size-4, 16px);padding-bottom:var(--Size-3, 12px);border-bottom:1px solid var(--Gray-Gray-100, #e6eaf2)}.dp-nav__btn{background:none;border:none;padding:0;cursor:pointer;border-radius:50%;display:flex;align-items:center;justify-content:center;width:32px;height:32px;transition:background 0.15s}.dp-nav__btn:hover{background:var(--Gray-Gray-50, #f7f8fa)}.dp-nav__title{font-size:var(--font-size-s, 14px);font-weight:var(--font-weight-bold, 700);color:var(--Gray-Gray-700, #32394d);display:flex;gap:8px}.dp-grid{display:grid;grid-template-columns:repeat(7, 1fr);row-gap:6px;column-gap:2px}.dp-day-header{font-size:var(--font-size-s, 14px);color:var(--Gray-Gray-700, #32394d);text-align:center;padding:6px 0;font-weight:var(--font-weight-bold, 700)}.dp-cell{aspect-ratio:1;display:flex;align-items:center;justify-content:center;font-size:var(--font-size-xs, 12px);font-family:inherit;border:none;cursor:pointer;background:transparent;color:var(--Gray-Gray-600, #475066);width:100%;position:relative;z-index:1;padding:0}.dp-cell::after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;border-radius:50%;transition:background 0.15s;z-index:-1;background:transparent}.dp-cell::before{content:"";position:absolute;top:0;bottom:0;z-index:-2;background:transparent}.dp-cell:hover:not(:disabled)::after{background:var(--Gray-Gray-100, #e6eaf2)}.dp-cell--other-month{color:var(--Gray-Gray-300, #a0a9c0)}.dp-cell--today{font-weight:var(--font-weight-bold, 700)}.dp-cell--today::after{background:var(--Gray-Gray-100, #e6eaf2)}.dp-cell--selected{color:var(--Neutral-White, #ffffff);font-weight:var(--font-weight-bold, 700)}.dp-cell--selected::after{background:var(--Orange-orange-500, #f49a3d) !important}.dp-cell--range-start,.dp-cell--range-end{color:var(--Neutral-White, #ffffff);font-weight:var(--font-weight-bold, 700)}.dp-cell--range-start::after,.dp-cell--range-end::after{background:var(--Orange-orange-500, #f49a3d) !important}.dp-cell--in-range{color:var(--Orange-orange-500, #f49a3d);font-weight:var(--font-weight-bold, 700)}.dp-cell--in-range::before{left:-1px;right:-1px;background:var(--Orange-orange-50, #fef5ec)}.dp-cell--range-start::before{left:50%;right:-1px;background:var(--Orange-orange-50, #fef5ec)}.dp-cell--range-end::before{left:-1px;right:50%;background:var(--Orange-orange-50, #fef5ec)}.dp-cell--range-start.dp-cell--range-end::before{background:transparent}.dp-cell--disabled{opacity:0.35;cursor:not-allowed}@keyframes shimmer{0%{background-position:-468px 0}100%{background-position:468px 0}}.skeleton{height:44px;width:100%;border-radius:8px;animation:shimmer 1s linear infinite;background:linear-gradient(to right, #f5f6f8 8%, #e3e7ef 28%, #f5f6f8 77%);background-size:800px 104px}`;
|
|
7842
7880
|
|
|
7881
|
+
const MONTHS_ES = [
|
|
7882
|
+
'Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio',
|
|
7883
|
+
'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre',
|
|
7884
|
+
];
|
|
7885
|
+
const DAYS_ES = ['Do', 'Lu', 'Ma', 'Mi', 'Ju', 'Vi', 'Sa'];
|
|
7843
7886
|
/**
|
|
7844
7887
|
* @component dropi-date-picker-range
|
|
7845
|
-
* Date range picker with
|
|
7888
|
+
* Date range picker with calendar popup and shortcut panel.
|
|
7846
7889
|
*
|
|
7847
7890
|
* @example
|
|
7848
|
-
* <dropi-date-picker-range
|
|
7891
|
+
* <dropi-date-picker-range></dropi-date-picker-range>
|
|
7849
7892
|
*/
|
|
7850
7893
|
class DropiDatePickerRange {
|
|
7851
7894
|
constructor(hostRef) {
|
|
@@ -7861,13 +7904,15 @@ class DropiDatePickerRange {
|
|
|
7861
7904
|
/** Show "Rango de fechas" label */
|
|
7862
7905
|
showLabel = true;
|
|
7863
7906
|
/** Input placeholder */
|
|
7864
|
-
placeholder = '';
|
|
7907
|
+
placeholder = 'DD/MM/YYYY – DD/MM/YYYY';
|
|
7865
7908
|
/** Show loading skeleton */
|
|
7866
7909
|
loading = false;
|
|
7867
7910
|
/** Max allowed range in days (0 = unlimited) */
|
|
7868
7911
|
maxDaysRange = 0;
|
|
7869
7912
|
/** Hide "Hoy" shortcut */
|
|
7870
7913
|
hideTodayRangeShortcut = false;
|
|
7914
|
+
/** Disabled state */
|
|
7915
|
+
disabled = false;
|
|
7871
7916
|
/** Emitted when start date changes */
|
|
7872
7917
|
startDateChange;
|
|
7873
7918
|
/** Emitted when end date changes */
|
|
@@ -7878,8 +7923,18 @@ class DropiDatePickerRange {
|
|
|
7878
7923
|
end = '';
|
|
7879
7924
|
activeRange = -1;
|
|
7880
7925
|
showWarning = false;
|
|
7926
|
+
open = false;
|
|
7927
|
+
viewYear = new Date().getFullYear();
|
|
7928
|
+
viewMonth = new Date().getMonth();
|
|
7929
|
+
hoverDate = '';
|
|
7930
|
+
get el() { return getElement(this); }
|
|
7881
7931
|
onStartPropChange(val) { this.start = val; }
|
|
7882
7932
|
onEndPropChange(val) { this.end = val; }
|
|
7933
|
+
handleDocClick(e) {
|
|
7934
|
+
if (this.open && !e.composedPath().includes(this.el)) {
|
|
7935
|
+
this.open = false;
|
|
7936
|
+
}
|
|
7937
|
+
}
|
|
7883
7938
|
componentWillLoad() {
|
|
7884
7939
|
this.start = this.startDate;
|
|
7885
7940
|
this.end = this.endDate;
|
|
@@ -7902,47 +7957,137 @@ class DropiDatePickerRange {
|
|
|
7902
7957
|
];
|
|
7903
7958
|
return this.hideTodayRangeShortcut ? all.slice(1) : all;
|
|
7904
7959
|
}
|
|
7960
|
+
get displayValue() {
|
|
7961
|
+
const fmt = (s) => s.split('-').reverse().join('/');
|
|
7962
|
+
if (this.start && this.end)
|
|
7963
|
+
return `${fmt(this.start)} – ${fmt(this.end)}`;
|
|
7964
|
+
if (this.start)
|
|
7965
|
+
return fmt(this.start);
|
|
7966
|
+
return '';
|
|
7967
|
+
}
|
|
7968
|
+
toggleOpen() {
|
|
7969
|
+
if (this.disabled)
|
|
7970
|
+
return;
|
|
7971
|
+
if (!this.open && this.start) {
|
|
7972
|
+
const d = new Date(this.start);
|
|
7973
|
+
this.viewYear = d.getFullYear();
|
|
7974
|
+
this.viewMonth = d.getMonth();
|
|
7975
|
+
}
|
|
7976
|
+
this.open = !this.open;
|
|
7977
|
+
}
|
|
7978
|
+
prevMonth() {
|
|
7979
|
+
if (this.viewMonth === 0) {
|
|
7980
|
+
this.viewMonth = 11;
|
|
7981
|
+
this.viewYear--;
|
|
7982
|
+
}
|
|
7983
|
+
else
|
|
7984
|
+
this.viewMonth--;
|
|
7985
|
+
}
|
|
7986
|
+
nextMonth() {
|
|
7987
|
+
if (this.viewMonth === 11) {
|
|
7988
|
+
this.viewMonth = 0;
|
|
7989
|
+
this.viewYear++;
|
|
7990
|
+
}
|
|
7991
|
+
else
|
|
7992
|
+
this.viewMonth++;
|
|
7993
|
+
}
|
|
7994
|
+
toISO(year, month, day) {
|
|
7995
|
+
return `${year}-${String(month + 1).padStart(2, '0')}-${String(day).padStart(2, '0')}`;
|
|
7996
|
+
}
|
|
7997
|
+
isInRange(iso) {
|
|
7998
|
+
const end = this.end || this.hoverDate;
|
|
7999
|
+
if (!this.start || !end)
|
|
8000
|
+
return false;
|
|
8001
|
+
const [s, e] = this.start <= end ? [this.start, end] : [end, this.start];
|
|
8002
|
+
return iso > s && iso < e;
|
|
8003
|
+
}
|
|
8004
|
+
selectDate(iso) {
|
|
8005
|
+
if (!this.start || (this.start && this.end)) {
|
|
8006
|
+
this.start = iso;
|
|
8007
|
+
this.end = '';
|
|
8008
|
+
this.activeRange = -1;
|
|
8009
|
+
this.showWarning = false;
|
|
8010
|
+
}
|
|
8011
|
+
else {
|
|
8012
|
+
if (iso < this.start) {
|
|
8013
|
+
this.end = this.start;
|
|
8014
|
+
this.start = iso;
|
|
8015
|
+
}
|
|
8016
|
+
else {
|
|
8017
|
+
this.end = iso;
|
|
8018
|
+
}
|
|
8019
|
+
this.activeRange = -1;
|
|
8020
|
+
if (this.maxDaysRange > 0) {
|
|
8021
|
+
const diff = (new Date(this.end).getTime() - new Date(this.start).getTime()) / 86400000;
|
|
8022
|
+
this.showWarning = diff > this.maxDaysRange;
|
|
8023
|
+
if (this.showWarning)
|
|
8024
|
+
return;
|
|
8025
|
+
}
|
|
8026
|
+
this.open = false;
|
|
8027
|
+
this.emit();
|
|
8028
|
+
}
|
|
8029
|
+
}
|
|
7905
8030
|
selectShortcut(idx) {
|
|
7906
8031
|
const s = this.shortcuts[idx];
|
|
7907
8032
|
this.start = s.start;
|
|
7908
8033
|
this.end = s.end;
|
|
7909
8034
|
this.activeRange = idx;
|
|
7910
8035
|
this.showWarning = false;
|
|
8036
|
+
this.open = false;
|
|
7911
8037
|
this.emit();
|
|
7912
8038
|
}
|
|
7913
|
-
onStartChange(e) {
|
|
7914
|
-
this.start = e.target.value;
|
|
7915
|
-
this.activeRange = -1;
|
|
7916
|
-
this.checkRange();
|
|
7917
|
-
if (this.start && this.end)
|
|
7918
|
-
this.emit();
|
|
7919
|
-
}
|
|
7920
|
-
onEndChange(e) {
|
|
7921
|
-
this.end = e.target.value;
|
|
7922
|
-
this.activeRange = -1;
|
|
7923
|
-
this.checkRange();
|
|
7924
|
-
if (this.start && this.end)
|
|
7925
|
-
this.emit();
|
|
7926
|
-
}
|
|
7927
|
-
checkRange() {
|
|
7928
|
-
if (this.start && this.end && this.maxDaysRange > 0) {
|
|
7929
|
-
const diff = (new Date(this.end).getTime() - new Date(this.start).getTime()) / 86400000;
|
|
7930
|
-
this.showWarning = diff > this.maxDaysRange;
|
|
7931
|
-
}
|
|
7932
|
-
else {
|
|
7933
|
-
this.showWarning = false;
|
|
7934
|
-
}
|
|
7935
|
-
}
|
|
7936
8039
|
emit() {
|
|
7937
8040
|
this.startDateChange.emit(this.start);
|
|
7938
8041
|
this.endDateChange.emit(this.end);
|
|
7939
8042
|
this.dropiRangeChange.emit({ start: this.start, end: this.end });
|
|
7940
8043
|
}
|
|
8044
|
+
buildDays() {
|
|
8045
|
+
const year = this.viewYear;
|
|
8046
|
+
const month = this.viewMonth;
|
|
8047
|
+
const firstDay = new Date(year, month, 1).getDay();
|
|
8048
|
+
const daysInMonth = new Date(year, month + 1, 0).getDate();
|
|
8049
|
+
const daysInPrevMonth = new Date(year, month, 0).getDate();
|
|
8050
|
+
const cells = [];
|
|
8051
|
+
for (let i = firstDay - 1; i >= 0; i--) {
|
|
8052
|
+
const d = daysInPrevMonth - i;
|
|
8053
|
+
const m = month === 0 ? 11 : month - 1;
|
|
8054
|
+
const y = month === 0 ? year - 1 : year;
|
|
8055
|
+
cells.push({ iso: this.toISO(y, m, d), day: d, currentMonth: false });
|
|
8056
|
+
}
|
|
8057
|
+
for (let d = 1; d <= daysInMonth; d++) {
|
|
8058
|
+
cells.push({ iso: this.toISO(year, month, d), day: d, currentMonth: true });
|
|
8059
|
+
}
|
|
8060
|
+
const remaining = 42 - cells.length;
|
|
8061
|
+
for (let d = 1; d <= remaining; d++) {
|
|
8062
|
+
const m = month === 11 ? 0 : month + 1;
|
|
8063
|
+
const y = month === 11 ? year + 1 : year;
|
|
8064
|
+
cells.push({ iso: this.toISO(y, m, d), day: d, currentMonth: false });
|
|
8065
|
+
}
|
|
8066
|
+
return cells;
|
|
8067
|
+
}
|
|
7941
8068
|
render() {
|
|
7942
|
-
if (this.loading)
|
|
8069
|
+
if (this.loading)
|
|
7943
8070
|
return hAsync("div", { class: "skeleton" });
|
|
7944
|
-
|
|
7945
|
-
|
|
8071
|
+
const days = this.buildDays();
|
|
8072
|
+
const today = this.today;
|
|
8073
|
+
return (hAsync("div", { class: "dpr-wrap" }, this.showLabel && hAsync("label", { class: "dpr-label" }, "Rango de fechas"), hAsync("button", { class: { 'dpr-trigger': true, 'dpr-trigger--disabled': this.disabled }, onClick: () => this.toggleOpen(), disabled: this.disabled, type: "button" }, hAsync("dropi-icon", { name: "Calendar", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-400" }), hAsync("span", { class: { 'dpr-trigger__value': true, 'dpr-trigger__placeholder': !this.displayValue } }, this.displayValue || this.placeholder), hAsync("dropi-icon", { name: "Arrow-Down-2", iconWidth: "12px", iconHeight: "12px", color: "Gray-Gray-400" })), this.open && (hAsync("div", { class: "dpr-popup" }, hAsync("div", { class: "dpr-calendar" }, hAsync("div", { class: "dp-nav" }, hAsync("button", { class: "dp-nav__btn", onClick: () => this.prevMonth(), type: "button" }, hAsync("dropi-icon", { name: "Arrow-Left-2", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-600" })), hAsync("span", { class: "dp-nav__title" }, hAsync("span", null, MONTHS_ES[this.viewMonth]), hAsync("span", null, this.viewYear)), hAsync("button", { class: "dp-nav__btn", onClick: () => this.nextMonth(), type: "button" }, hAsync("dropi-icon", { name: "Arrow-Right-2", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-600" }))), hAsync("div", { class: "dp-grid" }, DAYS_ES.map(d => hAsync("div", { class: "dp-day-header" }, d)), days.map(({ iso, day, currentMonth }) => {
|
|
8074
|
+
const isStart = iso === this.start;
|
|
8075
|
+
const isEnd = iso === this.end;
|
|
8076
|
+
const inRange = this.isInRange(iso);
|
|
8077
|
+
const isToday = iso === today;
|
|
8078
|
+
return (hAsync("button", { class: {
|
|
8079
|
+
'dp-cell': true,
|
|
8080
|
+
'dp-cell--other-month': !currentMonth,
|
|
8081
|
+
'dp-cell--today': isToday && !isStart && !isEnd,
|
|
8082
|
+
'dp-cell--selected': isStart || isEnd,
|
|
8083
|
+
'dp-cell--range-start': isStart,
|
|
8084
|
+
'dp-cell--range-end': isEnd,
|
|
8085
|
+
'dp-cell--in-range': inRange,
|
|
8086
|
+
}, type: "button", onClick: () => this.selectDate(iso), onMouseEnter: () => {
|
|
8087
|
+
if (this.start && !this.end)
|
|
8088
|
+
this.hoverDate = iso;
|
|
8089
|
+
}, onMouseLeave: () => this.hoverDate = '' }, day));
|
|
8090
|
+
})), this.showWarning && (hAsync("div", { class: "warning-box" }, hAsync("span", { class: "warning-message" }, "Solo puedes filtrar en un rango m\u00E1ximo de ", this.maxDaysRange, " d\u00EDas.")))), hAsync("div", { class: "dpr-divider" }), hAsync("div", { class: "dpr-shortcuts" }, this.shortcuts.map((s, i) => (hAsync("button", { key: i, class: { 'shortcut-btn': true, 'shortcut-btn--active': this.activeRange === i }, onClick: () => this.selectShortcut(i), type: "button" }, s.label))))))));
|
|
7946
8091
|
}
|
|
7947
8092
|
static get watchers() { return {
|
|
7948
8093
|
"startDate": [{
|
|
@@ -7964,12 +8109,17 @@ class DropiDatePickerRange {
|
|
|
7964
8109
|
"loading": [4],
|
|
7965
8110
|
"maxDaysRange": [2, "max-days-range"],
|
|
7966
8111
|
"hideTodayRangeShortcut": [4, "hide-today-range-shortcut"],
|
|
8112
|
+
"disabled": [4],
|
|
7967
8113
|
"start": [32],
|
|
7968
8114
|
"end": [32],
|
|
7969
8115
|
"activeRange": [32],
|
|
7970
|
-
"showWarning": [32]
|
|
8116
|
+
"showWarning": [32],
|
|
8117
|
+
"open": [32],
|
|
8118
|
+
"viewYear": [32],
|
|
8119
|
+
"viewMonth": [32],
|
|
8120
|
+
"hoverDate": [32]
|
|
7971
8121
|
},
|
|
7972
|
-
"$listeners$":
|
|
8122
|
+
"$listeners$": [[4, "click", "handleDocClick"]],
|
|
7973
8123
|
"$lazyBundleId$": "-",
|
|
7974
8124
|
"$attrsToReflect$": []
|
|
7975
8125
|
}; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dropi/ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.51",
|
|
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}
|
|
@@ -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-BxQ2iEWd.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 e,p as t,H as i,c as s,h as o}from"./index.js";const r=t(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.dropiChange=s(this,"dropiChange"),this.internals=this.attachInternals()}internals;name;isChecked=!1;disabled=!1;dropiChange;checkedChanged(e){this.internals.setFormValue(e?"on":null)}componentWillLoad(){this.internals.setFormValue(this.isChecked?"on":null)}onToggleChange(e){this.isChecked=e.target.checked,this.dropiChange.emit(this.isChecked)}render(){return o("label",{key:"bb9809e03c3f5f4f6892731d7147eda5313a799b",class:"toggle-switch"},o("input",{key:"b0be8bb8c22705ae04ca6f12d2009bac0c6cd629",type:"checkbox",checked:this.isChecked,disabled:this.disabled,onChange:e=>this.onToggleChange(e)}),o("span",{key:"4073dacb4c17d1fdc2009a9e7329caffade3c932",class:"slider"}))}static get formAssociated(){return!0}static get watchers(){return{isChecked:[{checkedChanged:0}]}}static get style(){return":host{display:inline-block}*,*::before,*::after{box-sizing:border-box}.toggle-switch{position:relative;display:inline-block;width:40px;height:21px;margin-bottom:0;cursor:pointer}.toggle-switch input{opacity:0;width:0;height:0}.slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--Gray-Gray-200, #c3c9d9);transition:0.4s;border-radius:34px}.slider::before{position:absolute;content:'';height:17px;width:17px;left:3px;bottom:2px;background-color:var(--Neutral-White, #ffffff);transition:0.4s;border-radius:50%}input:checked+.slider{background-color:var(--Primary-Primary-500, #f49a3d)}input:checked+.slider::before{transform:translateX(17px)}:host([disabled]) .toggle-switch{cursor:not-allowed;opacity:0.5}"}},[577,"dropi-switch",{name:[513],isChecked:[1540,"is-checked"],disabled:[516]},void 0,{isChecked:[{checkedChanged:0}]}]);function c(){"undefined"!=typeof customElements&&["dropi-switch"].forEach((t=>{"dropi-switch"===t&&(customElements.get(e(t))||customElements.define(e(t),r))}))}c();export{r as D,c as d}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t,p as i,H as e,h as s}from"./index.js";const o=i(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}get el(){return this}name="";iconWidth="20px";iconHeight="20px";color="currentColor";strokeWidth="";spritePath="/assets/icons/symbol/svg/sprite.css.svg";widthChanged(){this.updateHostStyles()}heightChanged(){this.updateHostStyles()}colorChanged(){this.applyColor()}strokeWidthChanged(){this.applyStrokeWidth()}componentWillLoad(){this.applyColor(),this.applyStrokeWidth(),this.updateHostStyles()}componentDidUpdate(){this.updateHostStyles()}applyStrokeWidth(){this.strokeWidth&&this.el.style.setProperty("--icon-stroke-width",this.strokeWidth)}updateHostStyles(){this.el.style.width=this.iconWidth,this.el.style.height=this.iconHeight}applyColor(){if(!this.color)return;const t=this.color.startsWith("#")?this.color:"currentColor"===this.color?"currentColor":`var(--${this.color})`;this.el.style.setProperty("--icon-fill",t)}render(){return s("svg",{key:"300cdf35e749ffb9f37be17271dc604752cee052",width:this.iconWidth,height:this.iconHeight,class:{spin:"Spinner"===(this.name??"")},"aria-hidden":"true"},s("use",{key:"f5bd74b218c26094e7d1e2b2b825a3fa90f66e11",href:`${this.spritePath}#${this.name??""}`}))}static get watchers(){return{iconWidth:[{widthChanged:0}],iconHeight:[{heightChanged:0}],color:[{colorChanged:0}],strokeWidth:[{strokeWidthChanged:0}]}}static get style(){return":host{display:inline-flex;align-items:center;justify-content:center;fill:var(--icon-fill, currentColor);overflow:hidden}svg{fill:inherit;stroke:var(--icon-fill, currentColor);stroke-width:var(--icon-stroke-width, 0);display:block;width:100%;height:100%;vertical-align:middle}.spin{animation:spin 1s linear infinite}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}"}},[513,"dropi-icon",{name:[1],iconWidth:[1,"icon-width"],iconHeight:[1,"icon-height"],color:[1],strokeWidth:[1,"stroke-width"],spritePath:[1,"sprite-path"]},void 0,{iconWidth:[{widthChanged:0}],iconHeight:[{heightChanged:0}],color:[{colorChanged:0}],strokeWidth:[{strokeWidthChanged:0}]}]);function h(){"undefined"!=typeof customElements&&["dropi-icon"].forEach((i=>{"dropi-icon"===i&&(customElements.get(t(i))||customElements.define(t(i),o))}))}h();export{o as D,h as d}
|