@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.js
CHANGED
|
@@ -5608,6 +5608,15 @@ const LOTTIE_MAP = {
|
|
|
5608
5608
|
|
|
5609
5609
|
const dropiAlertModalCss = () => `:host{display:contents}.body-alert{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--Size-3);width:100%;flex:1;overflow:visible;padding-bottom:var(--Size-2)}.lottie-img{width:120px;height:120px;overflow:hidden;flex-shrink:0;align-self:center;margin-top:-8px;margin-bottom:var(--Size-2)}.lottie-img lottie-player{display:block;width:120px;height:120px}.lottie-img--loading{width:100%;height:120px;overflow:hidden;display:flex;align-items:center;justify-content:center}.lottie-img--loading lottie-player{width:300px;height:auto;flex-shrink:0}.content-alert{text-align:center;width:100%;display:flex;flex-direction:column;align-items:center}.content-alert h2{color:var(--Gray-Gray-800);font-size:19px;font-weight:var(--font-weight-semibold);margin:0}.content-alert p{color:var(--Gray-Gray-500);font-size:var(--font-size-s);margin-bottom:var(--Size-2);overflow-wrap:anywhere;max-height:100px;overflow:auto}.custom-content{width:100%;text-align:left;margin-top:var(--Size-2);display:flex;flex-direction:column;gap:var(--Size-3)}.actions{display:flex;gap:var(--Size-3);width:100%}.actions dropi-button{flex:1;display:flex;justify-content:center}@media (max-width: 768px){.actions{flex-direction:column}.actions dropi-button{width:100%}}`;
|
|
5610
5610
|
|
|
5611
|
+
/**
|
|
5612
|
+
* @component dropi-alert-modal
|
|
5613
|
+
* Confirmation/alert modal with Lottie animation, title, message and action buttons.
|
|
5614
|
+
* Uses dropi-modal internally.
|
|
5615
|
+
*
|
|
5616
|
+
* @example
|
|
5617
|
+
* const el = document.querySelector('dropi-alert-modal');
|
|
5618
|
+
* el.visible = true;
|
|
5619
|
+
*/
|
|
5611
5620
|
class DropiAlertModal {
|
|
5612
5621
|
constructor(hostRef) {
|
|
5613
5622
|
registerInstance(this, hostRef);
|
|
@@ -5617,20 +5626,45 @@ class DropiAlertModal {
|
|
|
5617
5626
|
this.dropiHide = createEvent(this, "dropiHide");
|
|
5618
5627
|
}
|
|
5619
5628
|
get el() { return getElement(this); }
|
|
5629
|
+
/** Controls visibility */
|
|
5620
5630
|
visible = false;
|
|
5631
|
+
/** Modal type — determines Lottie animation */
|
|
5621
5632
|
type = 'question';
|
|
5633
|
+
/** Bold title */
|
|
5622
5634
|
tittle = '';
|
|
5635
|
+
/** Body message */
|
|
5623
5636
|
message = '';
|
|
5637
|
+
/** Primary button label */
|
|
5624
5638
|
primaryButton = 'Accept';
|
|
5639
|
+
/** Secondary button label (hidden if empty) */
|
|
5625
5640
|
secondaryButton = '';
|
|
5641
|
+
/** Show loading state with loading.json Lottie */
|
|
5626
5642
|
loading = false;
|
|
5643
|
+
/** Show close icon in header */
|
|
5627
5644
|
closable = false;
|
|
5645
|
+
/** Hide action buttons */
|
|
5628
5646
|
displayButtons = true;
|
|
5647
|
+
/** Loading title */
|
|
5629
5648
|
loadingTitle = 'Loading';
|
|
5649
|
+
/** Loading message */
|
|
5630
5650
|
loadingMessage = 'Please wait a moment';
|
|
5651
|
+
/**
|
|
5652
|
+
* When true, primary button does NOT auto-close the modal (matches Angular `isStep`).
|
|
5653
|
+
* Useful for step-by-step flows.
|
|
5654
|
+
*/
|
|
5631
5655
|
isStep = false;
|
|
5656
|
+
/** Base z-index for the internal modal overlay (matches Angular `baseZIndex`) */
|
|
5632
5657
|
baseZIndex = 0;
|
|
5658
|
+
/**
|
|
5659
|
+
* Use White Label (MB) illustration style instead of Lottie animation.
|
|
5660
|
+
*/
|
|
5633
5661
|
isWhiteLabel = false;
|
|
5662
|
+
/**
|
|
5663
|
+
* Convenience object prop — matches Angular `params: ModalParams`.
|
|
5664
|
+
* Fields: tittle, type, message, primaryButton, secondaryButton, loadingTitle,
|
|
5665
|
+
* loadingMessage, closable, displayButtons.
|
|
5666
|
+
* When provided, its values override the corresponding individual props.
|
|
5667
|
+
*/
|
|
5634
5668
|
params = null;
|
|
5635
5669
|
paramsChanged(val) {
|
|
5636
5670
|
if (!val)
|
|
@@ -5654,9 +5688,13 @@ class DropiAlertModal {
|
|
|
5654
5688
|
if (val.displayButtons !== undefined)
|
|
5655
5689
|
this.displayButtons = val.displayButtons;
|
|
5656
5690
|
}
|
|
5691
|
+
/** Emitted when primary button is clicked — matches Angular 'primaryButtonEvent' */
|
|
5657
5692
|
dropiPrimaryClick;
|
|
5693
|
+
/** Emitted when secondary button is clicked — matches Angular 'secondaryButtonEvent' */
|
|
5658
5694
|
dropiSecondaryClick;
|
|
5695
|
+
/** Emitted when modal open state changes — matches Angular 'modalOpenChange' */
|
|
5659
5696
|
dropiVisibleChange;
|
|
5697
|
+
/** Emitted when modal is hidden — matches Angular 'onHide' */
|
|
5660
5698
|
dropiHide;
|
|
5661
5699
|
componentWillLoad() {
|
|
5662
5700
|
if (this.params)
|
|
@@ -5689,7 +5727,7 @@ class DropiAlertModal {
|
|
|
5689
5727
|
const lottieKey = this.loading ? 'loading' : this.type;
|
|
5690
5728
|
const isLottieLoading = lottieKey === 'loading';
|
|
5691
5729
|
const lottieSrc = LOTTIE_MAP[lottieKey];
|
|
5692
|
-
return (hAsync("dropi-modal", { key: '
|
|
5730
|
+
return (hAsync("dropi-modal", { key: '9e44e3e2336cea618ad493257a9057f6ed05b3b9', visible: this.visible, showHeader: this.closable, showCloseIcon: this.closable, dismissable: false, closeOnEscape: false, showFooter: false, size: "s", onDropiHide: () => this.onModalHide() }, hAsync("div", { key: '2c83ef5ed1bce3821221404572e08ff83e5788a7', class: "body-alert" }, lottieSrc && (hAsync("div", { key: 'aef9b32ed8f6a9eed2d49b78a579efca7c30de35', class: `lottie-img${isLottieLoading ? ' lottie-img--loading' : ''}` }, hAsync("lottie-player", { key: lottieKey, src: lottieSrc, background: "transparent", speed: "1", loop: true, autoplay: true }))), hAsync("div", { key: '5c5161f34e04e783120cda34cbfda41da0061b40', class: "content-alert" }, hAsync("h2", { key: 'ea451c2f1d424a4ca9453eee500055929a4ee0cd' }, this.loading ? this.loadingTitle : this.tittle), hAsync("p", { key: '6fc476e3b79305a8542a9e3254a648df46e612c2' }, this.loading ? this.loadingMessage : this.message)), hAsync("div", { key: 'c6b62bd577696a2f474c05f6a91030f3caa17c9e', class: "custom-content" }, hAsync("slot", { key: '42957aad93193457111a074bad254c6209c5fb12' })), !this.loading && this.displayButtons && (hAsync("div", { key: 'f6bec3425de91611537bc418c7896b7dc510ace6', class: "actions" }, this.secondaryButton && hAsync("dropi-button", { key: 'e169fb4dbd9d6d5548095d59ddde524b6540b7a8', text: this.secondaryButton, severity: "secondary", onDropiClick: () => this.handleSecondary(), fullWidth: true }), hAsync("dropi-button", { key: 'f892a5d0fce7eae2d24fedc71a925c5c2cf767dd', text: this.primaryButton, severity: "primary", onDropiClick: () => this.handlePrimary(), fullWidth: true }))))));
|
|
5693
5731
|
}
|
|
5694
5732
|
static get watchers() { return {
|
|
5695
5733
|
"params": [{
|
|
@@ -7558,11 +7596,11 @@ class DropiCountrySelector {
|
|
|
7558
7596
|
|
|
7559
7597
|
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)}`;
|
|
7560
7598
|
|
|
7561
|
-
const MONTHS_ES = [
|
|
7599
|
+
const MONTHS_ES$1 = [
|
|
7562
7600
|
'Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio',
|
|
7563
7601
|
'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'
|
|
7564
7602
|
];
|
|
7565
|
-
const DAYS_ES = ['Do', 'Lu', 'Ma', 'Mi', 'Ju', 'Vi', 'Sa'];
|
|
7603
|
+
const DAYS_ES$1 = ['Do', 'Lu', 'Ma', 'Mi', 'Ju', 'Vi', 'Sa'];
|
|
7566
7604
|
/**
|
|
7567
7605
|
* @component dropi-date-picker
|
|
7568
7606
|
* Calendar date picker with optional date range mode.
|
|
@@ -7761,7 +7799,7 @@ class DropiDatePicker {
|
|
|
7761
7799
|
'dp-trigger--disabled': this.disabled,
|
|
7762
7800
|
'dp-trigger--invalid': this.isInvalid,
|
|
7763
7801
|
'dp-trigger--loading': this.loading
|
|
7764
|
-
}, 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 }) => {
|
|
7802
|
+
}, 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 }) => {
|
|
7765
7803
|
const isSelected = this.selectionMode !== 'range'
|
|
7766
7804
|
? iso === this.selectedDate
|
|
7767
7805
|
: iso === this.startDate || iso === this.endDate;
|
|
@@ -7840,14 +7878,19 @@ class DropiDatePicker {
|
|
|
7840
7878
|
}; }
|
|
7841
7879
|
}
|
|
7842
7880
|
|
|
7843
|
-
const dropiDatePickerRangeCss = () => `:host{display:block;width:100%;
|
|
7881
|
+
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}`;
|
|
7844
7882
|
|
|
7883
|
+
const MONTHS_ES = [
|
|
7884
|
+
'Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio',
|
|
7885
|
+
'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre',
|
|
7886
|
+
];
|
|
7887
|
+
const DAYS_ES = ['Do', 'Lu', 'Ma', 'Mi', 'Ju', 'Vi', 'Sa'];
|
|
7845
7888
|
/**
|
|
7846
7889
|
* @component dropi-date-picker-range
|
|
7847
|
-
* Date range picker with
|
|
7890
|
+
* Date range picker with calendar popup and shortcut panel.
|
|
7848
7891
|
*
|
|
7849
7892
|
* @example
|
|
7850
|
-
* <dropi-date-picker-range
|
|
7893
|
+
* <dropi-date-picker-range></dropi-date-picker-range>
|
|
7851
7894
|
*/
|
|
7852
7895
|
class DropiDatePickerRange {
|
|
7853
7896
|
constructor(hostRef) {
|
|
@@ -7863,13 +7906,15 @@ class DropiDatePickerRange {
|
|
|
7863
7906
|
/** Show "Rango de fechas" label */
|
|
7864
7907
|
showLabel = true;
|
|
7865
7908
|
/** Input placeholder */
|
|
7866
|
-
placeholder = '';
|
|
7909
|
+
placeholder = 'DD/MM/YYYY – DD/MM/YYYY';
|
|
7867
7910
|
/** Show loading skeleton */
|
|
7868
7911
|
loading = false;
|
|
7869
7912
|
/** Max allowed range in days (0 = unlimited) */
|
|
7870
7913
|
maxDaysRange = 0;
|
|
7871
7914
|
/** Hide "Hoy" shortcut */
|
|
7872
7915
|
hideTodayRangeShortcut = false;
|
|
7916
|
+
/** Disabled state */
|
|
7917
|
+
disabled = false;
|
|
7873
7918
|
/** Emitted when start date changes */
|
|
7874
7919
|
startDateChange;
|
|
7875
7920
|
/** Emitted when end date changes */
|
|
@@ -7880,8 +7925,18 @@ class DropiDatePickerRange {
|
|
|
7880
7925
|
end = '';
|
|
7881
7926
|
activeRange = -1;
|
|
7882
7927
|
showWarning = false;
|
|
7928
|
+
open = false;
|
|
7929
|
+
viewYear = new Date().getFullYear();
|
|
7930
|
+
viewMonth = new Date().getMonth();
|
|
7931
|
+
hoverDate = '';
|
|
7932
|
+
get el() { return getElement(this); }
|
|
7883
7933
|
onStartPropChange(val) { this.start = val; }
|
|
7884
7934
|
onEndPropChange(val) { this.end = val; }
|
|
7935
|
+
handleDocClick(e) {
|
|
7936
|
+
if (this.open && !e.composedPath().includes(this.el)) {
|
|
7937
|
+
this.open = false;
|
|
7938
|
+
}
|
|
7939
|
+
}
|
|
7885
7940
|
componentWillLoad() {
|
|
7886
7941
|
this.start = this.startDate;
|
|
7887
7942
|
this.end = this.endDate;
|
|
@@ -7904,47 +7959,137 @@ class DropiDatePickerRange {
|
|
|
7904
7959
|
];
|
|
7905
7960
|
return this.hideTodayRangeShortcut ? all.slice(1) : all;
|
|
7906
7961
|
}
|
|
7962
|
+
get displayValue() {
|
|
7963
|
+
const fmt = (s) => s.split('-').reverse().join('/');
|
|
7964
|
+
if (this.start && this.end)
|
|
7965
|
+
return `${fmt(this.start)} – ${fmt(this.end)}`;
|
|
7966
|
+
if (this.start)
|
|
7967
|
+
return fmt(this.start);
|
|
7968
|
+
return '';
|
|
7969
|
+
}
|
|
7970
|
+
toggleOpen() {
|
|
7971
|
+
if (this.disabled)
|
|
7972
|
+
return;
|
|
7973
|
+
if (!this.open && this.start) {
|
|
7974
|
+
const d = new Date(this.start);
|
|
7975
|
+
this.viewYear = d.getFullYear();
|
|
7976
|
+
this.viewMonth = d.getMonth();
|
|
7977
|
+
}
|
|
7978
|
+
this.open = !this.open;
|
|
7979
|
+
}
|
|
7980
|
+
prevMonth() {
|
|
7981
|
+
if (this.viewMonth === 0) {
|
|
7982
|
+
this.viewMonth = 11;
|
|
7983
|
+
this.viewYear--;
|
|
7984
|
+
}
|
|
7985
|
+
else
|
|
7986
|
+
this.viewMonth--;
|
|
7987
|
+
}
|
|
7988
|
+
nextMonth() {
|
|
7989
|
+
if (this.viewMonth === 11) {
|
|
7990
|
+
this.viewMonth = 0;
|
|
7991
|
+
this.viewYear++;
|
|
7992
|
+
}
|
|
7993
|
+
else
|
|
7994
|
+
this.viewMonth++;
|
|
7995
|
+
}
|
|
7996
|
+
toISO(year, month, day) {
|
|
7997
|
+
return `${year}-${String(month + 1).padStart(2, '0')}-${String(day).padStart(2, '0')}`;
|
|
7998
|
+
}
|
|
7999
|
+
isInRange(iso) {
|
|
8000
|
+
const end = this.end || this.hoverDate;
|
|
8001
|
+
if (!this.start || !end)
|
|
8002
|
+
return false;
|
|
8003
|
+
const [s, e] = this.start <= end ? [this.start, end] : [end, this.start];
|
|
8004
|
+
return iso > s && iso < e;
|
|
8005
|
+
}
|
|
8006
|
+
selectDate(iso) {
|
|
8007
|
+
if (!this.start || (this.start && this.end)) {
|
|
8008
|
+
this.start = iso;
|
|
8009
|
+
this.end = '';
|
|
8010
|
+
this.activeRange = -1;
|
|
8011
|
+
this.showWarning = false;
|
|
8012
|
+
}
|
|
8013
|
+
else {
|
|
8014
|
+
if (iso < this.start) {
|
|
8015
|
+
this.end = this.start;
|
|
8016
|
+
this.start = iso;
|
|
8017
|
+
}
|
|
8018
|
+
else {
|
|
8019
|
+
this.end = iso;
|
|
8020
|
+
}
|
|
8021
|
+
this.activeRange = -1;
|
|
8022
|
+
if (this.maxDaysRange > 0) {
|
|
8023
|
+
const diff = (new Date(this.end).getTime() - new Date(this.start).getTime()) / 86400000;
|
|
8024
|
+
this.showWarning = diff > this.maxDaysRange;
|
|
8025
|
+
if (this.showWarning)
|
|
8026
|
+
return;
|
|
8027
|
+
}
|
|
8028
|
+
this.open = false;
|
|
8029
|
+
this.emit();
|
|
8030
|
+
}
|
|
8031
|
+
}
|
|
7907
8032
|
selectShortcut(idx) {
|
|
7908
8033
|
const s = this.shortcuts[idx];
|
|
7909
8034
|
this.start = s.start;
|
|
7910
8035
|
this.end = s.end;
|
|
7911
8036
|
this.activeRange = idx;
|
|
7912
8037
|
this.showWarning = false;
|
|
8038
|
+
this.open = false;
|
|
7913
8039
|
this.emit();
|
|
7914
8040
|
}
|
|
7915
|
-
onStartChange(e) {
|
|
7916
|
-
this.start = e.target.value;
|
|
7917
|
-
this.activeRange = -1;
|
|
7918
|
-
this.checkRange();
|
|
7919
|
-
if (this.start && this.end)
|
|
7920
|
-
this.emit();
|
|
7921
|
-
}
|
|
7922
|
-
onEndChange(e) {
|
|
7923
|
-
this.end = e.target.value;
|
|
7924
|
-
this.activeRange = -1;
|
|
7925
|
-
this.checkRange();
|
|
7926
|
-
if (this.start && this.end)
|
|
7927
|
-
this.emit();
|
|
7928
|
-
}
|
|
7929
|
-
checkRange() {
|
|
7930
|
-
if (this.start && this.end && this.maxDaysRange > 0) {
|
|
7931
|
-
const diff = (new Date(this.end).getTime() - new Date(this.start).getTime()) / 86400000;
|
|
7932
|
-
this.showWarning = diff > this.maxDaysRange;
|
|
7933
|
-
}
|
|
7934
|
-
else {
|
|
7935
|
-
this.showWarning = false;
|
|
7936
|
-
}
|
|
7937
|
-
}
|
|
7938
8041
|
emit() {
|
|
7939
8042
|
this.startDateChange.emit(this.start);
|
|
7940
8043
|
this.endDateChange.emit(this.end);
|
|
7941
8044
|
this.dropiRangeChange.emit({ start: this.start, end: this.end });
|
|
7942
8045
|
}
|
|
8046
|
+
buildDays() {
|
|
8047
|
+
const year = this.viewYear;
|
|
8048
|
+
const month = this.viewMonth;
|
|
8049
|
+
const firstDay = new Date(year, month, 1).getDay();
|
|
8050
|
+
const daysInMonth = new Date(year, month + 1, 0).getDate();
|
|
8051
|
+
const daysInPrevMonth = new Date(year, month, 0).getDate();
|
|
8052
|
+
const cells = [];
|
|
8053
|
+
for (let i = firstDay - 1; i >= 0; i--) {
|
|
8054
|
+
const d = daysInPrevMonth - i;
|
|
8055
|
+
const m = month === 0 ? 11 : month - 1;
|
|
8056
|
+
const y = month === 0 ? year - 1 : year;
|
|
8057
|
+
cells.push({ iso: this.toISO(y, m, d), day: d, currentMonth: false });
|
|
8058
|
+
}
|
|
8059
|
+
for (let d = 1; d <= daysInMonth; d++) {
|
|
8060
|
+
cells.push({ iso: this.toISO(year, month, d), day: d, currentMonth: true });
|
|
8061
|
+
}
|
|
8062
|
+
const remaining = 42 - cells.length;
|
|
8063
|
+
for (let d = 1; d <= remaining; d++) {
|
|
8064
|
+
const m = month === 11 ? 0 : month + 1;
|
|
8065
|
+
const y = month === 11 ? year + 1 : year;
|
|
8066
|
+
cells.push({ iso: this.toISO(y, m, d), day: d, currentMonth: false });
|
|
8067
|
+
}
|
|
8068
|
+
return cells;
|
|
8069
|
+
}
|
|
7943
8070
|
render() {
|
|
7944
|
-
if (this.loading)
|
|
8071
|
+
if (this.loading)
|
|
7945
8072
|
return hAsync("div", { class: "skeleton" });
|
|
7946
|
-
|
|
7947
|
-
|
|
8073
|
+
const days = this.buildDays();
|
|
8074
|
+
const today = this.today;
|
|
8075
|
+
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 }) => {
|
|
8076
|
+
const isStart = iso === this.start;
|
|
8077
|
+
const isEnd = iso === this.end;
|
|
8078
|
+
const inRange = this.isInRange(iso);
|
|
8079
|
+
const isToday = iso === today;
|
|
8080
|
+
return (hAsync("button", { class: {
|
|
8081
|
+
'dp-cell': true,
|
|
8082
|
+
'dp-cell--other-month': !currentMonth,
|
|
8083
|
+
'dp-cell--today': isToday && !isStart && !isEnd,
|
|
8084
|
+
'dp-cell--selected': isStart || isEnd,
|
|
8085
|
+
'dp-cell--range-start': isStart,
|
|
8086
|
+
'dp-cell--range-end': isEnd,
|
|
8087
|
+
'dp-cell--in-range': inRange,
|
|
8088
|
+
}, type: "button", onClick: () => this.selectDate(iso), onMouseEnter: () => {
|
|
8089
|
+
if (this.start && !this.end)
|
|
8090
|
+
this.hoverDate = iso;
|
|
8091
|
+
}, onMouseLeave: () => this.hoverDate = '' }, day));
|
|
8092
|
+
})), 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))))))));
|
|
7948
8093
|
}
|
|
7949
8094
|
static get watchers() { return {
|
|
7950
8095
|
"startDate": [{
|
|
@@ -7966,12 +8111,17 @@ class DropiDatePickerRange {
|
|
|
7966
8111
|
"loading": [4],
|
|
7967
8112
|
"maxDaysRange": [2, "max-days-range"],
|
|
7968
8113
|
"hideTodayRangeShortcut": [4, "hide-today-range-shortcut"],
|
|
8114
|
+
"disabled": [4],
|
|
7969
8115
|
"start": [32],
|
|
7970
8116
|
"end": [32],
|
|
7971
8117
|
"activeRange": [32],
|
|
7972
|
-
"showWarning": [32]
|
|
8118
|
+
"showWarning": [32],
|
|
8119
|
+
"open": [32],
|
|
8120
|
+
"viewYear": [32],
|
|
8121
|
+
"viewMonth": [32],
|
|
8122
|
+
"hoverDate": [32]
|
|
7973
8123
|
},
|
|
7974
|
-
"$listeners$":
|
|
8124
|
+
"$listeners$": [[4, "click", "handleDocClick"]],
|
|
7975
8125
|
"$lazyBundleId$": "-",
|
|
7976
8126
|
"$attrsToReflect$": []
|
|
7977
8127
|
}; }
|