@dropi/ui 0.1.20 → 0.1.22
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-accordion-item.cjs.entry.js +54 -0
- package/dist/cjs/dropi-accordion.cjs.entry.js +5 -39
- package/dist/cjs/dropi-alert-legacy.cjs.entry.js +39 -0
- package/dist/cjs/dropi-alert-modal.cjs.entry.js +80 -24
- package/dist/cjs/dropi-alert.cjs.entry.js +20 -14
- package/dist/cjs/dropi-avatars.cjs.entry.js +3 -3
- package/dist/cjs/dropi-badge-legacy.cjs.entry.js +30 -0
- package/dist/cjs/dropi-badge.cjs.entry.js +4 -4
- package/dist/cjs/dropi-banner-external.cjs.entry.js +25 -9
- package/dist/cjs/dropi-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/dropi-button.cjs.entry.js +11 -7
- package/dist/cjs/dropi-card-checkbox.cjs.entry.js +17 -14
- package/dist/cjs/dropi-card-product.cjs.entry.js +42 -23
- package/dist/cjs/dropi-card-section.cjs.entry.js +17 -17
- package/dist/cjs/dropi-carousel.cjs.entry.js +112 -42
- package/dist/cjs/dropi-checkbox-selection-list.cjs.entry.js +17 -15
- package/dist/cjs/dropi-checkbox.cjs.entry.js +6 -6
- package/dist/cjs/dropi-chips.cjs.entry.js +8 -8
- package/dist/cjs/dropi-city-selector.cjs.entry.js +28 -9
- package/dist/cjs/dropi-color-picker.cjs.entry.js +300 -50
- package/dist/cjs/dropi-country-flags.cjs.entry.js +4 -4
- package/dist/cjs/dropi-country-selector.cjs.entry.js +50 -17
- package/dist/cjs/dropi-date-picker-range.cjs.entry.js +8 -8
- package/dist/cjs/dropi-date-picker.cjs.entry.js +53 -35
- package/dist/cjs/dropi-drawer.cjs.entry.js +38 -9
- package/dist/cjs/dropi-dropdown.cjs.entry.js +23 -16
- package/dist/cjs/dropi-empty-state.cjs.entry.js +15 -18
- package/dist/cjs/dropi-favorite-button.cjs.entry.js +5 -5
- package/dist/cjs/dropi-file-upload-progress-bar.cjs.entry.js +57 -32
- package/dist/cjs/dropi-file-upload.cjs.entry.js +210 -57
- package/dist/cjs/dropi-icon.cjs.entry.js +21 -4
- package/dist/cjs/dropi-ilustration-icon.cjs.entry.js +3 -3
- package/dist/cjs/dropi-image-miniature.cjs.entry.js +2 -2
- package/dist/cjs/dropi-image-overlay.cjs.entry.js +4 -3
- package/dist/cjs/dropi-input_3.cjs.entry.js +392 -0
- package/dist/cjs/dropi-languages-selector.cjs.entry.js +10 -6
- package/dist/cjs/dropi-logo.cjs.entry.js +12 -2
- package/dist/cjs/dropi-lottie-loader.cjs.entry.js +5 -5
- package/dist/cjs/dropi-media-player.cjs.entry.js +131 -41
- package/dist/cjs/dropi-modal.cjs.entry.js +46 -20
- package/dist/cjs/dropi-navbar.cjs.entry.js +14 -12
- package/dist/cjs/dropi-otp-send-code.cjs.entry.js +13 -13
- package/dist/cjs/dropi-phone-input.cjs.entry.js +163 -50
- package/dist/cjs/dropi-radio-button.cjs.entry.js +7 -7
- package/dist/cjs/dropi-radio-selection-list.cjs.entry.js +17 -13
- package/dist/cjs/dropi-read-more.cjs.entry.js +8 -4
- package/dist/cjs/dropi-search.cjs.entry.js +52 -38
- package/dist/cjs/dropi-select.cjs.entry.js +102 -55
- package/dist/cjs/dropi-sidebar.cjs.entry.js +61 -50
- package/dist/cjs/dropi-simple-stepper.cjs.entry.js +8 -6
- package/dist/cjs/dropi-skeleton.cjs.entry.js +16 -6
- package/dist/cjs/dropi-steps.cjs.entry.js +6 -4
- package/dist/cjs/dropi-switch.cjs.entry.js +5 -5
- package/dist/cjs/dropi-table.cjs.entry.js +212 -37
- package/dist/cjs/dropi-tabs.cjs.entry.js +13 -11
- package/dist/cjs/dropi-tag-type-product.cjs.entry.js +3 -3
- package/dist/cjs/dropi-text-area.cjs.entry.js +45 -14
- package/dist/cjs/dropi-time-line.cjs.entry.js +3 -3
- package/dist/cjs/dropi-toast.cjs.entry.js +7 -6
- package/dist/cjs/dropi-tooltip-v2.cjs.entry.js +131 -0
- package/dist/cjs/dropi-tooltip.cjs.entry.js +5 -26
- package/dist/cjs/dropi-ui.cjs.js +2 -2
- package/dist/cjs/dropi-vertical-steps.cjs.entry.js +6 -6
- package/dist/cjs/dropi-youtube-lazy-video.cjs.entry.js +3 -3
- package/dist/cjs/{index-DcOH2ZjX.js → index-C8kwDvpf.js} +1044 -14
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +7 -3
- package/dist/collection/components/dropi-accordion/dropi-accordion-item.css +45 -0
- package/dist/collection/components/dropi-accordion/dropi-accordion-item.js +172 -0
- package/dist/collection/components/dropi-accordion/dropi-accordion.css +3 -3
- package/dist/collection/components/dropi-accordion/dropi-accordion.js +7 -129
- package/dist/collection/components/dropi-alert/dropi-alert.css +5 -11
- package/dist/collection/components/dropi-alert/dropi-alert.js +86 -20
- package/dist/collection/components/dropi-alert-legacy/dropi-alert-legacy.css +31 -0
- package/dist/collection/components/dropi-alert-legacy/dropi-alert-legacy.js +128 -0
- package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.css +55 -23
- package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.js +180 -50
- package/dist/collection/components/dropi-avatars/dropi-avatars.js +3 -3
- package/dist/collection/components/dropi-badge/dropi-badge.css +1 -1
- package/dist/collection/components/dropi-badge/dropi-badge.js +3 -4
- package/dist/collection/components/dropi-badge-legacy/dropi-badge-legacy.css +17 -0
- package/dist/collection/components/dropi-badge-legacy/dropi-badge-legacy.js +119 -0
- package/dist/collection/components/dropi-banner-external/dropi-banner-external.js +88 -13
- package/dist/collection/components/dropi-breadcrumb/dropi-breadcrumb.js +1 -1
- package/dist/collection/components/dropi-button/dropi-button.css +17 -17
- package/dist/collection/components/dropi-button/dropi-button.js +31 -7
- package/dist/collection/components/dropi-card-checkbox/dropi-card-checkbox.css +3 -1
- package/dist/collection/components/dropi-card-checkbox/dropi-card-checkbox.js +30 -27
- package/dist/collection/components/dropi-card-product/dropi-card-product.css +179 -102
- package/dist/collection/components/dropi-card-product/dropi-card-product.js +112 -79
- package/dist/collection/components/dropi-card-section/dropi-card-section.css +2 -2
- package/dist/collection/components/dropi-card-section/dropi-card-section.js +25 -25
- package/dist/collection/components/dropi-carousel/dropi-carousel.css +114 -69
- package/dist/collection/components/dropi-carousel/dropi-carousel.js +202 -100
- package/dist/collection/components/dropi-checkbox/dropi-checkbox.js +6 -6
- package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.js +42 -20
- package/dist/collection/components/dropi-chips/dropi-chips.js +15 -15
- package/dist/collection/components/dropi-city-selector/dropi-city-selector.css +112 -50
- package/dist/collection/components/dropi-city-selector/dropi-city-selector.js +38 -9
- package/dist/collection/components/dropi-color-picker/dropi-color-picker.css +169 -142
- package/dist/collection/components/dropi-color-picker/dropi-color-picker.js +317 -159
- package/dist/collection/components/dropi-country-flags/dropi-country-flags.js +5 -5
- package/dist/collection/components/dropi-country-selector/dropi-country-selector.css +72 -25
- package/dist/collection/components/dropi-country-selector/dropi-country-selector.js +124 -22
- package/dist/collection/components/dropi-date-picker/dropi-date-picker.css +104 -39
- package/dist/collection/components/dropi-date-picker/dropi-date-picker.js +131 -49
- package/dist/collection/components/dropi-date-picker-range/dropi-date-picker-range.css +8 -8
- package/dist/collection/components/dropi-date-picker-range/dropi-date-picker-range.js +8 -8
- package/dist/collection/components/dropi-drawer/dropi-drawer.css +38 -16
- package/dist/collection/components/dropi-drawer/dropi-drawer.js +107 -18
- package/dist/collection/components/dropi-dropdown/dropi-dropdown.css +1 -1
- package/dist/collection/components/dropi-dropdown/dropi-dropdown.js +52 -27
- package/dist/collection/components/dropi-empty-state/dropi-empty-state.js +37 -54
- package/dist/collection/components/dropi-favorite-button/dropi-favorite-button.js +5 -5
- package/dist/collection/components/dropi-file-upload/dropi-file-upload.css +431 -33
- package/dist/collection/components/dropi-file-upload/dropi-file-upload.js +364 -104
- package/dist/collection/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.css +82 -78
- package/dist/collection/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.js +129 -69
- package/dist/collection/components/dropi-icon/dropi-icon.css +5 -0
- package/dist/collection/components/dropi-icon/dropi-icon.js +19 -2
- package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.css +3 -3
- package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.js +1 -1
- package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.js +1 -1
- package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.css +6 -2
- package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.js +5 -4
- package/dist/collection/components/dropi-input/dropi-input.css +1 -1
- package/dist/collection/components/dropi-input/dropi-input.js +155 -82
- package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.css +1 -1
- package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.js +9 -5
- package/dist/collection/components/dropi-logo/dropi-logo.js +12 -1
- package/dist/collection/components/dropi-lottie-loader/dropi-lottie-loader.css +8 -2
- package/dist/collection/components/dropi-lottie-loader/dropi-lottie-loader.js +6 -6
- package/dist/collection/components/dropi-media-player/dropi-media-player.css +263 -70
- package/dist/collection/components/dropi-media-player/dropi-media-player.js +161 -61
- package/dist/collection/components/dropi-modal/dropi-modal.css +14 -4
- package/dist/collection/components/dropi-modal/dropi-modal.js +312 -26
- package/dist/collection/components/dropi-navbar/dropi-navbar.css +7 -7
- package/dist/collection/components/dropi-navbar/dropi-navbar.js +42 -26
- package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.css +2 -2
- package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.js +13 -13
- package/dist/collection/components/dropi-paginator/dropi-paginator.css +2 -2
- package/dist/collection/components/dropi-paginator/dropi-paginator.js +51 -99
- package/dist/collection/components/dropi-phone-input/dropi-phone-input.css +158 -101
- package/dist/collection/components/dropi-phone-input/dropi-phone-input.js +256 -86
- package/dist/collection/components/dropi-radio-button/dropi-radio-button.js +13 -20
- package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.css +3 -3
- package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.js +69 -19
- package/dist/collection/components/dropi-read-more/dropi-read-more.css +5 -8
- package/dist/collection/components/dropi-read-more/dropi-read-more.js +46 -2
- package/dist/collection/components/dropi-search/dropi-search.css +2 -2
- package/dist/collection/components/dropi-search/dropi-search.js +194 -60
- package/dist/collection/components/dropi-select/dropi-select.css +7 -7
- package/dist/collection/components/dropi-select/dropi-select.js +170 -84
- package/dist/collection/components/dropi-sidebar/dropi-sidebar.css +51 -92
- package/dist/collection/components/dropi-sidebar/dropi-sidebar.js +86 -176
- package/dist/collection/components/dropi-simple-stepper/dropi-simple-stepper.css +2 -2
- package/dist/collection/components/dropi-simple-stepper/dropi-simple-stepper.js +29 -7
- package/dist/collection/components/dropi-skeleton/dropi-skeleton.js +40 -10
- package/dist/collection/components/dropi-steps/dropi-steps.css +3 -3
- package/dist/collection/components/dropi-steps/dropi-steps.js +31 -3
- package/dist/collection/components/dropi-switch/dropi-switch.js +5 -5
- package/dist/collection/components/dropi-table/dropi-table.css +505 -45
- package/dist/collection/components/dropi-table/dropi-table.js +690 -50
- package/dist/collection/components/dropi-tabs/dropi-tabs.css +10 -5
- package/dist/collection/components/dropi-tabs/dropi-tabs.js +35 -13
- package/dist/collection/components/dropi-tag/dropi-tag.js +5 -5
- package/dist/collection/components/dropi-tag-type-product/dropi-tag-type-product.css +4 -4
- package/dist/collection/components/dropi-tag-type-product/dropi-tag-type-product.js +1 -1
- package/dist/collection/components/dropi-text-area/dropi-text-area.css +4 -1
- package/dist/collection/components/dropi-text-area/dropi-text-area.js +87 -32
- package/dist/collection/components/dropi-time-line/dropi-time-line.css +2 -2
- package/dist/collection/components/dropi-time-line/dropi-time-line.js +1 -1
- package/dist/collection/components/dropi-toast/dropi-toast.css +2 -2
- package/dist/collection/components/dropi-toast/dropi-toast.js +6 -5
- package/dist/collection/components/dropi-tooltip/dropi-tooltip.css +28 -63
- package/dist/collection/components/dropi-tooltip/dropi-tooltip.js +11 -88
- package/dist/collection/components/dropi-tooltip-v2/dropi-tooltip.css +67 -0
- package/dist/collection/components/dropi-tooltip-v2/dropi-tooltip.js +468 -0
- package/dist/collection/components/dropi-vertical-steps/dropi-vertical-steps.css +3 -3
- package/dist/collection/components/dropi-vertical-steps/dropi-vertical-steps.js +5 -5
- package/dist/collection/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.css +1 -1
- package/dist/collection/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.js +1 -1
- package/dist/components/dropi-accordion-item.d.ts +11 -0
- package/dist/components/dropi-accordion-item.js +1 -0
- package/dist/components/dropi-accordion.js +1 -1
- package/dist/components/dropi-alert-legacy.d.ts +11 -0
- package/dist/components/dropi-alert-legacy.js +1 -0
- package/dist/components/dropi-alert-modal.js +1 -1
- package/dist/components/dropi-alert.js +1 -1
- package/dist/components/dropi-avatars.js +1 -1
- package/dist/components/dropi-badge-legacy.d.ts +11 -0
- package/dist/components/dropi-badge-legacy.js +1 -0
- package/dist/components/dropi-badge.js +1 -1
- package/dist/components/dropi-banner-external.js +1 -1
- package/dist/components/dropi-breadcrumb.js +1 -1
- package/dist/components/dropi-button.js +1 -1
- package/dist/components/dropi-card-checkbox.js +1 -1
- package/dist/components/dropi-card-product.js +1 -1
- package/dist/components/dropi-card-section.js +1 -1
- package/dist/components/dropi-carousel.js +1 -1
- package/dist/components/dropi-checkbox-selection-list.js +1 -1
- package/dist/components/dropi-checkbox.js +1 -1
- package/dist/components/dropi-chips.js +1 -1
- package/dist/components/dropi-city-selector.js +1 -1
- package/dist/components/dropi-color-picker.js +1 -1
- package/dist/components/dropi-country-flags.js +1 -1
- package/dist/components/dropi-country-selector.js +1 -1
- package/dist/components/dropi-date-picker-range.js +1 -1
- package/dist/components/dropi-date-picker.js +1 -1
- package/dist/components/dropi-drawer.js +1 -1
- package/dist/components/dropi-dropdown.js +1 -1
- package/dist/components/dropi-empty-state.js +1 -1
- package/dist/components/dropi-favorite-button.js +1 -1
- package/dist/components/dropi-file-upload-progress-bar.js +1 -1
- package/dist/components/dropi-file-upload.js +1 -1
- package/dist/components/dropi-icon.js +1 -1
- package/dist/components/dropi-ilustration-icon.js +1 -1
- package/dist/components/dropi-image-miniature.js +1 -1
- package/dist/components/dropi-image-overlay.js +1 -1
- package/dist/components/dropi-input.js +1 -1
- package/dist/components/dropi-languages-selector.js +1 -1
- package/dist/components/dropi-logo.js +1 -1
- package/dist/components/dropi-lottie-loader.js +1 -1
- package/dist/components/dropi-media-player.js +1 -1
- package/dist/components/dropi-modal.js +1 -1
- package/dist/components/dropi-navbar.js +1 -1
- package/dist/components/dropi-otp-send-code.js +1 -1
- package/dist/components/dropi-paginator.js +1 -1
- package/dist/components/dropi-phone-input.js +1 -1
- package/dist/components/dropi-radio-button.js +1 -1
- package/dist/components/dropi-radio-selection-list.js +1 -1
- package/dist/components/dropi-read-more.js +1 -1
- package/dist/components/dropi-search.js +1 -1
- package/dist/components/dropi-select.js +1 -1
- package/dist/components/dropi-sidebar.js +1 -1
- package/dist/components/dropi-simple-stepper.js +1 -1
- package/dist/components/dropi-skeleton.js +1 -1
- package/dist/components/dropi-steps.js +1 -1
- package/dist/components/dropi-switch.js +1 -1
- package/dist/components/dropi-table.js +1 -1
- package/dist/components/dropi-tabs.js +1 -1
- package/dist/components/dropi-tag-type-product.js +1 -1
- package/dist/components/dropi-tag.js +1 -1
- package/dist/components/dropi-text-area.js +1 -1
- package/dist/components/dropi-time-line.js +1 -1
- package/dist/components/dropi-toast.js +1 -1
- package/dist/components/dropi-tooltip-v2.d.ts +11 -0
- package/dist/components/dropi-tooltip-v2.js +1 -0
- package/dist/components/dropi-tooltip.js +1 -1
- package/dist/components/dropi-vertical-steps.js +1 -1
- package/dist/components/dropi-youtube-lazy-video.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-B9R8Apw7.js +1 -0
- package/dist/components/p-B_Ace02i.js +1 -0
- package/dist/components/p-BrjO_JXp.js +1 -0
- package/dist/components/p-BwhxWL4p.js +1 -0
- package/dist/components/p-Bz2jXX3R.js +1 -0
- package/dist/components/p-CV4X3Gm4.js +1 -0
- package/dist/components/p-CV_oz45O.js +1 -0
- package/dist/components/p-D-vQQQNz.js +1 -0
- package/dist/components/p-D13d88W3.js +1 -0
- package/dist/components/p-DGUfr98Z.js +1 -0
- package/dist/components/p-a-hGQrJd.js +1 -0
- package/dist/components/p-o5gyrbbD.js +1 -0
- package/dist/dropi-ui/dropi-ui.css +1 -1
- package/dist/dropi-ui/dropi-ui.esm.js +1 -1
- package/dist/dropi-ui/p-00e5a2de.entry.js +1 -0
- package/dist/dropi-ui/p-0188e07a.entry.js +1 -0
- package/dist/dropi-ui/p-02710049.entry.js +1 -0
- package/dist/dropi-ui/p-17c56074.entry.js +1 -0
- package/dist/dropi-ui/p-18adf694.entry.js +1 -0
- package/dist/dropi-ui/p-1a3619c3.entry.js +1 -0
- package/dist/dropi-ui/p-1d3d6a32.entry.js +1 -0
- package/dist/dropi-ui/p-25640777.entry.js +1 -0
- package/dist/dropi-ui/p-2674d901.entry.js +1 -0
- package/dist/dropi-ui/p-2af538b9.entry.js +1 -0
- package/dist/dropi-ui/p-3013f3b8.entry.js +1 -0
- package/dist/dropi-ui/p-3321ca70.entry.js +1 -0
- package/dist/dropi-ui/p-33d242ec.entry.js +1 -0
- package/dist/dropi-ui/p-39af6478.entry.js +1 -0
- package/dist/dropi-ui/p-3e36c8b8.entry.js +1 -0
- package/dist/dropi-ui/p-3ebc9b7b.entry.js +1 -0
- package/dist/dropi-ui/p-446a481d.entry.js +1 -0
- package/dist/dropi-ui/p-50a5e548.entry.js +1 -0
- package/dist/dropi-ui/p-50e0d44f.entry.js +1 -0
- package/dist/dropi-ui/p-53a7a37d.entry.js +1 -0
- package/dist/dropi-ui/p-5c0bd7c2.entry.js +1 -0
- package/dist/dropi-ui/p-5cee6721.entry.js +1 -0
- package/dist/dropi-ui/p-5fb33ae4.entry.js +1 -0
- package/dist/dropi-ui/p-665ef7ba.entry.js +1 -0
- package/dist/dropi-ui/p-66b80371.entry.js +1 -0
- package/dist/dropi-ui/p-7bfc1c27.entry.js +1 -0
- package/dist/dropi-ui/p-7c0d2edf.entry.js +1 -0
- package/dist/dropi-ui/p-7eb27836.entry.js +1 -0
- package/dist/dropi-ui/p-85444414.entry.js +1 -0
- package/dist/dropi-ui/p-86283e99.entry.js +1 -0
- package/dist/dropi-ui/p-8bf5d8ee.entry.js +1 -0
- package/dist/dropi-ui/p-9032ba00.entry.js +1 -0
- package/dist/dropi-ui/p-9212f544.entry.js +1 -0
- package/dist/dropi-ui/p-92291873.entry.js +1 -0
- package/dist/dropi-ui/p-955e52f8.entry.js +1 -0
- package/dist/dropi-ui/p-976a15e3.entry.js +1 -0
- package/dist/dropi-ui/p-9b037086.entry.js +1 -0
- package/dist/dropi-ui/p-9e0129cc.entry.js +1 -0
- package/dist/dropi-ui/{p-c9ebd31b.entry.js → p-9ffec3f7.entry.js} +1 -1
- package/dist/dropi-ui/p-D5SAM1O2.js +2 -0
- package/dist/dropi-ui/p-a1c93e55.entry.js +1 -0
- package/dist/dropi-ui/p-a232c6a7.entry.js +1 -0
- package/dist/dropi-ui/p-a3c4d677.entry.js +1 -0
- package/dist/dropi-ui/p-a457e8ca.entry.js +1 -0
- package/dist/dropi-ui/p-a4e1df5e.entry.js +1 -0
- package/dist/dropi-ui/p-a822a23e.entry.js +1 -0
- package/dist/dropi-ui/p-a8f24270.entry.js +1 -0
- package/dist/dropi-ui/p-ae35d538.entry.js +1 -0
- package/dist/dropi-ui/p-af8e2157.entry.js +1 -0
- package/dist/dropi-ui/p-b2623a5c.entry.js +1 -0
- package/dist/dropi-ui/p-b3d3c72e.entry.js +1 -0
- package/dist/dropi-ui/p-c3614c4a.entry.js +1 -0
- package/dist/dropi-ui/p-cbf5367e.entry.js +1 -0
- package/dist/dropi-ui/p-cc527d91.entry.js +1 -0
- package/dist/dropi-ui/p-cdde481b.entry.js +1 -0
- package/dist/dropi-ui/p-d42d4ef7.entry.js +1 -0
- package/dist/dropi-ui/{p-b41c8a6c.entry.js → p-db38bf16.entry.js} +1 -1
- package/dist/dropi-ui/p-dd5d8b1b.entry.js +1 -0
- package/dist/dropi-ui/p-e3ad21f8.entry.js +1 -0
- package/dist/dropi-ui/p-e6e766ed.entry.js +1 -0
- package/dist/dropi-ui/p-ec263862.entry.js +1 -0
- package/dist/dropi-ui/p-efc2fc35.entry.js +1 -0
- package/dist/dropi-ui/p-f41cd9b5.entry.js +1 -0
- package/dist/dropi-ui/p-fa3d0267.entry.js +1 -0
- package/dist/esm/dropi-accordion-item.entry.js +52 -0
- package/dist/esm/dropi-accordion.entry.js +5 -39
- package/dist/esm/dropi-alert-legacy.entry.js +37 -0
- package/dist/esm/dropi-alert-modal.entry.js +80 -24
- package/dist/esm/dropi-alert.entry.js +20 -14
- package/dist/esm/dropi-avatars.entry.js +3 -3
- package/dist/esm/dropi-badge-legacy.entry.js +28 -0
- package/dist/esm/dropi-badge.entry.js +4 -4
- package/dist/esm/dropi-banner-external.entry.js +25 -9
- package/dist/esm/dropi-breadcrumb.entry.js +2 -2
- package/dist/esm/dropi-button.entry.js +11 -7
- package/dist/esm/dropi-card-checkbox.entry.js +17 -14
- package/dist/esm/dropi-card-product.entry.js +42 -23
- package/dist/esm/dropi-card-section.entry.js +17 -17
- package/dist/esm/dropi-carousel.entry.js +112 -42
- package/dist/esm/dropi-checkbox-selection-list.entry.js +17 -15
- package/dist/esm/dropi-checkbox.entry.js +6 -6
- package/dist/esm/dropi-chips.entry.js +8 -8
- package/dist/esm/dropi-city-selector.entry.js +28 -9
- package/dist/esm/dropi-color-picker.entry.js +300 -50
- package/dist/esm/dropi-country-flags.entry.js +4 -4
- package/dist/esm/dropi-country-selector.entry.js +50 -17
- package/dist/esm/dropi-date-picker-range.entry.js +8 -8
- package/dist/esm/dropi-date-picker.entry.js +53 -35
- package/dist/esm/dropi-drawer.entry.js +38 -9
- package/dist/esm/dropi-dropdown.entry.js +23 -16
- package/dist/esm/dropi-empty-state.entry.js +15 -18
- package/dist/esm/dropi-favorite-button.entry.js +5 -5
- package/dist/esm/dropi-file-upload-progress-bar.entry.js +57 -32
- package/dist/esm/dropi-file-upload.entry.js +210 -57
- package/dist/esm/dropi-icon.entry.js +21 -4
- package/dist/esm/dropi-ilustration-icon.entry.js +3 -3
- package/dist/esm/dropi-image-miniature.entry.js +2 -2
- package/dist/esm/dropi-image-overlay.entry.js +4 -3
- package/dist/esm/dropi-input_3.entry.js +388 -0
- package/dist/esm/dropi-languages-selector.entry.js +10 -6
- package/dist/esm/dropi-logo.entry.js +12 -2
- package/dist/esm/dropi-lottie-loader.entry.js +5 -5
- package/dist/esm/dropi-media-player.entry.js +131 -41
- package/dist/esm/dropi-modal.entry.js +46 -20
- package/dist/esm/dropi-navbar.entry.js +14 -12
- package/dist/esm/dropi-otp-send-code.entry.js +13 -13
- package/dist/esm/dropi-phone-input.entry.js +163 -50
- package/dist/esm/dropi-radio-button.entry.js +7 -7
- package/dist/esm/dropi-radio-selection-list.entry.js +17 -13
- package/dist/esm/dropi-read-more.entry.js +8 -4
- package/dist/esm/dropi-search.entry.js +52 -38
- package/dist/esm/dropi-select.entry.js +102 -55
- package/dist/esm/dropi-sidebar.entry.js +61 -50
- package/dist/esm/dropi-simple-stepper.entry.js +8 -6
- package/dist/esm/dropi-skeleton.entry.js +16 -6
- package/dist/esm/dropi-steps.entry.js +6 -4
- package/dist/esm/dropi-switch.entry.js +5 -5
- package/dist/esm/dropi-table.entry.js +212 -37
- package/dist/esm/dropi-tabs.entry.js +13 -11
- package/dist/esm/dropi-tag-type-product.entry.js +3 -3
- package/dist/esm/dropi-text-area.entry.js +45 -14
- package/dist/esm/dropi-time-line.entry.js +3 -3
- package/dist/esm/dropi-toast.entry.js +7 -6
- package/dist/esm/dropi-tooltip-v2.entry.js +129 -0
- package/dist/esm/dropi-tooltip.entry.js +5 -26
- package/dist/esm/dropi-ui.js +3 -3
- package/dist/esm/dropi-vertical-steps.entry.js +6 -6
- package/dist/esm/dropi-youtube-lazy-video.entry.js +3 -3
- package/dist/esm/{index-Tbza12Gt.js → index-D5SAM1O2.js} +1044 -15
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/dropi-accordion/dropi-accordion-item.d.ts +24 -0
- package/dist/types/components/dropi-accordion/dropi-accordion.d.ts +3 -23
- package/dist/types/components/dropi-alert/dropi-alert.d.ts +9 -3
- package/dist/types/components/dropi-alert-legacy/dropi-alert-legacy.d.ts +18 -0
- package/dist/types/components/dropi-alert-modal/dropi-alert-modal.d.ts +26 -8
- package/dist/types/components/dropi-badge-legacy/dropi-badge-legacy.d.ts +15 -0
- package/dist/types/components/dropi-banner-external/dropi-banner-external.d.ts +11 -3
- package/dist/types/components/dropi-button/dropi-button.d.ts +4 -2
- package/dist/types/components/dropi-card-checkbox/dropi-card-checkbox.d.ts +8 -7
- package/dist/types/components/dropi-card-product/dropi-card-product.d.ts +19 -15
- package/dist/types/components/dropi-card-section/dropi-card-section.d.ts +5 -5
- package/dist/types/components/dropi-carousel/dropi-carousel.d.ts +31 -27
- package/dist/types/components/dropi-checkbox/dropi-checkbox.d.ts +1 -1
- package/dist/types/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.d.ts +7 -5
- package/dist/types/components/dropi-chips/dropi-chips.d.ts +4 -4
- package/dist/types/components/dropi-city-selector/dropi-city-selector.d.ts +3 -1
- package/dist/types/components/dropi-color-picker/dropi-color-picker.d.ts +51 -26
- package/dist/types/components/dropi-country-flags/dropi-country-flags.d.ts +1 -1
- package/dist/types/components/dropi-country-selector/dropi-country-selector.d.ts +16 -5
- package/dist/types/components/dropi-date-picker/dropi-date-picker.d.ts +16 -8
- package/dist/types/components/dropi-date-picker-range/dropi-date-picker-range.d.ts +2 -2
- package/dist/types/components/dropi-drawer/dropi-drawer.d.ts +12 -6
- package/dist/types/components/dropi-dropdown/dropi-dropdown.d.ts +12 -6
- package/dist/types/components/dropi-empty-state/dropi-empty-state.d.ts +12 -14
- package/dist/types/components/dropi-favorite-button/dropi-favorite-button.d.ts +1 -1
- package/dist/types/components/dropi-file-upload/dropi-file-upload.d.ts +65 -26
- package/dist/types/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.d.ts +24 -16
- package/dist/types/components/dropi-icon/dropi-icon.d.ts +3 -1
- package/dist/types/components/dropi-image-overlay/dropi-image-overlay.d.ts +1 -1
- package/dist/types/components/dropi-input/dropi-input.d.ts +27 -17
- package/dist/types/components/dropi-languages-selector/dropi-languages-selector.d.ts +1 -1
- package/dist/types/components/dropi-logo/dropi-logo.d.ts +2 -0
- package/dist/types/components/dropi-lottie-loader/dropi-lottie-loader.d.ts +1 -1
- package/dist/types/components/dropi-media-player/dropi-media-player.d.ts +26 -19
- package/dist/types/components/dropi-modal/dropi-modal.d.ts +24 -5
- package/dist/types/components/dropi-navbar/dropi-navbar.d.ts +7 -5
- package/dist/types/components/dropi-otp-send-code/dropi-otp-send-code.d.ts +1 -1
- package/dist/types/components/dropi-paginator/dropi-paginator.d.ts +10 -20
- package/dist/types/components/dropi-phone-input/dropi-phone-input.d.ts +35 -20
- package/dist/types/components/dropi-radio-button/dropi-radio-button.d.ts +2 -2
- package/dist/types/components/dropi-radio-selection-list/dropi-radio-selection-list.d.ts +11 -4
- package/dist/types/components/dropi-read-more/dropi-read-more.d.ts +4 -0
- package/dist/types/components/dropi-search/dropi-search.d.ts +24 -12
- package/dist/types/components/dropi-select/dropi-select.d.ts +26 -15
- package/dist/types/components/dropi-sidebar/dropi-sidebar.d.ts +32 -26
- package/dist/types/components/dropi-simple-stepper/dropi-simple-stepper.d.ts +2 -0
- package/dist/types/components/dropi-skeleton/dropi-skeleton.d.ts +4 -1
- package/dist/types/components/dropi-steps/dropi-steps.d.ts +3 -0
- package/dist/types/components/dropi-switch/dropi-switch.d.ts +1 -1
- package/dist/types/components/dropi-table/dropi-table.d.ts +90 -14
- package/dist/types/components/dropi-tabs/dropi-tabs.d.ts +5 -3
- package/dist/types/components/dropi-text-area/dropi-text-area.d.ts +27 -6
- package/dist/types/components/dropi-tooltip/dropi-tooltip.d.ts +3 -17
- package/dist/types/components/dropi-tooltip-v2/dropi-tooltip.d.ts +59 -0
- package/dist/types/components/dropi-vertical-steps/dropi-vertical-steps.d.ts +1 -1
- package/dist/types/components.d.ts +2182 -1180
- package/dist/types/index.d.ts +1 -0
- package/hydrate/index.d.ts +287 -0
- package/hydrate/index.js +30455 -0
- package/hydrate/index.mjs +30445 -0
- package/hydrate/package.json +12 -0
- package/package.json +33 -5
- package/readme.md +97 -18
- package/scripts/setup.js +310 -29
- package/skills/install-dropi-ui/skill.md +15 -10
- package/dist/cjs/dropi-input.cjs.entry.js +0 -210
- package/dist/cjs/dropi-paginator.cjs.entry.js +0 -91
- package/dist/cjs/dropi-tag.cjs.entry.js +0 -68
- package/dist/components/p-BY_J-4Sm.js +0 -1
- package/dist/components/p-CYCV-5qV.js +0 -1
- package/dist/components/p-D0ZJcRZn.js +0 -1
- package/dist/components/p-DUPOnSiL.js +0 -1
- package/dist/components/p-DUX_WvqW.js +0 -1
- package/dist/components/p-wO1yy0Zr.js +0 -1
- package/dist/dropi-ui/p-053ebb91.entry.js +0 -1
- package/dist/dropi-ui/p-0acd32e6.entry.js +0 -1
- package/dist/dropi-ui/p-0e88a543.entry.js +0 -1
- package/dist/dropi-ui/p-0f2f5f75.entry.js +0 -1
- package/dist/dropi-ui/p-131d87ac.entry.js +0 -1
- package/dist/dropi-ui/p-1af4719d.entry.js +0 -1
- package/dist/dropi-ui/p-1e8f6d4a.entry.js +0 -1
- package/dist/dropi-ui/p-22132b1a.entry.js +0 -1
- package/dist/dropi-ui/p-2c1aaf6f.entry.js +0 -1
- package/dist/dropi-ui/p-2e9b87a9.entry.js +0 -1
- package/dist/dropi-ui/p-3414a414.entry.js +0 -1
- package/dist/dropi-ui/p-34ad54a1.entry.js +0 -1
- package/dist/dropi-ui/p-3531378b.entry.js +0 -1
- package/dist/dropi-ui/p-3983a7aa.entry.js +0 -1
- package/dist/dropi-ui/p-40e91337.entry.js +0 -1
- package/dist/dropi-ui/p-4a8646e5.entry.js +0 -1
- package/dist/dropi-ui/p-4be64bf0.entry.js +0 -1
- package/dist/dropi-ui/p-4ec17510.entry.js +0 -1
- package/dist/dropi-ui/p-5023eef0.entry.js +0 -1
- package/dist/dropi-ui/p-51a97b1a.entry.js +0 -1
- package/dist/dropi-ui/p-52796d84.entry.js +0 -1
- package/dist/dropi-ui/p-53a5bd7b.entry.js +0 -1
- package/dist/dropi-ui/p-5425f941.entry.js +0 -1
- package/dist/dropi-ui/p-58d0bf7a.entry.js +0 -1
- package/dist/dropi-ui/p-59d3bd9b.entry.js +0 -1
- package/dist/dropi-ui/p-5e957631.entry.js +0 -1
- package/dist/dropi-ui/p-64cbf4ea.entry.js +0 -1
- package/dist/dropi-ui/p-68080534.entry.js +0 -1
- package/dist/dropi-ui/p-6da6b97e.entry.js +0 -1
- package/dist/dropi-ui/p-6df57f25.entry.js +0 -1
- package/dist/dropi-ui/p-7c916570.entry.js +0 -1
- package/dist/dropi-ui/p-7e95462a.entry.js +0 -1
- package/dist/dropi-ui/p-80089042.entry.js +0 -1
- package/dist/dropi-ui/p-8768bb11.entry.js +0 -1
- package/dist/dropi-ui/p-896f2900.entry.js +0 -1
- package/dist/dropi-ui/p-89ac1ff2.entry.js +0 -1
- package/dist/dropi-ui/p-8ce79c69.entry.js +0 -1
- package/dist/dropi-ui/p-8e809670.entry.js +0 -1
- package/dist/dropi-ui/p-93b207b7.entry.js +0 -1
- package/dist/dropi-ui/p-983f72ad.entry.js +0 -1
- package/dist/dropi-ui/p-98babb78.entry.js +0 -1
- package/dist/dropi-ui/p-9fc53d50.entry.js +0 -1
- package/dist/dropi-ui/p-Tbza12Gt.js +0 -2
- package/dist/dropi-ui/p-a20705fe.entry.js +0 -1
- package/dist/dropi-ui/p-a72da98f.entry.js +0 -1
- package/dist/dropi-ui/p-a876d57c.entry.js +0 -1
- package/dist/dropi-ui/p-b1b0f938.entry.js +0 -1
- package/dist/dropi-ui/p-b2e176b1.entry.js +0 -1
- package/dist/dropi-ui/p-b890fd5b.entry.js +0 -1
- package/dist/dropi-ui/p-bf5a53ef.entry.js +0 -1
- package/dist/dropi-ui/p-c0677661.entry.js +0 -1
- package/dist/dropi-ui/p-c2562a1c.entry.js +0 -1
- package/dist/dropi-ui/p-c2b5d0fb.entry.js +0 -1
- package/dist/dropi-ui/p-c4d4396b.entry.js +0 -1
- package/dist/dropi-ui/p-cecfb68e.entry.js +0 -1
- package/dist/dropi-ui/p-d0b47e2e.entry.js +0 -1
- package/dist/dropi-ui/p-dcefef51.entry.js +0 -1
- package/dist/dropi-ui/p-e4b7e15f.entry.js +0 -1
- package/dist/dropi-ui/p-e7f4ed25.entry.js +0 -1
- package/dist/dropi-ui/p-f1d69b15.entry.js +0 -1
- package/dist/esm/dropi-input.entry.js +0 -208
- package/dist/esm/dropi-paginator.entry.js +0 -89
- package/dist/esm/dropi-tag.entry.js +0 -66
|
@@ -3,54 +3,66 @@ const MONTHS_ES = [
|
|
|
3
3
|
'Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio',
|
|
4
4
|
'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'
|
|
5
5
|
];
|
|
6
|
-
const DAYS_ES = ['Lu', 'Ma', 'Mi', 'Ju', 'Vi', 'Sa'
|
|
6
|
+
const DAYS_ES = ['Do', 'Lu', 'Ma', 'Mi', 'Ju', 'Vi', 'Sa'];
|
|
7
7
|
/**
|
|
8
8
|
* @component dropi-date-picker
|
|
9
9
|
* Calendar date picker with optional date range mode.
|
|
10
10
|
* Emits ISO date strings (YYYY-MM-DD).
|
|
11
11
|
*/
|
|
12
12
|
export class DropiDatePicker {
|
|
13
|
-
/** Selected date (ISO string, single mode) */
|
|
14
|
-
|
|
13
|
+
/** Selected date (ISO string, single mode) - matches Angular 'selectedDate' */
|
|
14
|
+
selectedDate = '';
|
|
15
15
|
/** Range start date (ISO string, range mode) */
|
|
16
16
|
startDate = '';
|
|
17
17
|
/** Range end date (ISO string, range mode) */
|
|
18
18
|
endDate = '';
|
|
19
|
-
/** Enable range selection */
|
|
20
|
-
|
|
19
|
+
/** Enable range selection - matches Angular selectionMode */
|
|
20
|
+
selectionMode = 'single';
|
|
21
21
|
/** Min selectable date (ISO string) */
|
|
22
22
|
minDate = '';
|
|
23
23
|
/** Max selectable date (ISO string) */
|
|
24
24
|
maxDate = '';
|
|
25
25
|
/** Label */
|
|
26
|
-
label =
|
|
26
|
+
label = null;
|
|
27
27
|
/** Placeholder */
|
|
28
|
-
placeholder = '
|
|
28
|
+
placeholder = 'DD/MM/YYYY';
|
|
29
29
|
/** Disabled */
|
|
30
30
|
disabled = false;
|
|
31
|
+
/** Is invalid state - matches Angular */
|
|
32
|
+
isInvalid = false;
|
|
33
|
+
/** Loading state - matches Angular */
|
|
34
|
+
loading = false;
|
|
31
35
|
open = false;
|
|
32
36
|
viewYear = new Date().getFullYear();
|
|
33
37
|
viewMonth = new Date().getMonth();
|
|
34
38
|
hoverDate = '';
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
39
|
+
el;
|
|
40
|
+
handleDocClick(e) {
|
|
41
|
+
if (this.open && !e.composedPath().includes(this.el)) {
|
|
42
|
+
this.open = false;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
/** Emitted when date selected — matches Angular 'onChangeDate' */
|
|
46
|
+
onChangeDate;
|
|
47
|
+
/** Emitted when panel closes — matches Angular 'onClosePanel' */
|
|
48
|
+
onClosePanel;
|
|
49
|
+
/** Emitted when range selected */
|
|
38
50
|
dropiRangeChange;
|
|
39
51
|
get displayValue() {
|
|
40
|
-
if (this.range) {
|
|
52
|
+
if (this.selectionMode === 'range') {
|
|
41
53
|
if (this.startDate && this.endDate)
|
|
42
54
|
return `${this.startDate} – ${this.endDate}`;
|
|
43
55
|
if (this.startDate)
|
|
44
56
|
return this.startDate;
|
|
45
57
|
return '';
|
|
46
58
|
}
|
|
47
|
-
return this.
|
|
59
|
+
return this.selectedDate;
|
|
48
60
|
}
|
|
49
61
|
open_() {
|
|
50
62
|
if (this.disabled)
|
|
51
63
|
return;
|
|
52
|
-
if (this.
|
|
53
|
-
const d = new Date(this.
|
|
64
|
+
if (this.selectedDate) {
|
|
65
|
+
const d = new Date(this.selectedDate);
|
|
54
66
|
this.viewYear = d.getFullYear();
|
|
55
67
|
this.viewMonth = d.getMonth();
|
|
56
68
|
}
|
|
@@ -88,7 +100,7 @@ export class DropiDatePicker {
|
|
|
88
100
|
return false;
|
|
89
101
|
}
|
|
90
102
|
isInRange(iso) {
|
|
91
|
-
if (
|
|
103
|
+
if (this.selectionMode !== 'range')
|
|
92
104
|
return false;
|
|
93
105
|
const start = this.startDate;
|
|
94
106
|
const end = this.endDate || this.hoverDate;
|
|
@@ -100,10 +112,10 @@ export class DropiDatePicker {
|
|
|
100
112
|
selectDate(iso) {
|
|
101
113
|
if (this.isDisabled(iso))
|
|
102
114
|
return;
|
|
103
|
-
if (
|
|
104
|
-
this.
|
|
115
|
+
if (this.selectionMode !== 'range') {
|
|
116
|
+
this.selectedDate = iso;
|
|
105
117
|
this.open = false;
|
|
106
|
-
this.
|
|
118
|
+
this.onChangeDate.emit(iso);
|
|
107
119
|
return;
|
|
108
120
|
}
|
|
109
121
|
// Range mode
|
|
@@ -127,8 +139,8 @@ export class DropiDatePicker {
|
|
|
127
139
|
const year = this.viewYear;
|
|
128
140
|
const month = this.viewMonth;
|
|
129
141
|
const firstDay = new Date(year, month, 1).getDay();
|
|
130
|
-
// Adjust to
|
|
131
|
-
const startOffset =
|
|
142
|
+
// Adjust to Sunday-first
|
|
143
|
+
const startOffset = firstDay;
|
|
132
144
|
const daysInMonth = new Date(year, month + 1, 0).getDate();
|
|
133
145
|
const daysInPrevMonth = new Date(year, month, 0).getDate();
|
|
134
146
|
const cells = [];
|
|
@@ -155,12 +167,17 @@ export class DropiDatePicker {
|
|
|
155
167
|
render() {
|
|
156
168
|
const days = this.buildDays();
|
|
157
169
|
const today = new Date().toISOString().slice(0, 10);
|
|
158
|
-
return (h("div", { key: '
|
|
159
|
-
|
|
160
|
-
|
|
170
|
+
return (h("div", { key: 'ff426d80bb5bf05ca8b0c27773dee52f13cf4090', class: "dp-wrap" }, this.label && h("label", { key: 'fc7ebd6f14227533288b02c95933f6d4833e3f51', class: "dp-label" }, this.label), h("button", { key: '2fa9b1f3d2c9bfc4876724492a265ff0b29f8d23', class: {
|
|
171
|
+
'dp-trigger': true,
|
|
172
|
+
'dp-trigger--disabled': this.disabled,
|
|
173
|
+
'dp-trigger--invalid': this.isInvalid,
|
|
174
|
+
'dp-trigger--loading': this.loading
|
|
175
|
+
}, onClick: () => this.open ? this.open = false : this.open_(), disabled: this.disabled || this.loading, type: "button" }, h("dropi-icon", { key: '51b6fed8a232d7d22494c0bdf9f17e8c6ae0dbbe', name: "Calendar", width: "16px", height: "16px", color: "Gray-Gray-400" }), h("span", { key: 'ecbe872cd13efb112ef106f1dfde58cd745c124c', class: { 'dp-trigger__value': true, 'dp-trigger__placeholder': !this.displayValue } }, this.displayValue || this.placeholder), h("dropi-icon", { key: '6025abcf99d825dd885c9916f755c6b06e0657ed', name: "Arrow-Down-2", width: "12px", height: "12px", color: "Gray-Gray-400" })), this.open && (h("div", { key: 'b46a2bd022bc6ec2edfdf07a8a21b010b56610a4', class: "dp-popup" }, h("div", { key: '8aedcc47ab11c03bf8bc3309fc92ba3f83587520', class: "dp-nav" }, h("button", { key: 'e5a7f2a8edc8d33e08449713a976008b83108f36', class: "dp-nav__btn", onClick: () => this.prevMonth(), type: "button" }, h("dropi-icon", { key: '515211fe3c12cd2e9399bd8fad7c0dd84a4de3cd', name: "Arrow-Left-2", width: "16px", height: "16px", color: "Gray-Gray-600" })), h("span", { key: '0d5acefc9c8418749b4065d3bc92c8fb53744557', class: "dp-nav__title" }, h("span", { key: 'd4b68ef6a5c2885cf7cd05e7b49e47623b8c0d00' }, MONTHS_ES[this.viewMonth]), h("span", { key: '8aefcf2e7e383111994c58a743706d6d19607f65' }, this.viewYear)), h("button", { key: 'b7524552e5b05f592633bd6e16cdcda8659aeacf', class: "dp-nav__btn", onClick: () => this.nextMonth(), type: "button" }, h("dropi-icon", { key: '5e14a0dafb227ba6f2e90298005401050b55a3bb', name: "Arrow-Right-2", width: "16px", height: "16px", color: "Gray-Gray-600" }))), h("div", { key: '37d7428dc36bdc805fb60c36126a86509f3b1188', class: "dp-grid" }, DAYS_ES.map(d => (h("div", { class: "dp-day-header" }, d))), days.map(({ iso, day, currentMonth }) => {
|
|
176
|
+
const isSelected = this.selectionMode !== 'range'
|
|
177
|
+
? iso === this.selectedDate
|
|
161
178
|
: iso === this.startDate || iso === this.endDate;
|
|
162
|
-
const isRangeStart = this.range && iso === this.startDate;
|
|
163
|
-
const isRangeEnd = this.range && iso === this.endDate;
|
|
179
|
+
const isRangeStart = this.selectionMode === 'range' && iso === this.startDate;
|
|
180
|
+
const isRangeEnd = this.selectionMode === 'range' && iso === this.endDate;
|
|
164
181
|
const inRange = this.isInRange(iso);
|
|
165
182
|
const disabled = this.isDisabled(iso);
|
|
166
183
|
const isToday = iso === today;
|
|
@@ -174,19 +191,19 @@ export class DropiDatePicker {
|
|
|
174
191
|
'dp-cell--in-range': inRange,
|
|
175
192
|
'dp-cell--disabled': disabled,
|
|
176
193
|
}, type: "button", disabled: disabled, onClick: () => this.selectDate(iso), onMouseEnter: () => {
|
|
177
|
-
if (this.range && this.startDate && !this.endDate)
|
|
194
|
+
if (this.selectionMode === 'range' && this.startDate && !this.endDate)
|
|
178
195
|
this.hoverDate = iso;
|
|
179
196
|
}, onMouseLeave: () => this.hoverDate = '' }, day));
|
|
180
|
-
})), h("div", { key: '
|
|
181
|
-
this.
|
|
197
|
+
})), h("div", { key: '9a16f2d3aaffda303f2cf7c4d8045ad355eb3e88', class: "dp-footer" }, h("button", { key: '2c236322d33b4dbc37e683c328bc2c17aa1422cf', class: "dp-footer__clear", type: "button", onClick: () => {
|
|
198
|
+
this.selectedDate = '';
|
|
182
199
|
this.startDate = '';
|
|
183
200
|
this.endDate = '';
|
|
184
201
|
this.open = false;
|
|
185
|
-
} }, "Limpiar"), h("button", { key: '
|
|
186
|
-
if (
|
|
187
|
-
this.
|
|
202
|
+
} }, "Limpiar"), h("button", { key: 'a08afb2358819fc8c15c7949dc7e4cbdf14b52fb', class: "dp-footer__today", type: "button", onClick: () => {
|
|
203
|
+
if (this.selectionMode !== 'range') {
|
|
204
|
+
this.selectedDate = today;
|
|
188
205
|
this.open = false;
|
|
189
|
-
this.
|
|
206
|
+
this.onChangeDate.emit(today);
|
|
190
207
|
}
|
|
191
208
|
else {
|
|
192
209
|
this.startDate = today;
|
|
@@ -208,7 +225,7 @@ export class DropiDatePicker {
|
|
|
208
225
|
}
|
|
209
226
|
static get properties() {
|
|
210
227
|
return {
|
|
211
|
-
"
|
|
228
|
+
"selectedDate": {
|
|
212
229
|
"type": "string",
|
|
213
230
|
"mutable": true,
|
|
214
231
|
"complexType": {
|
|
@@ -220,12 +237,12 @@ export class DropiDatePicker {
|
|
|
220
237
|
"optional": false,
|
|
221
238
|
"docs": {
|
|
222
239
|
"tags": [],
|
|
223
|
-
"text": "Selected date (ISO string, single mode)"
|
|
240
|
+
"text": "Selected date (ISO string, single mode) - matches Angular 'selectedDate'"
|
|
224
241
|
},
|
|
225
242
|
"getter": false,
|
|
226
243
|
"setter": false,
|
|
227
244
|
"reflect": false,
|
|
228
|
-
"attribute": "
|
|
245
|
+
"attribute": "selected-date",
|
|
229
246
|
"defaultValue": "''"
|
|
230
247
|
},
|
|
231
248
|
"startDate": {
|
|
@@ -268,25 +285,25 @@ export class DropiDatePicker {
|
|
|
268
285
|
"attribute": "end-date",
|
|
269
286
|
"defaultValue": "''"
|
|
270
287
|
},
|
|
271
|
-
"
|
|
272
|
-
"type": "
|
|
288
|
+
"selectionMode": {
|
|
289
|
+
"type": "string",
|
|
273
290
|
"mutable": false,
|
|
274
291
|
"complexType": {
|
|
275
|
-
"original": "
|
|
276
|
-
"resolved": "
|
|
292
|
+
"original": "'single' | 'range'",
|
|
293
|
+
"resolved": "\"range\" | \"single\"",
|
|
277
294
|
"references": {}
|
|
278
295
|
},
|
|
279
296
|
"required": false,
|
|
280
297
|
"optional": false,
|
|
281
298
|
"docs": {
|
|
282
299
|
"tags": [],
|
|
283
|
-
"text": "Enable range selection"
|
|
300
|
+
"text": "Enable range selection - matches Angular selectionMode"
|
|
284
301
|
},
|
|
285
302
|
"getter": false,
|
|
286
303
|
"setter": false,
|
|
287
304
|
"reflect": false,
|
|
288
|
-
"attribute": "
|
|
289
|
-
"defaultValue": "
|
|
305
|
+
"attribute": "selection-mode",
|
|
306
|
+
"defaultValue": "'single'"
|
|
290
307
|
},
|
|
291
308
|
"minDate": {
|
|
292
309
|
"type": "string",
|
|
@@ -332,7 +349,7 @@ export class DropiDatePicker {
|
|
|
332
349
|
"type": "string",
|
|
333
350
|
"mutable": false,
|
|
334
351
|
"complexType": {
|
|
335
|
-
"original": "string",
|
|
352
|
+
"original": "string | null",
|
|
336
353
|
"resolved": "string",
|
|
337
354
|
"references": {}
|
|
338
355
|
},
|
|
@@ -346,7 +363,7 @@ export class DropiDatePicker {
|
|
|
346
363
|
"setter": false,
|
|
347
364
|
"reflect": false,
|
|
348
365
|
"attribute": "label",
|
|
349
|
-
"defaultValue": "
|
|
366
|
+
"defaultValue": "null"
|
|
350
367
|
},
|
|
351
368
|
"placeholder": {
|
|
352
369
|
"type": "string",
|
|
@@ -366,7 +383,7 @@ export class DropiDatePicker {
|
|
|
366
383
|
"setter": false,
|
|
367
384
|
"reflect": false,
|
|
368
385
|
"attribute": "placeholder",
|
|
369
|
-
"defaultValue": "'
|
|
386
|
+
"defaultValue": "'DD/MM/YYYY'"
|
|
370
387
|
},
|
|
371
388
|
"disabled": {
|
|
372
389
|
"type": "boolean",
|
|
@@ -387,6 +404,46 @@ export class DropiDatePicker {
|
|
|
387
404
|
"reflect": false,
|
|
388
405
|
"attribute": "disabled",
|
|
389
406
|
"defaultValue": "false"
|
|
407
|
+
},
|
|
408
|
+
"isInvalid": {
|
|
409
|
+
"type": "boolean",
|
|
410
|
+
"mutable": false,
|
|
411
|
+
"complexType": {
|
|
412
|
+
"original": "boolean",
|
|
413
|
+
"resolved": "boolean",
|
|
414
|
+
"references": {}
|
|
415
|
+
},
|
|
416
|
+
"required": false,
|
|
417
|
+
"optional": false,
|
|
418
|
+
"docs": {
|
|
419
|
+
"tags": [],
|
|
420
|
+
"text": "Is invalid state - matches Angular"
|
|
421
|
+
},
|
|
422
|
+
"getter": false,
|
|
423
|
+
"setter": false,
|
|
424
|
+
"reflect": false,
|
|
425
|
+
"attribute": "is-invalid",
|
|
426
|
+
"defaultValue": "false"
|
|
427
|
+
},
|
|
428
|
+
"loading": {
|
|
429
|
+
"type": "boolean",
|
|
430
|
+
"mutable": false,
|
|
431
|
+
"complexType": {
|
|
432
|
+
"original": "boolean",
|
|
433
|
+
"resolved": "boolean",
|
|
434
|
+
"references": {}
|
|
435
|
+
},
|
|
436
|
+
"required": false,
|
|
437
|
+
"optional": false,
|
|
438
|
+
"docs": {
|
|
439
|
+
"tags": [],
|
|
440
|
+
"text": "Loading state - matches Angular"
|
|
441
|
+
},
|
|
442
|
+
"getter": false,
|
|
443
|
+
"setter": false,
|
|
444
|
+
"reflect": false,
|
|
445
|
+
"attribute": "loading",
|
|
446
|
+
"defaultValue": "false"
|
|
390
447
|
}
|
|
391
448
|
};
|
|
392
449
|
}
|
|
@@ -400,20 +457,35 @@ export class DropiDatePicker {
|
|
|
400
457
|
}
|
|
401
458
|
static get events() {
|
|
402
459
|
return [{
|
|
403
|
-
"method": "
|
|
404
|
-
"name": "
|
|
460
|
+
"method": "onChangeDate",
|
|
461
|
+
"name": "onChangeDate",
|
|
405
462
|
"bubbles": true,
|
|
406
463
|
"cancelable": true,
|
|
407
464
|
"composed": true,
|
|
408
465
|
"docs": {
|
|
409
466
|
"tags": [],
|
|
410
|
-
"text": "Emitted when
|
|
467
|
+
"text": "Emitted when date selected \u2014 matches Angular 'onChangeDate'"
|
|
411
468
|
},
|
|
412
469
|
"complexType": {
|
|
413
470
|
"original": "string",
|
|
414
471
|
"resolved": "string",
|
|
415
472
|
"references": {}
|
|
416
473
|
}
|
|
474
|
+
}, {
|
|
475
|
+
"method": "onClosePanel",
|
|
476
|
+
"name": "onClosePanel",
|
|
477
|
+
"bubbles": true,
|
|
478
|
+
"cancelable": true,
|
|
479
|
+
"composed": true,
|
|
480
|
+
"docs": {
|
|
481
|
+
"tags": [],
|
|
482
|
+
"text": "Emitted when panel closes \u2014 matches Angular 'onClosePanel'"
|
|
483
|
+
},
|
|
484
|
+
"complexType": {
|
|
485
|
+
"original": "void",
|
|
486
|
+
"resolved": "void",
|
|
487
|
+
"references": {}
|
|
488
|
+
}
|
|
417
489
|
}, {
|
|
418
490
|
"method": "dropiRangeChange",
|
|
419
491
|
"name": "dropiRangeChange",
|
|
@@ -422,7 +494,7 @@ export class DropiDatePicker {
|
|
|
422
494
|
"composed": true,
|
|
423
495
|
"docs": {
|
|
424
496
|
"tags": [],
|
|
425
|
-
"text": "Emitted when range selected
|
|
497
|
+
"text": "Emitted when range selected"
|
|
426
498
|
},
|
|
427
499
|
"complexType": {
|
|
428
500
|
"original": "{ start: string; end: string }",
|
|
@@ -431,4 +503,14 @@ export class DropiDatePicker {
|
|
|
431
503
|
}
|
|
432
504
|
}];
|
|
433
505
|
}
|
|
506
|
+
static get elementRef() { return "el"; }
|
|
507
|
+
static get listeners() {
|
|
508
|
+
return [{
|
|
509
|
+
"name": "click",
|
|
510
|
+
"method": "handleDocClick",
|
|
511
|
+
"target": "document",
|
|
512
|
+
"capture": false,
|
|
513
|
+
"passive": false
|
|
514
|
+
}];
|
|
515
|
+
}
|
|
434
516
|
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
.label {
|
|
15
15
|
font-size: 11px;
|
|
16
|
-
font-weight:
|
|
16
|
+
font-weight: var(--font-weight-medium);
|
|
17
17
|
color: #7b8190;
|
|
18
18
|
margin-bottom: 8px;
|
|
19
19
|
}
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
padding: 0 10px;
|
|
44
44
|
border: 1px solid var(--Gray-Gray-200, #c3c9d9);
|
|
45
45
|
border-radius: var(--Border-2, 8px);
|
|
46
|
-
background: var(--Neutral-White, #
|
|
46
|
+
background: var(--Neutral-White, #ffffff);
|
|
47
47
|
color: var(--Gray-Gray-600, #475066);
|
|
48
48
|
font-size: 13px;
|
|
49
49
|
font-family: inherit;
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
.separator {
|
|
60
60
|
padding-bottom: 8px;
|
|
61
61
|
color: var(--Gray-Gray-400, #858ea6);
|
|
62
|
-
font-size:
|
|
62
|
+
font-size: var(--font-size-m);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.shortcuts {
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
text-align: left;
|
|
83
83
|
border-radius: 5px;
|
|
84
84
|
transition: background 0.1s ease;
|
|
85
|
-
font-weight:
|
|
85
|
+
font-weight: var(--font-weight-regular);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
.shortcut-btn:hover {
|
|
@@ -91,20 +91,20 @@
|
|
|
91
91
|
|
|
92
92
|
.shortcut-btn.active {
|
|
93
93
|
background: var(--Gray-Gray-50, #f5f6f8);
|
|
94
|
-
font-weight:
|
|
94
|
+
font-weight: var(--font-weight-semibold);
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
.warning-box {
|
|
98
98
|
margin-top: 8px;
|
|
99
99
|
padding: 4px 8px;
|
|
100
|
-
border: 1px solid
|
|
100
|
+
border: 1px solid var(--Warning-Warning-400);
|
|
101
101
|
border-radius: 4px;
|
|
102
|
-
background:
|
|
102
|
+
background: var(--Warning-Warning-50);
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
.warning-message {
|
|
106
106
|
color: #495057;
|
|
107
|
-
font-size:
|
|
107
|
+
font-size: var(--font-size-xxs);
|
|
108
108
|
line-height: 16px;
|
|
109
109
|
}
|
|
110
110
|
|
|
@@ -22,9 +22,9 @@ export class DropiDatePickerRange {
|
|
|
22
22
|
/** Hide "Hoy" shortcut */
|
|
23
23
|
hideTodayRangeShortcut = false;
|
|
24
24
|
/** Emitted when start date changes */
|
|
25
|
-
|
|
25
|
+
startDateChange;
|
|
26
26
|
/** Emitted when end date changes */
|
|
27
|
-
|
|
27
|
+
endDateChange;
|
|
28
28
|
/** Emitted with full range when both dates are set */
|
|
29
29
|
dropiRangeChange;
|
|
30
30
|
start = '';
|
|
@@ -87,8 +87,8 @@ export class DropiDatePickerRange {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
emit() {
|
|
90
|
-
this.
|
|
91
|
-
this.
|
|
90
|
+
this.startDateChange.emit(this.start);
|
|
91
|
+
this.endDateChange.emit(this.end);
|
|
92
92
|
this.dropiRangeChange.emit({ start: this.start, end: this.end });
|
|
93
93
|
}
|
|
94
94
|
render() {
|
|
@@ -263,8 +263,8 @@ export class DropiDatePickerRange {
|
|
|
263
263
|
}
|
|
264
264
|
static get events() {
|
|
265
265
|
return [{
|
|
266
|
-
"method": "
|
|
267
|
-
"name": "
|
|
266
|
+
"method": "startDateChange",
|
|
267
|
+
"name": "startDateChange",
|
|
268
268
|
"bubbles": true,
|
|
269
269
|
"cancelable": true,
|
|
270
270
|
"composed": true,
|
|
@@ -278,8 +278,8 @@ export class DropiDatePickerRange {
|
|
|
278
278
|
"references": {}
|
|
279
279
|
}
|
|
280
280
|
}, {
|
|
281
|
-
"method": "
|
|
282
|
-
"name": "
|
|
281
|
+
"method": "endDateChange",
|
|
282
|
+
"name": "endDateChange",
|
|
283
283
|
"bubbles": true,
|
|
284
284
|
"cancelable": true,
|
|
285
285
|
"composed": true,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
:host { display: contents; }
|
|
1
|
+
:host { display: contents; font-family: 'Inter', sans-serif; }
|
|
2
2
|
*, *::before, *::after { box-sizing: border-box; }
|
|
3
3
|
|
|
4
4
|
.drawer-host {
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
visibility: visible;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
/* Backdrop */
|
|
16
17
|
.drawer-backdrop {
|
|
17
18
|
position: absolute;
|
|
18
19
|
inset: 0;
|
|
@@ -25,25 +26,27 @@
|
|
|
25
26
|
/* Panel base */
|
|
26
27
|
.drawer-panel {
|
|
27
28
|
position: absolute;
|
|
28
|
-
background: var(--Neutral-White, #
|
|
29
|
+
background: var(--Neutral-White, #ffffff);
|
|
29
30
|
display: flex;
|
|
30
31
|
flex-direction: column;
|
|
31
32
|
transition: transform 0.25s ease;
|
|
32
33
|
overflow: hidden;
|
|
34
|
+
max-width: 100%;
|
|
35
|
+
min-width: auto;
|
|
33
36
|
}
|
|
34
37
|
|
|
35
38
|
/* Positions */
|
|
36
39
|
.drawer-panel--right {
|
|
37
40
|
top: 0; right: 0; bottom: 0;
|
|
38
41
|
transform: translateX(100%);
|
|
39
|
-
box-shadow: -4px 0 24px rgba(0,0,0,0.12);
|
|
42
|
+
box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
|
|
40
43
|
}
|
|
41
44
|
.drawer-host--open .drawer-panel--right { transform: translateX(0); }
|
|
42
45
|
|
|
43
46
|
.drawer-panel--left {
|
|
44
47
|
top: 0; left: 0; bottom: 0;
|
|
45
48
|
transform: translateX(-100%);
|
|
46
|
-
box-shadow: 4px 0 24px rgba(0,0,0,0.12);
|
|
49
|
+
box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
|
|
47
50
|
}
|
|
48
51
|
.drawer-host--open .drawer-panel--left { transform: translateX(0); }
|
|
49
52
|
|
|
@@ -51,7 +54,7 @@
|
|
|
51
54
|
bottom: 0; left: 0; right: 0;
|
|
52
55
|
transform: translateY(100%);
|
|
53
56
|
border-radius: var(--Border-2, 8px) var(--Border-2, 8px) 0 0;
|
|
54
|
-
box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
|
|
57
|
+
box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
|
|
55
58
|
}
|
|
56
59
|
.drawer-host--open .drawer-panel--bottom { transform: translateY(0); }
|
|
57
60
|
|
|
@@ -59,35 +62,55 @@
|
|
|
59
62
|
top: 0; left: 0; right: 0;
|
|
60
63
|
transform: translateY(-100%);
|
|
61
64
|
border-radius: 0 0 var(--Border-2, 8px) var(--Border-2, 8px);
|
|
62
|
-
box-shadow: 0 4px 24px rgba(0,0,0,0.12);
|
|
65
|
+
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
|
|
63
66
|
}
|
|
64
67
|
.drawer-host--open .drawer-panel--top { transform: translateY(0); }
|
|
65
68
|
|
|
69
|
+
/* Sizes — coinciden con size-m/l/xl/xxl del host */
|
|
70
|
+
.drawer-panel--size-m { width: 550px; }
|
|
71
|
+
.drawer-panel--size-l { width: 1137px; }
|
|
72
|
+
.drawer-panel--size-xl { width: 1280px; }
|
|
73
|
+
.drawer-panel--size-xxl { width: 1330px; }
|
|
74
|
+
|
|
66
75
|
/* Header */
|
|
67
76
|
.drawer-header {
|
|
68
77
|
display: flex;
|
|
69
|
-
|
|
78
|
+
flex-direction: row;
|
|
70
79
|
justify-content: space-between;
|
|
80
|
+
align-items: center;
|
|
71
81
|
padding: var(--Size-4, 16px) var(--Size-4, 16px) var(--Size-3, 12px);
|
|
72
82
|
border-bottom: 1px solid var(--Gray-Gray-100, #eceef4);
|
|
73
83
|
flex-shrink: 0;
|
|
74
84
|
}
|
|
75
85
|
|
|
86
|
+
.drawer-header--headless {
|
|
87
|
+
display: none;
|
|
88
|
+
}
|
|
89
|
+
|
|
76
90
|
.drawer-header__title {
|
|
77
|
-
|
|
78
|
-
font-
|
|
79
|
-
|
|
91
|
+
color: var(--Gray-700, #32394d);
|
|
92
|
+
font-family: Inter, sans-serif;
|
|
93
|
+
font-size: 24px;
|
|
94
|
+
font-style: normal;
|
|
95
|
+
font-weight: 700;
|
|
96
|
+
line-height: 110%;
|
|
97
|
+
margin: 0;
|
|
80
98
|
}
|
|
81
99
|
|
|
82
100
|
.drawer-header__close {
|
|
101
|
+
width: var(--Size-6, 32px);
|
|
102
|
+
height: var(--Size-6, 32px);
|
|
83
103
|
background: none;
|
|
84
104
|
border: none;
|
|
85
|
-
padding:
|
|
105
|
+
padding: 0;
|
|
86
106
|
cursor: pointer;
|
|
87
107
|
display: flex;
|
|
88
108
|
align-items: center;
|
|
109
|
+
justify-content: center;
|
|
110
|
+
color: var(--Gray-400, #858ea6);
|
|
89
111
|
border-radius: var(--Border-1, 4px);
|
|
90
112
|
transition: background 0.15s;
|
|
113
|
+
flex-shrink: 0;
|
|
91
114
|
}
|
|
92
115
|
.drawer-header__close:hover { background: var(--Gray-Gray-50, #f7f8fa); }
|
|
93
116
|
|
|
@@ -96,12 +119,11 @@
|
|
|
96
119
|
flex: 1;
|
|
97
120
|
overflow-y: auto;
|
|
98
121
|
padding: var(--Size-4, 16px);
|
|
122
|
+
display: flex;
|
|
123
|
+
flex-direction: column;
|
|
99
124
|
}
|
|
100
125
|
|
|
101
|
-
/* Footer */
|
|
126
|
+
/* Footer — oculto por defecto como en el host */
|
|
102
127
|
.drawer-footer {
|
|
103
|
-
|
|
104
|
-
padding: var(--Size-3, 12px) var(--Size-4, 16px);
|
|
105
|
-
border-top: 1px solid var(--Gray-Gray-100, #eceef4);
|
|
128
|
+
display: none;
|
|
106
129
|
}
|
|
107
|
-
.drawer-footer:empty { display: none; }
|