@dropi/ui 0.1.21 → 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 +2 -2
- package/dist/cjs/dropi-accordion.cjs.entry.js +2 -2
- package/dist/cjs/dropi-alert-legacy.cjs.entry.js +1 -1
- package/dist/cjs/dropi-alert-modal.cjs.entry.js +3 -3
- package/dist/cjs/dropi-alert.cjs.entry.js +2 -2
- package/dist/cjs/dropi-avatars.cjs.entry.js +2 -2
- package/dist/cjs/dropi-badge-legacy.cjs.entry.js +2 -2
- package/dist/cjs/dropi-badge.cjs.entry.js +2 -2
- package/dist/cjs/dropi-banner-external.cjs.entry.js +12 -2
- package/dist/cjs/dropi-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/dropi-button.cjs.entry.js +3 -3
- package/dist/cjs/dropi-card-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/dropi-card-product.cjs.entry.js +7 -5
- package/dist/cjs/dropi-card-section.cjs.entry.js +3 -3
- package/dist/cjs/dropi-carousel.cjs.entry.js +7 -2
- package/dist/cjs/dropi-checkbox-selection-list.cjs.entry.js +3 -3
- package/dist/cjs/dropi-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/dropi-chips.cjs.entry.js +2 -2
- package/dist/cjs/dropi-city-selector.cjs.entry.js +10 -2
- package/dist/cjs/dropi-color-picker.cjs.entry.js +4 -4
- package/dist/cjs/dropi-country-flags.cjs.entry.js +2 -2
- package/dist/cjs/dropi-country-selector.cjs.entry.js +3 -3
- package/dist/cjs/dropi-date-picker-range.cjs.entry.js +1 -1
- package/dist/cjs/dropi-date-picker.cjs.entry.js +5 -5
- package/dist/cjs/dropi-drawer.cjs.entry.js +7 -4
- package/dist/cjs/dropi-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/dropi-empty-state.cjs.entry.js +2 -2
- package/dist/cjs/dropi-favorite-button.cjs.entry.js +2 -2
- package/dist/cjs/dropi-file-upload-progress-bar.cjs.entry.js +4 -2
- package/dist/cjs/dropi-file-upload.cjs.entry.js +6 -5
- package/dist/cjs/dropi-icon.cjs.entry.js +21 -4
- package/dist/cjs/dropi-ilustration-icon.cjs.entry.js +2 -2
- package/dist/cjs/dropi-image-miniature.cjs.entry.js +2 -2
- package/dist/cjs/dropi-image-overlay.cjs.entry.js +3 -2
- package/dist/cjs/dropi-input_3.cjs.entry.js +13 -11
- package/dist/cjs/dropi-languages-selector.cjs.entry.js +6 -2
- package/dist/cjs/dropi-logo.cjs.entry.js +12 -2
- package/dist/cjs/dropi-lottie-loader.cjs.entry.js +1 -1
- package/dist/cjs/dropi-media-player.cjs.entry.js +7 -4
- package/dist/cjs/dropi-modal.cjs.entry.js +19 -12
- package/dist/cjs/dropi-navbar.cjs.entry.js +3 -3
- package/dist/cjs/dropi-otp-send-code.cjs.entry.js +7 -7
- package/dist/cjs/dropi-phone-input.cjs.entry.js +4 -4
- package/dist/cjs/dropi-radio-button.cjs.entry.js +2 -2
- package/dist/cjs/dropi-radio-selection-list.cjs.entry.js +3 -3
- package/dist/cjs/dropi-read-more.cjs.entry.js +2 -2
- package/dist/cjs/dropi-search.cjs.entry.js +3 -3
- package/dist/cjs/dropi-select.cjs.entry.js +6 -2
- package/dist/cjs/dropi-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/dropi-simple-stepper.cjs.entry.js +2 -2
- package/dist/cjs/dropi-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/dropi-steps.cjs.entry.js +2 -2
- package/dist/cjs/dropi-switch.cjs.entry.js +2 -2
- package/dist/cjs/dropi-table.cjs.entry.js +14 -7
- package/dist/cjs/dropi-tabs.cjs.entry.js +2 -2
- package/dist/cjs/dropi-tag-type-product.cjs.entry.js +2 -2
- package/dist/cjs/dropi-text-area.cjs.entry.js +3 -3
- package/dist/cjs/dropi-time-line.cjs.entry.js +2 -2
- package/dist/cjs/dropi-toast.cjs.entry.js +6 -5
- package/dist/cjs/dropi-tooltip-v2.cjs.entry.js +3 -3
- 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 +2 -2
- package/dist/cjs/dropi-youtube-lazy-video.cjs.entry.js +2 -2
- package/dist/cjs/{index-077kM98l.js → index-C8kwDvpf.js} +1041 -14
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/dropi-accordion/dropi-accordion-item.js +1 -1
- package/dist/collection/components/dropi-accordion/dropi-accordion.js +1 -1
- package/dist/collection/components/dropi-alert/dropi-alert.css +0 -6
- package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.css +10 -1
- package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.js +4 -5
- 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-badge-legacy/dropi-badge-legacy.js +1 -1
- package/dist/collection/components/dropi-banner-external/dropi-banner-external.js +12 -1
- package/dist/collection/components/dropi-breadcrumb/dropi-breadcrumb.js +1 -1
- package/dist/collection/components/dropi-button/dropi-button.js +2 -2
- package/dist/collection/components/dropi-card-checkbox/dropi-card-checkbox.js +2 -2
- package/dist/collection/components/dropi-card-product/dropi-card-product.js +6 -4
- package/dist/collection/components/dropi-card-section/dropi-card-section.js +2 -2
- package/dist/collection/components/dropi-carousel/dropi-carousel.js +15 -10
- 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.js +1 -1
- package/dist/collection/components/dropi-city-selector/dropi-city-selector.js +9 -1
- package/dist/collection/components/dropi-color-picker/dropi-color-picker.js +3 -3
- package/dist/collection/components/dropi-country-flags/dropi-country-flags.js +1 -1
- package/dist/collection/components/dropi-country-selector/dropi-country-selector.js +2 -2
- package/dist/collection/components/dropi-date-picker/dropi-date-picker.js +4 -4
- package/dist/collection/components/dropi-drawer/dropi-drawer.js +12 -9
- package/dist/collection/components/dropi-dropdown/dropi-dropdown.js +2 -2
- package/dist/collection/components/dropi-empty-state/dropi-empty-state.js +1 -1
- package/dist/collection/components/dropi-favorite-button/dropi-favorite-button.js +1 -1
- package/dist/collection/components/dropi-file-upload/dropi-file-upload.js +5 -4
- package/dist/collection/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.js +3 -1
- 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.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.js +5 -4
- package/dist/collection/components/dropi-input/dropi-input.js +12 -10
- package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.js +5 -1
- package/dist/collection/components/dropi-logo/dropi-logo.js +12 -1
- package/dist/collection/components/dropi-media-player/dropi-media-player.js +6 -3
- package/dist/collection/components/dropi-modal/dropi-modal.js +22 -15
- package/dist/collection/components/dropi-navbar/dropi-navbar.js +2 -2
- package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.js +6 -6
- package/dist/collection/components/dropi-paginator/dropi-paginator.js +2 -2
- package/dist/collection/components/dropi-phone-input/dropi-phone-input.js +3 -3
- 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 +5 -1
- package/dist/collection/components/dropi-sidebar/dropi-sidebar.js +1 -1
- package/dist/collection/components/dropi-simple-stepper/dropi-simple-stepper.js +1 -1
- package/dist/collection/components/dropi-skeleton/dropi-skeleton.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.js +13 -6
- package/dist/collection/components/dropi-tabs/dropi-tabs.js +1 -1
- package/dist/collection/components/dropi-tag/dropi-tag.js +5 -5
- 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.js +2 -2
- package/dist/collection/components/dropi-time-line/dropi-time-line.js +1 -1
- package/dist/collection/components/dropi-toast/dropi-toast.css +1 -1
- package/dist/collection/components/dropi-toast/dropi-toast.js +4 -3
- package/dist/collection/components/dropi-tooltip/dropi-tooltip.js +1 -1
- package/dist/collection/components/dropi-tooltip-v2/dropi-tooltip.js +2 -2
- 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.js +1 -1
- package/dist/components/dropi-accordion-item.js +1 -1
- package/dist/components/dropi-accordion.js +1 -1
- 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.js +1 -1
- 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.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-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.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.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-DWzWYR5X.js → p-B9R8Apw7.js} +1 -1
- 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-CDvkvedb.js → p-CV4X3Gm4.js} +1 -1
- package/dist/components/p-CV_oz45O.js +1 -0
- package/dist/components/{p-CzHupXu8.js → p-D-vQQQNz.js} +1 -1
- 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-DjO9xpVc.js → p-o5gyrbbD.js} +1 -1
- package/dist/dropi-ui/dropi-ui.css +1 -1
- package/dist/dropi-ui/dropi-ui.esm.js +1 -1
- package/dist/dropi-ui/{p-475a16f2.entry.js → p-00e5a2de.entry.js} +1 -1
- package/dist/dropi-ui/{p-8b4d4d2d.entry.js → p-0188e07a.entry.js} +1 -1
- package/dist/dropi-ui/{p-10e363a2.entry.js → p-02710049.entry.js} +1 -1
- package/dist/dropi-ui/{p-eac7777f.entry.js → p-17c56074.entry.js} +1 -1
- package/dist/dropi-ui/{p-a6939701.entry.js → p-18adf694.entry.js} +1 -1
- package/dist/dropi-ui/p-1a3619c3.entry.js +1 -0
- package/dist/dropi-ui/{p-0c541a53.entry.js → p-1d3d6a32.entry.js} +1 -1
- 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-6e727fb0.entry.js → p-2af538b9.entry.js} +1 -1
- package/dist/dropi-ui/p-3013f3b8.entry.js +1 -0
- package/dist/dropi-ui/{p-0cd1fb7a.entry.js → p-3321ca70.entry.js} +1 -1
- package/dist/dropi-ui/{p-623759eb.entry.js → p-33d242ec.entry.js} +1 -1
- package/dist/dropi-ui/{p-6178190b.entry.js → p-39af6478.entry.js} +1 -1
- package/dist/dropi-ui/{p-858bedcf.entry.js → p-3e36c8b8.entry.js} +1 -1
- package/dist/dropi-ui/p-3ebc9b7b.entry.js +1 -0
- package/dist/dropi-ui/{p-36cdd4fc.entry.js → p-446a481d.entry.js} +1 -1
- package/dist/dropi-ui/{p-c7e3a5e0.entry.js → p-50a5e548.entry.js} +1 -1
- 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-0966c363.entry.js → p-665ef7ba.entry.js} +1 -1
- 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-7f8d3642.entry.js → p-86283e99.entry.js} +1 -1
- package/dist/dropi-ui/p-8bf5d8ee.entry.js +1 -0
- package/dist/dropi-ui/{p-ed94b5fe.entry.js → p-9032ba00.entry.js} +1 -1
- package/dist/dropi-ui/{p-b207fc92.entry.js → p-9212f544.entry.js} +1 -1
- package/dist/dropi-ui/{p-ba3ad28e.entry.js → p-92291873.entry.js} +1 -1
- package/dist/dropi-ui/{p-59188dd5.entry.js → p-955e52f8.entry.js} +1 -1
- package/dist/dropi-ui/{p-3cbe953f.entry.js → p-976a15e3.entry.js} +1 -1
- package/dist/dropi-ui/{p-4de83790.entry.js → p-9b037086.entry.js} +1 -1
- package/dist/dropi-ui/{p-7fc02d98.entry.js → p-9e0129cc.entry.js} +1 -1
- package/dist/dropi-ui/{p-99943b7d.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-2e4efb72.entry.js → p-a232c6a7.entry.js} +1 -1
- package/dist/dropi-ui/{p-aa8d2aec.entry.js → p-a3c4d677.entry.js} +1 -1
- 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-0f161461.entry.js → p-a8f24270.entry.js} +1 -1
- 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-a1f2383d.entry.js → p-b2623a5c.entry.js} +1 -1
- 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-e6943d7c.entry.js → p-cbf5367e.entry.js} +1 -1
- package/dist/dropi-ui/{p-e7b59811.entry.js → p-cc527d91.entry.js} +1 -1
- package/dist/dropi-ui/{p-7036c073.entry.js → p-cdde481b.entry.js} +1 -1
- package/dist/dropi-ui/{p-f0ddf569.entry.js → p-d42d4ef7.entry.js} +1 -1
- package/dist/dropi-ui/{p-7c0bc6dd.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-acfa17ef.entry.js → p-e6e766ed.entry.js} +1 -1
- package/dist/dropi-ui/{p-d36a0c37.entry.js → p-ec263862.entry.js} +1 -1
- package/dist/dropi-ui/p-efc2fc35.entry.js +1 -0
- package/dist/dropi-ui/{p-9062f0de.entry.js → p-f41cd9b5.entry.js} +1 -1
- package/dist/dropi-ui/{p-40b69ccd.entry.js → p-fa3d0267.entry.js} +1 -1
- package/dist/esm/dropi-accordion-item.entry.js +2 -2
- package/dist/esm/dropi-accordion.entry.js +2 -2
- package/dist/esm/dropi-alert-legacy.entry.js +1 -1
- package/dist/esm/dropi-alert-modal.entry.js +3 -3
- package/dist/esm/dropi-alert.entry.js +2 -2
- package/dist/esm/dropi-avatars.entry.js +2 -2
- package/dist/esm/dropi-badge-legacy.entry.js +2 -2
- package/dist/esm/dropi-badge.entry.js +2 -2
- package/dist/esm/dropi-banner-external.entry.js +12 -2
- package/dist/esm/dropi-breadcrumb.entry.js +2 -2
- package/dist/esm/dropi-button.entry.js +3 -3
- package/dist/esm/dropi-card-checkbox.entry.js +3 -3
- package/dist/esm/dropi-card-product.entry.js +7 -5
- package/dist/esm/dropi-card-section.entry.js +3 -3
- package/dist/esm/dropi-carousel.entry.js +7 -2
- package/dist/esm/dropi-checkbox-selection-list.entry.js +3 -3
- package/dist/esm/dropi-checkbox.entry.js +3 -3
- package/dist/esm/dropi-chips.entry.js +2 -2
- package/dist/esm/dropi-city-selector.entry.js +10 -2
- package/dist/esm/dropi-color-picker.entry.js +4 -4
- package/dist/esm/dropi-country-flags.entry.js +2 -2
- package/dist/esm/dropi-country-selector.entry.js +3 -3
- package/dist/esm/dropi-date-picker-range.entry.js +1 -1
- package/dist/esm/dropi-date-picker.entry.js +5 -5
- package/dist/esm/dropi-drawer.entry.js +7 -4
- package/dist/esm/dropi-dropdown.entry.js +3 -3
- package/dist/esm/dropi-empty-state.entry.js +2 -2
- package/dist/esm/dropi-favorite-button.entry.js +2 -2
- package/dist/esm/dropi-file-upload-progress-bar.entry.js +4 -2
- package/dist/esm/dropi-file-upload.entry.js +6 -5
- package/dist/esm/dropi-icon.entry.js +21 -4
- package/dist/esm/dropi-ilustration-icon.entry.js +2 -2
- package/dist/esm/dropi-image-miniature.entry.js +2 -2
- package/dist/esm/dropi-image-overlay.entry.js +3 -2
- package/dist/esm/dropi-input_3.entry.js +13 -11
- package/dist/esm/dropi-languages-selector.entry.js +6 -2
- package/dist/esm/dropi-logo.entry.js +12 -2
- package/dist/esm/dropi-lottie-loader.entry.js +1 -1
- package/dist/esm/dropi-media-player.entry.js +7 -4
- package/dist/esm/dropi-modal.entry.js +19 -12
- package/dist/esm/dropi-navbar.entry.js +3 -3
- package/dist/esm/dropi-otp-send-code.entry.js +7 -7
- package/dist/esm/dropi-phone-input.entry.js +4 -4
- package/dist/esm/dropi-radio-button.entry.js +2 -2
- package/dist/esm/dropi-radio-selection-list.entry.js +3 -3
- package/dist/esm/dropi-read-more.entry.js +2 -2
- package/dist/esm/dropi-search.entry.js +3 -3
- package/dist/esm/dropi-select.entry.js +6 -2
- package/dist/esm/dropi-sidebar.entry.js +2 -2
- package/dist/esm/dropi-simple-stepper.entry.js +2 -2
- package/dist/esm/dropi-skeleton.entry.js +2 -2
- package/dist/esm/dropi-steps.entry.js +2 -2
- package/dist/esm/dropi-switch.entry.js +2 -2
- package/dist/esm/dropi-table.entry.js +14 -7
- package/dist/esm/dropi-tabs.entry.js +2 -2
- package/dist/esm/dropi-tag-type-product.entry.js +2 -2
- package/dist/esm/dropi-text-area.entry.js +3 -3
- package/dist/esm/dropi-time-line.entry.js +2 -2
- package/dist/esm/dropi-toast.entry.js +6 -5
- package/dist/esm/dropi-tooltip-v2.entry.js +3 -3
- 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 +2 -2
- package/dist/esm/dropi-youtube-lazy-video.entry.js +2 -2
- package/dist/esm/{index-TXz_09YZ.js → index-D5SAM1O2.js} +1041 -15
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/dropi-alert-modal/dropi-alert-modal.d.ts +1 -1
- package/dist/types/components/dropi-banner-external/dropi-banner-external.d.ts +2 -0
- package/dist/types/components/dropi-carousel/dropi-carousel.d.ts +3 -3
- package/dist/types/components/dropi-drawer/dropi-drawer.d.ts +2 -2
- 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 +2 -2
- package/dist/types/components/dropi-logo/dropi-logo.d.ts +2 -0
- package/dist/types/components/dropi-modal/dropi-modal.d.ts +2 -2
- package/dist/types/components/dropi-table/dropi-table.d.ts +2 -0
- package/dist/types/components.d.ts +37 -37
- 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 +9 -3
- package/readme.md +42 -12
- package/scripts/setup.js +193 -8
- package/dist/components/p-9KLpSviZ.js +0 -1
- package/dist/components/p-BVekazGL.js +0 -1
- package/dist/components/p-BYRcOZS4.js +0 -1
- package/dist/components/p-BuDg1d0S.js +0 -1
- package/dist/components/p-C2paYEIp.js +0 -1
- package/dist/components/p-CnALA9z_.js +0 -1
- package/dist/components/p-CtzCJQVR.js +0 -1
- package/dist/components/p-D_Y7tuEH.js +0 -1
- package/dist/dropi-ui/p-1d4c5364.entry.js +0 -1
- package/dist/dropi-ui/p-2e0623ba.entry.js +0 -1
- package/dist/dropi-ui/p-37c86c74.entry.js +0 -1
- package/dist/dropi-ui/p-392654b7.entry.js +0 -1
- package/dist/dropi-ui/p-39904430.entry.js +0 -1
- package/dist/dropi-ui/p-3a3b778f.entry.js +0 -1
- package/dist/dropi-ui/p-443ed5bd.entry.js +0 -1
- package/dist/dropi-ui/p-4967b619.entry.js +0 -1
- package/dist/dropi-ui/p-645da978.entry.js +0 -1
- package/dist/dropi-ui/p-710312bd.entry.js +0 -1
- package/dist/dropi-ui/p-74dfe8d1.entry.js +0 -1
- package/dist/dropi-ui/p-770afae3.entry.js +0 -1
- package/dist/dropi-ui/p-8188cca4.entry.js +0 -1
- package/dist/dropi-ui/p-87e9ba6d.entry.js +0 -1
- package/dist/dropi-ui/p-925852b1.entry.js +0 -1
- package/dist/dropi-ui/p-TXz_09YZ.js +0 -2
- package/dist/dropi-ui/p-aafaffa3.entry.js +0 -1
- package/dist/dropi-ui/p-ac345a0e.entry.js +0 -1
- package/dist/dropi-ui/p-af3691a0.entry.js +0 -1
- package/dist/dropi-ui/p-bd0ffb4a.entry.js +0 -1
- package/dist/dropi-ui/p-c2e96728.entry.js +0 -1
- package/dist/dropi-ui/p-c664f99f.entry.js +0 -1
- package/dist/dropi-ui/p-cfc19ca0.entry.js +0 -1
- package/dist/dropi-ui/p-dd4c6b40.entry.js +0 -1
- package/dist/dropi-ui/p-e0351b61.entry.js +0 -1
- package/dist/dropi-ui/p-e2361547.entry.js +0 -1
- package/dist/dropi-ui/p-e25b2680.entry.js +0 -1
- package/dist/dropi-ui/p-f95c11f8.entry.js +0 -1
|
@@ -18,7 +18,11 @@ export class DropiLanguagesSelector {
|
|
|
18
18
|
parsedLanguages = [];
|
|
19
19
|
currentLang = null;
|
|
20
20
|
languagesChanged(val) {
|
|
21
|
-
|
|
21
|
+
if (val == null) {
|
|
22
|
+
this.parsedLanguages = [];
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
this.parsedLanguages = typeof val === 'string' ? JSON.parse(val) : (val ?? []);
|
|
22
26
|
if (!this.currentLang && this.parsedLanguages.length > 0) {
|
|
23
27
|
this.currentLang = this.parsedLanguages[0];
|
|
24
28
|
}
|
|
@@ -5,17 +5,27 @@ const FALLBACK_SVG = `data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53
|
|
|
5
5
|
* Displays the Dropi brand logo with size variants.
|
|
6
6
|
*/
|
|
7
7
|
export class DropiLogo {
|
|
8
|
+
el;
|
|
8
9
|
/** Logo image URL */
|
|
9
10
|
urlLogo = '';
|
|
10
11
|
/** Size variant */
|
|
11
12
|
size = 'large';
|
|
12
13
|
/** Theme (reserved for future use) */
|
|
13
14
|
theme = 'light';
|
|
15
|
+
componentWillLoad() {
|
|
16
|
+
if (!this.urlLogo) {
|
|
17
|
+
this.urlLogo =
|
|
18
|
+
this.el.getAttribute('urlLogo') ||
|
|
19
|
+
this.el.getAttribute('url-logo') ||
|
|
20
|
+
this.el.getAttribute('urllogo') ||
|
|
21
|
+
'';
|
|
22
|
+
}
|
|
23
|
+
}
|
|
14
24
|
handleError(e) {
|
|
15
25
|
e.target.src = FALLBACK_SVG;
|
|
16
26
|
}
|
|
17
27
|
render() {
|
|
18
|
-
return (h("figure", { key: '
|
|
28
|
+
return (h("figure", { key: '479af3da2dc04c7d6e79b99494fce0fb5419af4d', class: { 'dropi-logo': true, [`dropi-logo--${this.size}`]: true } }, h("img", { key: '6b78e7004f4b1dd782e4c17dae7b264fff483875', src: this.urlLogo || FALLBACK_SVG, alt: "Dropi logo", onError: (e) => this.handleError(e) })));
|
|
19
29
|
}
|
|
20
30
|
static get is() { return "dropi-logo"; }
|
|
21
31
|
static get encapsulation() { return "shadow"; }
|
|
@@ -93,4 +103,5 @@ export class DropiLogo {
|
|
|
93
103
|
}
|
|
94
104
|
};
|
|
95
105
|
}
|
|
106
|
+
static get elementRef() { return "el"; }
|
|
96
107
|
}
|
|
@@ -28,9 +28,12 @@ export class DropiMediaPlayer {
|
|
|
28
28
|
dropiEnded;
|
|
29
29
|
componentDidLoad() {
|
|
30
30
|
if (this.mediaEl) {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
const vol = this.initialVolume ?? 1;
|
|
32
|
+
if (isFinite(vol)) {
|
|
33
|
+
this.mediaEl.volume = vol;
|
|
34
|
+
this.muted = vol === 0;
|
|
35
|
+
this.volume = vol;
|
|
36
|
+
}
|
|
34
37
|
}
|
|
35
38
|
document.addEventListener('fullscreenchange', this.handleFullscreenChange);
|
|
36
39
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
1
|
+
import { h, Build } from "@stencil/core";
|
|
2
2
|
/**
|
|
3
3
|
* @component dropi-modal
|
|
4
4
|
* Modal/dialog with backdrop, close button, and header/content/footer slots.
|
|
@@ -41,18 +41,26 @@ export class DropiModal {
|
|
|
41
41
|
mounted = false;
|
|
42
42
|
closeTimer = null;
|
|
43
43
|
keyHandler = null;
|
|
44
|
-
visibleChanged(val) {
|
|
45
|
-
val
|
|
44
|
+
visibleChanged(val, oldVal) {
|
|
45
|
+
const isVisible = val === true || String(val) === 'true';
|
|
46
|
+
const wasVisible = oldVal === true || String(oldVal) === 'true';
|
|
47
|
+
if (isVisible === wasVisible)
|
|
48
|
+
return;
|
|
49
|
+
console.log('[DropiModal] visibleChanged:', isVisible);
|
|
50
|
+
isVisible ? this.openModal() : (this.mounted && this.startClose());
|
|
46
51
|
}
|
|
47
52
|
componentDidLoad() {
|
|
48
|
-
|
|
53
|
+
const isVisible = this.visible === true || String(this.visible) === 'true';
|
|
54
|
+
if (isVisible)
|
|
49
55
|
this.openModal();
|
|
50
56
|
}
|
|
51
57
|
disconnectedCallback() {
|
|
52
58
|
this.removeKeyHandler();
|
|
53
59
|
if (this.closeTimer)
|
|
54
60
|
clearTimeout(this.closeTimer);
|
|
55
|
-
document
|
|
61
|
+
if (typeof document !== 'undefined') {
|
|
62
|
+
document.body.classList.remove('dropi-modal-open');
|
|
63
|
+
}
|
|
56
64
|
}
|
|
57
65
|
async hide() {
|
|
58
66
|
this.visible = false;
|
|
@@ -77,8 +85,8 @@ export class DropiModal {
|
|
|
77
85
|
this.onShow.emit();
|
|
78
86
|
}));
|
|
79
87
|
this.addKeyHandler();
|
|
80
|
-
if (this.modal &&
|
|
81
|
-
document.body.
|
|
88
|
+
if ((this.modal ?? true) && Build.isBrowser && document.body) {
|
|
89
|
+
document.body.classList.add('dropi-modal-open');
|
|
82
90
|
}
|
|
83
91
|
}
|
|
84
92
|
startClose() {
|
|
@@ -92,8 +100,9 @@ export class DropiModal {
|
|
|
92
100
|
this.closeTimer = setTimeout(() => {
|
|
93
101
|
this.mounted = false;
|
|
94
102
|
this.isClosing = false;
|
|
95
|
-
|
|
96
|
-
|
|
103
|
+
this.closeTimer = null;
|
|
104
|
+
if ((this.modal ?? true) && Build.isBrowser && document.body) {
|
|
105
|
+
document.body.classList.remove('dropi-modal-open');
|
|
97
106
|
}
|
|
98
107
|
this.onHide.emit();
|
|
99
108
|
}, 200);
|
|
@@ -114,9 +123,7 @@ export class DropiModal {
|
|
|
114
123
|
}
|
|
115
124
|
}
|
|
116
125
|
render() {
|
|
117
|
-
|
|
118
|
-
return null;
|
|
119
|
-
return (h("div", { class: `modal-root modal-root--${this.position}${this.isOpen ? ' modal-root--open' : ''}${this.isClosing ? ' modal-root--closing' : ''}` }, this.modal && h("div", { class: "modal-mask", onClick: () => this.dismissable && this.hide() }), h("div", { class: `modal-panel size-${this.size || 'm'}`, role: "dialog", "aria-modal": "true" }, this.showHeader && (h("div", { class: "modal-header" }, this.header && h("span", { class: "modal-title" }, this.header), h("slot", { name: "header" }), this.showCloseIcon && (h("button", { class: "modal-close", onClick: () => this.hide(), "aria-label": "Cerrar" }, "\u00D7")))), h("div", { class: "modal-content" }, h("slot", null)), this.showFooter && h("div", { class: "modal-footer" }, h("slot", { name: "footer" })))));
|
|
126
|
+
return (h("div", { key: '6f790289cbdcb0cb92040abc471e8dc592f3d0ab', class: `modal-root modal-root--${this.position}${this.isOpen ? ' modal-root--open' : ''}${this.isClosing ? ' modal-root--closing' : ''}`, style: { display: this.mounted || this.isClosing ? 'flex' : 'none' } }, (this.modal ?? true) && h("div", { key: '6667d2df75ac67352346f454452a360a6506473a', class: "modal-mask", onClick: () => this.dismissable && this.hide() }), h("div", { key: '3a5485798cec9e986f411631aee819f10716e441', class: `modal-panel size-${this.size || 'm'}`, role: "dialog", "aria-modal": "true" }, this.showHeader && (h("div", { key: '795afcb76540a52beefd1ca4c0fb80d88156ef98', class: "modal-header" }, this.header && h("span", { key: '3df861b36deca9caaf6c64c54b89dc897f5b9453', class: "modal-title" }, this.header), h("slot", { key: 'b6b1913314b2c05daa299d273ff7b495d4f72c39', name: "header" }), this.showCloseIcon && (h("button", { key: '529dd7e8787a09fc588e28c0c77f0f27c304659f', class: "modal-close", onClick: () => this.hide(), "aria-label": "Cerrar" }, "\u00D7")))), h("div", { key: 'eeeae841372a788a34cee76b38de7689a7a296fc', class: "modal-content" }, h("slot", { key: '83c67fb239b5579169368b5b2ba6c2ee22564a73' })), this.showFooter && h("div", { key: 'd86cd40508a7b6ea3c9cd4583aaa5a69646bb549', class: "modal-footer" }, h("slot", { key: 'f70503acd5f2b5e672700cec46e4e9705d944e22', name: "footer" })))));
|
|
120
127
|
}
|
|
121
128
|
static get is() { return "dropi-modal"; }
|
|
122
129
|
static get encapsulation() { return "shadow"; }
|
|
@@ -133,11 +140,11 @@ export class DropiModal {
|
|
|
133
140
|
static get properties() {
|
|
134
141
|
return {
|
|
135
142
|
"visible": {
|
|
136
|
-
"type": "
|
|
143
|
+
"type": "any",
|
|
137
144
|
"mutable": true,
|
|
138
145
|
"complexType": {
|
|
139
|
-
"original": "
|
|
140
|
-
"resolved": "
|
|
146
|
+
"original": "any",
|
|
147
|
+
"resolved": "any",
|
|
141
148
|
"references": {}
|
|
142
149
|
},
|
|
143
150
|
"required": false,
|
|
@@ -36,9 +36,9 @@ export class DropiNavbar {
|
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
38
|
const items = this.parsedData;
|
|
39
|
-
return (h("nav", { key: '
|
|
39
|
+
return (h("nav", { key: '15c337396dbe445ac7a13d7e0f2d99f88b4de439', class: "navbar" }, h("div", { key: '922a217dfe53f3f34dd6746033996bcd71dadfb2', class: "navbar__left" }, this.showMenuToggle && (h("button", { key: 'db80ad1fd6f47807196c81ae60bf9cea8bb16e77', class: "navbar__menu-btn", onClick: () => this.dropiMenuToggle.emit(), "aria-label": "Men\u00FA" }, h("dropi-icon", { key: 'c35615cbfd5dc807def32957062ea25b059664b5', name: "Menu", width: "20px", height: "20px", color: "Gray-Gray-700" }))), this.logoUrl && (h("img", { key: 'ffc532e501bc7bc0a5625c865955a43c84857a58', class: "navbar__logo", src: this.logoUrl, alt: this.logoAlt })), this.title && h("span", { key: '7fb10d4a5e42030a7701bf0933587ecdaf5ab20b', class: "navbar__title" }, this.title)), items.length > 0 && (h("ul", { key: '338118e694ca0a46d94fee60211302efe8bbee51', class: "navbar__items" }, items.map(item => (h("li", null, h("button", { class: { 'navbar__item': true, 'navbar__item--active': item.id === this.activeId }, onClick: () => this.clickLoadItem.emit(item), type: "button" }, item.icon && h("dropi-icon", { name: item.icon, width: "16px", height: "16px", color: item.id === this.activeId ? 'Primary-Primary-500' : 'Gray-Gray-600' }), h("span", null, item.name?.value || item.label), item.badge != null && String(item.badge) !== '0' && (h("span", { class: "navbar__badge" }, item.badge)))))))), h("div", { key: 'f2ac52b78963fa9165b6614a7abaa6fe822b2a89', class: "navbar__right" }, h("button", { key: '4e78c3fbc69899f8b1f0206dc27372c3c0d15c31', class: "navbar__icon-btn", onClick: () => this.dropiNotificationsClick.emit(), "aria-label": "Notificaciones" }, h("dropi-icon", { key: 'a94bbd4aa73b7be9a735b31b92d882c53616f8e6', name: "Bell", width: "20px", height: "20px", color: "Gray-Gray-600" }), this.notifications > 0 && (h("span", { key: 'c2157fca16e1c3f992562027d4dfeb348ef7ad23', class: "navbar__notif-badge" }, this.notifications > 99 ? '99+' : this.notifications))), h("button", { key: 'ba2cb25cda984ba8ea180ff8edb3d3ffc955ab27', class: "navbar__user-btn", onClick: () => this.dropiUserClick.emit(), type: "button" }, this.userAvatar
|
|
40
40
|
? h("img", { class: "navbar__avatar", src: this.userAvatar, alt: this.userName })
|
|
41
|
-
: h("div", { class: "navbar__avatar-placeholder" }, this.userName ? this.userName[0].toUpperCase() : '?'), this.userName && h("span", { key: '
|
|
41
|
+
: h("div", { class: "navbar__avatar-placeholder" }, this.userName ? this.userName[0].toUpperCase() : '?'), this.userName && h("span", { key: '11b4c378a089644e63d6186fe40e31ca7b4ab924', class: "navbar__user-name" }, this.userName), h("dropi-icon", { key: 'c2a140081f5ad014b73d35f45476cc1ac41391b5', name: "Arrow-Down-2", width: "12px", height: "12px", color: "Gray-Gray-400" })))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "dropi-navbar"; }
|
|
44
44
|
static get encapsulation() { return "shadow"; }
|
|
@@ -41,10 +41,10 @@ export class DropiOtpSendCode {
|
|
|
41
41
|
}
|
|
42
42
|
handleInput(e, index) {
|
|
43
43
|
const val = e.target.value.replace(/\D/g, '').slice(-1);
|
|
44
|
-
const newDigits = [...this.digits];
|
|
44
|
+
const newDigits = [...(this.digits ?? Array(OTP_LENGTH).fill(''))];
|
|
45
45
|
newDigits[index] = val;
|
|
46
46
|
this.digits = newDigits;
|
|
47
|
-
const newStates = [...this.digitStates];
|
|
47
|
+
const newStates = [...(this.digitStates ?? Array(OTP_LENGTH).fill('idle'))];
|
|
48
48
|
newStates[index] = val ? 'filled' : 'idle';
|
|
49
49
|
this.digitStates = newStates;
|
|
50
50
|
if (val && index < OTP_LENGTH - 1)
|
|
@@ -54,7 +54,7 @@ export class DropiOtpSendCode {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
handleKeyDown(e, index) {
|
|
57
|
-
if (e.key === 'Backspace' && !this.digits[index] && index > 0) {
|
|
57
|
+
if (e.key === 'Backspace' && !(this.digits ?? [])[index] && index > 0) {
|
|
58
58
|
this.inputs[index - 1]?.focus();
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -71,14 +71,14 @@ export class DropiOtpSendCode {
|
|
|
71
71
|
}
|
|
72
72
|
render() {
|
|
73
73
|
const engineLabel = this.engine === 'sms' ? 'SMS' : this.engine === '2fa' ? 'autenticador' : 'correo';
|
|
74
|
-
return (h("div", { key: '
|
|
74
|
+
return (h("div", { key: '3cfe0d64890b2c90f500c662fe8572f9630d614b', class: "otp" }, this.showLabelContact && (h("p", { key: 'd791c408a5393ae82e00e758b67530d4b21381ac', class: "otp__label" }, "Ingresa el c\u00F3digo enviado a tu ", engineLabel, this.labelContact && h("strong", { key: '3d6ca9c3a00a71ba99800a94f1b95d3247d75522' }, " ", this.labelContact))), h("div", { key: '22d172d48ae8748fa27aaead4c65145d848ae4f2', class: "otp__inputs", onPaste: (e) => this.handlePaste(e) }, Array.from({ length: OTP_LENGTH }, (_, i) => (h("input", { key: i, ref: (el) => {
|
|
75
75
|
if (el)
|
|
76
76
|
this.inputs[i] = el;
|
|
77
77
|
}, class: {
|
|
78
78
|
'otp__digit': true,
|
|
79
|
-
'otp__digit--filled': this.digitStates[i] === 'filled',
|
|
79
|
+
'otp__digit--filled': (this.digitStates ?? [])[i] === 'filled',
|
|
80
80
|
'otp__digit--error': this.error,
|
|
81
|
-
}, type: "text", inputMode: "numeric", maxLength: 1, value: this.digits[i], onInput: (e) => this.handleInput(e, i), onKeyDown: (e) => this.handleKeyDown(e, i) })))), this.error && this.errorMessage && (h("p", { key: '
|
|
81
|
+
}, type: "text", inputMode: "numeric", maxLength: 1, value: (this.digits ?? [])[i] ?? '', onInput: (e) => this.handleInput(e, i), onKeyDown: (e) => this.handleKeyDown(e, i) })))), this.error && this.errorMessage && (h("p", { key: 'c6434be80f44e6f8a277bdff49503f67db5cdca7', class: "otp__error" }, this.errorMessage)), h("div", { key: '281e56d25ec3b01136aae2220605037d4dff4e16', class: "otp__resend" }, this.canResend ? (h("button", { class: "otp__resend-btn", onClick: () => { this.startCountdown(); this.dropiResend.emit(); } }, "Reenviar c\u00F3digo")) : (h("span", { class: "otp__countdown" }, "Reenviar en ", this.countdown, "s")))));
|
|
82
82
|
}
|
|
83
83
|
static get is() { return "dropi-otp-send-code"; }
|
|
84
84
|
static get encapsulation() { return "shadow"; }
|
|
@@ -54,9 +54,9 @@ export class DropiPaginator {
|
|
|
54
54
|
const pages = this.pageNumbers;
|
|
55
55
|
const isFirst = this.currentPage <= 1;
|
|
56
56
|
const isLast = this.currentPage >= this.totalPages;
|
|
57
|
-
return (h("div", { key: '
|
|
57
|
+
return (h("div", { key: 'b601f88e4f971f885835d81fe876303fe97027c7', class: "paginator" }, h("div", { key: '988ffb7ed122d4a666af4525bc85159d8d36538a', class: "paginator-pages" }, !isFirst && !this.noLabels && (h("button", { key: '920a1a407782bde436fb6560caeb39848e9c7e28', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(1), "aria-label": "Primera p\u00E1gina", disabled: this.disabled }, h("dropi-icon", { key: '67bc6ba66852a8883a19b2a3182be3cb298f2c8d', name: "Arrow-double-small-left", width: "16px", height: "16px", color: "Gray-Gray-600" }))), !isFirst && (h("button", { key: 'b1d0c5a8f66056cb53c31b01959177754632a906', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(this.currentPage - 1), "aria-label": "Anterior", disabled: this.disabled }, h("dropi-icon", { key: '951435cbf9b7a8b9bd0e0f33d2c9eacaea6e7af1', name: "Dropdown-left", width: "16px", height: "16px", color: "Gray-Gray-600" }), !this.noLabels && h("span", { key: 'fed8a203b3e62f5da3e6fa055b1ee6e35453147c', class: "paginator-label" }, "Anterior"))), pages.map((p, i) => p === '...'
|
|
58
58
|
? h("span", { class: "paginator-ellipsis", key: `e${i}` }, "\u2026")
|
|
59
|
-
: h("button", { key: p, class: { 'paginator-btn': true, 'paginator-btn--active': p === this.currentPage }, onClick: () => this.goTo(p), "aria-current": p === this.currentPage ? 'page' : undefined, disabled: this.disabled }, p)), !isLast && (h("button", { key: '
|
|
59
|
+
: h("button", { key: p, class: { 'paginator-btn': true, 'paginator-btn--active': p === this.currentPage }, onClick: () => this.goTo(p), "aria-current": p === this.currentPage ? 'page' : undefined, disabled: this.disabled }, p)), !isLast && (h("button", { key: '35a728e031880403ee0ff984484237ab701bd406', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(this.currentPage + 1), "aria-label": "Siguiente", disabled: this.disabled }, !this.noLabels && h("span", { key: '4a73ba225105e449f8dfe8a504c5b1ad3e9c31cd', class: "paginator-label" }, "Siguiente"), h("dropi-icon", { key: '7b140df9437922acc8c24d6ee1ff15d69ce7b7f1', name: "Dropdown-Right", width: "16px", height: "16px", color: "Gray-Gray-600" }))), !isLast && !this.noLabels && (h("button", { key: '6157fa189ca011be4c13da803d2cd110d882bb8e', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(this.totalPages), "aria-label": "\u00DAltima p\u00E1gina", disabled: this.disabled }, h("dropi-icon", { key: '7b6c1b31d4caed8203b739cc10f3084568e40f10', name: "Arrow-double-small-right", width: "16px", height: "16px", color: "Gray-Gray-600" }))))));
|
|
60
60
|
}
|
|
61
61
|
static get is() { return "dropi-paginator"; }
|
|
62
62
|
static get encapsulation() { return "shadow"; }
|
|
@@ -147,7 +147,7 @@ export class DropiPhoneInput {
|
|
|
147
147
|
this.selectedOptionChanged(this.selectedOption);
|
|
148
148
|
}
|
|
149
149
|
get selectedCountry() {
|
|
150
|
-
const cleanCodArea = this.codArea.replace('+', '');
|
|
150
|
+
const cleanCodArea = (this.codArea ?? '57').replace('+', '');
|
|
151
151
|
return COUNTRIES.find(c => c.code === cleanCodArea) ?? COUNTRIES[0];
|
|
152
152
|
}
|
|
153
153
|
selectCountry(c) {
|
|
@@ -171,10 +171,10 @@ export class DropiPhoneInput {
|
|
|
171
171
|
render() {
|
|
172
172
|
const country = this.selectedCountry;
|
|
173
173
|
const isInvalid = this.isValidPhone === false;
|
|
174
|
-
return (h("div", { key: '
|
|
174
|
+
return (h("div", { key: 'e4a9468971ff90e3e1c2cf6944a8475451843428', class: "phone-wrap" }, h("div", { key: 'dabdccaf0453e98afb3db78ee6b6f83a66615baa', class: "phone-input-container" }, h("div", { key: '6481136b782da271fe47c19cfd359398bf632f35', class: "custom-select" }, h("button", { key: 'd314c0e2c74724eff20eae8f34241caf1fc2448c', type: "button", class: { 'select-button': true, 'select-invalid': isInvalid }, disabled: this.disabledInput, onClick: () => {
|
|
175
175
|
if (!this.disabledInput)
|
|
176
176
|
this.open = !this.open;
|
|
177
|
-
} }, h("span", { key: '
|
|
177
|
+
} }, h("span", { key: 'c8b2aa7801a5c633c70010e7eeb2d5d9f3fb6b37', style: { display: 'flex', gap: '0.5rem', alignItems: 'center' } }, h("img", { key: 'c2a6583a02b029cee578b9c931f185f7d4102e3f', src: `https://flagsapi.com/${country.flag}/flat/24.png`, alt: "flag" }), country.code), h("dropi-icon", { key: '0ace7b7188e846793d66373ea3d2c2d8ae881c24', name: this.open ? 'Dropdown-up' : 'Dropdown-down', width: "14px", height: "14px", color: "Gray-Gray-500" })), h("ul", { key: '832b37902ce54aac152e956d671fb6f899781029', class: { 'select-dropdown': true, 'expanded-select': this.open, 'collapsed-select': !this.open } }, COUNTRIES.map(option => (h("li", null, h("button", { type: "button", class: "option", onMouseDown: (e) => { e.preventDefault(); this.selectCountry(option); } }, h("img", { src: `https://flagsapi.com/${option.flag}/flat/24.png`, alt: option.flag }), option.code)))))), h("input", { key: 'eaf32641b019e1ffd3fe5a1d7a3c4597e1cd0cb5', id: "phone-input", type: "tel", inputmode: "numeric", class: { 'form-control': true, 'is-invalid': isInvalid }, placeholder: this.phoneNumberPlaceholder, value: this.ngModelPhone, disabled: this.disabledInput, maxLength: country.maxLength, onInput: (e) => this.handleInput(e) }))));
|
|
178
178
|
}
|
|
179
179
|
static get is() { return "dropi-phone-input"; }
|
|
180
180
|
static get encapsulation() { return "shadow"; }
|
|
@@ -28,7 +28,7 @@ export class DropiRadioButton {
|
|
|
28
28
|
this.onChange.emit(e);
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
|
-
return (h("div", { key: '
|
|
31
|
+
return (h("div", { key: '86430f601f7ddb6144682c0356938886217eb2ae', class: "dropi-radio-button" }, h("label", { key: '653fa8d5c33fc64ab44174e6d0fe35c6fd992be7', htmlFor: this.id }, h("input", { key: 'd99eae69867b0a09b6585a18dfaa52da353c5bd2', id: this.id, type: "radio", name: this.name, checked: this.checked, onChange: (e) => this.handleChange(e) }), this.label)));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "dropi-radio-button"; }
|
|
34
34
|
static get encapsulation() { return "shadow"; }
|
|
@@ -35,10 +35,10 @@ export class DropiRadioSelectionList {
|
|
|
35
35
|
return this.parsedOptions.filter(o => o.name?.toLowerCase().includes(q));
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
|
-
return (h("div", { key: '
|
|
38
|
+
return (h("div", { key: '7fdbf3d20a030a78ab4f48e7dba8333a34b1017b', class: "rsl" }, this.showFilter && (h("div", { key: '12e2abb8f8ed76c6b3231f28b63c842ba3c3c326', class: "rsl__search" }, h("dropi-icon", { key: '4f6a63480a811ed22d67485274b7edf3bf9765f4', name: "Search", width: "16px", height: "16px", color: "Gray-Gray-400" }), h("input", { key: 'c1f1c5942d422fceaa967640b7795a981896d68d', class: "rsl__search-input", type: "text", placeholder: this.filterPlaceholder, value: this.filterText, onInput: (e) => {
|
|
39
39
|
this.filterText = e.target.value;
|
|
40
40
|
this.onSearch.emit({ searchValue: this.filterText, filteredOptions: this.filtered });
|
|
41
|
-
} }))), h("div", { key: '
|
|
41
|
+
} }))), h("div", { key: '425b4048cbf4fa4a22c13d932f296cb594ffe993', class: "rsl__list" }, this.filtered.map(opt => {
|
|
42
42
|
const isSelected = opt.id === this.selectedOption;
|
|
43
43
|
return (h("div", { class: { 'rsl__item': true, 'rsl__item--selected': isSelected }, key: opt.id, onClick: () => { this.selectedOption = opt.id; this.valueChange.emit(opt.id); } }, h("div", { class: { 'rsl__radio': true, 'rsl__radio--checked': isSelected } }, isSelected && h("div", { class: "rsl__radio-dot" })), h("div", { class: "rsl__content" }, h("span", { class: "rsl__name" }, opt.name), (isSelected || this.alwaysShowDescription) && opt.description && (h("span", { class: "rsl__desc" }, opt.description)))));
|
|
44
44
|
}))));
|
|
@@ -28,7 +28,7 @@ export class DropiReadMore {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
const showToggle = this.needsTruncation && (this.expanded ? this.showSeeLess : true);
|
|
31
|
-
return (h("div", { key: '
|
|
31
|
+
return (h("div", { key: '125c5f1d75c1e06f02d9898f375626bb75a67cd8', class: "read-more" }, h("p", { key: '4a4450a3468e7fe7297fdae98d370f8cd77b8553', class: "read-more__text", style: this.textStyle ? this.textStyle : undefined }, this.displayText, showToggle && (h("button", { key: 'cfe58b2781b908d9a0a802b4bd68cedf8dea827e', class: "read-more__toggle", style: this.buttonStyle ? this.buttonStyle : undefined, onClick: () => this.expanded = !this.expanded }, this.expanded ? ' Ver menos' : '... Ver más')))));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "dropi-read-more"; }
|
|
34
34
|
static get encapsulation() { return "shadow"; }
|
|
@@ -99,10 +99,10 @@ export class DropiSearch {
|
|
|
99
99
|
}
|
|
100
100
|
render() {
|
|
101
101
|
const showDropdown = this.open && this.parsedOptions.length > 0;
|
|
102
|
-
return (h("div", { key: '
|
|
102
|
+
return (h("div", { key: 'ec00c8851a1d2d4ddda50edea458589a62d9451a', class: "search-wrap" }, this.label && h("label", { key: '31cadba1b21276ec43f3623676fe1a7f9bac4da2', class: "search-label" }, this.label), h("div", { key: 'bf68dbb7cfa657e8a7e441a2fe47db0e7d214e44', class: `search-input-row search-input-row--${this.type}` }, this.showIcon && h("dropi-icon", { key: 'c1c442a8fed018f774d6addc9dcaf3d1e89d6121', class: "search-icon", name: "Search", width: "16px", height: "16px", color: "Gray-Gray-400" }), h("input", { key: 'd22791b1864320c54060827cc601bbc242d6c37d', class: "search-input", type: this.typeInput, placeholder: this.placeholder, value: this.textInput, maxLength: this.maxLength, onInput: (e) => this.handleInput(e), onKeyDown: (e) => this.handleKeyDown(e), onFocus: () => {
|
|
103
103
|
if (this.parsedOptions.length)
|
|
104
104
|
this.open = true;
|
|
105
|
-
}, onBlur: () => { setTimeout(() => this.open = false, 150); this.onBlur.emit(); } }), this.showClear && this.textInput && (h("button", { key: '
|
|
105
|
+
}, onBlur: () => { setTimeout(() => this.open = false, 150); this.onBlur.emit(); } }), this.showClear && this.textInput && (h("button", { key: '55e8653e330b06d488c6d65f6a8ffe6465a24289', class: "search-clear", onClick: () => this.handleClear(), "aria-label": "Limpiar" }, h("dropi-icon", { key: '0c154c2a95119caefe84bd9cfc40860d4b722137', name: "Close-small", width: "16px", height: "16px", color: "Gray-Gray-400" })))), showDropdown && (h("div", { key: 'a4b4691ff29a427755f19c4bc4932f2634736701', class: `search-dropdown search-dropdown--${this.position}`, style: { '--dropdown-height': `${this.heightOverlay}px` } }, this.filtered.length === 0 ? (h("div", { class: "search-no-results" }, "Sin resultados")) : (this.filtered.map((opt, i) => (h("div", { class: { 'search-option': true, 'search-option--selected': this.isSelected(opt) }, key: i, onMouseDown: (e) => { e.preventDefault(); this.selectOption(opt); } }, this.multipleSelectModel && h("dropi-checkbox", { checked: this.isSelected(opt) }), h("span", { class: "search-option__label" }, opt[this.dataName])))))))));
|
|
106
106
|
}
|
|
107
107
|
static get is() { return "dropi-search"; }
|
|
108
108
|
static get encapsulation() { return "shadow"; }
|
|
@@ -127,6 +127,10 @@ export class DropiSelect {
|
|
|
127
127
|
this.applyDefaultSelection();
|
|
128
128
|
}
|
|
129
129
|
normalizeOptions() {
|
|
130
|
+
if (!this.options) {
|
|
131
|
+
this.options = [];
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
130
134
|
if (typeof this.options === 'string') {
|
|
131
135
|
try {
|
|
132
136
|
this.options = JSON.parse(this.options);
|
|
@@ -355,7 +359,7 @@ export class DropiSelect {
|
|
|
355
359
|
]), !this.isGrouped && this.filteredOptions.map(opt => this.renderOption(opt)), this.filteredOptions.length === 0 && (h("li", { class: "no-results" }, "Sin resultados"))));
|
|
356
360
|
}
|
|
357
361
|
render() {
|
|
358
|
-
return (h("div", { key: '
|
|
362
|
+
return (h("div", { key: '932cad965441a784f51d6b82ffc5a100cf438fb6', class: "custom-select" }, !this.dropdownType && this.label && (h("label", { key: '1c46242dcbd7862b32a36e2132bc4689b3c95aab', class: { 'disabled-label': this.disabled } }, this.label, this.showObligatory && !this.disabled && h("span", { key: '79e2df6ae0a55c4e51ff7354486903d58bdb7d36', class: "asterisk" }, " *"))), h("div", { key: 'd4a48dcc513b5ae7171598709b0d00c3ffd7f42b', class: "dropdown-container" }, this.dropdownType && this.label && (h("div", { key: 'f9d8b6f87dcc8438c00ec04edabe10ebb2cceb79', class: "left-label" }, this.label)), this.renderTrigger()), this.textHelper && !this.hasError && (h("div", { key: 'e8cc2e4ccb3a5919fe30411003153bfe6434b0d0', class: "select-helper" }, h("span", { key: '2fe857a4efac70882ec58835534bb22739c4fb26' }, this.textHelper))), this.hasError && this.errorText && (h("div", { key: 'e357992bf4a391052fe3a8444b24777292f71bf0', class: "select-helper-error" }, h("dropi-icon", { key: '9a32ef1f5ae2ccf18996bdc451e5de4e2c923a0a', name: "Warning-circle", width: "12px", height: "12px", color: "Error-Error-500" }), h("span", { key: '919259f76022b34162f680234a3c1cf93492666b' }, this.errorText))), this.renderDropdown()));
|
|
359
363
|
}
|
|
360
364
|
static get is() { return "dropi-select"; }
|
|
361
365
|
static get encapsulation() { return "shadow"; }
|
|
@@ -42,7 +42,7 @@ export class DropiSidebar {
|
|
|
42
42
|
this.onIndexChanged.emit(itemClicked);
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
|
-
return (h("div", { key: '
|
|
45
|
+
return (h("div", { key: '9f79e6370ff61c6278a8238b0dc92881832f9b8f', class: "main-sidebar-container" }, this.parsedProperties.map(item => {
|
|
46
46
|
return [
|
|
47
47
|
/* Item Principal */
|
|
48
48
|
h("div", { class: {
|
|
@@ -30,7 +30,7 @@ export class DropiSimpleStepper {
|
|
|
30
30
|
render() {
|
|
31
31
|
const labels = this.parsedLabels;
|
|
32
32
|
const steps = Array.from({ length: this.stepsCount }, (_, i) => i + 1);
|
|
33
|
-
return (h("div", { key: '
|
|
33
|
+
return (h("div", { key: 'f67f6e9404bf67700c46b987923836d5251ae1c4', class: "stepper" }, steps.map((step, i) => {
|
|
34
34
|
const isCompleted = step < this.currentStep;
|
|
35
35
|
const isActive = step === this.currentStep;
|
|
36
36
|
const isLast = i === steps.length - 1;
|
|
@@ -17,7 +17,7 @@ export class DropiSkeleton {
|
|
|
17
17
|
/** Base color of the shimmer gradient. Accepts hex (#f6f7f8) or token name (Gray-Gray-100) */
|
|
18
18
|
baseColor = '#f6f7f8';
|
|
19
19
|
getBackground() {
|
|
20
|
-
const color = this.baseColor.startsWith('#') ? this.baseColor : `var(--${this.baseColor})`;
|
|
20
|
+
const color = (this.baseColor ?? '#f6f7f8').startsWith('#') ? (this.baseColor ?? '#f6f7f8') : `var(--${this.baseColor})`;
|
|
21
21
|
return `linear-gradient(to right, ${color} 8%, #e3e7efe7 28%, ${color} 77%)`;
|
|
22
22
|
}
|
|
23
23
|
getRadius() {
|
|
@@ -35,7 +35,7 @@ export class DropiSteps {
|
|
|
35
35
|
render() {
|
|
36
36
|
const labels = this.parsedLabels;
|
|
37
37
|
const steps = Array.from({ length: this.stepsCount }, (_, i) => i + 1);
|
|
38
|
-
return (h("div", { key: '
|
|
38
|
+
return (h("div", { key: '35c28210675370e76f16e2525fdf785b6205ec78', class: "stepper" }, steps.map((step) => {
|
|
39
39
|
const state = this.stepState(step);
|
|
40
40
|
const label = labels[step - 1];
|
|
41
41
|
const isLast = step === this.stepsCount;
|
|
@@ -16,7 +16,7 @@ export class DropiSwitch {
|
|
|
16
16
|
this.onChange.emit(this.isChecked);
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h("label", { key: '
|
|
19
|
+
return (h("label", { key: 'c12214e051cfd7ca50d0df9fb3374ee9f3b72c1a', class: "toggle-switch" }, h("input", { key: '2821a935d4614447900d35028261b5c6620c104f', type: "checkbox", checked: this.isChecked, disabled: this.disabled, onChange: (e) => this.onToggleChange(e) }), h("span", { key: '1370a1ea4b9bb48849f9d998eac3a36ac3fa75b6', class: "slider" })));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "dropi-switch"; }
|
|
22
22
|
static get encapsulation() { return "shadow"; }
|
|
@@ -117,6 +117,9 @@ export class DropiTable {
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
componentWillLoad() {
|
|
120
|
+
// SSR hydration guard: if no data props provided, preserve server-rendered DOM
|
|
121
|
+
if (this.data == null && this.rows == null && this.headers == null && this.columns == null)
|
|
122
|
+
return;
|
|
120
123
|
// headers/data take precedence over columns/rows when provided
|
|
121
124
|
const headersSrc = (Array.isArray(this.headers) ? this.headers : []).length
|
|
122
125
|
? this.headers : this.columns;
|
|
@@ -128,7 +131,8 @@ export class DropiTable {
|
|
|
128
131
|
this.rowActionsChanged(this.rowActions);
|
|
129
132
|
}
|
|
130
133
|
get visibleColumns() {
|
|
131
|
-
|
|
134
|
+
const hidden = this.hiddenColumns ?? new Set();
|
|
135
|
+
return (this.parsedColumns ?? []).filter(c => !hidden.has(c.key));
|
|
132
136
|
}
|
|
133
137
|
get filteredRows() {
|
|
134
138
|
if (!this.searchTerm)
|
|
@@ -218,31 +222,34 @@ export class DropiTable {
|
|
|
218
222
|
return h("span", { class: "table-labels" }, String(value));
|
|
219
223
|
}
|
|
220
224
|
render() {
|
|
225
|
+
// SSR hydration: if parsedRows not yet initialized, preserve server-rendered shadow DOM
|
|
226
|
+
if (this.parsedRows === undefined)
|
|
227
|
+
return null;
|
|
221
228
|
const rows = this.pagedRows;
|
|
222
229
|
const allSelected = rows.length > 0 && this.selectedKeys.size === rows.length;
|
|
223
230
|
const hasActions = this.parsedRowActions.length > 0;
|
|
224
231
|
const cols = this.visibleColumns;
|
|
225
|
-
return (h("div", {
|
|
232
|
+
return (h("div", { class: "table-container" }, (this.showSearch || this.showColumnSelector || this.title) && (h("div", { class: "search-container" }, this.title && h("h3", { class: "table-title" }, this.title), h("div", { class: `search-actions${this.showSearch ? '' : ' only-filter'}` }, this.showSearch && (h("dropi-input", { placeholder: "Buscar", value: this.searchTerm, onOnInput: (e) => {
|
|
226
233
|
this.searchTerm = e.detail;
|
|
227
234
|
this.dropiSearch.emit(e.detail);
|
|
228
235
|
this.onSearchChange.emit(e.detail);
|
|
229
|
-
} })), this.showColumnSelector && (h("div", {
|
|
236
|
+
} })), this.showColumnSelector && (h("div", { class: "table-tools" }, h("div", { class: "column-selector-container" }, h("button", { class: "column-selector-btn", onClick: () => this.showColumnMenu = !this.showColumnMenu }, h("dropi-icon", { name: "list-table", width: "20px", height: "20px", color: "Gray-Gray-500" })), this.showColumnMenu && (h("div", { class: "column-selector-menu" }, this.parsedColumns.map(col => (h("div", { class: "column-selector-option", onClick: () => {
|
|
230
237
|
const next = new Set(this.hiddenColumns);
|
|
231
238
|
if (next.has(col.key))
|
|
232
239
|
next.delete(col.key);
|
|
233
240
|
else
|
|
234
241
|
next.add(col.key);
|
|
235
242
|
this.hiddenColumns = next;
|
|
236
|
-
} }, h("dropi-checkbox", { checked: !this.hiddenColumns.has(col.key) }), h("span", null, col.label)))), h("div", {
|
|
243
|
+
} }, h("dropi-checkbox", { checked: !this.hiddenColumns.has(col.key) }), h("span", null, col.label)))), h("div", { class: "column-selector-footer" }, h("div", { class: "column-selector-all", onClick: () => {
|
|
237
244
|
this.hiddenColumns = this.hiddenColumns.size === 0
|
|
238
245
|
? new Set(this.parsedColumns.map(c => c.key))
|
|
239
246
|
: new Set();
|
|
240
|
-
} }, h("dropi-checkbox", {
|
|
247
|
+
} }, h("dropi-checkbox", { checked: this.hiddenColumns.size === 0 }), h("span", null, "Mostrar / Ocultar todo"))))))))))), h("div", { class: `table-wrapper${hasActions ? ' has-sticky-actions' : ''}` }, h("table", { class: `custom-table${this.showCheckbox ? ' has-checkbox' : ''}` }, h("thead", null, h("tr", null, this.showCheckbox && (h("th", { class: "checkbox-header" }, h("dropi-checkbox", { checked: allSelected, onOnChange: (e) => this.toggleAll(e.detail) }))), cols.map(col => (h("th", { class: { sortable: !!col.sortable, 'low-opacity': !!col.disabledColumn, 'highlight-column': !!col.highlightColumn }, style: { textAlign: col.align || 'center', minWidth: col.minWidth, maxWidth: col.maxWidth }, onClick: () => this.handleSort(col) }, h("div", { class: `headers-container${col.align === 'left' ? ' align-left' : col.align === 'right' ? ' align-right' : ''}` }, h("div", { class: `headers${col.align === 'left' ? ' align-left' : col.align === 'right' ? ' align-right' : ''}` }, h("span", null, col.label), col.sortable && (h("div", { class: "order-icons" }, h("dropi-icon", { name: "Caret-up", width: "12px", height: "12px", color: this.sortAsc ? 'Gray-Gray-500' : 'Gray-Gray-200' }), h("dropi-icon", { name: "Caret-down", width: "12px", height: "12px", color: !this.sortAsc ? 'Gray-Gray-500' : 'Gray-Gray-200' })))))))), hasActions && h("th", { class: "actions-header actions" }, "Acciones"))), h("tbody", null, this.loading ? (Array.from({ length: 5 }).map(() => (h("tr", { class: "table-row" }, this.showCheckbox && h("td", null, h("div", { class: "skeleton skeleton--sm" })), cols.map(() => h("td", null, h("div", { class: "skeleton" }))), hasActions && h("td", null))))) : rows.length === 0 ? (h("tr", null, h("td", { colSpan: cols.length + (this.showCheckbox ? 1 : 0) + (hasActions ? 1 : 0) }, h("div", { class: "empty-table" }, h("div", { class: "empty-message-container" }, this.emptyMessage))))) : (rows.map((row, i) => (h("tr", { class: "table-row", onClick: () => this.dropiRowClick.emit({ row, index: i }) }, this.showCheckbox && (h("td", { onClick: (e) => e.stopPropagation() }, h("dropi-checkbox", { checked: this.selectedKeys.has(i), onOnChange: () => this.toggleRow(i) }))), cols.map(col => (h("td", { class: { 'low-opacity': !!col.disabledColumn, 'highlight-column': !!col.highlightColumn }, style: { minWidth: col.minWidth, maxWidth: col.maxWidth, overflow: col.maxWidth ? 'hidden' : undefined } }, h("div", { class: "cell-content", style: { textAlign: col.align || 'center' } }, this.renderCellValue(row[col.key]))))), hasActions && (h("td", { class: "action-button actions", onClick: (e) => e.stopPropagation() }, this.parsedRowActions.length > 3 ? (h("div", { style: { display: "flex", justifyContent: "center", width: "100%" } }, h("dropi-icon", { class: "action-icon", name: "Menu-dots-vertical", width: "24px", height: "24px", color: "Gray-Gray-500", onClick: () => this.openActionRow = this.openActionRow === i ? -1 : i }), this.openActionRow === i && (h("div", { class: "actions-menu" }, this.parsedRowActions.map(action => (h("div", { class: "action-item", onClick: () => { this.openActionRow = -1; this.dropiAction.emit({ row, action }); this.actionClicked.emit({ row, action }); } }, h("dropi-icon", { name: action.icon, width: "20px", height: "20px", color: action.iconColor || 'Gray-Gray-500' }), action.label))))))) : (h("div", { class: "short-actions" }, this.parsedRowActions.map(action => (h("dropi-icon", { class: "action-icon", name: action.icon, width: "24px", height: "24px", color: action.iconColor || 'Gray-Gray-500', onClick: () => { this.dropiAction.emit({ row, action }); this.actionClicked.emit({ row, action }); } })))))))))))))), this.showPaginator && (h("div", { class: "pagination" }, h("div", { class: "page-size-selector" }, h("label", null, "Mostrar"), h("select", { onChange: (e) => {
|
|
241
248
|
this.pageSize = Number(e.target.value);
|
|
242
249
|
this.currentPage = 1;
|
|
243
250
|
this.dropiPageSizeChange.emit(this.pageSize);
|
|
244
251
|
this.onSizeChange.emit(this.pageSize);
|
|
245
|
-
} }, this.parsedPageSizes.map(s => (h("option", { value: s, selected: this.pageSize === s }, s))))), h("dropi-paginator", {
|
|
252
|
+
} }, this.parsedPageSizes.map(s => (h("option", { value: s, selected: this.pageSize === s }, s))))), h("dropi-paginator", { totalPages: this.totalPages, currentPage: this.currentPage, onPageChange: (e) => {
|
|
246
253
|
this.currentPage = e.detail;
|
|
247
254
|
this.dropiPageChange.emit(e.detail);
|
|
248
255
|
this.onPageChange.emit(e.detail);
|
|
@@ -34,7 +34,7 @@ export class DropiTabs {
|
|
|
34
34
|
this.onIndexChanged.emit(tab);
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return (h("div", { key: '
|
|
37
|
+
return (h("div", { key: '337040015b29581ebb15ac347bb62220ed0a2d4d', class: "tabs-container", role: "tablist" }, this.parsedTabs.map(tab => {
|
|
38
38
|
const isActive = tab.id === this.activeTab;
|
|
39
39
|
return (h("div", { role: "tab", "aria-selected": String(isActive), class: { 'tab-item': true, 'tab-item--active': isActive && !tab.disabled, 'tab-item--disabled': !!tab.disabled }, onClick: () => this.handleClick(tab) }, h("span", { class: "tab-label-row" }, h("span", { class: "tab-label" }, tab.label), tab.counter !== undefined && tab.counter !== null && (h("span", { class: { 'tab-counter': true, 'tab-counter--active': isActive } }, tab.counter))), this.showIcon && (tab.completed
|
|
40
40
|
? h("dropi-icon", { name: "Check-circle", width: "12px", height: "12px", color: "Success-Success-500" })
|
|
@@ -48,7 +48,7 @@ export class DropiTag {
|
|
|
48
48
|
return typeof this.text === 'string' && this.text.trim().length > 0;
|
|
49
49
|
}
|
|
50
50
|
render() {
|
|
51
|
-
return (h("div", { key: '
|
|
51
|
+
return (h("div", { key: '1736efc48b3ccaf5f3ca85ad29622f42b4fb3c8d', class: "container-chips" }, h("div", { key: '96c2b0e9d22881ca71c58488dcd622a1eef1a120', class: { tags: true, 'icon-only': this.showIcon && !this.hasContent }, style: { backgroundColor: this.bgColor, color: this.textColor } }, this.showIcon && this.icon && (h("dropi-icon", { key: 'aab0330382fe0690177edcb364ab043459b9a316', class: "file-icon", name: this.icon, width: "16px", height: "16px", color: this.iconColor })), this.hasContent && h("span", { key: 'be38207ca7668b6b4976d5f3f2f506c380ee0491' }, this.text))));
|
|
52
52
|
}
|
|
53
53
|
static get is() { return "dropi-tag"; }
|
|
54
54
|
static get encapsulation() { return "shadow"; }
|
|
@@ -86,7 +86,7 @@ export class DropiTag {
|
|
|
86
86
|
},
|
|
87
87
|
"getter": false,
|
|
88
88
|
"setter": false,
|
|
89
|
-
"reflect":
|
|
89
|
+
"reflect": true,
|
|
90
90
|
"attribute": "type",
|
|
91
91
|
"defaultValue": "'primary'"
|
|
92
92
|
},
|
|
@@ -112,7 +112,7 @@ export class DropiTag {
|
|
|
112
112
|
},
|
|
113
113
|
"getter": false,
|
|
114
114
|
"setter": false,
|
|
115
|
-
"reflect":
|
|
115
|
+
"reflect": true,
|
|
116
116
|
"attribute": "state",
|
|
117
117
|
"defaultValue": "'default'"
|
|
118
118
|
},
|
|
@@ -152,7 +152,7 @@ export class DropiTag {
|
|
|
152
152
|
},
|
|
153
153
|
"getter": false,
|
|
154
154
|
"setter": false,
|
|
155
|
-
"reflect":
|
|
155
|
+
"reflect": true,
|
|
156
156
|
"attribute": "icon",
|
|
157
157
|
"defaultValue": "''"
|
|
158
158
|
},
|
|
@@ -172,7 +172,7 @@ export class DropiTag {
|
|
|
172
172
|
},
|
|
173
173
|
"getter": false,
|
|
174
174
|
"setter": false,
|
|
175
|
-
"reflect":
|
|
175
|
+
"reflect": true,
|
|
176
176
|
"attribute": "text",
|
|
177
177
|
"defaultValue": "''"
|
|
178
178
|
}
|
|
@@ -7,7 +7,7 @@ export class DropiTagTypeProduct {
|
|
|
7
7
|
/** Label text. Default: VARIABLE */
|
|
8
8
|
label = 'VARIABLE';
|
|
9
9
|
render() {
|
|
10
|
-
return h("div", { key: '
|
|
10
|
+
return h("div", { key: 'ae1cd50cd3e82180704ae4f5406b4dc13ffbd12c', class: "type-variation" }, this.label);
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "dropi-tag-type-product"; }
|
|
13
13
|
static get encapsulation() { return "shadow"; }
|