@dropi/ui 0.1.19 → 0.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/icons/ilustration/bg-warning.svg +3 -0
- package/assets/icons/ilustration/default.svg +4 -0
- package/assets/icons/ilustration/error.svg +10 -0
- package/assets/icons/ilustration/exclusive.svg +9 -0
- package/assets/icons/ilustration/info.svg +10 -0
- package/assets/icons/ilustration/loading.svg +4 -0
- package/assets/icons/ilustration/love.svg +9 -0
- package/assets/icons/ilustration/premium-new.svg +14 -0
- package/assets/icons/ilustration/premium.svg +5 -0
- package/assets/icons/ilustration/sorry.svg +4 -0
- package/assets/icons/ilustration/success.svg +11 -0
- package/assets/icons/ilustration/verified-new.svg +9 -0
- package/assets/icons/ilustration/verified.svg +4 -0
- package/assets/icons/ilustration/warning.svg +9 -0
- package/assets/lottie-files/loading.json +1 -0
- package/dist/cjs/dropi-accordion.cjs.entry.js +3 -3
- package/dist/cjs/dropi-alert-modal.cjs.entry.js +72 -0
- package/dist/cjs/dropi-alert.cjs.entry.js +7 -7
- package/dist/cjs/dropi-avatars.cjs.entry.js +2 -2
- package/dist/cjs/dropi-badge.cjs.entry.js +2 -2
- package/dist/cjs/dropi-banner-external.cjs.entry.js +47 -0
- package/dist/cjs/dropi-breadcrumb.cjs.entry.js +48 -0
- package/dist/cjs/dropi-button.cjs.entry.js +7 -5
- package/dist/cjs/dropi-card-checkbox.cjs.entry.js +45 -0
- package/dist/cjs/dropi-card-product.cjs.entry.js +59 -0
- package/dist/cjs/dropi-card-section.cjs.entry.js +5 -5
- package/dist/cjs/dropi-carousel.cjs.entry.js +83 -0
- package/dist/cjs/dropi-checkbox-selection-list.cjs.entry.js +5 -5
- package/dist/cjs/dropi-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/dropi-chips.cjs.entry.js +4 -4
- package/dist/cjs/dropi-city-selector.cjs.entry.js +85 -0
- package/dist/cjs/dropi-color-picker.cjs.entry.js +69 -0
- package/dist/cjs/dropi-country-flags.cjs.entry.js +37 -0
- package/dist/cjs/dropi-country-selector.cjs.entry.js +164 -0
- package/dist/cjs/dropi-date-picker-range.cjs.entry.js +115 -0
- package/dist/cjs/dropi-date-picker.cjs.entry.js +205 -0
- package/dist/cjs/dropi-drawer.cjs.entry.js +50 -0
- package/dist/cjs/dropi-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/dropi-empty-state.cjs.entry.js +9 -5
- package/dist/cjs/dropi-favorite-button.cjs.entry.js +3 -3
- package/dist/cjs/dropi-file-upload-progress-bar.cjs.entry.js +52 -0
- package/dist/cjs/dropi-file-upload.cjs.entry.js +84 -0
- package/dist/cjs/dropi-icon.cjs.entry.js +2 -2
- package/dist/cjs/dropi-ilustration-icon.cjs.entry.js +39 -0
- package/dist/cjs/dropi-image-miniature.cjs.entry.js +3 -3
- package/dist/cjs/dropi-image-overlay.cjs.entry.js +4 -4
- package/dist/cjs/dropi-input.cjs.entry.js +7 -7
- package/dist/cjs/dropi-languages-selector.cjs.entry.js +57 -0
- package/dist/cjs/dropi-logo.cjs.entry.js +3 -3
- package/dist/cjs/dropi-lottie-loader.cjs.entry.js +5 -5
- package/dist/cjs/dropi-media-player.cjs.entry.js +102 -0
- package/dist/cjs/dropi-modal.cjs.entry.js +12 -9
- package/dist/cjs/dropi-navbar.cjs.entry.js +52 -0
- package/dist/cjs/dropi-otp-send-code.cjs.entry.js +6 -6
- package/dist/cjs/dropi-paginator.cjs.entry.js +4 -4
- package/dist/cjs/dropi-phone-input.cjs.entry.js +84 -0
- package/dist/cjs/dropi-radio-button.cjs.entry.js +3 -3
- package/dist/cjs/dropi-radio-selection-list.cjs.entry.js +5 -5
- package/dist/cjs/dropi-read-more.cjs.entry.js +2 -2
- package/dist/cjs/dropi-search.cjs.entry.js +8 -8
- package/dist/cjs/dropi-select.cjs.entry.js +7 -7
- package/dist/cjs/dropi-sidebar.cjs.entry.js +67 -0
- package/dist/cjs/dropi-simple-stepper.cjs.entry.js +2 -2
- package/dist/cjs/dropi-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/dropi-steps.cjs.entry.js +2 -2
- package/dist/cjs/dropi-switch.cjs.entry.js +3 -3
- package/dist/cjs/dropi-table.cjs.entry.js +124 -0
- package/dist/cjs/dropi-tabs.cjs.entry.js +3 -3
- package/dist/cjs/dropi-tag-type-product.cjs.entry.js +19 -0
- package/dist/cjs/dropi-tag.cjs.entry.js +3 -3
- package/dist/cjs/dropi-text-area.cjs.entry.js +8 -8
- package/dist/cjs/dropi-time-line.cjs.entry.js +2 -2
- package/dist/cjs/dropi-toast.cjs.entry.js +2 -2
- package/dist/cjs/dropi-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/dropi-ui.cjs.js +2 -2
- package/dist/cjs/dropi-vertical-steps.cjs.entry.js +3 -3
- package/dist/cjs/dropi-youtube-lazy-video.cjs.entry.js +33 -0
- package/dist/cjs/{index-B6R6Ojma.js → index-DcOH2ZjX.js} +3 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +25 -1
- package/dist/collection/components/dropi-accordion/dropi-accordion.js +1 -1
- package/dist/collection/components/dropi-alert/dropi-alert.css +25 -14
- package/dist/collection/components/dropi-alert/dropi-alert.js +2 -2
- package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.css +73 -0
- package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.js +395 -0
- 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-banner-external/dropi-banner-external.css +56 -0
- package/dist/collection/components/dropi-banner-external/dropi-banner-external.js +179 -0
- package/dist/collection/components/dropi-breadcrumb/dropi-breadcrumb.css +69 -0
- package/dist/collection/components/dropi-breadcrumb/dropi-breadcrumb.js +171 -0
- package/dist/collection/components/dropi-button/dropi-button.css +4 -2
- package/dist/collection/components/dropi-button/dropi-button.js +24 -2
- package/dist/collection/components/dropi-card-checkbox/dropi-card-checkbox.css +90 -0
- package/dist/collection/components/dropi-card-checkbox/dropi-card-checkbox.js +219 -0
- package/dist/collection/components/dropi-card-product/dropi-card-product.css +158 -0
- package/dist/collection/components/dropi-card-product/dropi-card-product.js +353 -0
- package/dist/collection/components/dropi-card-section/dropi-card-section.js +2 -2
- package/dist/collection/components/dropi-carousel/dropi-carousel.css +103 -0
- package/dist/collection/components/dropi-carousel/dropi-carousel.js +277 -0
- package/dist/collection/components/dropi-checkbox/dropi-checkbox.js +2 -2
- package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.js +2 -2
- package/dist/collection/components/dropi-chips/dropi-chips.css +2 -0
- package/dist/collection/components/dropi-chips/dropi-chips.js +1 -1
- package/dist/collection/components/dropi-city-selector/dropi-city-selector.css +156 -0
- package/dist/collection/components/dropi-city-selector/dropi-city-selector.js +213 -0
- package/dist/collection/components/dropi-color-picker/dropi-color-picker.css +183 -0
- package/dist/collection/components/dropi-color-picker/dropi-color-picker.js +235 -0
- package/dist/collection/components/dropi-country-flags/dropi-country-flags.css +30 -0
- package/dist/collection/components/dropi-country-flags/dropi-country-flags.js +129 -0
- package/dist/collection/components/dropi-country-selector/dropi-country-selector.css +164 -0
- package/dist/collection/components/dropi-country-selector/dropi-country-selector.js +327 -0
- package/dist/collection/components/dropi-date-picker/dropi-date-picker.css +150 -0
- package/dist/collection/components/dropi-date-picker/dropi-date-picker.js +434 -0
- package/dist/collection/components/dropi-date-picker-range/dropi-date-picker-range.css +143 -0
- package/dist/collection/components/dropi-date-picker-range/dropi-date-picker-range.js +327 -0
- package/dist/collection/components/dropi-drawer/dropi-drawer.css +107 -0
- package/dist/collection/components/dropi-drawer/dropi-drawer.js +198 -0
- package/dist/collection/components/dropi-dropdown/dropi-dropdown.js +1 -1
- package/dist/collection/components/dropi-empty-state/dropi-empty-state.css +1 -0
- package/dist/collection/components/dropi-empty-state/dropi-empty-state.js +45 -1
- package/dist/collection/components/dropi-favorite-button/dropi-favorite-button.js +1 -1
- package/dist/collection/components/dropi-file-upload/dropi-file-upload.css +66 -0
- package/dist/collection/components/dropi-file-upload/dropi-file-upload.js +257 -0
- package/dist/collection/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.css +111 -0
- package/dist/collection/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.js +198 -0
- package/dist/collection/components/dropi-icon/dropi-icon.js +1 -1
- package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.css +91 -0
- package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.js +150 -0
- package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.js +1 -1
- package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.css +83 -42
- package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.js +1 -1
- package/dist/collection/components/dropi-input/dropi-input.js +2 -2
- package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.css +79 -0
- package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.js +154 -0
- package/dist/collection/components/dropi-logo/dropi-logo.js +2 -2
- package/dist/collection/components/dropi-lottie-loader/dropi-lottie-loader.js +7 -7
- package/dist/collection/components/dropi-media-player/dropi-media-player.css +127 -0
- package/dist/collection/components/dropi-media-player/dropi-media-player.js +294 -0
- package/dist/collection/components/dropi-modal/dropi-modal.css +9 -3
- package/dist/collection/components/dropi-modal/dropi-modal.js +10 -7
- package/dist/collection/components/dropi-navbar/dropi-navbar.css +166 -0
- package/dist/collection/components/dropi-navbar/dropi-navbar.js +286 -0
- package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.css +16 -9
- package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.js +2 -2
- package/dist/collection/components/dropi-paginator/dropi-paginator.js +2 -2
- package/dist/collection/components/dropi-phone-input/dropi-phone-input.css +152 -0
- package/dist/collection/components/dropi-phone-input/dropi-phone-input.js +272 -0
- package/dist/collection/components/dropi-radio-button/dropi-radio-button.js +1 -1
- package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.js +2 -2
- package/dist/collection/components/dropi-read-more/dropi-read-more.js +1 -1
- package/dist/collection/components/dropi-search/dropi-search.js +2 -2
- package/dist/collection/components/dropi-select/dropi-select.js +1 -1
- package/dist/collection/components/dropi-sidebar/dropi-sidebar.css +117 -0
- package/dist/collection/components/dropi-sidebar/dropi-sidebar.js +233 -0
- package/dist/collection/components/dropi-simple-stepper/dropi-simple-stepper.js +1 -1
- package/dist/collection/components/dropi-steps/dropi-steps.js +1 -1
- package/dist/collection/components/dropi-switch/dropi-switch.js +1 -1
- package/dist/collection/components/dropi-table/dropi-table.css +80 -0
- package/dist/collection/components/dropi-table/dropi-table.js +333 -0
- package/dist/collection/components/dropi-tabs/dropi-tabs.js +1 -1
- package/dist/collection/components/dropi-tag/dropi-tag.css +1 -2
- package/dist/collection/components/dropi-tag/dropi-tag.js +1 -1
- package/dist/collection/components/dropi-tag-type-product/dropi-tag-type-product.css +14 -0
- package/dist/collection/components/dropi-tag-type-product/dropi-tag-type-product.js +48 -0
- package/dist/collection/components/dropi-text-area/dropi-text-area.css +2 -1
- package/dist/collection/components/dropi-text-area/dropi-text-area.js +2 -2
- package/dist/collection/components/dropi-time-line/dropi-time-line.js +1 -1
- package/dist/collection/components/dropi-toast/dropi-toast.js +1 -1
- package/dist/collection/components/dropi-tooltip/dropi-tooltip.js +1 -1
- package/dist/collection/components/dropi-vertical-steps/dropi-vertical-steps.js +1 -1
- package/dist/collection/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.css +73 -0
- package/dist/collection/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.js +110 -0
- package/dist/components/dropi-accordion.js +1 -1
- package/dist/components/dropi-alert-modal.d.ts +11 -0
- package/dist/components/dropi-alert-modal.js +1 -0
- package/dist/components/dropi-alert.js +1 -1
- package/dist/components/dropi-avatars.js +1 -1
- package/dist/components/dropi-badge.js +1 -1
- package/dist/components/dropi-banner-external.d.ts +11 -0
- package/dist/components/dropi-banner-external.js +1 -0
- package/dist/components/dropi-breadcrumb.d.ts +11 -0
- package/dist/components/dropi-breadcrumb.js +1 -0
- package/dist/components/dropi-button.js +1 -1
- package/dist/components/dropi-card-checkbox.d.ts +11 -0
- package/dist/components/dropi-card-checkbox.js +1 -0
- package/dist/components/dropi-card-product.d.ts +11 -0
- package/dist/components/dropi-card-product.js +1 -0
- package/dist/components/dropi-card-section.js +1 -1
- package/dist/components/dropi-carousel.d.ts +11 -0
- package/dist/components/dropi-carousel.js +1 -0
- package/dist/components/dropi-checkbox-selection-list.js +1 -1
- package/dist/components/dropi-checkbox.js +1 -1
- package/dist/components/dropi-chips.js +1 -1
- package/dist/components/dropi-city-selector.d.ts +11 -0
- package/dist/components/dropi-city-selector.js +1 -0
- package/dist/components/dropi-color-picker.d.ts +11 -0
- package/dist/components/dropi-color-picker.js +1 -0
- package/dist/components/dropi-country-flags.d.ts +11 -0
- package/dist/components/dropi-country-flags.js +1 -0
- package/dist/components/dropi-country-selector.d.ts +11 -0
- package/dist/components/dropi-country-selector.js +1 -0
- package/dist/components/dropi-date-picker-range.d.ts +11 -0
- package/dist/components/dropi-date-picker-range.js +1 -0
- package/dist/components/dropi-date-picker.d.ts +11 -0
- package/dist/components/dropi-date-picker.js +1 -0
- package/dist/components/dropi-drawer.d.ts +11 -0
- package/dist/components/dropi-drawer.js +1 -0
- package/dist/components/dropi-dropdown.js +1 -1
- package/dist/components/dropi-empty-state.js +1 -1
- package/dist/components/dropi-favorite-button.js +1 -1
- package/dist/components/dropi-file-upload-progress-bar.d.ts +11 -0
- package/dist/components/dropi-file-upload-progress-bar.js +1 -0
- package/dist/components/dropi-file-upload.d.ts +11 -0
- package/dist/components/dropi-file-upload.js +1 -0
- package/dist/components/dropi-icon.js +1 -1
- package/dist/components/dropi-ilustration-icon.d.ts +11 -0
- package/dist/components/dropi-ilustration-icon.js +1 -0
- package/dist/components/dropi-image-miniature.js +1 -1
- package/dist/components/dropi-image-overlay.js +1 -1
- package/dist/components/dropi-input.js +1 -1
- package/dist/components/dropi-languages-selector.d.ts +11 -0
- package/dist/components/dropi-languages-selector.js +1 -0
- package/dist/components/dropi-logo.js +1 -1
- package/dist/components/dropi-lottie-loader.js +1 -1
- package/dist/components/dropi-media-player.d.ts +11 -0
- package/dist/components/dropi-media-player.js +1 -0
- package/dist/components/dropi-modal.js +1 -1
- package/dist/components/dropi-navbar.d.ts +11 -0
- package/dist/components/dropi-navbar.js +1 -0
- package/dist/components/dropi-otp-send-code.js +1 -1
- package/dist/components/dropi-paginator.js +1 -1
- package/dist/components/dropi-phone-input.d.ts +11 -0
- package/dist/components/dropi-phone-input.js +1 -0
- package/dist/components/dropi-radio-button.js +1 -1
- package/dist/components/dropi-radio-selection-list.js +1 -1
- package/dist/components/dropi-read-more.js +1 -1
- package/dist/components/dropi-search.js +1 -1
- package/dist/components/dropi-select.js +1 -1
- package/dist/components/dropi-sidebar.d.ts +11 -0
- package/dist/components/dropi-sidebar.js +1 -0
- package/dist/components/dropi-simple-stepper.js +1 -1
- package/dist/components/dropi-steps.js +1 -1
- package/dist/components/dropi-switch.js +1 -1
- package/dist/components/dropi-table.d.ts +11 -0
- package/dist/components/dropi-table.js +1 -0
- package/dist/components/dropi-tabs.js +1 -1
- package/dist/components/dropi-tag-type-product.d.ts +11 -0
- package/dist/components/dropi-tag-type-product.js +1 -0
- package/dist/components/dropi-tag.js +1 -1
- package/dist/components/dropi-text-area.js +1 -1
- package/dist/components/dropi-time-line.js +1 -1
- package/dist/components/dropi-toast.js +1 -1
- package/dist/components/dropi-tooltip.js +1 -1
- package/dist/components/dropi-vertical-steps.js +1 -1
- package/dist/components/dropi-youtube-lazy-video.d.ts +11 -0
- package/dist/components/dropi-youtube-lazy-video.js +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/p-BY_J-4Sm.js +1 -0
- package/dist/components/p-CYCV-5qV.js +1 -0
- package/dist/components/p-D0ZJcRZn.js +1 -0
- package/dist/components/p-DUPOnSiL.js +1 -0
- package/dist/components/p-DUX_WvqW.js +1 -0
- package/dist/components/{p-CPs3fHRc.js → p-wO1yy0Zr.js} +1 -1
- package/dist/dropi-ui/dropi-ui.esm.js +1 -1
- package/dist/dropi-ui/p-053ebb91.entry.js +1 -0
- package/dist/dropi-ui/p-0acd32e6.entry.js +1 -0
- package/dist/dropi-ui/{p-ebfd4665.entry.js → p-0e88a543.entry.js} +1 -1
- package/dist/dropi-ui/p-0f2f5f75.entry.js +1 -0
- package/dist/dropi-ui/{p-2cee44f9.entry.js → p-131d87ac.entry.js} +1 -1
- package/dist/dropi-ui/p-1af4719d.entry.js +1 -0
- package/dist/dropi-ui/p-1e8f6d4a.entry.js +1 -0
- package/dist/dropi-ui/p-22132b1a.entry.js +1 -0
- package/dist/dropi-ui/p-2c1aaf6f.entry.js +1 -0
- package/dist/dropi-ui/p-2e9b87a9.entry.js +1 -0
- package/dist/dropi-ui/p-3414a414.entry.js +1 -0
- package/dist/dropi-ui/p-34ad54a1.entry.js +1 -0
- package/dist/dropi-ui/p-3531378b.entry.js +1 -0
- package/dist/dropi-ui/p-3983a7aa.entry.js +1 -0
- package/dist/dropi-ui/p-40e91337.entry.js +1 -0
- package/dist/dropi-ui/{p-c2316d4d.entry.js → p-4a8646e5.entry.js} +1 -1
- package/dist/dropi-ui/p-4be64bf0.entry.js +1 -0
- package/dist/dropi-ui/p-4ec17510.entry.js +1 -0
- package/dist/dropi-ui/p-5023eef0.entry.js +1 -0
- package/dist/dropi-ui/p-51a97b1a.entry.js +1 -0
- package/dist/dropi-ui/p-52796d84.entry.js +1 -0
- package/dist/dropi-ui/p-53a5bd7b.entry.js +1 -0
- package/dist/dropi-ui/p-5425f941.entry.js +1 -0
- package/dist/dropi-ui/p-58d0bf7a.entry.js +1 -0
- package/dist/dropi-ui/p-59d3bd9b.entry.js +1 -0
- package/dist/dropi-ui/p-5e957631.entry.js +1 -0
- package/dist/dropi-ui/p-64cbf4ea.entry.js +1 -0
- package/dist/dropi-ui/{p-c10cbb8d.entry.js → p-68080534.entry.js} +1 -1
- package/dist/dropi-ui/{p-cb5fd7a9.entry.js → p-6da6b97e.entry.js} +1 -1
- package/dist/dropi-ui/p-6df57f25.entry.js +1 -0
- package/dist/dropi-ui/p-7c916570.entry.js +1 -0
- package/dist/dropi-ui/p-7e95462a.entry.js +1 -0
- package/dist/dropi-ui/{p-30fdd316.entry.js → p-80089042.entry.js} +1 -1
- package/dist/dropi-ui/p-8768bb11.entry.js +1 -0
- package/dist/dropi-ui/p-896f2900.entry.js +1 -0
- package/dist/dropi-ui/p-89ac1ff2.entry.js +1 -0
- package/dist/dropi-ui/p-8ce79c69.entry.js +1 -0
- package/dist/dropi-ui/p-8e809670.entry.js +1 -0
- package/dist/dropi-ui/p-93b207b7.entry.js +1 -0
- package/dist/dropi-ui/p-983f72ad.entry.js +1 -0
- package/dist/dropi-ui/p-98babb78.entry.js +1 -0
- package/dist/dropi-ui/p-9fc53d50.entry.js +1 -0
- package/dist/dropi-ui/p-Tbza12Gt.js +2 -0
- package/dist/dropi-ui/p-a20705fe.entry.js +1 -0
- package/dist/dropi-ui/p-a72da98f.entry.js +1 -0
- package/dist/dropi-ui/p-a876d57c.entry.js +1 -0
- package/dist/dropi-ui/p-b1b0f938.entry.js +1 -0
- package/dist/dropi-ui/p-b2e176b1.entry.js +1 -0
- package/dist/dropi-ui/p-b41c8a6c.entry.js +1 -0
- package/dist/dropi-ui/p-b890fd5b.entry.js +1 -0
- package/dist/dropi-ui/p-bf5a53ef.entry.js +1 -0
- package/dist/dropi-ui/{p-e721127d.entry.js → p-c0677661.entry.js} +1 -1
- package/dist/dropi-ui/{p-a9116dbe.entry.js → p-c2562a1c.entry.js} +1 -1
- package/dist/dropi-ui/p-c2b5d0fb.entry.js +1 -0
- package/dist/dropi-ui/{p-061e1ad4.entry.js → p-c4d4396b.entry.js} +1 -1
- package/dist/dropi-ui/{p-724a2aea.entry.js → p-c9ebd31b.entry.js} +1 -1
- package/dist/dropi-ui/p-cecfb68e.entry.js +1 -0
- package/dist/dropi-ui/p-d0b47e2e.entry.js +1 -0
- package/dist/dropi-ui/p-dcefef51.entry.js +1 -0
- package/dist/dropi-ui/p-e4b7e15f.entry.js +1 -0
- package/dist/dropi-ui/{p-b0d3442e.entry.js → p-e7f4ed25.entry.js} +1 -1
- package/dist/dropi-ui/p-f1d69b15.entry.js +1 -0
- package/dist/esm/dropi-accordion.entry.js +3 -3
- package/dist/esm/dropi-alert-modal.entry.js +70 -0
- package/dist/esm/dropi-alert.entry.js +7 -7
- package/dist/esm/dropi-avatars.entry.js +2 -2
- package/dist/esm/dropi-badge.entry.js +2 -2
- package/dist/esm/dropi-banner-external.entry.js +45 -0
- package/dist/esm/dropi-breadcrumb.entry.js +46 -0
- package/dist/esm/dropi-button.entry.js +7 -5
- package/dist/esm/dropi-card-checkbox.entry.js +43 -0
- package/dist/esm/dropi-card-product.entry.js +57 -0
- package/dist/esm/dropi-card-section.entry.js +5 -5
- package/dist/esm/dropi-carousel.entry.js +81 -0
- package/dist/esm/dropi-checkbox-selection-list.entry.js +5 -5
- package/dist/esm/dropi-checkbox.entry.js +4 -4
- package/dist/esm/dropi-chips.entry.js +4 -4
- package/dist/esm/dropi-city-selector.entry.js +83 -0
- package/dist/esm/dropi-color-picker.entry.js +67 -0
- package/dist/esm/dropi-country-flags.entry.js +35 -0
- package/dist/esm/dropi-country-selector.entry.js +162 -0
- package/dist/esm/dropi-date-picker-range.entry.js +113 -0
- package/dist/esm/dropi-date-picker.entry.js +203 -0
- package/dist/esm/dropi-drawer.entry.js +48 -0
- package/dist/esm/dropi-dropdown.entry.js +3 -3
- package/dist/esm/dropi-empty-state.entry.js +9 -5
- package/dist/esm/dropi-favorite-button.entry.js +3 -3
- package/dist/esm/dropi-file-upload-progress-bar.entry.js +50 -0
- package/dist/esm/dropi-file-upload.entry.js +82 -0
- package/dist/esm/dropi-icon.entry.js +2 -2
- package/dist/esm/dropi-ilustration-icon.entry.js +37 -0
- package/dist/esm/dropi-image-miniature.entry.js +3 -3
- package/dist/esm/dropi-image-overlay.entry.js +4 -4
- package/dist/esm/dropi-input.entry.js +7 -7
- package/dist/esm/dropi-languages-selector.entry.js +55 -0
- package/dist/esm/dropi-logo.entry.js +3 -3
- package/dist/esm/dropi-lottie-loader.entry.js +5 -5
- package/dist/esm/dropi-media-player.entry.js +100 -0
- package/dist/esm/dropi-modal.entry.js +12 -9
- package/dist/esm/dropi-navbar.entry.js +50 -0
- package/dist/esm/dropi-otp-send-code.entry.js +6 -6
- package/dist/esm/dropi-paginator.entry.js +4 -4
- package/dist/esm/dropi-phone-input.entry.js +82 -0
- package/dist/esm/dropi-radio-button.entry.js +3 -3
- package/dist/esm/dropi-radio-selection-list.entry.js +5 -5
- package/dist/esm/dropi-read-more.entry.js +2 -2
- package/dist/esm/dropi-search.entry.js +8 -8
- package/dist/esm/dropi-select.entry.js +7 -7
- package/dist/esm/dropi-sidebar.entry.js +65 -0
- package/dist/esm/dropi-simple-stepper.entry.js +2 -2
- package/dist/esm/dropi-skeleton.entry.js +1 -1
- package/dist/esm/dropi-steps.entry.js +2 -2
- package/dist/esm/dropi-switch.entry.js +3 -3
- package/dist/esm/dropi-table.entry.js +122 -0
- package/dist/esm/dropi-tabs.entry.js +3 -3
- package/dist/esm/dropi-tag-type-product.entry.js +17 -0
- package/dist/esm/dropi-tag.entry.js +3 -3
- package/dist/esm/dropi-text-area.entry.js +8 -8
- package/dist/esm/dropi-time-line.entry.js +2 -2
- package/dist/esm/dropi-toast.entry.js +2 -2
- package/dist/esm/dropi-tooltip.entry.js +2 -2
- package/dist/esm/dropi-ui.js +3 -3
- package/dist/esm/dropi-vertical-steps.entry.js +3 -3
- package/dist/esm/dropi-youtube-lazy-video.entry.js +31 -0
- package/dist/esm/{index-Twbb5MNM.js → index-Tbza12Gt.js} +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/dropi-alert-modal/dropi-alert-modal.d.ts +48 -0
- package/dist/types/components/dropi-banner-external/dropi-banner-external.d.ts +30 -0
- package/dist/types/components/dropi-breadcrumb/dropi-breadcrumb.d.ts +31 -0
- package/dist/types/components/dropi-button/dropi-button.d.ts +2 -0
- package/dist/types/components/dropi-card-checkbox/dropi-card-checkbox.d.ts +33 -0
- package/dist/types/components/dropi-card-product/dropi-card-product.d.ts +39 -0
- package/dist/types/components/dropi-carousel/dropi-carousel.d.ts +40 -0
- package/dist/types/components/dropi-city-selector/dropi-city-selector.d.ts +46 -0
- package/dist/types/components/dropi-color-picker/dropi-color-picker.d.ts +31 -0
- package/dist/types/components/dropi-country-flags/dropi-country-flags.d.ts +19 -0
- package/dist/types/components/dropi-country-selector/dropi-country-selector.d.ts +39 -0
- package/dist/types/components/dropi-date-picker/dropi-date-picker.d.ts +47 -0
- package/dist/types/components/dropi-date-picker-range/dropi-date-picker-range.d.ts +50 -0
- package/dist/types/components/dropi-drawer/dropi-drawer.d.ts +25 -0
- package/dist/types/components/dropi-empty-state/dropi-empty-state.d.ts +4 -0
- package/dist/types/components/dropi-file-upload/dropi-file-upload.d.ts +37 -0
- package/dist/types/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.d.ts +25 -0
- package/dist/types/components/dropi-ilustration-icon/dropi-ilustration-icon.d.ts +24 -0
- package/dist/types/components/dropi-languages-selector/dropi-languages-selector.d.ts +31 -0
- package/dist/types/components/dropi-media-player/dropi-media-player.d.ts +44 -0
- package/dist/types/components/dropi-navbar/dropi-navbar.d.ts +40 -0
- package/dist/types/components/dropi-phone-input/dropi-phone-input.d.ts +34 -0
- package/dist/types/components/dropi-sidebar/dropi-sidebar.d.ts +35 -0
- package/dist/types/components/dropi-table/dropi-table.d.ts +57 -0
- package/dist/types/components/dropi-tag-type-product/dropi-tag-type-product.d.ts +9 -0
- package/dist/types/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.d.ts +19 -0
- package/dist/types/components.d.ts +4047 -1043
- package/package.json +1 -1
- package/scripts/setup.js +2 -0
- package/dist/components/p-DKXrREI4.js +0 -1
- package/dist/components/p-Ds74ZOlC.js +0 -1
- package/dist/components/p-WZTFyFH2.js +0 -1
- package/dist/dropi-ui/p-0c13dded.entry.js +0 -1
- package/dist/dropi-ui/p-121c8a09.entry.js +0 -1
- package/dist/dropi-ui/p-291a1416.entry.js +0 -1
- package/dist/dropi-ui/p-3537ee5a.entry.js +0 -1
- package/dist/dropi-ui/p-3d859657.entry.js +0 -1
- package/dist/dropi-ui/p-433d161d.entry.js +0 -1
- package/dist/dropi-ui/p-4bdfad16.entry.js +0 -1
- package/dist/dropi-ui/p-4ea7d3a7.entry.js +0 -1
- package/dist/dropi-ui/p-51c8ef68.entry.js +0 -1
- package/dist/dropi-ui/p-54780c90.entry.js +0 -1
- package/dist/dropi-ui/p-66deb85e.entry.js +0 -1
- package/dist/dropi-ui/p-68f81080.entry.js +0 -1
- package/dist/dropi-ui/p-74c37688.entry.js +0 -1
- package/dist/dropi-ui/p-7cec1cea.entry.js +0 -1
- package/dist/dropi-ui/p-7daa2677.entry.js +0 -1
- package/dist/dropi-ui/p-8906a68d.entry.js +0 -1
- package/dist/dropi-ui/p-Twbb5MNM.js +0 -2
- package/dist/dropi-ui/p-a4204ece.entry.js +0 -1
- package/dist/dropi-ui/p-a5650d8f.entry.js +0 -1
- package/dist/dropi-ui/p-b36b819f.entry.js +0 -1
- package/dist/dropi-ui/p-d1e1b716.entry.js +0 -1
- package/dist/dropi-ui/p-d5ecc394.entry.js +0 -1
- package/dist/dropi-ui/p-db6c9828.entry.js +0 -1
- package/dist/dropi-ui/p-e8557da0.entry.js +0 -1
- package/dist/dropi-ui/p-f3cef35a.entry.js +0 -1
- package/dist/dropi-ui/p-f6a69c4e.entry.js +0 -1
- package/dist/dropi-ui/p-ff45e7c8.entry.js +0 -1
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
:host { display: block; width: 100%; position: relative; }
|
|
2
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
3
|
+
|
|
4
|
+
.dp-label {
|
|
5
|
+
display: block;
|
|
6
|
+
font-size: var(--font-size-xs, 10px);
|
|
7
|
+
color: var(--Gray-Gray-600, #475066);
|
|
8
|
+
margin-bottom: 4px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* Trigger */
|
|
12
|
+
.dp-trigger {
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 40px;
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
gap: var(--Size-2, 8px);
|
|
18
|
+
padding: 0 var(--Size-3, 12px);
|
|
19
|
+
border: 1px solid var(--Gray-Gray-200, #c3c9d9);
|
|
20
|
+
border-radius: var(--Border-2, 8px);
|
|
21
|
+
background: var(--Neutral-White, #fff);
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
font-family: inherit;
|
|
24
|
+
transition: border-color 0.2s;
|
|
25
|
+
}
|
|
26
|
+
.dp-trigger:hover:not(:disabled) { border-color: var(--Info-Info-500, #50a5f1); }
|
|
27
|
+
.dp-trigger--disabled { background: var(--Gray-Gray-50, #f7f8fa); cursor: not-allowed; opacity: 0.6; }
|
|
28
|
+
|
|
29
|
+
.dp-trigger__value {
|
|
30
|
+
flex: 1;
|
|
31
|
+
text-align: left;
|
|
32
|
+
font-size: var(--font-size-s, 12px);
|
|
33
|
+
color: var(--Gray-Gray-700, #32394d);
|
|
34
|
+
white-space: nowrap;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
text-overflow: ellipsis;
|
|
37
|
+
}
|
|
38
|
+
.dp-trigger__placeholder { color: var(--Gray-Gray-400, #858ea6); }
|
|
39
|
+
|
|
40
|
+
/* Popup */
|
|
41
|
+
.dp-popup {
|
|
42
|
+
position: absolute;
|
|
43
|
+
top: calc(100% + 4px);
|
|
44
|
+
left: 0;
|
|
45
|
+
width: 280px;
|
|
46
|
+
background: var(--Neutral-White, #fff);
|
|
47
|
+
border: 1px solid var(--Gray-Gray-200, #c3c9d9);
|
|
48
|
+
border-radius: var(--Border-2, 8px);
|
|
49
|
+
box-shadow: 0 4px 24px rgba(0,0,0,0.1);
|
|
50
|
+
z-index: 300;
|
|
51
|
+
padding: var(--Size-3, 12px);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* Navigation */
|
|
55
|
+
.dp-nav {
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
justify-content: space-between;
|
|
59
|
+
margin-bottom: var(--Size-3, 12px);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.dp-nav__btn {
|
|
63
|
+
background: none;
|
|
64
|
+
border: none;
|
|
65
|
+
padding: 4px;
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
border-radius: var(--Border-1, 4px);
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
transition: background 0.15s;
|
|
71
|
+
}
|
|
72
|
+
.dp-nav__btn:hover { background: var(--Gray-Gray-50, #f7f8fa); }
|
|
73
|
+
|
|
74
|
+
.dp-nav__title {
|
|
75
|
+
font-size: var(--font-size-s, 12px);
|
|
76
|
+
font-weight: var(--font-weight-bold, 700);
|
|
77
|
+
color: var(--Gray-Gray-800, #1a2033);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* Grid */
|
|
81
|
+
.dp-grid {
|
|
82
|
+
display: grid;
|
|
83
|
+
grid-template-columns: repeat(7, 1fr);
|
|
84
|
+
gap: 2px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.dp-day-header {
|
|
88
|
+
font-size: var(--font-size-xs, 10px);
|
|
89
|
+
color: var(--Gray-Gray-400, #858ea6);
|
|
90
|
+
text-align: center;
|
|
91
|
+
padding: 4px 0;
|
|
92
|
+
font-weight: var(--font-weight-bold, 700);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* Day cells */
|
|
96
|
+
.dp-cell {
|
|
97
|
+
aspect-ratio: 1;
|
|
98
|
+
display: flex;
|
|
99
|
+
align-items: center;
|
|
100
|
+
justify-content: center;
|
|
101
|
+
font-size: var(--font-size-xs, 10px);
|
|
102
|
+
font-family: inherit;
|
|
103
|
+
border: none;
|
|
104
|
+
border-radius: var(--Border-1, 4px);
|
|
105
|
+
cursor: pointer;
|
|
106
|
+
background: none;
|
|
107
|
+
color: var(--Gray-Gray-700, #32394d);
|
|
108
|
+
transition: background 0.15s, color 0.15s;
|
|
109
|
+
}
|
|
110
|
+
.dp-cell:hover:not(:disabled) { background: var(--Gray-Gray-50, #f7f8fa); }
|
|
111
|
+
|
|
112
|
+
.dp-cell--other-month { color: var(--Gray-Gray-300, #a0a9c0); }
|
|
113
|
+
.dp-cell--today { font-weight: var(--font-weight-bold, 700); color: var(--Primary-Primary-500, #f49a3d); }
|
|
114
|
+
.dp-cell--selected, .dp-cell--range-start, .dp-cell--range-end {
|
|
115
|
+
background: var(--Primary-Primary-500, #f49a3d);
|
|
116
|
+
color: var(--Neutral-White, #fff);
|
|
117
|
+
border-radius: var(--Border-1, 4px);
|
|
118
|
+
}
|
|
119
|
+
.dp-cell--in-range {
|
|
120
|
+
background: var(--Primary-Primary-50, #fff5eb);
|
|
121
|
+
border-radius: 0;
|
|
122
|
+
}
|
|
123
|
+
.dp-cell--range-start { border-radius: var(--Border-1, 4px) 0 0 var(--Border-1, 4px); }
|
|
124
|
+
.dp-cell--range-end { border-radius: 0 var(--Border-1, 4px) var(--Border-1, 4px) 0; }
|
|
125
|
+
.dp-cell--disabled { opacity: 0.35; cursor: not-allowed; }
|
|
126
|
+
|
|
127
|
+
/* Footer */
|
|
128
|
+
.dp-footer {
|
|
129
|
+
display: flex;
|
|
130
|
+
justify-content: space-between;
|
|
131
|
+
margin-top: var(--Size-3, 12px);
|
|
132
|
+
border-top: 1px solid var(--Gray-Gray-100, #eceef4);
|
|
133
|
+
padding-top: var(--Size-2, 8px);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.dp-footer__clear,
|
|
137
|
+
.dp-footer__today {
|
|
138
|
+
background: none;
|
|
139
|
+
border: none;
|
|
140
|
+
padding: 4px 8px;
|
|
141
|
+
font-size: var(--font-size-xs, 10px);
|
|
142
|
+
font-family: inherit;
|
|
143
|
+
cursor: pointer;
|
|
144
|
+
border-radius: var(--Border-1, 4px);
|
|
145
|
+
transition: background 0.15s;
|
|
146
|
+
}
|
|
147
|
+
.dp-footer__clear { color: var(--Gray-Gray-500, #68738f); }
|
|
148
|
+
.dp-footer__today { color: var(--Primary-Primary-500, #f49a3d); font-weight: var(--font-weight-bold, 700); }
|
|
149
|
+
.dp-footer__clear:hover { background: var(--Gray-Gray-50, #f7f8fa); }
|
|
150
|
+
.dp-footer__today:hover { background: var(--Primary-Primary-50, #fff5eb); }
|
|
@@ -0,0 +1,434 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
const MONTHS_ES = [
|
|
3
|
+
'Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio',
|
|
4
|
+
'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'
|
|
5
|
+
];
|
|
6
|
+
const DAYS_ES = ['Lu', 'Ma', 'Mi', 'Ju', 'Vi', 'Sa', 'Do'];
|
|
7
|
+
/**
|
|
8
|
+
* @component dropi-date-picker
|
|
9
|
+
* Calendar date picker with optional date range mode.
|
|
10
|
+
* Emits ISO date strings (YYYY-MM-DD).
|
|
11
|
+
*/
|
|
12
|
+
export class DropiDatePicker {
|
|
13
|
+
/** Selected date (ISO string, single mode) */
|
|
14
|
+
value = '';
|
|
15
|
+
/** Range start date (ISO string, range mode) */
|
|
16
|
+
startDate = '';
|
|
17
|
+
/** Range end date (ISO string, range mode) */
|
|
18
|
+
endDate = '';
|
|
19
|
+
/** Enable range selection */
|
|
20
|
+
range = false;
|
|
21
|
+
/** Min selectable date (ISO string) */
|
|
22
|
+
minDate = '';
|
|
23
|
+
/** Max selectable date (ISO string) */
|
|
24
|
+
maxDate = '';
|
|
25
|
+
/** Label */
|
|
26
|
+
label = '';
|
|
27
|
+
/** Placeholder */
|
|
28
|
+
placeholder = 'Seleccionar fecha';
|
|
29
|
+
/** Disabled */
|
|
30
|
+
disabled = false;
|
|
31
|
+
open = false;
|
|
32
|
+
viewYear = new Date().getFullYear();
|
|
33
|
+
viewMonth = new Date().getMonth();
|
|
34
|
+
hoverDate = '';
|
|
35
|
+
/** Emitted when single date selected. e.detail = ISO date */
|
|
36
|
+
dropiDateChange;
|
|
37
|
+
/** Emitted when range selected. e.detail = { start, end } */
|
|
38
|
+
dropiRangeChange;
|
|
39
|
+
get displayValue() {
|
|
40
|
+
if (this.range) {
|
|
41
|
+
if (this.startDate && this.endDate)
|
|
42
|
+
return `${this.startDate} – ${this.endDate}`;
|
|
43
|
+
if (this.startDate)
|
|
44
|
+
return this.startDate;
|
|
45
|
+
return '';
|
|
46
|
+
}
|
|
47
|
+
return this.value;
|
|
48
|
+
}
|
|
49
|
+
open_() {
|
|
50
|
+
if (this.disabled)
|
|
51
|
+
return;
|
|
52
|
+
if (this.value) {
|
|
53
|
+
const d = new Date(this.value);
|
|
54
|
+
this.viewYear = d.getFullYear();
|
|
55
|
+
this.viewMonth = d.getMonth();
|
|
56
|
+
}
|
|
57
|
+
else if (this.startDate) {
|
|
58
|
+
const d = new Date(this.startDate);
|
|
59
|
+
this.viewYear = d.getFullYear();
|
|
60
|
+
this.viewMonth = d.getMonth();
|
|
61
|
+
}
|
|
62
|
+
this.open = true;
|
|
63
|
+
}
|
|
64
|
+
prevMonth() {
|
|
65
|
+
if (this.viewMonth === 0) {
|
|
66
|
+
this.viewMonth = 11;
|
|
67
|
+
this.viewYear--;
|
|
68
|
+
}
|
|
69
|
+
else
|
|
70
|
+
this.viewMonth--;
|
|
71
|
+
}
|
|
72
|
+
nextMonth() {
|
|
73
|
+
if (this.viewMonth === 11) {
|
|
74
|
+
this.viewMonth = 0;
|
|
75
|
+
this.viewYear++;
|
|
76
|
+
}
|
|
77
|
+
else
|
|
78
|
+
this.viewMonth++;
|
|
79
|
+
}
|
|
80
|
+
toISO(year, month, day) {
|
|
81
|
+
return `${year}-${String(month + 1).padStart(2, '0')}-${String(day).padStart(2, '0')}`;
|
|
82
|
+
}
|
|
83
|
+
isDisabled(iso) {
|
|
84
|
+
if (this.minDate && iso < this.minDate)
|
|
85
|
+
return true;
|
|
86
|
+
if (this.maxDate && iso > this.maxDate)
|
|
87
|
+
return true;
|
|
88
|
+
return false;
|
|
89
|
+
}
|
|
90
|
+
isInRange(iso) {
|
|
91
|
+
if (!this.range)
|
|
92
|
+
return false;
|
|
93
|
+
const start = this.startDate;
|
|
94
|
+
const end = this.endDate || this.hoverDate;
|
|
95
|
+
if (!start || !end)
|
|
96
|
+
return false;
|
|
97
|
+
const [s, e] = start <= end ? [start, end] : [end, start];
|
|
98
|
+
return iso > s && iso < e;
|
|
99
|
+
}
|
|
100
|
+
selectDate(iso) {
|
|
101
|
+
if (this.isDisabled(iso))
|
|
102
|
+
return;
|
|
103
|
+
if (!this.range) {
|
|
104
|
+
this.value = iso;
|
|
105
|
+
this.open = false;
|
|
106
|
+
this.dropiDateChange.emit(iso);
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
// Range mode
|
|
110
|
+
if (!this.startDate || (this.startDate && this.endDate)) {
|
|
111
|
+
this.startDate = iso;
|
|
112
|
+
this.endDate = '';
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
if (iso < this.startDate) {
|
|
116
|
+
this.endDate = this.startDate;
|
|
117
|
+
this.startDate = iso;
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
this.endDate = iso;
|
|
121
|
+
}
|
|
122
|
+
this.open = false;
|
|
123
|
+
this.dropiRangeChange.emit({ start: this.startDate, end: this.endDate });
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
buildDays() {
|
|
127
|
+
const year = this.viewYear;
|
|
128
|
+
const month = this.viewMonth;
|
|
129
|
+
const firstDay = new Date(year, month, 1).getDay();
|
|
130
|
+
// Adjust to Monday-first
|
|
131
|
+
const startOffset = (firstDay + 6) % 7;
|
|
132
|
+
const daysInMonth = new Date(year, month + 1, 0).getDate();
|
|
133
|
+
const daysInPrevMonth = new Date(year, month, 0).getDate();
|
|
134
|
+
const cells = [];
|
|
135
|
+
// Previous month filler
|
|
136
|
+
for (let i = startOffset - 1; i >= 0; i--) {
|
|
137
|
+
const d = daysInPrevMonth - i;
|
|
138
|
+
const m = month === 0 ? 11 : month - 1;
|
|
139
|
+
const y = month === 0 ? year - 1 : year;
|
|
140
|
+
cells.push({ iso: this.toISO(y, m, d), day: d, currentMonth: false });
|
|
141
|
+
}
|
|
142
|
+
// Current month
|
|
143
|
+
for (let d = 1; d <= daysInMonth; d++) {
|
|
144
|
+
cells.push({ iso: this.toISO(year, month, d), day: d, currentMonth: true });
|
|
145
|
+
}
|
|
146
|
+
// Next month filler
|
|
147
|
+
const remaining = 42 - cells.length;
|
|
148
|
+
for (let d = 1; d <= remaining; d++) {
|
|
149
|
+
const m = month === 11 ? 0 : month + 1;
|
|
150
|
+
const y = month === 11 ? year + 1 : year;
|
|
151
|
+
cells.push({ iso: this.toISO(y, m, d), day: d, currentMonth: false });
|
|
152
|
+
}
|
|
153
|
+
return cells;
|
|
154
|
+
}
|
|
155
|
+
render() {
|
|
156
|
+
const days = this.buildDays();
|
|
157
|
+
const today = new Date().toISOString().slice(0, 10);
|
|
158
|
+
return (h("div", { key: 'ee619ad7d2528fa29f74cd9e149a9a4f8250c1b5', class: "dp-wrap" }, this.label && h("label", { key: 'faffc20912e7e27cf27f6b8895050df117f2fcd9', class: "dp-label" }, this.label), h("button", { key: '6249c8e76c7b19bd54bedb3f2e98342b45eb9444', class: { 'dp-trigger': true, 'dp-trigger--disabled': this.disabled }, onClick: () => this.open ? this.open = false : this.open_(), disabled: this.disabled, type: "button" }, h("dropi-icon", { key: '3033520703a6c58fb30d8231196a206e1f2a153c', name: "Calendar", width: "16px", height: "16px", color: "Gray-Gray-400" }), h("span", { key: 'c426b0a12c17108d4f32d2d01732bfc13ec15b26', class: { 'dp-trigger__value': true, 'dp-trigger__placeholder': !this.displayValue } }, this.displayValue || this.placeholder), h("dropi-icon", { key: '218703644316e36b4a2bece89975db723eaa0bfa', name: "Arrow-Down-2", width: "12px", height: "12px", color: "Gray-Gray-400" })), this.open && (h("div", { key: '4ca8fa76344e960a42e4aec332e6ecdabab3bc6c', class: "dp-popup" }, h("div", { key: '04b2b43eb0b209127a31adb2d0721b70449e84ab', class: "dp-nav" }, h("button", { key: '4f7e1208d4a6b2e03f30730fb38306f4aaf365af', class: "dp-nav__btn", onClick: () => this.prevMonth(), type: "button" }, h("dropi-icon", { key: '307a5dcbd86c26f13a22e0d69a8f61b7a646378b', name: "Arrow-Left-2", width: "16px", height: "16px", color: "Gray-Gray-600" })), h("span", { key: '1c094b7fb9385cc7673a2dd3038eebdc11a247c7', class: "dp-nav__title" }, MONTHS_ES[this.viewMonth], " ", this.viewYear), h("button", { key: '70c629dc1f1229fffcceec2f01ed8acc72bf1794', class: "dp-nav__btn", onClick: () => this.nextMonth(), type: "button" }, h("dropi-icon", { key: 'ab1847f3771ccc80c9257a82f31ed7cd2cb0dd0a', name: "Arrow-Right-2", width: "16px", height: "16px", color: "Gray-Gray-600" }))), h("div", { key: '92ff7685583877bed3a63ea74c92fd4581b9a777', class: "dp-grid" }, DAYS_ES.map(d => (h("div", { class: "dp-day-header" }, d))), days.map(({ iso, day, currentMonth }) => {
|
|
159
|
+
const isSelected = !this.range
|
|
160
|
+
? iso === this.value
|
|
161
|
+
: iso === this.startDate || iso === this.endDate;
|
|
162
|
+
const isRangeStart = this.range && iso === this.startDate;
|
|
163
|
+
const isRangeEnd = this.range && iso === this.endDate;
|
|
164
|
+
const inRange = this.isInRange(iso);
|
|
165
|
+
const disabled = this.isDisabled(iso);
|
|
166
|
+
const isToday = iso === today;
|
|
167
|
+
return (h("button", { class: {
|
|
168
|
+
'dp-cell': true,
|
|
169
|
+
'dp-cell--other-month': !currentMonth,
|
|
170
|
+
'dp-cell--today': isToday,
|
|
171
|
+
'dp-cell--selected': isSelected,
|
|
172
|
+
'dp-cell--range-start': isRangeStart,
|
|
173
|
+
'dp-cell--range-end': isRangeEnd,
|
|
174
|
+
'dp-cell--in-range': inRange,
|
|
175
|
+
'dp-cell--disabled': disabled,
|
|
176
|
+
}, type: "button", disabled: disabled, onClick: () => this.selectDate(iso), onMouseEnter: () => {
|
|
177
|
+
if (this.range && this.startDate && !this.endDate)
|
|
178
|
+
this.hoverDate = iso;
|
|
179
|
+
}, onMouseLeave: () => this.hoverDate = '' }, day));
|
|
180
|
+
})), h("div", { key: '2e1a6e5e3f016b68b9486e6acadb94738671fe7f', class: "dp-footer" }, h("button", { key: 'cef6300ccd52c617426522d3977ac72829cb40cc', class: "dp-footer__clear", type: "button", onClick: () => {
|
|
181
|
+
this.value = '';
|
|
182
|
+
this.startDate = '';
|
|
183
|
+
this.endDate = '';
|
|
184
|
+
this.open = false;
|
|
185
|
+
} }, "Limpiar"), h("button", { key: 'a5627d87cdc24d70368618fb8c67eff30b0800c7', class: "dp-footer__today", type: "button", onClick: () => {
|
|
186
|
+
if (!this.range) {
|
|
187
|
+
this.value = today;
|
|
188
|
+
this.open = false;
|
|
189
|
+
this.dropiDateChange.emit(today);
|
|
190
|
+
}
|
|
191
|
+
else {
|
|
192
|
+
this.startDate = today;
|
|
193
|
+
this.endDate = '';
|
|
194
|
+
}
|
|
195
|
+
} }, "Hoy"))))));
|
|
196
|
+
}
|
|
197
|
+
static get is() { return "dropi-date-picker"; }
|
|
198
|
+
static get encapsulation() { return "shadow"; }
|
|
199
|
+
static get originalStyleUrls() {
|
|
200
|
+
return {
|
|
201
|
+
"$": ["dropi-date-picker.css"]
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
static get styleUrls() {
|
|
205
|
+
return {
|
|
206
|
+
"$": ["dropi-date-picker.css"]
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
static get properties() {
|
|
210
|
+
return {
|
|
211
|
+
"value": {
|
|
212
|
+
"type": "string",
|
|
213
|
+
"mutable": true,
|
|
214
|
+
"complexType": {
|
|
215
|
+
"original": "string",
|
|
216
|
+
"resolved": "string",
|
|
217
|
+
"references": {}
|
|
218
|
+
},
|
|
219
|
+
"required": false,
|
|
220
|
+
"optional": false,
|
|
221
|
+
"docs": {
|
|
222
|
+
"tags": [],
|
|
223
|
+
"text": "Selected date (ISO string, single mode)"
|
|
224
|
+
},
|
|
225
|
+
"getter": false,
|
|
226
|
+
"setter": false,
|
|
227
|
+
"reflect": false,
|
|
228
|
+
"attribute": "value",
|
|
229
|
+
"defaultValue": "''"
|
|
230
|
+
},
|
|
231
|
+
"startDate": {
|
|
232
|
+
"type": "string",
|
|
233
|
+
"mutable": true,
|
|
234
|
+
"complexType": {
|
|
235
|
+
"original": "string",
|
|
236
|
+
"resolved": "string",
|
|
237
|
+
"references": {}
|
|
238
|
+
},
|
|
239
|
+
"required": false,
|
|
240
|
+
"optional": false,
|
|
241
|
+
"docs": {
|
|
242
|
+
"tags": [],
|
|
243
|
+
"text": "Range start date (ISO string, range mode)"
|
|
244
|
+
},
|
|
245
|
+
"getter": false,
|
|
246
|
+
"setter": false,
|
|
247
|
+
"reflect": false,
|
|
248
|
+
"attribute": "start-date",
|
|
249
|
+
"defaultValue": "''"
|
|
250
|
+
},
|
|
251
|
+
"endDate": {
|
|
252
|
+
"type": "string",
|
|
253
|
+
"mutable": true,
|
|
254
|
+
"complexType": {
|
|
255
|
+
"original": "string",
|
|
256
|
+
"resolved": "string",
|
|
257
|
+
"references": {}
|
|
258
|
+
},
|
|
259
|
+
"required": false,
|
|
260
|
+
"optional": false,
|
|
261
|
+
"docs": {
|
|
262
|
+
"tags": [],
|
|
263
|
+
"text": "Range end date (ISO string, range mode)"
|
|
264
|
+
},
|
|
265
|
+
"getter": false,
|
|
266
|
+
"setter": false,
|
|
267
|
+
"reflect": false,
|
|
268
|
+
"attribute": "end-date",
|
|
269
|
+
"defaultValue": "''"
|
|
270
|
+
},
|
|
271
|
+
"range": {
|
|
272
|
+
"type": "boolean",
|
|
273
|
+
"mutable": false,
|
|
274
|
+
"complexType": {
|
|
275
|
+
"original": "boolean",
|
|
276
|
+
"resolved": "boolean",
|
|
277
|
+
"references": {}
|
|
278
|
+
},
|
|
279
|
+
"required": false,
|
|
280
|
+
"optional": false,
|
|
281
|
+
"docs": {
|
|
282
|
+
"tags": [],
|
|
283
|
+
"text": "Enable range selection"
|
|
284
|
+
},
|
|
285
|
+
"getter": false,
|
|
286
|
+
"setter": false,
|
|
287
|
+
"reflect": false,
|
|
288
|
+
"attribute": "range",
|
|
289
|
+
"defaultValue": "false"
|
|
290
|
+
},
|
|
291
|
+
"minDate": {
|
|
292
|
+
"type": "string",
|
|
293
|
+
"mutable": false,
|
|
294
|
+
"complexType": {
|
|
295
|
+
"original": "string",
|
|
296
|
+
"resolved": "string",
|
|
297
|
+
"references": {}
|
|
298
|
+
},
|
|
299
|
+
"required": false,
|
|
300
|
+
"optional": false,
|
|
301
|
+
"docs": {
|
|
302
|
+
"tags": [],
|
|
303
|
+
"text": "Min selectable date (ISO string)"
|
|
304
|
+
},
|
|
305
|
+
"getter": false,
|
|
306
|
+
"setter": false,
|
|
307
|
+
"reflect": false,
|
|
308
|
+
"attribute": "min-date",
|
|
309
|
+
"defaultValue": "''"
|
|
310
|
+
},
|
|
311
|
+
"maxDate": {
|
|
312
|
+
"type": "string",
|
|
313
|
+
"mutable": false,
|
|
314
|
+
"complexType": {
|
|
315
|
+
"original": "string",
|
|
316
|
+
"resolved": "string",
|
|
317
|
+
"references": {}
|
|
318
|
+
},
|
|
319
|
+
"required": false,
|
|
320
|
+
"optional": false,
|
|
321
|
+
"docs": {
|
|
322
|
+
"tags": [],
|
|
323
|
+
"text": "Max selectable date (ISO string)"
|
|
324
|
+
},
|
|
325
|
+
"getter": false,
|
|
326
|
+
"setter": false,
|
|
327
|
+
"reflect": false,
|
|
328
|
+
"attribute": "max-date",
|
|
329
|
+
"defaultValue": "''"
|
|
330
|
+
},
|
|
331
|
+
"label": {
|
|
332
|
+
"type": "string",
|
|
333
|
+
"mutable": false,
|
|
334
|
+
"complexType": {
|
|
335
|
+
"original": "string",
|
|
336
|
+
"resolved": "string",
|
|
337
|
+
"references": {}
|
|
338
|
+
},
|
|
339
|
+
"required": false,
|
|
340
|
+
"optional": false,
|
|
341
|
+
"docs": {
|
|
342
|
+
"tags": [],
|
|
343
|
+
"text": "Label"
|
|
344
|
+
},
|
|
345
|
+
"getter": false,
|
|
346
|
+
"setter": false,
|
|
347
|
+
"reflect": false,
|
|
348
|
+
"attribute": "label",
|
|
349
|
+
"defaultValue": "''"
|
|
350
|
+
},
|
|
351
|
+
"placeholder": {
|
|
352
|
+
"type": "string",
|
|
353
|
+
"mutable": false,
|
|
354
|
+
"complexType": {
|
|
355
|
+
"original": "string",
|
|
356
|
+
"resolved": "string",
|
|
357
|
+
"references": {}
|
|
358
|
+
},
|
|
359
|
+
"required": false,
|
|
360
|
+
"optional": false,
|
|
361
|
+
"docs": {
|
|
362
|
+
"tags": [],
|
|
363
|
+
"text": "Placeholder"
|
|
364
|
+
},
|
|
365
|
+
"getter": false,
|
|
366
|
+
"setter": false,
|
|
367
|
+
"reflect": false,
|
|
368
|
+
"attribute": "placeholder",
|
|
369
|
+
"defaultValue": "'Seleccionar fecha'"
|
|
370
|
+
},
|
|
371
|
+
"disabled": {
|
|
372
|
+
"type": "boolean",
|
|
373
|
+
"mutable": false,
|
|
374
|
+
"complexType": {
|
|
375
|
+
"original": "boolean",
|
|
376
|
+
"resolved": "boolean",
|
|
377
|
+
"references": {}
|
|
378
|
+
},
|
|
379
|
+
"required": false,
|
|
380
|
+
"optional": false,
|
|
381
|
+
"docs": {
|
|
382
|
+
"tags": [],
|
|
383
|
+
"text": "Disabled"
|
|
384
|
+
},
|
|
385
|
+
"getter": false,
|
|
386
|
+
"setter": false,
|
|
387
|
+
"reflect": false,
|
|
388
|
+
"attribute": "disabled",
|
|
389
|
+
"defaultValue": "false"
|
|
390
|
+
}
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
static get states() {
|
|
394
|
+
return {
|
|
395
|
+
"open": {},
|
|
396
|
+
"viewYear": {},
|
|
397
|
+
"viewMonth": {},
|
|
398
|
+
"hoverDate": {}
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
static get events() {
|
|
402
|
+
return [{
|
|
403
|
+
"method": "dropiDateChange",
|
|
404
|
+
"name": "dropiDateChange",
|
|
405
|
+
"bubbles": true,
|
|
406
|
+
"cancelable": true,
|
|
407
|
+
"composed": true,
|
|
408
|
+
"docs": {
|
|
409
|
+
"tags": [],
|
|
410
|
+
"text": "Emitted when single date selected. e.detail = ISO date"
|
|
411
|
+
},
|
|
412
|
+
"complexType": {
|
|
413
|
+
"original": "string",
|
|
414
|
+
"resolved": "string",
|
|
415
|
+
"references": {}
|
|
416
|
+
}
|
|
417
|
+
}, {
|
|
418
|
+
"method": "dropiRangeChange",
|
|
419
|
+
"name": "dropiRangeChange",
|
|
420
|
+
"bubbles": true,
|
|
421
|
+
"cancelable": true,
|
|
422
|
+
"composed": true,
|
|
423
|
+
"docs": {
|
|
424
|
+
"tags": [],
|
|
425
|
+
"text": "Emitted when range selected. e.detail = { start, end }"
|
|
426
|
+
},
|
|
427
|
+
"complexType": {
|
|
428
|
+
"original": "{ start: string; end: string }",
|
|
429
|
+
"resolved": "{ start: string; end: string; }",
|
|
430
|
+
"references": {}
|
|
431
|
+
}
|
|
432
|
+
}];
|
|
433
|
+
}
|
|
434
|
+
}
|