@dropi/ui 0.1.21 → 0.1.23
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/{esm → dropi-ui}/dropi-accordion-item.entry.js +9 -3
- package/dist/dropi-ui/dropi-accordion-item.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-accordion.entry.js +5 -2
- package/dist/dropi-ui/dropi-accordion.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-alert-legacy.entry.js +4 -1
- package/dist/dropi-ui/dropi-alert-legacy.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-alert-modal.entry.js +6 -3
- package/dist/dropi-ui/dropi-alert-modal.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-alert.entry.js +5 -2
- package/dist/dropi-ui/dropi-alert.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-avatars.entry.js +5 -2
- package/dist/dropi-ui/dropi-avatars.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-badge-legacy.entry.js +5 -2
- package/dist/dropi-ui/dropi-badge-legacy.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-badge.entry.js +5 -2
- package/dist/dropi-ui/dropi-badge.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-banner-external.entry.js +15 -2
- package/dist/dropi-ui/dropi-banner-external.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-breadcrumb.entry.js +5 -2
- package/dist/dropi-ui/dropi-breadcrumb.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-button.entry.js +6 -3
- package/dist/dropi-ui/dropi-button.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-card-checkbox.entry.js +6 -3
- package/dist/dropi-ui/dropi-card-checkbox.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-card-product.entry.js +10 -5
- package/dist/dropi-ui/dropi-card-product.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-card-section.entry.js +6 -3
- package/dist/dropi-ui/dropi-card-section.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-carousel.entry.js +10 -2
- package/dist/dropi-ui/dropi-carousel.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-checkbox-selection-list.entry.js +6 -3
- package/dist/dropi-ui/dropi-checkbox-selection-list.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-checkbox.entry.js +6 -3
- package/dist/dropi-ui/dropi-checkbox.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-chips.entry.js +5 -2
- package/dist/dropi-ui/dropi-chips.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-city-selector.entry.js +13 -2
- package/dist/dropi-ui/dropi-city-selector.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-color-picker.entry.js +7 -4
- package/dist/dropi-ui/dropi-color-picker.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-country-flags.entry.js +5 -2
- package/dist/dropi-ui/dropi-country-flags.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-country-selector.entry.js +6 -3
- package/dist/dropi-ui/dropi-country-selector.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-date-picker-range.entry.js +4 -1
- package/dist/dropi-ui/dropi-date-picker-range.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-date-picker.entry.js +8 -5
- package/dist/dropi-ui/dropi-date-picker.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-drawer.entry.js +10 -4
- package/dist/dropi-ui/dropi-drawer.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-dropdown.entry.js +6 -3
- package/dist/dropi-ui/dropi-dropdown.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-empty-state.entry.js +5 -2
- package/dist/dropi-ui/dropi-empty-state.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-favorite-button.entry.js +5 -2
- package/dist/dropi-ui/dropi-favorite-button.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-file-upload-progress-bar.entry.js +7 -2
- package/dist/dropi-ui/dropi-file-upload-progress-bar.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-file-upload.entry.js +9 -5
- package/dist/dropi-ui/dropi-file-upload.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-icon.entry.js +68 -0
- package/dist/dropi-ui/dropi-icon.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-ilustration-icon.entry.js +5 -2
- package/dist/dropi-ui/dropi-ilustration-icon.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-image-miniature.entry.js +5 -2
- package/dist/dropi-ui/dropi-image-miniature.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-image-overlay.entry.js +6 -2
- package/dist/dropi-ui/dropi-image-overlay.entry.js.map +1 -0
- package/dist/{esm/dropi-input_3.entry.js → dropi-ui/dropi-input.entry.js} +13 -135
- package/dist/dropi-ui/dropi-input.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-languages-selector.entry.js +9 -2
- package/dist/dropi-ui/dropi-languages-selector.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-logo.entry.js +15 -2
- package/dist/dropi-ui/dropi-logo.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-lottie-loader.entry.js +4 -1
- package/dist/dropi-ui/dropi-lottie-loader.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-media-player.entry.js +10 -4
- package/dist/dropi-ui/dropi-media-player.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-modal.entry.js +22 -12
- package/dist/dropi-ui/dropi-modal.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-navbar.entry.js +6 -3
- package/dist/dropi-ui/dropi-navbar.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-otp-send-code.entry.js +10 -7
- package/dist/dropi-ui/dropi-otp-send-code.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-paginator.entry.js +70 -0
- package/dist/dropi-ui/dropi-paginator.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-phone-input.entry.js +7 -4
- package/dist/dropi-ui/dropi-phone-input.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-radio-button.entry.js +5 -2
- package/dist/dropi-ui/dropi-radio-button.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-radio-selection-list.entry.js +6 -3
- package/dist/dropi-ui/dropi-radio-selection-list.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-read-more.entry.js +5 -2
- package/dist/dropi-ui/dropi-read-more.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-search.entry.js +6 -3
- package/dist/dropi-ui/dropi-search.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-select.entry.js +9 -2
- package/dist/dropi-ui/dropi-select.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-sidebar.entry.js +5 -2
- package/dist/dropi-ui/dropi-sidebar.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-simple-stepper.entry.js +5 -2
- package/dist/dropi-ui/dropi-simple-stepper.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-skeleton.entry.js +5 -2
- package/dist/dropi-ui/dropi-skeleton.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-steps.entry.js +5 -2
- package/dist/dropi-ui/dropi-steps.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-switch.entry.js +5 -2
- package/dist/dropi-ui/dropi-switch.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-table.entry.js +17 -7
- package/dist/dropi-ui/dropi-table.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-tabs.entry.js +5 -2
- package/dist/dropi-ui/dropi-tabs.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-tag-type-product.entry.js +5 -2
- package/dist/dropi-ui/dropi-tag-type-product.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-tag.entry.js +69 -0
- package/dist/dropi-ui/dropi-tag.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-text-area.entry.js +6 -3
- package/dist/dropi-ui/dropi-text-area.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-time-line.entry.js +5 -2
- package/dist/dropi-ui/dropi-time-line.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-toast.entry.js +9 -5
- package/dist/dropi-ui/dropi-toast.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-tooltip-v2.entry.js +6 -3
- package/dist/dropi-ui/dropi-tooltip-v2.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-tooltip.entry.js +5 -2
- package/dist/dropi-ui/dropi-tooltip.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-ui.css +311 -1
- package/dist/dropi-ui/dropi-ui.esm.js +50 -1
- package/dist/dropi-ui/dropi-ui.esm.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-vertical-steps.entry.js +5 -2
- package/dist/dropi-ui/dropi-vertical-steps.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-youtube-lazy-video.entry.js +5 -2
- package/dist/dropi-ui/dropi-youtube-lazy-video.entry.js.map +1 -0
- package/dist/dropi-ui/index-Cvp2LQOM.js +4585 -0
- package/dist/dropi-ui/index-Cvp2LQOM.js.map +1 -0
- package/dist/dropi-ui/index.esm.js +4 -0
- package/dist/dropi-ui/index.esm.js.map +1 -0
- 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 +45 -13
- package/scripts/setup.js +193 -8
- package/dist/cjs/dropi-accordion-item.cjs.entry.js +0 -54
- package/dist/cjs/dropi-accordion.cjs.entry.js +0 -19
- package/dist/cjs/dropi-alert-legacy.cjs.entry.js +0 -39
- package/dist/cjs/dropi-alert-modal.cjs.entry.js +0 -128
- package/dist/cjs/dropi-alert.cjs.entry.js +0 -64
- package/dist/cjs/dropi-avatars.cjs.entry.js +0 -31
- package/dist/cjs/dropi-badge-legacy.cjs.entry.js +0 -30
- package/dist/cjs/dropi-badge.cjs.entry.js +0 -37
- package/dist/cjs/dropi-banner-external.cjs.entry.js +0 -53
- package/dist/cjs/dropi-breadcrumb.cjs.entry.js +0 -48
- package/dist/cjs/dropi-button.cjs.entry.js +0 -87
- package/dist/cjs/dropi-card-checkbox.cjs.entry.js +0 -48
- package/dist/cjs/dropi-card-product.cjs.entry.js +0 -76
- package/dist/cjs/dropi-card-section.cjs.entry.js +0 -38
- package/dist/cjs/dropi-carousel.cjs.entry.js +0 -148
- package/dist/cjs/dropi-checkbox-selection-list.cjs.entry.js +0 -73
- package/dist/cjs/dropi-checkbox.cjs.entry.js +0 -36
- package/dist/cjs/dropi-chips.cjs.entry.js +0 -30
- package/dist/cjs/dropi-city-selector.cjs.entry.js +0 -96
- package/dist/cjs/dropi-color-picker.cjs.entry.js +0 -319
- package/dist/cjs/dropi-country-flags.cjs.entry.js +0 -37
- package/dist/cjs/dropi-country-selector.cjs.entry.js +0 -197
- package/dist/cjs/dropi-date-picker-range.cjs.entry.js +0 -115
- package/dist/cjs/dropi-date-picker.cjs.entry.js +0 -223
- package/dist/cjs/dropi-drawer.cjs.entry.js +0 -76
- package/dist/cjs/dropi-dropdown.cjs.entry.js +0 -65
- package/dist/cjs/dropi-empty-state.cjs.entry.js +0 -36
- package/dist/cjs/dropi-favorite-button.cjs.entry.js +0 -27
- package/dist/cjs/dropi-file-upload-progress-bar.cjs.entry.js +0 -75
- package/dist/cjs/dropi-file-upload.cjs.entry.js +0 -236
- package/dist/cjs/dropi-icon.cjs.entry.js +0 -50
- package/dist/cjs/dropi-ilustration-icon.cjs.entry.js +0 -39
- package/dist/cjs/dropi-image-miniature.cjs.entry.js +0 -44
- package/dist/cjs/dropi-image-overlay.cjs.entry.js +0 -62
- package/dist/cjs/dropi-input_3.cjs.entry.js +0 -390
- package/dist/cjs/dropi-languages-selector.cjs.entry.js +0 -57
- package/dist/cjs/dropi-logo.cjs.entry.js +0 -27
- package/dist/cjs/dropi-lottie-loader.cjs.entry.js +0 -27
- package/dist/cjs/dropi-media-player.cjs.entry.js +0 -189
- package/dist/cjs/dropi-modal.cjs.entry.js +0 -135
- package/dist/cjs/dropi-navbar.cjs.entry.js +0 -54
- package/dist/cjs/dropi-otp-send-code.cjs.entry.js +0 -92
- package/dist/cjs/dropi-phone-input.cjs.entry.js +0 -197
- package/dist/cjs/dropi-radio-button.cjs.entry.js +0 -47
- package/dist/cjs/dropi-radio-selection-list.cjs.entry.js +0 -60
- package/dist/cjs/dropi-read-more.cjs.entry.js +0 -40
- package/dist/cjs/dropi-search.cjs.entry.js +0 -124
- package/dist/cjs/dropi-select.cjs.entry.js +0 -378
- package/dist/cjs/dropi-sidebar.cjs.entry.js +0 -78
- package/dist/cjs/dropi-simple-stepper.cjs.entry.js +0 -53
- package/dist/cjs/dropi-skeleton.cjs.entry.js +0 -57
- package/dist/cjs/dropi-steps.cjs.entry.js +0 -52
- package/dist/cjs/dropi-switch.cjs.entry.js +0 -30
- package/dist/cjs/dropi-table.cjs.entry.js +0 -292
- package/dist/cjs/dropi-tabs.cjs.entry.js +0 -51
- package/dist/cjs/dropi-tag-type-product.cjs.entry.js +0 -19
- package/dist/cjs/dropi-text-area.cjs.entry.js +0 -134
- package/dist/cjs/dropi-time-line.cjs.entry.js +0 -34
- package/dist/cjs/dropi-toast.cjs.entry.js +0 -55
- package/dist/cjs/dropi-tooltip-v2.cjs.entry.js +0 -131
- package/dist/cjs/dropi-tooltip.cjs.entry.js +0 -21
- package/dist/cjs/dropi-ui.cjs.js +0 -24
- package/dist/cjs/dropi-vertical-steps.cjs.entry.js +0 -55
- package/dist/cjs/dropi-youtube-lazy-video.cjs.entry.js +0 -33
- package/dist/cjs/index-077kM98l.js +0 -1746
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -12
- package/dist/collection/assets/icons/symbol/svg/sprite.css.svg +0 -1
- package/dist/collection/collection-manifest.json +0 -77
- package/dist/collection/components/dropi-accordion/dropi-accordion-item.css +0 -45
- package/dist/collection/components/dropi-accordion/dropi-accordion-item.js +0 -172
- package/dist/collection/components/dropi-accordion/dropi-accordion.css +0 -21
- package/dist/collection/components/dropi-accordion/dropi-accordion.js +0 -48
- package/dist/collection/components/dropi-alert/dropi-alert.css +0 -134
- package/dist/collection/components/dropi-alert/dropi-alert.js +0 -371
- package/dist/collection/components/dropi-alert-legacy/dropi-alert-legacy.css +0 -31
- package/dist/collection/components/dropi-alert-legacy/dropi-alert-legacy.js +0 -128
- package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.css +0 -96
- package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.js +0 -526
- package/dist/collection/components/dropi-avatars/dropi-avatars.css +0 -55
- package/dist/collection/components/dropi-avatars/dropi-avatars.js +0 -126
- package/dist/collection/components/dropi-badge/dropi-badge.css +0 -41
- package/dist/collection/components/dropi-badge/dropi-badge.js +0 -71
- package/dist/collection/components/dropi-badge-legacy/dropi-badge-legacy.css +0 -17
- package/dist/collection/components/dropi-badge-legacy/dropi-badge-legacy.js +0 -119
- package/dist/collection/components/dropi-banner-external/dropi-banner-external.css +0 -56
- package/dist/collection/components/dropi-banner-external/dropi-banner-external.js +0 -243
- package/dist/collection/components/dropi-breadcrumb/dropi-breadcrumb.css +0 -69
- package/dist/collection/components/dropi-breadcrumb/dropi-breadcrumb.js +0 -171
- package/dist/collection/components/dropi-button/dropi-button.css +0 -177
- package/dist/collection/components/dropi-button/dropi-button.js +0 -323
- package/dist/collection/components/dropi-card-checkbox/dropi-card-checkbox.css +0 -92
- package/dist/collection/components/dropi-card-checkbox/dropi-card-checkbox.js +0 -222
- package/dist/collection/components/dropi-card-product/dropi-card-product.css +0 -235
- package/dist/collection/components/dropi-card-product/dropi-card-product.js +0 -384
- package/dist/collection/components/dropi-card-section/dropi-card-section.css +0 -42
- package/dist/collection/components/dropi-card-section/dropi-card-section.js +0 -178
- package/dist/collection/components/dropi-carousel/dropi-carousel.css +0 -148
- package/dist/collection/components/dropi-carousel/dropi-carousel.js +0 -374
- package/dist/collection/components/dropi-checkbox/dropi-checkbox.css +0 -47
- package/dist/collection/components/dropi-checkbox/dropi-checkbox.js +0 -103
- package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.css +0 -44
- package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.js +0 -267
- package/dist/collection/components/dropi-chips/dropi-chips.css +0 -68
- package/dist/collection/components/dropi-chips/dropi-chips.js +0 -169
- package/dist/collection/components/dropi-city-selector/dropi-city-selector.css +0 -218
- package/dist/collection/components/dropi-city-selector/dropi-city-selector.js +0 -234
- package/dist/collection/components/dropi-color-picker/dropi-color-picker.css +0 -210
- package/dist/collection/components/dropi-color-picker/dropi-color-picker.js +0 -393
- package/dist/collection/components/dropi-country-flags/dropi-country-flags.css +0 -30
- package/dist/collection/components/dropi-country-flags/dropi-country-flags.js +0 -129
- package/dist/collection/components/dropi-country-selector/dropi-country-selector.css +0 -211
- package/dist/collection/components/dropi-country-selector/dropi-country-selector.js +0 -429
- package/dist/collection/components/dropi-date-picker/dropi-date-picker.css +0 -215
- package/dist/collection/components/dropi-date-picker/dropi-date-picker.js +0 -516
- package/dist/collection/components/dropi-date-picker-range/dropi-date-picker-range.css +0 -143
- package/dist/collection/components/dropi-date-picker-range/dropi-date-picker-range.js +0 -327
- package/dist/collection/components/dropi-drawer/dropi-drawer.css +0 -129
- package/dist/collection/components/dropi-drawer/dropi-drawer.js +0 -284
- package/dist/collection/components/dropi-dropdown/dropi-dropdown.css +0 -51
- package/dist/collection/components/dropi-dropdown/dropi-dropdown.js +0 -209
- package/dist/collection/components/dropi-empty-state/dropi-empty-state.css +0 -59
- package/dist/collection/components/dropi-empty-state/dropi-empty-state.js +0 -222
- package/dist/collection/components/dropi-favorite-button/dropi-favorite-button.css +0 -24
- package/dist/collection/components/dropi-favorite-button/dropi-favorite-button.js +0 -78
- package/dist/collection/components/dropi-file-upload/dropi-file-upload.css +0 -464
- package/dist/collection/components/dropi-file-upload/dropi-file-upload.js +0 -516
- package/dist/collection/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.css +0 -115
- package/dist/collection/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.js +0 -256
- package/dist/collection/components/dropi-icon/dropi-icon.css +0 -21
- package/dist/collection/components/dropi-icon/dropi-icon.js +0 -142
- package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.css +0 -91
- package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.js +0 -150
- package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.css +0 -45
- package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.js +0 -150
- package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.css +0 -127
- package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.js +0 -155
- package/dist/collection/components/dropi-input/dropi-input.css +0 -185
- package/dist/collection/components/dropi-input/dropi-input.js +0 -806
- package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.css +0 -79
- package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.js +0 -154
- package/dist/collection/components/dropi-logo/dropi-logo.css +0 -26
- package/dist/collection/components/dropi-logo/dropi-logo.js +0 -96
- package/dist/collection/components/dropi-lottie-loader/dropi-lottie-loader.css +0 -56
- package/dist/collection/components/dropi-lottie-loader/dropi-lottie-loader.js +0 -116
- package/dist/collection/components/dropi-media-player/dropi-media-player.css +0 -320
- package/dist/collection/components/dropi-media-player/dropi-media-player.js +0 -391
- package/dist/collection/components/dropi-modal/dropi-modal.css +0 -140
- package/dist/collection/components/dropi-modal/dropi-modal.js +0 -688
- package/dist/collection/components/dropi-navbar/dropi-navbar.css +0 -166
- package/dist/collection/components/dropi-navbar/dropi-navbar.js +0 -302
- package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.css +0 -67
- package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.js +0 -221
- package/dist/collection/components/dropi-paginator/dropi-paginator.css +0 -103
- package/dist/collection/components/dropi-paginator/dropi-paginator.js +0 -215
- package/dist/collection/components/dropi-phone-input/dropi-phone-input.css +0 -209
- package/dist/collection/components/dropi-phone-input/dropi-phone-input.js +0 -442
- package/dist/collection/components/dropi-radio-button/dropi-radio-button.css +0 -62
- package/dist/collection/components/dropi-radio-button/dropi-radio-button.js +0 -174
- package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.css +0 -64
- package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.js +0 -259
- package/dist/collection/components/dropi-read-more/dropi-read-more.css +0 -25
- package/dist/collection/components/dropi-read-more/dropi-read-more.js +0 -154
- package/dist/collection/components/dropi-search/dropi-search.css +0 -112
- package/dist/collection/components/dropi-search/dropi-search.js +0 -526
- package/dist/collection/components/dropi-select/dropi-select.css +0 -366
- package/dist/collection/components/dropi-select/dropi-select.js +0 -1014
- package/dist/collection/components/dropi-select/select.types.js +0 -1
- package/dist/collection/components/dropi-sidebar/dropi-sidebar.css +0 -76
- package/dist/collection/components/dropi-sidebar/dropi-sidebar.js +0 -143
- package/dist/collection/components/dropi-simple-stepper/dropi-simple-stepper.css +0 -94
- package/dist/collection/components/dropi-simple-stepper/dropi-simple-stepper.js +0 -194
- package/dist/collection/components/dropi-skeleton/dropi-skeleton.css +0 -27
- package/dist/collection/components/dropi-skeleton/dropi-skeleton.js +0 -192
- package/dist/collection/components/dropi-steps/dropi-steps.css +0 -95
- package/dist/collection/components/dropi-steps/dropi-steps.js +0 -173
- package/dist/collection/components/dropi-switch/dropi-switch.css +0 -57
- package/dist/collection/components/dropi-switch/dropi-switch.js +0 -96
- package/dist/collection/components/dropi-table/dropi-table.css +0 -540
- package/dist/collection/components/dropi-table/dropi-table.js +0 -966
- package/dist/collection/components/dropi-tabs/dropi-tabs.css +0 -47
- package/dist/collection/components/dropi-tabs/dropi-tabs.js +0 -181
- package/dist/collection/components/dropi-tag/dropi-tag.css +0 -39
- package/dist/collection/components/dropi-tag/dropi-tag.js +0 -190
- package/dist/collection/components/dropi-tag-type-product/dropi-tag-type-product.css +0 -14
- package/dist/collection/components/dropi-tag-type-product/dropi-tag-type-product.js +0 -48
- package/dist/collection/components/dropi-text-area/dropi-text-area.css +0 -100
- package/dist/collection/components/dropi-text-area/dropi-text-area.js +0 -512
- package/dist/collection/components/dropi-time-line/dropi-time-line.css +0 -108
- package/dist/collection/components/dropi-time-line/dropi-time-line.js +0 -69
- package/dist/collection/components/dropi-toast/dropi-toast.css +0 -63
- package/dist/collection/components/dropi-toast/dropi-toast.js +0 -164
- package/dist/collection/components/dropi-tooltip/dropi-tooltip.css +0 -32
- package/dist/collection/components/dropi-tooltip/dropi-tooltip.js +0 -70
- package/dist/collection/components/dropi-tooltip-v2/dropi-tooltip.css +0 -67
- package/dist/collection/components/dropi-tooltip-v2/dropi-tooltip.js +0 -468
- package/dist/collection/components/dropi-vertical-steps/dropi-vertical-steps.css +0 -95
- package/dist/collection/components/dropi-vertical-steps/dropi-vertical-steps.js +0 -167
- package/dist/collection/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.css +0 -73
- package/dist/collection/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.js +0 -110
- package/dist/collection/index.js +0 -1
- package/dist/collection/utils/utils.js +0 -3
- package/dist/collection/utils/utils.unit.test.js +0 -16
- package/dist/components/dropi-accordion-item.js +0 -1
- package/dist/components/dropi-accordion.js +0 -1
- package/dist/components/dropi-alert-legacy.js +0 -1
- package/dist/components/dropi-alert-modal.js +0 -1
- package/dist/components/dropi-alert.js +0 -1
- package/dist/components/dropi-avatars.js +0 -1
- package/dist/components/dropi-badge-legacy.js +0 -1
- package/dist/components/dropi-badge.js +0 -1
- package/dist/components/dropi-banner-external.js +0 -1
- package/dist/components/dropi-breadcrumb.js +0 -1
- package/dist/components/dropi-button.js +0 -1
- package/dist/components/dropi-card-checkbox.js +0 -1
- package/dist/components/dropi-card-product.js +0 -1
- package/dist/components/dropi-card-section.js +0 -1
- package/dist/components/dropi-carousel.js +0 -1
- package/dist/components/dropi-checkbox-selection-list.js +0 -1
- package/dist/components/dropi-checkbox.js +0 -1
- package/dist/components/dropi-chips.js +0 -1
- package/dist/components/dropi-city-selector.js +0 -1
- package/dist/components/dropi-color-picker.js +0 -1
- package/dist/components/dropi-country-flags.js +0 -1
- package/dist/components/dropi-country-selector.js +0 -1
- package/dist/components/dropi-date-picker-range.js +0 -1
- package/dist/components/dropi-date-picker.js +0 -1
- package/dist/components/dropi-drawer.js +0 -1
- package/dist/components/dropi-dropdown.js +0 -1
- package/dist/components/dropi-empty-state.js +0 -1
- package/dist/components/dropi-favorite-button.js +0 -1
- package/dist/components/dropi-file-upload-progress-bar.js +0 -1
- package/dist/components/dropi-file-upload.js +0 -1
- package/dist/components/dropi-icon.js +0 -1
- package/dist/components/dropi-ilustration-icon.js +0 -1
- package/dist/components/dropi-image-miniature.js +0 -1
- package/dist/components/dropi-image-overlay.js +0 -1
- package/dist/components/dropi-input.js +0 -1
- package/dist/components/dropi-languages-selector.js +0 -1
- package/dist/components/dropi-logo.js +0 -1
- package/dist/components/dropi-lottie-loader.js +0 -1
- package/dist/components/dropi-media-player.js +0 -1
- package/dist/components/dropi-modal.js +0 -1
- package/dist/components/dropi-navbar.js +0 -1
- package/dist/components/dropi-otp-send-code.js +0 -1
- package/dist/components/dropi-paginator.js +0 -1
- package/dist/components/dropi-phone-input.js +0 -1
- package/dist/components/dropi-radio-button.js +0 -1
- package/dist/components/dropi-radio-selection-list.js +0 -1
- package/dist/components/dropi-read-more.js +0 -1
- package/dist/components/dropi-search.js +0 -1
- package/dist/components/dropi-select.js +0 -1
- package/dist/components/dropi-sidebar.js +0 -1
- package/dist/components/dropi-simple-stepper.js +0 -1
- package/dist/components/dropi-skeleton.js +0 -1
- package/dist/components/dropi-steps.js +0 -1
- package/dist/components/dropi-switch.js +0 -1
- package/dist/components/dropi-table.js +0 -1
- package/dist/components/dropi-tabs.js +0 -1
- package/dist/components/dropi-tag-type-product.js +0 -1
- package/dist/components/dropi-tag.js +0 -1
- package/dist/components/dropi-text-area.js +0 -1
- package/dist/components/dropi-time-line.js +0 -1
- package/dist/components/dropi-toast.js +0 -1
- package/dist/components/dropi-tooltip-v2.js +0 -1
- package/dist/components/dropi-tooltip.js +0 -1
- package/dist/components/dropi-vertical-steps.js +0 -1
- package/dist/components/dropi-youtube-lazy-video.js +0 -1
- package/dist/components/index.js +0 -1
- 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-CDvkvedb.js +0 -1
- package/dist/components/p-CnALA9z_.js +0 -1
- package/dist/components/p-CtzCJQVR.js +0 -1
- package/dist/components/p-CzHupXu8.js +0 -1
- package/dist/components/p-DWzWYR5X.js +0 -1
- package/dist/components/p-D_Y7tuEH.js +0 -1
- package/dist/components/p-DjO9xpVc.js +0 -1
- package/dist/dropi-ui/p-0966c363.entry.js +0 -1
- package/dist/dropi-ui/p-0c541a53.entry.js +0 -1
- package/dist/dropi-ui/p-0cd1fb7a.entry.js +0 -1
- package/dist/dropi-ui/p-0f161461.entry.js +0 -1
- package/dist/dropi-ui/p-10e363a2.entry.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-2e4efb72.entry.js +0 -1
- package/dist/dropi-ui/p-36cdd4fc.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-3cbe953f.entry.js +0 -1
- package/dist/dropi-ui/p-40b69ccd.entry.js +0 -1
- package/dist/dropi-ui/p-443ed5bd.entry.js +0 -1
- package/dist/dropi-ui/p-475a16f2.entry.js +0 -1
- package/dist/dropi-ui/p-4967b619.entry.js +0 -1
- package/dist/dropi-ui/p-4de83790.entry.js +0 -1
- package/dist/dropi-ui/p-59188dd5.entry.js +0 -1
- package/dist/dropi-ui/p-6178190b.entry.js +0 -1
- package/dist/dropi-ui/p-623759eb.entry.js +0 -1
- package/dist/dropi-ui/p-645da978.entry.js +0 -1
- package/dist/dropi-ui/p-6e727fb0.entry.js +0 -1
- package/dist/dropi-ui/p-7036c073.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-7c0bc6dd.entry.js +0 -1
- package/dist/dropi-ui/p-7f8d3642.entry.js +0 -1
- package/dist/dropi-ui/p-7fc02d98.entry.js +0 -1
- package/dist/dropi-ui/p-8188cca4.entry.js +0 -1
- package/dist/dropi-ui/p-858bedcf.entry.js +0 -1
- package/dist/dropi-ui/p-87e9ba6d.entry.js +0 -1
- package/dist/dropi-ui/p-8b4d4d2d.entry.js +0 -1
- package/dist/dropi-ui/p-9062f0de.entry.js +0 -1
- package/dist/dropi-ui/p-925852b1.entry.js +0 -1
- package/dist/dropi-ui/p-99943b7d.entry.js +0 -1
- package/dist/dropi-ui/p-TXz_09YZ.js +0 -2
- package/dist/dropi-ui/p-a1f2383d.entry.js +0 -1
- package/dist/dropi-ui/p-a6939701.entry.js +0 -1
- package/dist/dropi-ui/p-aa8d2aec.entry.js +0 -1
- 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-acfa17ef.entry.js +0 -1
- package/dist/dropi-ui/p-af3691a0.entry.js +0 -1
- package/dist/dropi-ui/p-b207fc92.entry.js +0 -1
- package/dist/dropi-ui/p-ba3ad28e.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-c7e3a5e0.entry.js +0 -1
- package/dist/dropi-ui/p-cfc19ca0.entry.js +0 -1
- package/dist/dropi-ui/p-d36a0c37.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-e6943d7c.entry.js +0 -1
- package/dist/dropi-ui/p-e7b59811.entry.js +0 -1
- package/dist/dropi-ui/p-eac7777f.entry.js +0 -1
- package/dist/dropi-ui/p-ed94b5fe.entry.js +0 -1
- package/dist/dropi-ui/p-f0ddf569.entry.js +0 -1
- package/dist/dropi-ui/p-f95c11f8.entry.js +0 -1
- package/dist/esm/dropi-icon.entry.js +0 -48
- package/dist/esm/dropi-ui.js +0 -20
- package/dist/esm/index-TXz_09YZ.js +0 -1737
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -10
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
|
@@ -1,390 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-077kM98l.js');
|
|
4
|
-
|
|
5
|
-
const dropiInputCss = () => `:host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}.fixed-label-container{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:8px}.input-label{color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-xs, 10px);font-weight:var(--font-weight-regular, 400);text-align:left}.asterisk{color:var(--Error-Error-500, #f46a6b)}.form-group{position:relative;width:100%}.input-container{position:relative}.icon-input{position:absolute;top:10px;left:5px;z-index:1}.icon-input-password{position:absolute;top:10px;right:13px;cursor:pointer;z-index:1}.form-control{box-sizing:border-box;width:100%;padding:var(--Size-2, 8px);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #ffffff);font-size:var(--font-size-s, 12px);font-family:inherit;color:var(--Gray-Gray-700, #32394d);transition:border-color 0.3s ease-in-out;height:40px;outline:none;appearance:none;text-align:left}.form-control::placeholder{color:transparent;transition:color 0.2s ease-in-out}.form-control:focus::placeholder,.fixed-label-input::placeholder{color:var(--Gray-Gray-400, #858ea6)}.form-control:focus{border-color:var(--Info-Info-500, #50a5f1)}.form-control-valid{border-color:var(--Gray-Gray-400, #858ea6) !important;color:var(--Gray-Gray-600, #475066)}.form-control-invalid{border-color:var(--Error-Error-500, #f46a6b) !important;color:var(--Gray-Gray-600, #475066)}.form-control:disabled{border-color:var(--Gray-Gray-200, #c3c9d9) !important;color:var(--Gray-Gray-400, #858ea6);background-color:var(--Gray-Gray-50, #f7f8fa);cursor:not-allowed}.padding-icon{padding-left:28px}.input-container--has-icon label.label-bottom{left:28px}.input-container--has-icon .form-control:focus+label.label-bottom,.input-container--has-icon .form-control:not(:placeholder-shown)+label.label-bottom{left:0}.text-password{-webkit-text-security:disc;text-security:disc}label.label-bottom{position:absolute;font-weight:var(--font-weight-regular, 400);top:10px;font-size:var(--font-size-s, 12px);color:var(--Gray-Gray-500, #69738c);left:10px;transition:all 0.2s ease-in-out;pointer-events:none;overflow:hidden;width:90%;white-space:nowrap}.form-control:focus+label.label-bottom,.form-control:not(:placeholder-shown)+label.label-bottom{top:-22px;left:0;font-size:var(--font-size-xs, 10px);color:var(--Gray-Gray-600, #475066);width:unset}.form-control:disabled+label.label-bottom{color:var(--Gray-Gray-400, #858ea6)}.form-control-helper{display:flex;position:absolute;top:100%;left:0;gap:4px;align-items:center;margin-top:4px}.form-control-helper span{display:block;color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-xs, 10px)}.invalid-color{color:var(--Error-Error-500, #f46a6b) !important}.disabled-helper{color:var(--Gray-Gray-400, #858ea6) !important}.disabled-helper{color:var(--Gray-Gray-400, #858ea6) !important}`;
|
|
6
|
-
|
|
7
|
-
const DropiInput = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
index.registerInstance(this, hostRef);
|
|
10
|
-
this.onInput = index.createEvent(this, "onInput", 7);
|
|
11
|
-
this.onChange = index.createEvent(this, "onChange", 7);
|
|
12
|
-
this.onFocus = index.createEvent(this, "onFocus", 7);
|
|
13
|
-
this.onBlur = index.createEvent(this, "onBlur", 7);
|
|
14
|
-
if (hostRef.$hostElement$["s-ei"]) {
|
|
15
|
-
this.internals = hostRef.$hostElement$["s-ei"];
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
this.internals = hostRef.$hostElement$.attachInternals();
|
|
19
|
-
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
internals;
|
|
23
|
-
// ── Identification ──────────────────────────────────────────
|
|
24
|
-
/** Input id. Defaults to label label. */
|
|
25
|
-
id = '';
|
|
26
|
-
/** Name attribute for native form submission */
|
|
27
|
-
name = '';
|
|
28
|
-
// ── Content ─────────────────────────────────────────────────
|
|
29
|
-
/** Floating or fixed label text */
|
|
30
|
-
label = '';
|
|
31
|
-
/** Placeholder text (visible in fixedLabel mode or on focus) */
|
|
32
|
-
placeholder = ' ';
|
|
33
|
-
/** Current value (controlled) */
|
|
34
|
-
value = '';
|
|
35
|
-
/** Max character length */
|
|
36
|
-
maxLength;
|
|
37
|
-
// ── Behavior ────────────────────────────────────────────────
|
|
38
|
-
/** Disable the input */
|
|
39
|
-
disabled = false;
|
|
40
|
-
/** Mark as required (shows asterisk when showObligatoryAsterisk is true) */
|
|
41
|
-
required = false;
|
|
42
|
-
/** Show the required asterisk on the label */
|
|
43
|
-
showObligatoryAsterisk = true;
|
|
44
|
-
/** Show label above the input (fixed), instead of floating inside */
|
|
45
|
-
fixedLabel = false;
|
|
46
|
-
/** Keyboard input mode hint */
|
|
47
|
-
inputMode = 'text';
|
|
48
|
-
// ── Input type modifiers ────────────────────────────────────
|
|
49
|
-
/** Show password visibility toggle (renders as password field) */
|
|
50
|
-
isPasswordInput = false;
|
|
51
|
-
/** Apply thousand separator formatting (e.g. 1,000,000) */
|
|
52
|
-
isMoneyInput = false;
|
|
53
|
-
/** Apply thousand separator without currency symbol */
|
|
54
|
-
isThousandSeparator = false;
|
|
55
|
-
/** Only allow numeric characters */
|
|
56
|
-
isNumericInput = false;
|
|
57
|
-
/** Allow decimal point when isNumericInput is true */
|
|
58
|
-
allowDecimals = false;
|
|
59
|
-
/** Only allow letter characters */
|
|
60
|
-
isLettersOnly = false;
|
|
61
|
-
// ── Icon ────────────────────────────────────────────────────
|
|
62
|
-
/** Icon name shown inside the input (only visible when value is not empty) */
|
|
63
|
-
icon = '';
|
|
64
|
-
/** Color token for the icon */
|
|
65
|
-
iconColor = 'Gray-Gray-400';
|
|
66
|
-
// ── Validation ──────────────────────────────────────────────
|
|
67
|
-
/** Mark the field as invalid (consumer-controlled) */
|
|
68
|
-
hasError = false;
|
|
69
|
-
/** Helper / error text shown below the field */
|
|
70
|
-
textHelper = '';
|
|
71
|
-
/** Only show textHelper when the field is invalid */
|
|
72
|
-
showHelperOnlyOnError = false;
|
|
73
|
-
// ── Angular-parity ──────────────────────────────────────────
|
|
74
|
-
/**
|
|
75
|
-
* Convenience object prop — matches Angular `inputProperties: InputProperties`.
|
|
76
|
-
* Fields: id, label, placeholder, maxLength, textHelper, isPasswordInput,
|
|
77
|
-
* icon, iconColor, isMoneyInput, showObligatoryAsterisk, isNumericInput,
|
|
78
|
-
* allowDecimals, isThousandSeparator, showHelperOnlyOnError,
|
|
79
|
-
* isLettersOnly, inputMode.
|
|
80
|
-
* Note: `formControl` is not supported; use `value` + onInput event instead.
|
|
81
|
-
*/
|
|
82
|
-
inputProperties = null;
|
|
83
|
-
// ── Internal state ──────────────────────────────────────────
|
|
84
|
-
showPassword = false;
|
|
85
|
-
touched = false;
|
|
86
|
-
// ── Events ──────────────────────────────────────────────────
|
|
87
|
-
/** Emitted on every keystroke with the current value */
|
|
88
|
-
onInput;
|
|
89
|
-
/** Emitted on blur with the final value */
|
|
90
|
-
onChange;
|
|
91
|
-
/** Emitted on focus */
|
|
92
|
-
onFocus;
|
|
93
|
-
/** Emitted on blur */
|
|
94
|
-
onBlur;
|
|
95
|
-
inputPropertiesChanged(val) {
|
|
96
|
-
if (!val)
|
|
97
|
-
return;
|
|
98
|
-
if (val.id !== undefined)
|
|
99
|
-
this.id = val.id;
|
|
100
|
-
if (val.label !== undefined)
|
|
101
|
-
this.label = val.label;
|
|
102
|
-
if (val.placeholder !== undefined)
|
|
103
|
-
this.placeholder = val.placeholder;
|
|
104
|
-
if (val.maxLength !== undefined)
|
|
105
|
-
this.maxLength = val.maxLength;
|
|
106
|
-
if (val.textHelper !== undefined)
|
|
107
|
-
this.textHelper = val.textHelper;
|
|
108
|
-
if (val.isPasswordInput !== undefined)
|
|
109
|
-
this.isPasswordInput = val.isPasswordInput;
|
|
110
|
-
if (val.icon !== undefined)
|
|
111
|
-
this.icon = val.icon;
|
|
112
|
-
if (val.iconColor !== undefined)
|
|
113
|
-
this.iconColor = val.iconColor;
|
|
114
|
-
if (val.isMoneyInput !== undefined)
|
|
115
|
-
this.isMoneyInput = val.isMoneyInput;
|
|
116
|
-
if (val.showObligatoryAsterisk !== undefined)
|
|
117
|
-
this.showObligatoryAsterisk = val.showObligatoryAsterisk;
|
|
118
|
-
if (val.isNumericInput !== undefined)
|
|
119
|
-
this.isNumericInput = val.isNumericInput;
|
|
120
|
-
if (val.allowDecimals !== undefined)
|
|
121
|
-
this.allowDecimals = val.allowDecimals;
|
|
122
|
-
if (val.isThousandSeparator !== undefined)
|
|
123
|
-
this.isThousandSeparator = val.isThousandSeparator;
|
|
124
|
-
if (val.showHelperOnlyOnError !== undefined)
|
|
125
|
-
this.showHelperOnlyOnError = val.showHelperOnlyOnError;
|
|
126
|
-
if (val.isLettersOnly !== undefined)
|
|
127
|
-
this.isLettersOnly = val.isLettersOnly;
|
|
128
|
-
if (val.inputMode !== undefined)
|
|
129
|
-
this.inputMode = val.inputMode;
|
|
130
|
-
}
|
|
131
|
-
valueChanged(val) {
|
|
132
|
-
this.internals.setFormValue(val);
|
|
133
|
-
}
|
|
134
|
-
disabledChanged(val) {
|
|
135
|
-
this.internals.setValidity(val ? { customError: true } : {}, val ? 'Field is disabled' : '');
|
|
136
|
-
}
|
|
137
|
-
componentWillLoad() {
|
|
138
|
-
this.internals.setFormValue(this.value ?? '');
|
|
139
|
-
if (this.inputProperties)
|
|
140
|
-
this.inputPropertiesChanged(this.inputProperties);
|
|
141
|
-
}
|
|
142
|
-
// ── Handlers ────────────────────────────────────────────────
|
|
143
|
-
handleInput(e) {
|
|
144
|
-
let val = e.target.value;
|
|
145
|
-
if (this.isNumericInput)
|
|
146
|
-
val = this.filterNumbers(val);
|
|
147
|
-
if (this.isLettersOnly)
|
|
148
|
-
val = this.filterLetters(val);
|
|
149
|
-
if (this.isMoneyInput || this.isThousandSeparator)
|
|
150
|
-
val = this.formatThousands(val, this.isMoneyInput);
|
|
151
|
-
this.value = val;
|
|
152
|
-
this.internals.setFormValue(val);
|
|
153
|
-
this.onInput.emit(val);
|
|
154
|
-
}
|
|
155
|
-
handleKeyDown(e) {
|
|
156
|
-
if ((this.isNumericInput || this.isMoneyInput || this.isThousandSeparator) && !this.isAllowedNumberKey(e)) {
|
|
157
|
-
e.preventDefault();
|
|
158
|
-
}
|
|
159
|
-
if (this.isLettersOnly && !this.isAllowedLetterKey(e)) {
|
|
160
|
-
e.preventDefault();
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
handleFocus() {
|
|
164
|
-
this.onFocus.emit();
|
|
165
|
-
}
|
|
166
|
-
handleBlur() {
|
|
167
|
-
this.touched = true;
|
|
168
|
-
this.onChange.emit(this.value);
|
|
169
|
-
this.onBlur.emit();
|
|
170
|
-
}
|
|
171
|
-
togglePassword() {
|
|
172
|
-
if (this.disabled)
|
|
173
|
-
return;
|
|
174
|
-
this.showPassword = !this.showPassword;
|
|
175
|
-
}
|
|
176
|
-
// ── Helpers ─────────────────────────────────────────────────
|
|
177
|
-
filterNumbers(val) {
|
|
178
|
-
const pattern = this.allowDecimals ? /[^0-9.]/g : /[^0-9]/g;
|
|
179
|
-
return val.replace(pattern, '');
|
|
180
|
-
}
|
|
181
|
-
filterLetters(val) {
|
|
182
|
-
return val.replace(/[^a-zA-ZáéíóúÁÉÍÓÚñÑüÜ\s]/g, '');
|
|
183
|
-
}
|
|
184
|
-
isAllowedNumberKey(e) {
|
|
185
|
-
const allowed = ['Backspace', 'Delete', 'ArrowLeft', 'ArrowRight', 'Tab', 'Enter', 'Home', 'End'];
|
|
186
|
-
if (allowed.includes(e.key))
|
|
187
|
-
return true;
|
|
188
|
-
if (e.ctrlKey || e.metaKey)
|
|
189
|
-
return true; // copy/paste/select-all
|
|
190
|
-
if (/^[0-9]$/.test(e.key))
|
|
191
|
-
return true;
|
|
192
|
-
if (this.allowDecimals && e.key === '.')
|
|
193
|
-
return true;
|
|
194
|
-
return false;
|
|
195
|
-
}
|
|
196
|
-
isAllowedLetterKey(e) {
|
|
197
|
-
const allowed = ['Backspace', 'Delete', 'ArrowLeft', 'ArrowRight', 'Tab', 'Enter', 'Home', 'End', ' '];
|
|
198
|
-
if (allowed.includes(e.key))
|
|
199
|
-
return true;
|
|
200
|
-
if (e.ctrlKey || e.metaKey)
|
|
201
|
-
return true;
|
|
202
|
-
return /^[a-zA-ZáéíóúÁÉÍÓÚñÑüÜ]$/.test(e.key);
|
|
203
|
-
}
|
|
204
|
-
formatThousands(val, withCurrency) {
|
|
205
|
-
const raw = val.replace(/[^0-9.]/g, '');
|
|
206
|
-
const [integer, decimal] = raw.split('.');
|
|
207
|
-
const formatted = integer.replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
208
|
-
const result = decimal !== undefined ? `${formatted}.${decimal}` : formatted;
|
|
209
|
-
return withCurrency ? `$${result}` : result;
|
|
210
|
-
}
|
|
211
|
-
// ── Computed ─────────────────────────────────────────────────
|
|
212
|
-
get resolvedId() {
|
|
213
|
-
return this.id || this.label;
|
|
214
|
-
}
|
|
215
|
-
get inputType() {
|
|
216
|
-
if (this.isPasswordInput)
|
|
217
|
-
return this.showPassword ? 'text' : 'password';
|
|
218
|
-
return 'text';
|
|
219
|
-
}
|
|
220
|
-
get showHelper() {
|
|
221
|
-
if (!this.textHelper)
|
|
222
|
-
return false;
|
|
223
|
-
if (this.showHelperOnlyOnError)
|
|
224
|
-
return this.hasError && this.touched;
|
|
225
|
-
return true;
|
|
226
|
-
}
|
|
227
|
-
get isInvalid() {
|
|
228
|
-
return this.hasError && this.touched;
|
|
229
|
-
}
|
|
230
|
-
// ── Render ───────────────────────────────────────────────────
|
|
231
|
-
render() {
|
|
232
|
-
const showObligatoryAsterisk = this.required && this.showObligatoryAsterisk && !this.disabled;
|
|
233
|
-
const showIconInline = !!this.icon;
|
|
234
|
-
return (index.h("div", { key: '2156d42c9c108aabf2089c0c786c1fb520457c05', class: { 'fixed-label-container': this.fixedLabel } }, this.fixedLabel && (index.h("div", { key: '6ccd102fe2873bb2c338a0e5e63b3622a2be1812', class: "input-label Body-S-Regular" }, this.label, showObligatoryAsterisk && index.h("span", { key: 'd7057cd87b711e9b158ac847b5e85cb5058736a8', class: "asterisk" }, " *"))), index.h("div", { key: 'b91973d056acf1c25bd220868a12d9d3afdba86f', class: "form-group" }, index.h("div", { key: '5cb70a37814949372eeab77746bf609a6500cf0b', class: { 'input-container': true, 'input-container--has-icon': showIconInline } }, showIconInline && (index.h("dropi-icon", { key: '2bad8e8a23875531285d0321f4c629671b13dd84', class: "icon-input", name: this.icon, color: this.iconColor, width: "20px", height: "20px" })), this.isPasswordInput && (index.h("dropi-icon", { key: 'e330216b12fdf771e891a207f60ffea359d81702', class: "icon-input-password", name: this.showPassword ? 'Eye' : 'Eye-crossed', width: "20px", height: "20px", color: "Gray-Gray-500", onClick: () => this.togglePassword() })), index.h("input", { key: '17a548015deebd47d2f3e5751edbc596161fa836', id: this.resolvedId, class: {
|
|
235
|
-
'form-control': true,
|
|
236
|
-
'form-control-valid': !this.isInvalid && this.touched && !!this.value,
|
|
237
|
-
'form-control-invalid': this.isInvalid,
|
|
238
|
-
'padding-icon': showIconInline,
|
|
239
|
-
'text-password': this.isPasswordInput && !this.showPassword,
|
|
240
|
-
'fixed-label-input': this.fixedLabel,
|
|
241
|
-
}, type: this.inputType, value: this.value, placeholder: this.fixedLabel ? this.placeholder : ' ', disabled: this.disabled, required: this.required, maxLength: this.maxLength, inputMode: this.inputMode, "data-cy": undefined, onInput: (e) => this.handleInput(e), onKeyDown: (e) => this.handleKeyDown(e), onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur() }), !this.fixedLabel && (index.h("label", { key: '8dcc33eecd0b36188977c0f9139044f7d343c1c9', class: "Body-S-Regular label-bottom", htmlFor: this.resolvedId }, this.label, showObligatoryAsterisk && index.h("span", { key: '8944ef639c328e0745b820b83fcf5c4772cae226', class: "asterisk" }, " *"))), this.showHelper && (index.h("div", { key: '7087f38a3bf05fa0514a4edbd8c6e1c6ae7ffcc6', class: "form-control-helper" }, this.isInvalid && (index.h("dropi-icon", { key: '2c91fc6773478a592aa4940c7251f15d3026d07c', name: "Warning-circle", width: "12px", height: "12px", color: "Error-Error-500" })), index.h("span", { key: '6ec4185eac0b8ea1fdfd810e366cec4616880eed', class: {
|
|
242
|
-
'disabled-helper': this.disabled,
|
|
243
|
-
'invalid-color': this.isInvalid,
|
|
244
|
-
} }, this.textHelper)))))));
|
|
245
|
-
}
|
|
246
|
-
static get formAssociated() { return true; }
|
|
247
|
-
static get watchers() { return {
|
|
248
|
-
"inputProperties": [{
|
|
249
|
-
"inputPropertiesChanged": 0
|
|
250
|
-
}],
|
|
251
|
-
"value": [{
|
|
252
|
-
"valueChanged": 0
|
|
253
|
-
}],
|
|
254
|
-
"disabled": [{
|
|
255
|
-
"disabledChanged": 0
|
|
256
|
-
}]
|
|
257
|
-
}; }
|
|
258
|
-
};
|
|
259
|
-
DropiInput.style = dropiInputCss();
|
|
260
|
-
|
|
261
|
-
const dropiPaginatorCss = () => `:host{display:block}*,*::before,*::after{box-sizing:border-box}.paginator{display:flex;align-items:center;justify-content:flex-end;gap:var(--Size-4, 16px);flex-wrap:wrap}.paginator-pages{display:flex;align-items:center;gap:var(--Size-1, 4px)}.paginator-btn{width:32px;height:32px;padding:0;border:none;border-radius:50%;background:transparent;color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-s, 12px);font-family:inherit;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background 0.15s ease}.paginator-btn:hover:not(:disabled){background:var(--Gray-Gray-50, #f7f8fa)}.paginator-btn:disabled{opacity:0.4;cursor:not-allowed}.paginator-btn--active{background:var(--Primary-Primary-500, #f49a3d);color:var(--Neutral-White, #ffffff);font-weight:var(--font-weight-bold, 700)}.paginator-btn--active:hover{background:var(--Primary-Primary-500, #f49a3d)}.paginator-btn--arrow{width:auto;padding:0 var(--Size-2, 8px);border-radius:var(--Border-1, 4px);gap:4px}.paginator-btn--arrow:hover:not(:disabled){background:var(--Gray-Gray-50, #f7f8fa)}.paginator-label{font-size:var(--font-size-s, 12px);color:inherit}.paginator-ellipsis{color:var(--Gray-Gray-400, #858ea6);padding:0 4px;font-size:var(--font-size-s, 12px);display:flex;align-items:center}.paginator-size{display:flex;align-items:center;gap:var(--Size-2, 8px)}.paginator-size-label{font-size:var(--font-size-s, 12px);color:var(--Gray-Gray-500, #69738c)}.paginator-size-select{height:32px;padding:0 var(--Size-2, 8px);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-1, 4px);background:var(--Neutral-White, #ffffff);color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-s, 12px);font-family:inherit;cursor:pointer;outline:none}`;
|
|
262
|
-
|
|
263
|
-
const DropiPaginator = class {
|
|
264
|
-
constructor(hostRef) {
|
|
265
|
-
index.registerInstance(this, hostRef);
|
|
266
|
-
this.pageChange = index.createEvent(this, "pageChange", 7);
|
|
267
|
-
}
|
|
268
|
-
/** Total number of pages */
|
|
269
|
-
totalPages = 1;
|
|
270
|
-
/** Current page (1-based) */
|
|
271
|
-
currentPage = 1;
|
|
272
|
-
/** Disabled state */
|
|
273
|
-
disabled = false;
|
|
274
|
-
/** Max page buttons to show at once */
|
|
275
|
-
maxVisiblePages = 8;
|
|
276
|
-
/** Hide total page count (show only arrows) */
|
|
277
|
-
isNotTotalPages = false;
|
|
278
|
-
/** Hide "Anterior"/"Siguiente" text labels, show only arrows */
|
|
279
|
-
noLabels = false;
|
|
280
|
-
/** Emitted when page changes. e.detail = new page number */
|
|
281
|
-
pageChange;
|
|
282
|
-
get pageNumbers() {
|
|
283
|
-
const total = this.totalPages;
|
|
284
|
-
const cur = this.currentPage;
|
|
285
|
-
const max = this.maxVisiblePages;
|
|
286
|
-
if (total <= max)
|
|
287
|
-
return Array.from({ length: total }, (_, i) => i + 1);
|
|
288
|
-
const half = Math.floor(max / 2);
|
|
289
|
-
let start = Math.max(1, cur - half);
|
|
290
|
-
let end = Math.min(total, start + max - 1);
|
|
291
|
-
if (end - start < max - 1)
|
|
292
|
-
start = Math.max(1, end - max + 1);
|
|
293
|
-
const pages = [];
|
|
294
|
-
if (start > 1) {
|
|
295
|
-
pages.push(1);
|
|
296
|
-
if (start > 2)
|
|
297
|
-
pages.push('...');
|
|
298
|
-
}
|
|
299
|
-
for (let i = start; i <= end; i++)
|
|
300
|
-
pages.push(i);
|
|
301
|
-
if (end < total) {
|
|
302
|
-
if (end < total - 1)
|
|
303
|
-
pages.push('...');
|
|
304
|
-
pages.push(total);
|
|
305
|
-
}
|
|
306
|
-
return pages;
|
|
307
|
-
}
|
|
308
|
-
goTo(p) {
|
|
309
|
-
if (this.disabled || p < 1 || p > this.totalPages || p === this.currentPage)
|
|
310
|
-
return;
|
|
311
|
-
this.currentPage = p;
|
|
312
|
-
this.pageChange.emit(this.currentPage);
|
|
313
|
-
}
|
|
314
|
-
render() {
|
|
315
|
-
const pages = this.pageNumbers;
|
|
316
|
-
const isFirst = this.currentPage <= 1;
|
|
317
|
-
const isLast = this.currentPage >= this.totalPages;
|
|
318
|
-
return (index.h("div", { key: '5f69b3abd4ddf98c2ab5df9c20361ba7f71addac', class: "paginator" }, index.h("div", { key: 'c050104ff12ec9c8b0cca40a75e0538cdd43d1e5', class: "paginator-pages" }, !isFirst && !this.noLabels && (index.h("button", { key: 'b03958b21bd015c6e80356172bea98f980c9eab4', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(1), "aria-label": "Primera p\u00E1gina", disabled: this.disabled }, index.h("dropi-icon", { key: 'c1670fe542a342765f79efde0ac3bd754dad4798', name: "Arrow-double-small-left", width: "16px", height: "16px", color: "Gray-Gray-600" }))), !isFirst && (index.h("button", { key: '170d5b6c0f1f105682d9a8bd69d95d445af1c5ac', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(this.currentPage - 1), "aria-label": "Anterior", disabled: this.disabled }, index.h("dropi-icon", { key: 'a5233c1025b3a7c96ae3d8a30a7a38fe4d009ce8', name: "Dropdown-left", width: "16px", height: "16px", color: "Gray-Gray-600" }), !this.noLabels && index.h("span", { key: '074c645f02a26e1a1607aaccaa2a6c25b2d2e17a', class: "paginator-label" }, "Anterior"))), pages.map((p, i) => p === '...'
|
|
319
|
-
? index.h("span", { class: "paginator-ellipsis", key: `e${i}` }, "\u2026")
|
|
320
|
-
: index.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 && (index.h("button", { key: 'd02f057415086137540417bcd5762bc2f955885f', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(this.currentPage + 1), "aria-label": "Siguiente", disabled: this.disabled }, !this.noLabels && index.h("span", { key: '4bfc14f3fa8ce553a61702bd5323b9554c99b05e', class: "paginator-label" }, "Siguiente"), index.h("dropi-icon", { key: 'c9e532e95dc78ac8e91ef43d64d98ef75a4b5fb8', name: "Dropdown-Right", width: "16px", height: "16px", color: "Gray-Gray-600" }))), !isLast && !this.noLabels && (index.h("button", { key: 'fe498a605de588ce33ed4597fa09d6659f555790', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(this.totalPages), "aria-label": "\u00DAltima p\u00E1gina", disabled: this.disabled }, index.h("dropi-icon", { key: '1e0d64045e390c5f934ea2c70c4ccc8f0c542b8a', name: "Arrow-double-small-right", width: "16px", height: "16px", color: "Gray-Gray-600" }))))));
|
|
321
|
-
}
|
|
322
|
-
};
|
|
323
|
-
DropiPaginator.style = dropiPaginatorCss();
|
|
324
|
-
|
|
325
|
-
const dropiTagCss = () => `:host{display:inline-flex}*,*::before,*::after{box-sizing:border-box}.container-chips{display:inline-block}.tags{display:inline-flex;padding:4px 8px;justify-content:center;align-items:center;gap:4px;border-radius:var(--Border-5, 9999px);overflow:hidden;text-align:center;text-overflow:ellipsis;font-size:var(--font-size-s, 12px);font-weight:var(--font-weight-medium, 500);line-height:var(--Size-5, 24px);animation:fade-in 200ms ease-out}.tags.icon-only{gap:0}.file-icon{display:flex}@keyframes fade-in{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:scale(1)}}`;
|
|
326
|
-
|
|
327
|
-
const DropiTag = class {
|
|
328
|
-
constructor(hostRef) {
|
|
329
|
-
index.registerInstance(this, hostRef);
|
|
330
|
-
}
|
|
331
|
-
/** primary (filled) | secondary (soft) */
|
|
332
|
-
type = 'primary';
|
|
333
|
-
/** Color state of the tag */
|
|
334
|
-
state = 'default';
|
|
335
|
-
/** Whether to show the icon */
|
|
336
|
-
showIcon = false;
|
|
337
|
-
/** Icon name from the sprite */
|
|
338
|
-
icon = '';
|
|
339
|
-
/** Label text */
|
|
340
|
-
text = '';
|
|
341
|
-
colorMap = {
|
|
342
|
-
default: 'Primary-Primary',
|
|
343
|
-
success: 'Success-Success',
|
|
344
|
-
info: 'Info-Info',
|
|
345
|
-
warning: 'Warning-Warning',
|
|
346
|
-
error: 'Error-Error',
|
|
347
|
-
legacy: 'Gray-Gray',
|
|
348
|
-
};
|
|
349
|
-
propsChanged() { }
|
|
350
|
-
get bgColor() {
|
|
351
|
-
const base = this.colorMap[this.state];
|
|
352
|
-
if (this.type === 'primary')
|
|
353
|
-
return `var(--${base}-500)`;
|
|
354
|
-
const shade = this.state === 'default' || this.state === 'legacy' ? '-100' : '-50';
|
|
355
|
-
return `var(--${base}${shade})`;
|
|
356
|
-
}
|
|
357
|
-
get textColor() {
|
|
358
|
-
const base = this.colorMap[this.state];
|
|
359
|
-
if (this.type === 'primary')
|
|
360
|
-
return `var(--Neutral-White)`;
|
|
361
|
-
const shade = this.state === 'default' ? '-500' : '-700';
|
|
362
|
-
return `var(--${base}${shade})`;
|
|
363
|
-
}
|
|
364
|
-
get iconColor() {
|
|
365
|
-
if (this.type === 'primary')
|
|
366
|
-
return 'Neutral-White';
|
|
367
|
-
const base = this.colorMap[this.state];
|
|
368
|
-
const shade = this.state === 'default' ? '-500' : '-700';
|
|
369
|
-
return `${base}${shade}`;
|
|
370
|
-
}
|
|
371
|
-
get hasContent() {
|
|
372
|
-
return typeof this.text === 'string' && this.text.trim().length > 0;
|
|
373
|
-
}
|
|
374
|
-
render() {
|
|
375
|
-
return (index.h("div", { key: 'b949409e06cf0ba23112c5cb5c2f49e605ddc730', class: "container-chips" }, index.h("div", { key: '3013650803f96e0f77e1631ba824e378ad9d5296', class: { tags: true, 'icon-only': this.showIcon && !this.hasContent }, style: { backgroundColor: this.bgColor, color: this.textColor } }, this.showIcon && this.icon && (index.h("dropi-icon", { key: '5f8b72bef223fbf1ab47a1fcef7b016bfa8d7b91', class: "file-icon", name: this.icon, width: "16px", height: "16px", color: this.iconColor })), this.hasContent && index.h("span", { key: '63921861c9549d70fc432bb1252c2af2b76cbaa1' }, this.text))));
|
|
376
|
-
}
|
|
377
|
-
static get watchers() { return {
|
|
378
|
-
"type": [{
|
|
379
|
-
"propsChanged": 0
|
|
380
|
-
}],
|
|
381
|
-
"state": [{
|
|
382
|
-
"propsChanged": 0
|
|
383
|
-
}]
|
|
384
|
-
}; }
|
|
385
|
-
};
|
|
386
|
-
DropiTag.style = dropiTagCss();
|
|
387
|
-
|
|
388
|
-
exports.dropi_input = DropiInput;
|
|
389
|
-
exports.dropi_paginator = DropiPaginator;
|
|
390
|
-
exports.dropi_tag = DropiTag;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-077kM98l.js');
|
|
4
|
-
|
|
5
|
-
const dropiLanguagesSelectorCss = () => `:host{display:inline-block;position:relative}*,*::before,*::after{box-sizing:border-box}.custom-dropdown{position:relative;cursor:pointer;user-select:none}.custom-dropdown.open dropi-icon{transform:rotate(180deg)}.selected-option{display:flex;height:38px;padding:var(--Size-2, 8px) var(--Size-3, 12px);align-items:center;gap:var(--Size-2, 8px);border-radius:4px;border:1px solid var(--Gray-Gray-200, #c3c9d9);background:var(--Neutral-White, #ffffff);font-size:var(--font-size-s, 12px);color:var(--Gray-Gray-600, #475066)}.dropdown-options{position:absolute;top:100%;left:0;right:0;background:white;border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:6px;margin-top:4px;z-index:1000;overflow-y:auto;box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);padding:0;list-style:none;height:0;opacity:0;visibility:hidden;transition:height 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;max-height:0}.dropdown-options.dropdown-open{max-height:300px;height:auto;opacity:1;visibility:visible}.dropdown-options li{padding:8px 12px;display:flex;align-items:center;gap:8px;cursor:pointer;font-size:var(--font-size-s, 12px);color:var(--Gray-Gray-600, #475066)}.dropdown-options li:hover,.dropdown-options li.active{background:var(--Gray-Gray-50, #f7f8fa)}@media screen and (max-width: 720px){.selected-option span,.dropdown-options li span{display:none}}`;
|
|
6
|
-
|
|
7
|
-
const DropiLanguagesSelector = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
index.registerInstance(this, hostRef);
|
|
10
|
-
this.languageChange = index.createEvent(this, "languageChange", 7);
|
|
11
|
-
}
|
|
12
|
-
/** Language options (array or JSON string) */
|
|
13
|
-
languages = [];
|
|
14
|
-
/** Currently selected language (LanguageOption or JSON string) */
|
|
15
|
-
selectedLang = null;
|
|
16
|
-
languageChange;
|
|
17
|
-
isOpen = false;
|
|
18
|
-
parsedLanguages = [];
|
|
19
|
-
currentLang = null;
|
|
20
|
-
languagesChanged(val) {
|
|
21
|
-
this.parsedLanguages = typeof val === 'string' ? JSON.parse(val) : val;
|
|
22
|
-
if (!this.currentLang && this.parsedLanguages.length > 0) {
|
|
23
|
-
this.currentLang = this.parsedLanguages[0];
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
selectedLangChanged(val) {
|
|
27
|
-
if (!val)
|
|
28
|
-
return;
|
|
29
|
-
this.currentLang = typeof val === 'string' ? JSON.parse(val) : val;
|
|
30
|
-
}
|
|
31
|
-
componentWillLoad() {
|
|
32
|
-
this.languagesChanged(this.languages);
|
|
33
|
-
if (this.selectedLang)
|
|
34
|
-
this.selectedLangChanged(this.selectedLang);
|
|
35
|
-
}
|
|
36
|
-
select(lang) {
|
|
37
|
-
this.currentLang = lang;
|
|
38
|
-
this.isOpen = false;
|
|
39
|
-
this.languageChange.emit(lang);
|
|
40
|
-
}
|
|
41
|
-
render() {
|
|
42
|
-
if (!this.currentLang)
|
|
43
|
-
return null;
|
|
44
|
-
return (index.h("div", { class: `custom-dropdown${this.isOpen ? ' open' : ''}` }, index.h("div", { class: "selected-option", onClick: () => { this.isOpen = !this.isOpen; } }, index.h("dropi-country-flags", { country: this.currentLang.flag, "flag-style": "rectangle", width: "20", height: "15" }), index.h("span", { class: "Body-S-Regular" }, this.currentLang.label), index.h("dropi-icon", { name: "Caret-down", width: "16px", height: "16px", color: "Gray-Gray-500" })), index.h("ul", { class: `dropdown-options${this.isOpen ? ' dropdown-open' : ''}` }, this.parsedLanguages.map(lang => (index.h("li", { key: lang.code, class: lang.code === this.currentLang?.code ? 'active' : '', onClick: () => this.select(lang) }, index.h("dropi-country-flags", { country: lang.flag, "flag-style": "rectangle", width: "20", height: "15" }), index.h("span", { class: "Body-S-Regular" }, lang.label)))))));
|
|
45
|
-
}
|
|
46
|
-
static get watchers() { return {
|
|
47
|
-
"languages": [{
|
|
48
|
-
"languagesChanged": 0
|
|
49
|
-
}],
|
|
50
|
-
"selectedLang": [{
|
|
51
|
-
"selectedLangChanged": 0
|
|
52
|
-
}]
|
|
53
|
-
}; }
|
|
54
|
-
};
|
|
55
|
-
DropiLanguagesSelector.style = dropiLanguagesSelectorCss();
|
|
56
|
-
|
|
57
|
-
exports.dropi_languages_selector = DropiLanguagesSelector;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-077kM98l.js');
|
|
4
|
-
|
|
5
|
-
const dropiLogoCss = () => `:host{display:inline-block}.dropi-logo{margin:0;padding:0;display:flex;align-items:center;justify-content:center}.dropi-logo img{display:block;object-fit:contain}.dropi-logo--large img{width:256px;height:84px}.dropi-logo--small img{width:86px;height:81px}`;
|
|
6
|
-
|
|
7
|
-
const FALLBACK_SVG = `data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgNDAiPjx0ZXh0IHk9IjMwIiBmb250LXNpemU9IjI0IiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZmlsbD0iIzg1OGVhNiI+ZHJvcGk8L3RleHQ+PC9zdmc+`;
|
|
8
|
-
const DropiLogo = class {
|
|
9
|
-
constructor(hostRef) {
|
|
10
|
-
index.registerInstance(this, hostRef);
|
|
11
|
-
}
|
|
12
|
-
/** Logo image URL */
|
|
13
|
-
urlLogo = '';
|
|
14
|
-
/** Size variant */
|
|
15
|
-
size = 'large';
|
|
16
|
-
/** Theme (reserved for future use) */
|
|
17
|
-
theme = 'light';
|
|
18
|
-
handleError(e) {
|
|
19
|
-
e.target.src = FALLBACK_SVG;
|
|
20
|
-
}
|
|
21
|
-
render() {
|
|
22
|
-
return (index.h("figure", { key: '3e333d272f1f7ee4af549167e5e4f7a713aaa508', class: { 'dropi-logo': true, [`dropi-logo--${this.size}`]: true } }, index.h("img", { key: 'e3f29c17b649b76da50b769fd88f5de9a86515e3', src: this.urlLogo || FALLBACK_SVG, alt: "Dropi logo", loading: "lazy", onError: (e) => this.handleError(e) })));
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
DropiLogo.style = dropiLogoCss();
|
|
26
|
-
|
|
27
|
-
exports.dropi_logo = DropiLogo;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-077kM98l.js');
|
|
4
|
-
|
|
5
|
-
const dropiLottieLoaderCss = () => `:host{display:block}.loader-overlay{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(255, 255, 255, 0.85);z-index:9999}.loader-container{display:flex;flex-direction:column;align-items:center;gap:var(--Size-4, 16px)}.lottie-animation{display:flex;align-items:center;justify-content:center;width:300px;height:300px}.lottie-animation lottie-player{display:block;width:300px !important;height:300px !important}.loader-text{display:flex;flex-direction:column;align-items:center;gap:var(--Size-2, 8px);text-align:center}.loader-title{margin:0;font-size:var(--font-size-m, 14px);font-weight:var(--font-weight-bold, 700);color:var(--Gray-Gray-700, #32394d)}.loader-message{margin:0;font-size:var(--font-size-s, 12px);font-weight:var(--font-weight-regular, 400);color:var(--Gray-Gray-500, #69738c)}`;
|
|
6
|
-
|
|
7
|
-
const DropiLottieLoader = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
index.registerInstance(this, hostRef);
|
|
10
|
-
}
|
|
11
|
-
/** Show or hide the loader */
|
|
12
|
-
visible = true;
|
|
13
|
-
/** Path to the Lottie JSON animation file */
|
|
14
|
-
loadingAnimation = '/assets/lottie-files/loading.json';
|
|
15
|
-
/** Title shown below the animation */
|
|
16
|
-
title = 'Cargando...';
|
|
17
|
-
/** Descriptive message below the title */
|
|
18
|
-
message = 'Por favor, espere un momento';
|
|
19
|
-
render() {
|
|
20
|
-
if (!this.visible)
|
|
21
|
-
return null;
|
|
22
|
-
return (index.h("div", { class: "loader-overlay" }, index.h("div", { class: "loader-container" }, index.h("div", { class: "lottie-animation" }, index.h("lottie-player", { src: this.loadingAnimation, background: "transparent", speed: "1", style: { width: '300px', height: '300px' }, loop: true, autoplay: true })), (this.title || this.message) && (index.h("div", { class: "loader-text" }, this.title && index.h("h3", { class: "loader-title" }, this.title), this.message && index.h("p", { class: "loader-message" }, this.message))))));
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
DropiLottieLoader.style = dropiLottieLoaderCss();
|
|
26
|
-
|
|
27
|
-
exports.dropi_lottie_loader = DropiLottieLoader;
|