@dropi/ui-components 1.0.12 → 1.0.13
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/README.md +55 -36
- package/dist/README.md +58 -38
- package/dist/components-source/accordion/accordion-item/accordion-item.component.d.ts +31 -0
- package/dist/components-source/accordion/accordion.component.d.ts +26 -0
- package/dist/components-source/alert/alert.component.d.ts +32 -0
- package/dist/components-source/alert-modal/alert-modal.component.d.ts +78 -0
- package/dist/components-source/alert-validation/alert-validation.component.d.ts +21 -0
- package/dist/components-source/badge/badge.component.d.ts +12 -0
- package/dist/components-source/beta-tag/beta-tag.component.d.ts +5 -0
- package/dist/components-source/breadcrumb/breadcrumb.component.d.ts +11 -0
- package/dist/components-source/card-product/card-product.component.d.ts +204 -0
- package/dist/components-source/card-section/card-section.component.d.ts +31 -0
- package/dist/components-source/checkbox-selection-list/checkbox-selection-list.component.d.ts +26 -0
- package/dist/components-source/city-selector/city-selector.component.d.ts +17 -0
- package/dist/components-source/color-picker/color-picker.component.d.ts +73 -0
- package/dist/components-source/confirm-dialog/confirm-dialog.component.d.ts +10 -0
- package/dist/components-source/country-flags/country-flags.component.d.ts +12 -0
- package/dist/components-source/date-picker/date-picker.component.d.ts +27 -0
- package/dist/components-source/date-picker-range/date-picker-range.component.d.ts +26 -0
- package/dist/components-source/dropi-avatars/dropi-avatars.component.d.ts +11 -0
- package/dist/components-source/dropi-badge/dropi-badge.component.d.ts +29 -0
- package/dist/components-source/dropi-banner-external/dropi-banner-external.component.d.ts +19 -0
- package/dist/components-source/dropi-breadcrumb/dropi-breadcrumb.component.d.ts +22 -0
- package/dist/components-source/dropi-card-checkbox/dropi-card-checkbox.component.d.ts +20 -0
- package/dist/components-source/dropi-carousel/dropi-carousel.component.d.ts +52 -0
- package/dist/components-source/dropi-checkbox/dropi-checkbox.component.d.ts +11 -0
- package/dist/components-source/dropi-chips/dropi-chips.component.d.ts +17 -0
- package/dist/components-source/dropi-country-selector/countries.data.d.ts +6 -0
- package/dist/components-source/dropi-country-selector/dropi-country-selector.component.d.ts +90 -0
- package/dist/components-source/dropi-drawer/dropi-drawer.component.d.ts +20 -0
- package/dist/components-source/dropi-dropdown/dropi-dropdown.component.d.ts +20 -0
- package/dist/components-source/dropi-favorite-button/dropi-favorite-button.component.d.ts +12 -0
- package/dist/components-source/dropi-file-upload/card-view/card-view.component.d.ts +19 -0
- package/dist/components-source/dropi-file-upload/drop-zone/drop-zone.component.d.ts +38 -0
- package/dist/components-source/dropi-file-upload/dropi-file-upload.component.d.ts +18 -0
- package/dist/components-source/dropi-file-upload/file-list/file-list.component.d.ts +39 -0
- package/dist/components-source/dropi-file-upload/grid-view/grid-view.component.d.ts +15 -0
- package/dist/components-source/dropi-ilustration-icon/dropi-ilustration-icon.component.d.ts +20 -0
- package/dist/components-source/dropi-image-overlay/dropi-image-overlay.component.d.ts +8 -0
- package/dist/components-source/dropi-languages-selector/dropi-languages-selector.component.d.ts +18 -0
- package/dist/components-source/dropi-logo/dropi-logo.component.d.ts +12 -0
- package/dist/components-source/dropi-modal/dropi-modal.component.d.ts +34 -0
- package/dist/components-source/dropi-modal/p-template.directive.d.ts +9 -0
- package/dist/components-source/dropi-navbar/dropi-navbar.component.d.ts +20 -0
- package/dist/components-source/dropi-paginator/dropi-paginator.component.d.ts +21 -0
- package/dist/components-source/dropi-phone-input/dropi-phone-input.component.d.ts +55 -0
- package/dist/components-source/dropi-radio-button/dropi-radio-button.component.d.ts +17 -0
- package/dist/components-source/dropi-search/dropi-search.component.d.ts +40 -0
- package/dist/components-source/dropi-select/dropi-select.component.d.ts +34 -0
- package/dist/components-source/dropi-skeleton/dropi-skeleton.component.d.ts +14 -0
- package/dist/components-source/dropi-steps/dropi-steps.component.d.ts +64 -0
- package/dist/components-source/dropi-switch/dropi-switch.component.d.ts +11 -0
- package/dist/components-source/dropi-table/dropi-table.component.d.ts +82 -0
- package/dist/components-source/dropi-tag/dropi-tag.component.d.ts +15 -0
- package/dist/components-source/dropi-text-area/dropi-text-area.component.d.ts +14 -0
- package/dist/components-source/dropi-tooltip/dropi-tooltip.component.d.ts +28 -0
- package/dist/components-source/dropi-youtube-lazy-video/dropi-youtube-lazy-video.component.d.ts +16 -0
- package/dist/components-source/empty/empty.component.d.ts +9 -0
- package/dist/components-source/empty-state/empty-state.component.d.ts +17 -0
- package/dist/components-source/file-upload-progress-bar/file-upload-progress-bar.component.d.ts +30 -0
- package/dist/components-source/index.d.ts +85 -0
- package/dist/components-source/input/input.component.d.ts +33 -0
- package/dist/components-source/lottie-loader/lottie-loader.component.d.ts +9 -0
- package/dist/components-source/otp-send-code/otp-send-code.component.d.ts +83 -0
- package/dist/components-source/radio-selection-list/radio-selection-list.component.d.ts +30 -0
- package/dist/components-source/read-more/read-more.component.d.ts +60 -0
- package/dist/components-source/sidebar/sidebar.component.d.ts +27 -0
- package/dist/components-source/simple-stepper/simple-stepper.component.d.ts +21 -0
- package/dist/components-source/spinner/spinner.component.d.ts +9 -0
- package/dist/components-source/tabs/tabs.component.d.ts +27 -0
- package/dist/components-source/tag-type-product/tag-type-product.component.d.ts +5 -0
- package/dist/components-source/toast/toast.component.d.ts +21 -0
- package/dist/components-source/toggle/input-toggle.component.d.ts +11 -0
- package/dist/components-source/tooltip/tooltip.component.d.ts +15 -0
- package/dist/components-source/vertical-steps/vertical-steps.component.d.ts +27 -0
- package/dist/esm2022/components-source/accordion/accordion-item/accordion-item.component.mjs +51 -0
- package/dist/esm2022/components-source/accordion/accordion.component.mjs +46 -0
- package/dist/esm2022/components-source/alert/alert.component.mjs +114 -0
- package/dist/esm2022/components-source/alert-modal/alert-modal.component.mjs +247 -0
- package/dist/esm2022/components-source/alert-validation/alert-validation.component.mjs +53 -0
- package/dist/esm2022/components-source/badge/badge.component.mjs +23 -0
- package/dist/esm2022/components-source/beta-tag/beta-tag.component.mjs +11 -0
- package/dist/esm2022/components-source/breadcrumb/breadcrumb.component.mjs +26 -0
- package/dist/esm2022/components-source/card-product/card-product.component.mjs +534 -0
- package/dist/esm2022/components-source/card-section/card-section.component.mjs +91 -0
- package/dist/esm2022/components-source/checkbox-selection-list/checkbox-selection-list.component.mjs +79 -0
- package/dist/esm2022/components-source/city-selector/city-selector.component.mjs +53 -0
- package/dist/esm2022/components-source/color-picker/color-picker.component.mjs +320 -0
- package/dist/esm2022/components-source/confirm-dialog/confirm-dialog.component.mjs +27 -0
- package/dist/esm2022/components-source/country-flags/country-flags.component.mjs +27 -0
- package/dist/esm2022/components-source/date-picker/date-picker.component.mjs +73 -0
- package/dist/esm2022/components-source/date-picker-range/date-picker-range.component.mjs +67 -0
- package/dist/esm2022/components-source/dropi-avatars/dropi-avatars.component.mjs +31 -0
- package/dist/esm2022/components-source/dropi-badge/dropi-badge.component.mjs +45 -0
- package/dist/esm2022/components-source/dropi-banner-external/dropi-banner-external.component.mjs +39 -0
- package/dist/esm2022/components-source/dropi-breadcrumb/dropi-breadcrumb.component.mjs +45 -0
- package/dist/esm2022/components-source/dropi-card-checkbox/dropi-card-checkbox.component.mjs +53 -0
- package/dist/esm2022/components-source/dropi-carousel/dropi-carousel.component.mjs +243 -0
- package/dist/esm2022/components-source/dropi-checkbox/dropi-checkbox.component.mjs +31 -0
- package/dist/esm2022/components-source/dropi-chips/dropi-chips.component.mjs +38 -0
- package/dist/esm2022/components-source/dropi-country-selector/countries.data.mjs +254 -0
- package/dist/esm2022/components-source/dropi-country-selector/dropi-country-selector.component.mjs +183 -0
- package/dist/esm2022/components-source/dropi-drawer/dropi-drawer.component.mjs +69 -0
- package/dist/esm2022/components-source/dropi-dropdown/dropi-dropdown.component.mjs +59 -0
- package/dist/esm2022/components-source/dropi-favorite-button/dropi-favorite-button.component.mjs +33 -0
- package/dist/esm2022/components-source/dropi-file-upload/card-view/card-view.component.mjs +47 -0
- package/dist/esm2022/components-source/dropi-file-upload/drop-zone/drop-zone.component.mjs +115 -0
- package/dist/esm2022/components-source/dropi-file-upload/dropi-file-upload.component.mjs +66 -0
- package/dist/esm2022/components-source/dropi-file-upload/file-list/file-list.component.mjs +95 -0
- package/dist/esm2022/components-source/dropi-file-upload/grid-view/grid-view.component.mjs +37 -0
- package/dist/esm2022/components-source/dropi-ilustration-icon/dropi-ilustration-icon.component.mjs +59 -0
- package/dist/esm2022/components-source/dropi-image-overlay/dropi-image-overlay.component.mjs +31 -0
- package/dist/esm2022/components-source/dropi-languages-selector/dropi-languages-selector.component.mjs +38 -0
- package/dist/esm2022/components-source/dropi-logo/dropi-logo.component.mjs +27 -0
- package/dist/esm2022/components-source/dropi-modal/dropi-modal.component.mjs +92 -0
- package/dist/esm2022/components-source/dropi-modal/p-template.directive.mjs +22 -0
- package/dist/esm2022/components-source/dropi-navbar/dropi-navbar.component.mjs +51 -0
- package/dist/esm2022/components-source/dropi-paginator/dropi-paginator.component.mjs +89 -0
- package/dist/esm2022/components-source/dropi-phone-input/dropi-phone-input.component.mjs +155 -0
- package/dist/esm2022/components-source/dropi-radio-button/dropi-radio-button.component.mjs +48 -0
- package/dist/esm2022/components-source/dropi-search/dropi-search.component.mjs +104 -0
- package/dist/esm2022/components-source/dropi-select/dropi-select.component.mjs +96 -0
- package/dist/esm2022/components-source/dropi-skeleton/dropi-skeleton.component.mjs +39 -0
- package/dist/esm2022/components-source/dropi-steps/dropi-steps.component.mjs +97 -0
- package/dist/esm2022/components-source/dropi-switch/dropi-switch.component.mjs +22 -0
- package/dist/esm2022/components-source/dropi-table/dropi-table.component.mjs +333 -0
- package/dist/esm2022/components-source/dropi-tag/dropi-tag.component.mjs +36 -0
- package/dist/esm2022/components-source/dropi-text-area/dropi-text-area.component.mjs +53 -0
- package/dist/esm2022/components-source/dropi-tooltip/dropi-tooltip.component.mjs +78 -0
- package/dist/esm2022/components-source/dropi-youtube-lazy-video/dropi-youtube-lazy-video.component.mjs +46 -0
- package/dist/esm2022/components-source/empty/empty.component.mjs +18 -0
- package/dist/esm2022/components-source/empty-state/empty-state.component.mjs +62 -0
- package/dist/esm2022/components-source/file-upload-progress-bar/file-upload-progress-bar.component.mjs +91 -0
- package/dist/esm2022/components-source/index.mjs +107 -0
- package/dist/esm2022/components-source/input/input.component.mjs +104 -0
- package/dist/esm2022/components-source/lottie-loader/lottie-loader.component.mjs +25 -0
- package/dist/esm2022/components-source/otp-send-code/otp-send-code.component.mjs +201 -0
- package/dist/esm2022/components-source/radio-selection-list/radio-selection-list.component.mjs +89 -0
- package/dist/esm2022/components-source/read-more/read-more.component.mjs +91 -0
- package/dist/esm2022/components-source/sidebar/sidebar.component.mjs +88 -0
- package/dist/esm2022/components-source/simple-stepper/simple-stepper.component.mjs +60 -0
- package/dist/esm2022/components-source/spinner/spinner.component.mjs +19 -0
- package/dist/esm2022/components-source/tabs/tabs.component.mjs +83 -0
- package/dist/esm2022/components-source/tag-type-product/tag-type-product.component.mjs +11 -0
- package/dist/esm2022/components-source/toast/toast.component.mjs +47 -0
- package/dist/esm2022/components-source/toggle/input-toggle.component.mjs +36 -0
- package/dist/esm2022/components-source/tooltip/tooltip.component.mjs +34 -0
- package/dist/esm2022/components-source/vertical-steps/vertical-steps.component.mjs +75 -0
- package/dist/esm2022/lib/elements-registry.mjs +343 -2
- package/dist/esm2022/utilities/interfaces/ui/dropi-table.interface.mjs +2 -0
- package/dist/esm2022/utilities/interfaces/ui/input-interface.mjs +2 -0
- package/dist/esm2022/utilities/interfaces/ui/select-interface.mjs +2 -0
- package/dist/esm2022/utilities/interfaces/ui/selection-list-interface.mjs +2 -0
- package/dist/esm2022/utilities/interfaces/ui/upload.model.mjs +5 -0
- package/dist/fesm2022/dropi-ui-components.mjs +5913 -2
- package/dist/fesm2022/dropi-ui-components.mjs.map +1 -1
- package/dist/utilities/interfaces/ui/dropi-table.interface.d.ts +45 -0
- package/dist/utilities/interfaces/ui/input-interface.d.ts +33 -0
- package/dist/utilities/interfaces/ui/select-interface.d.ts +8 -0
- package/dist/utilities/interfaces/ui/selection-list-interface.d.ts +24 -0
- package/dist/utilities/interfaces/ui/upload.model.d.ts +30 -0
- package/package.json +18 -6
- package/src/components-source/alert/alert.component.ts +12 -129
- package/src/components-source/alert-modal/alert-modal.component.ts +84 -114
- package/src/components-source/alert-validation/alert-validation.component.html +8 -0
- package/src/components-source/alert-validation/alert-validation.component.scss +225 -0
- package/src/components-source/alert-validation/alert-validation.component.ts +43 -0
- package/src/components-source/beta-tag/beta-tag.component.html +1 -0
- package/src/components-source/beta-tag/beta-tag.component.scss +26 -0
- package/src/components-source/beta-tag/beta-tag.component.ts +11 -0
- package/src/components-source/breadcrumb/breadcrumb.component.html +13 -5
- package/src/components-source/breadcrumb/breadcrumb.component.scss +8 -1
- package/src/components-source/breadcrumb/breadcrumb.component.spec.ts +26 -26
- package/src/components-source/breadcrumb/breadcrumb.component.ts +10 -12
- package/src/components-source/card-product/card-product.component.spec.ts +9 -9
- package/src/components-source/card-product/card-product.component.stories.ts +2 -2
- package/src/components-source/card-product/card-product.component.ts +294 -818
- package/src/components-source/card-section/card-section.component.html +7 -7
- package/src/components-source/card-section/card-section.component.ts +41 -15
- package/src/components-source/checkbox-selection-list/checkbox-selection-list.component.ts +42 -179
- package/src/components-source/city-selector/city-selector.component.ts +37 -137
- package/src/components-source/confirm-dialog/confirm-dialog.component.html +26 -0
- package/src/components-source/confirm-dialog/confirm-dialog.component.scss +55 -0
- package/src/components-source/confirm-dialog/confirm-dialog.component.ts +22 -0
- package/src/components-source/country-flags/country-flags.component.ts +20 -12
- package/src/components-source/date-picker/date-picker.component.ts +32 -292
- package/src/components-source/date-picker-range/date-picker-range.component.html +15 -7
- package/src/components-source/date-picker-range/date-picker-range.component.ts +42 -235
- package/src/components-source/dropi-banner-external/dropi-banner-external.component.ts +24 -185
- package/src/components-source/dropi-breadcrumb/dropi-breadcrumb.component.html +21 -21
- package/src/components-source/dropi-breadcrumb/dropi-breadcrumb.component.spec.ts +9 -9
- package/src/components-source/dropi-breadcrumb/dropi-breadcrumb.component.ts +41 -23
- package/src/components-source/dropi-breadcrumb/dropi-breadcrumb.stories.ts +12 -12
- package/src/components-source/dropi-chips/dropi-chips.component.ts +22 -87
- package/src/components-source/dropi-country-selector/countries.data.ts +256 -236
- package/src/components-source/dropi-country-selector/dropi-country-selector.component.ts +37 -25
- package/src/components-source/dropi-drawer/dropi-drawer.component.ts +91 -78
- package/src/components-source/dropi-dropdown/dropi-dropdown.component.ts +44 -47
- package/src/components-source/dropi-file-upload/card-view/card-view.component.ts +33 -53
- package/src/components-source/dropi-file-upload/drop-zone/drop-zone.component.ts +52 -123
- package/src/components-source/dropi-file-upload/dropi-file-upload.component.ts +38 -294
- package/src/components-source/dropi-file-upload/file-list/file-list.component.ts +62 -43
- package/src/components-source/dropi-file-upload/grid-view/grid-view.component.ts +23 -22
- package/src/components-source/dropi-ilustration-icon/dropi-ilustration-icon.component.scss +6 -2
- package/src/components-source/dropi-image-overlay/dropi-image-overlay.component.ts +16 -71
- package/src/components-source/dropi-modal/dropi-modal.component.ts +56 -372
- package/src/components-source/dropi-navbar/dropi-navbar.component.ts +17 -17
- package/src/components-source/dropi-paginator/dropi-paginator.component.html +18 -7
- package/src/components-source/dropi-paginator/dropi-paginator.component.ts +40 -32
- package/src/components-source/dropi-phone-input/dropi-phone-input.component.html +78 -79
- package/src/components-source/dropi-phone-input/dropi-phone-input.component.ts +29 -85
- package/src/components-source/dropi-search/dropi-search.component.ts +59 -222
- package/src/components-source/dropi-select/dropi-select.component.html +82 -131
- package/src/components-source/dropi-select/dropi-select.component.ts +60 -423
- package/src/components-source/dropi-table/dropi-table.component.html +40 -23
- package/src/components-source/dropi-table/dropi-table.component.ts +130 -374
- package/src/components-source/dropi-tag/dropi-tag.component.ts +20 -90
- package/src/components-source/dropi-text-area/dropi-text-area.component.ts +22 -48
- package/src/components-source/dropi-tooltip/dropi-tooltip.component.ts +40 -129
- package/src/components-source/empty/empty.component.html +3 -0
- package/src/components-source/empty/empty.component.scss +0 -0
- package/src/components-source/empty/empty.component.ts +16 -0
- package/src/components-source/empty-state/empty-state.component.ts +47 -19
- package/src/components-source/index.ts +82 -37
- package/src/components-source/input/input.component.html +79 -63
- package/src/components-source/input/input.component.ts +51 -97
- package/src/components-source/lottie-loader/lottie-loader.component.ts +13 -16
- package/src/components-source/otp-send-code/otp-send-code.component.ts +60 -528
- package/src/components-source/radio-selection-list/radio-selection-list.component.ts +36 -97
- package/src/components-source/sidebar/sidebar.component.spec.ts +11 -11
- package/src/components-source/sidebar/sidebar.component.stories.ts +3 -3
- package/src/components-source/sidebar/sidebar.component.ts +51 -47
- package/src/components-source/simple-stepper/simple-stepper.component.ts +20 -35
- package/src/components-source/spinner/spinner.component.html +6 -0
- package/src/components-source/spinner/spinner.component.scss +15 -0
- package/src/components-source/spinner/spinner.component.ts +17 -0
- package/src/components-source/tabs/tabs.component.spec.ts +8 -8
- package/src/components-source/tabs/tabs.component.stories.ts +5 -5
- package/src/components-source/tabs/tabs.component.ts +41 -83
- package/src/components-source/toast/toast.component.ts +40 -46
- package/src/components-source/toggle/input-toggle.component.html +34 -0
- package/src/components-source/toggle/input-toggle.component.scss +0 -0
- package/src/components-source/toggle/input-toggle.component.ts +27 -0
- package/src/components-source/toggle/inputToggleConfig.ts +11 -0
- package/src/components-source/tooltip/tooltip.component.html +22 -11
- package/src/components-source/tooltip/tooltip.component.ts +28 -13
- package/src/components-source/vertical-steps/vertical-steps.component.ts +16 -78
- package/src/lib/elements-registry.ts +413 -1
- package/src/lib/router-stub.ts +7 -0
- package/src/libreria work space.code-workspace +11 -8
- package/src/utilities/interfaces/ui/dropi-table.interface.ts +60 -0
- package/src/utilities/interfaces/ui/input-interface.ts +34 -0
- package/src/utilities/interfaces/ui/select-interface.ts +8 -0
- package/src/utilities/interfaces/ui/selection-list-interface.ts +15 -0
- package/src/utilities/interfaces/ui/upload.model.ts +41 -0
|
@@ -42,7 +42,79 @@ interface ComponentDefinition {
|
|
|
42
42
|
* ```
|
|
43
43
|
*/
|
|
44
44
|
import { createApplication } from "@angular/platform-browser";
|
|
45
|
-
|
|
45
|
+
|
|
46
|
+
// Importar todos los componentes para registro
|
|
47
|
+
import {
|
|
48
|
+
ButtonComponent,
|
|
49
|
+
AlertComponent,
|
|
50
|
+
InputComponent,
|
|
51
|
+
DropiTagComponent,
|
|
52
|
+
DropiChipsComponent,
|
|
53
|
+
DropiSwitchComponent,
|
|
54
|
+
DropiSearchComponent,
|
|
55
|
+
DropiSelectComponent,
|
|
56
|
+
DropiTableComponent,
|
|
57
|
+
DropiModalComponent,
|
|
58
|
+
AlertModalComponent,
|
|
59
|
+
ToastComponent,
|
|
60
|
+
DatePickerComponent,
|
|
61
|
+
DatePickerRangeComponent,
|
|
62
|
+
TooltipComponent,
|
|
63
|
+
DropiTooltipComponent,
|
|
64
|
+
TagTypeProductComponent,
|
|
65
|
+
SimpleStepperComponent,
|
|
66
|
+
BreadcrumbComponent,
|
|
67
|
+
TabsComponent,
|
|
68
|
+
DropiStepsComponent,
|
|
69
|
+
VerticalStepsComponent,
|
|
70
|
+
CitySelectorComponent,
|
|
71
|
+
RadioSelectionListComponent,
|
|
72
|
+
CheckboxSelectionListComponent,
|
|
73
|
+
LottieLoaderComponent,
|
|
74
|
+
AccordionComponent,
|
|
75
|
+
AccordionItemComponent,
|
|
76
|
+
ReadMoreComponent,
|
|
77
|
+
IconComponent,
|
|
78
|
+
DropiImageOverlayComponent,
|
|
79
|
+
OtpSendCodeComponent,
|
|
80
|
+
DropZoneComponent,
|
|
81
|
+
DropiFileUploadComponent,
|
|
82
|
+
DropiCountrySelectorComponent,
|
|
83
|
+
DropiCheckboxComponent,
|
|
84
|
+
DropiRadioButtonComponent,
|
|
85
|
+
DropiTextAreaComponent,
|
|
86
|
+
DropiPhoneInputComponent,
|
|
87
|
+
SidebarComponent,
|
|
88
|
+
DropiNavBarComponent,
|
|
89
|
+
DropiBreadcrumbComponent,
|
|
90
|
+
DropiPaginatorComponent,
|
|
91
|
+
DropiLogoComponent,
|
|
92
|
+
DropiBadgeComponent,
|
|
93
|
+
BadgeComponent,
|
|
94
|
+
DropiSkeletonComponent,
|
|
95
|
+
EmptyStateComponent,
|
|
96
|
+
DropiAvatarsComponent,
|
|
97
|
+
FileUploadProgressBarComponent,
|
|
98
|
+
DropiIlustrationIconComponent,
|
|
99
|
+
DropiCarouselComponent,
|
|
100
|
+
DropiYoutubeLazyVideoComponent,
|
|
101
|
+
DropiFavoriteButtonComponent,
|
|
102
|
+
DropiCardCheckboxComponent,
|
|
103
|
+
CardSectionComponent,
|
|
104
|
+
CardProductComponent,
|
|
105
|
+
ColorPickerComponent,
|
|
106
|
+
CountryFlagsComponent,
|
|
107
|
+
DropiDrawerComponent,
|
|
108
|
+
DropiBannerExternalComponent,
|
|
109
|
+
AlertValidationComponent,
|
|
110
|
+
BetaTagComponent,
|
|
111
|
+
ConfirmDialogComponent,
|
|
112
|
+
SpinnerComponent,
|
|
113
|
+
EmptyComponent,
|
|
114
|
+
InputToggleComponent,
|
|
115
|
+
DropiLanguagesSelectorComponent,
|
|
116
|
+
DropiDropdownComponent,
|
|
117
|
+
} from "../components-source";
|
|
46
118
|
|
|
47
119
|
/**
|
|
48
120
|
* Lista interna de todos los componentes disponibles para registro automático
|
|
@@ -53,6 +125,346 @@ const ALL_COMPONENTS: ComponentDefinition[] = [
|
|
|
53
125
|
component: ButtonComponent,
|
|
54
126
|
description: "Button Component",
|
|
55
127
|
},
|
|
128
|
+
{
|
|
129
|
+
selector: "dropi-wc-alert",
|
|
130
|
+
component: AlertComponent,
|
|
131
|
+
description: "Alert Component",
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
selector: "dropi-wc-input",
|
|
135
|
+
component: InputComponent,
|
|
136
|
+
description: "Input Component",
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
selector: "dropi-wc-tag",
|
|
140
|
+
component: DropiTagComponent,
|
|
141
|
+
description: "Tag Component",
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
selector: "dropi-wc-chips",
|
|
145
|
+
component: DropiChipsComponent,
|
|
146
|
+
description: "Chips Component",
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
selector: "dropi-wc-switch",
|
|
150
|
+
component: DropiSwitchComponent,
|
|
151
|
+
description: "Switch Component",
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
selector: "dropi-wc-search",
|
|
155
|
+
component: DropiSearchComponent,
|
|
156
|
+
description: "Search Component",
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
selector: "dropi-wc-select",
|
|
160
|
+
component: DropiSelectComponent,
|
|
161
|
+
description: "Select Component",
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
selector: "dropi-wc-table",
|
|
165
|
+
component: DropiTableComponent,
|
|
166
|
+
description: "Table Component",
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
selector: "dropi-wc-modal",
|
|
170
|
+
component: DropiModalComponent,
|
|
171
|
+
description: "Modal Component",
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
selector: "dropi-wc-alert-modal",
|
|
175
|
+
component: AlertModalComponent,
|
|
176
|
+
description: "Alert Modal Component",
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
selector: "dropi-wc-toast",
|
|
180
|
+
component: ToastComponent,
|
|
181
|
+
description: "Toast Component",
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
selector: "dropi-wc-date-picker",
|
|
185
|
+
component: DatePickerComponent,
|
|
186
|
+
description: "Date Picker Component",
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
selector: "dropi-wc-date-picker-range",
|
|
190
|
+
component: DatePickerRangeComponent,
|
|
191
|
+
description: "Date Picker Range Component",
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
selector: "dropi-wc-tooltip",
|
|
195
|
+
component: TooltipComponent,
|
|
196
|
+
description: "Tooltip Component",
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
selector: "dropi-wc-tooltip-v2",
|
|
200
|
+
component: DropiTooltipComponent,
|
|
201
|
+
description: "Dropi Tooltip Component",
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
selector: "dropi-wc-tag-product",
|
|
205
|
+
component: TagTypeProductComponent,
|
|
206
|
+
description: "Product Tag Component",
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
selector: "dropi-wc-simple-stepper",
|
|
210
|
+
component: SimpleStepperComponent,
|
|
211
|
+
description: "Simple Stepper Component",
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
selector: "dropi-wc-breadcrumb",
|
|
215
|
+
component: BreadcrumbComponent,
|
|
216
|
+
description: "Breadcrumb Component",
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
selector: "dropi-wc-tabs",
|
|
220
|
+
component: TabsComponent,
|
|
221
|
+
description: "Tabs Component",
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
selector: "dropi-wc-steps",
|
|
225
|
+
component: DropiStepsComponent,
|
|
226
|
+
description: "Steps Component",
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
selector: "dropi-wc-vertical-steps",
|
|
230
|
+
component: VerticalStepsComponent,
|
|
231
|
+
description: "Vertical Steps Component",
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
selector: "dropi-wc-city-selector",
|
|
235
|
+
component: CitySelectorComponent,
|
|
236
|
+
description: "City Selector Component",
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
selector: "dropi-wc-radio-list",
|
|
240
|
+
component: RadioSelectionListComponent,
|
|
241
|
+
description: "Radio List Component",
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
selector: "dropi-wc-checkbox-list",
|
|
245
|
+
component: CheckboxSelectionListComponent,
|
|
246
|
+
description: "Checkbox List Component",
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
selector: "dropi-wc-lottie-loader",
|
|
250
|
+
component: LottieLoaderComponent,
|
|
251
|
+
description: "Lottie Loader Component",
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
selector: "dropi-wc-accordion",
|
|
255
|
+
component: AccordionComponent,
|
|
256
|
+
description: "Accordion Component",
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
selector: "dropi-wc-accordion-item",
|
|
260
|
+
component: AccordionItemComponent,
|
|
261
|
+
description: "Accordion Item Component",
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
selector: "dropi-wc-read-more",
|
|
265
|
+
component: ReadMoreComponent,
|
|
266
|
+
description: "Read More Component",
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
selector: "dropi-wc-icon",
|
|
270
|
+
component: IconComponent,
|
|
271
|
+
description: "Icon Component",
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
selector: "dropi-wc-image-overlay",
|
|
275
|
+
component: DropiImageOverlayComponent,
|
|
276
|
+
description: "Image Overlay Component",
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
selector: "dropi-wc-otp-send",
|
|
280
|
+
component: OtpSendCodeComponent,
|
|
281
|
+
description: "OTP Send Component",
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
selector: "dropi-wc-dropzone",
|
|
285
|
+
component: DropZoneComponent,
|
|
286
|
+
description: "Dropzone Component",
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
selector: "dropi-wc-file-upload",
|
|
290
|
+
component: DropiFileUploadComponent,
|
|
291
|
+
description: "File Upload Component",
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
selector: "dropi-wc-country-selector",
|
|
295
|
+
component: DropiCountrySelectorComponent,
|
|
296
|
+
description: "Country Selector Component",
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
selector: "dropi-wc-checkbox",
|
|
300
|
+
component: DropiCheckboxComponent,
|
|
301
|
+
description: "Checkbox Component",
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
selector: "dropi-wc-radio-button",
|
|
305
|
+
component: DropiRadioButtonComponent,
|
|
306
|
+
description: "Radio Button Component",
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
selector: "dropi-wc-text-area",
|
|
310
|
+
component: DropiTextAreaComponent,
|
|
311
|
+
description: "Text Area Component",
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
selector: "dropi-wc-phone-input",
|
|
315
|
+
component: DropiPhoneInputComponent,
|
|
316
|
+
description: "Phone Input Component",
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
selector: "dropi-wc-sidebar",
|
|
320
|
+
component: SidebarComponent,
|
|
321
|
+
description: "Sidebar Component",
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
selector: "dropi-wc-navbar",
|
|
325
|
+
component: DropiNavBarComponent,
|
|
326
|
+
description: "Navbar Component",
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
selector: "dropi-wc-breadcrumb-v2",
|
|
330
|
+
component: DropiBreadcrumbComponent,
|
|
331
|
+
description: "Breadcrumb V2 Component",
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
selector: "dropi-wc-paginator",
|
|
335
|
+
component: DropiPaginatorComponent,
|
|
336
|
+
description: "Paginator Component",
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
selector: "dropi-wc-logo",
|
|
340
|
+
component: DropiLogoComponent,
|
|
341
|
+
description: "Logo Component",
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
selector: "dropi-wc-badge-v2",
|
|
345
|
+
component: DropiBadgeComponent,
|
|
346
|
+
description: "Dropi Badge Component",
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
selector: "dropi-wc-badge",
|
|
350
|
+
component: BadgeComponent,
|
|
351
|
+
description: "Badge Component",
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
selector: "dropi-wc-skeleton",
|
|
355
|
+
component: DropiSkeletonComponent,
|
|
356
|
+
description: "Skeleton Component",
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
selector: "dropi-wc-empty-state",
|
|
360
|
+
component: EmptyStateComponent,
|
|
361
|
+
description: "Empty State Component",
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
selector: "dropi-wc-avatars",
|
|
365
|
+
component: DropiAvatarsComponent,
|
|
366
|
+
description: "Avatars Component",
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
selector: "dropi-wc-file-upload-progress",
|
|
370
|
+
component: FileUploadProgressBarComponent,
|
|
371
|
+
description: "File Upload Progress Component",
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
selector: "dropi-wc-ilustration-icon",
|
|
375
|
+
component: DropiIlustrationIconComponent,
|
|
376
|
+
description: "Ilustration Icon Component",
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
selector: "dropi-wc-carousel",
|
|
380
|
+
component: DropiCarouselComponent,
|
|
381
|
+
description: "Carousel Component",
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
selector: "dropi-wc-youtube-video",
|
|
385
|
+
component: DropiYoutubeLazyVideoComponent,
|
|
386
|
+
description: "Youtube Video Component",
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
selector: "dropi-wc-favorite-button",
|
|
390
|
+
component: DropiFavoriteButtonComponent,
|
|
391
|
+
description: "Favorite Button Component",
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
selector: "dropi-wc-card-checkbox",
|
|
395
|
+
component: DropiCardCheckboxComponent,
|
|
396
|
+
description: "Card Checkbox Component",
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
selector: "dropi-wc-card-section",
|
|
400
|
+
component: CardSectionComponent,
|
|
401
|
+
description: "Card Section Component",
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
selector: "dropi-wc-card-product",
|
|
405
|
+
component: CardProductComponent,
|
|
406
|
+
description: "Card Product Component",
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
selector: "dropi-wc-color-picker",
|
|
410
|
+
component: ColorPickerComponent,
|
|
411
|
+
description: "Color Picker Component",
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
selector: "dropi-wc-country-flags",
|
|
415
|
+
component: CountryFlagsComponent,
|
|
416
|
+
description: "Country Flags Component",
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
selector: "dropi-wc-drawer",
|
|
420
|
+
component: DropiDrawerComponent,
|
|
421
|
+
description: "Drawer Component",
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
selector: "dropi-wc-banner-external",
|
|
425
|
+
component: DropiBannerExternalComponent,
|
|
426
|
+
description: "External Banner Component",
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
selector: "dropi-wc-alert-validation",
|
|
430
|
+
component: AlertValidationComponent,
|
|
431
|
+
description: "Alert Validation Component",
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
selector: "dropi-wc-beta-tag",
|
|
435
|
+
component: BetaTagComponent,
|
|
436
|
+
description: "Beta Tag Component",
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
selector: "dropi-wc-confirm-dialog",
|
|
440
|
+
component: ConfirmDialogComponent,
|
|
441
|
+
description: "Confirm Dialog Component",
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
selector: "dropi-wc-spinner",
|
|
445
|
+
component: SpinnerComponent,
|
|
446
|
+
description: "Spinner Component",
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
selector: "dropi-wc-empty",
|
|
450
|
+
component: EmptyComponent,
|
|
451
|
+
description: "Empty Component",
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
selector: "dropi-wc-toggle",
|
|
455
|
+
component: InputToggleComponent,
|
|
456
|
+
description: "Toggle Component",
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
selector: "dropi-wc-languages-selector",
|
|
460
|
+
component: DropiLanguagesSelectorComponent,
|
|
461
|
+
description: "Languages Selector Component",
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
selector: "dropi-wc-dropdown",
|
|
465
|
+
component: DropiDropdownComponent,
|
|
466
|
+
description: "Dropdown Component",
|
|
467
|
+
},
|
|
56
468
|
];
|
|
57
469
|
|
|
58
470
|
export function registerDropiElements(
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"folders": [
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
{
|
|
4
|
+
"path": "../../../Documents/react prueba",
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"path": "..",
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"path": "../../../Documents/dropi-core_front",
|
|
11
|
+
},
|
|
12
|
+
],
|
|
13
|
+
"settings": {},
|
|
11
14
|
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export interface DropiTableColumn {
|
|
2
|
+
key: string;
|
|
3
|
+
label: string;
|
|
4
|
+
sortable?: boolean;
|
|
5
|
+
type?: string;
|
|
6
|
+
highlightColumn?: boolean;
|
|
7
|
+
align?: "left" | "center" | "right" | string;
|
|
8
|
+
disabledColumn?: boolean; // Añadido
|
|
9
|
+
imageUrl?: string; // Añadido
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface DropiTableRow {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface TypedField {
|
|
17
|
+
type:
|
|
18
|
+
| "text"
|
|
19
|
+
| "currency"
|
|
20
|
+
| "date"
|
|
21
|
+
| "tag"
|
|
22
|
+
| "carrier"
|
|
23
|
+
| "textIcon"
|
|
24
|
+
| "status"
|
|
25
|
+
| "textLink"
|
|
26
|
+
| string;
|
|
27
|
+
value: any;
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface DropiTableConfiguration {
|
|
32
|
+
rowActions?: DropiTableAction[];
|
|
33
|
+
pageSizeConfiguration?: number[];
|
|
34
|
+
showCheckbox?: boolean;
|
|
35
|
+
showSearch?: boolean;
|
|
36
|
+
showPaginator?: boolean;
|
|
37
|
+
showActionsPerRow?: boolean;
|
|
38
|
+
emptyMessage?: string;
|
|
39
|
+
backendPagination?: boolean;
|
|
40
|
+
title?: string; // Añadido
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface DropiTableAction {
|
|
44
|
+
label: string;
|
|
45
|
+
icon?: string;
|
|
46
|
+
event?: string;
|
|
47
|
+
callback?: (row: any) => void;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface DropiTableBackendParams {
|
|
51
|
+
currentPage: number;
|
|
52
|
+
pageSize: number;
|
|
53
|
+
totalPages: number;
|
|
54
|
+
totalCount: number;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface SortParams {
|
|
58
|
+
column: string;
|
|
59
|
+
asc: boolean;
|
|
60
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface InputProperties {
|
|
2
|
+
label?: string;
|
|
3
|
+
placeholder?: string;
|
|
4
|
+
type?: string;
|
|
5
|
+
formControl?: any;
|
|
6
|
+
showObligatory?: boolean;
|
|
7
|
+
textHelper?: string;
|
|
8
|
+
icon?: string;
|
|
9
|
+
iconPos?: "left" | "right";
|
|
10
|
+
maxLength?: number;
|
|
11
|
+
minLength?: number;
|
|
12
|
+
isMoneyInput?: boolean;
|
|
13
|
+
isThousandSeparator?: boolean;
|
|
14
|
+
isNumericInput?: boolean;
|
|
15
|
+
isLettersOnly?: boolean;
|
|
16
|
+
isPasswordInput?: boolean; // Añadido
|
|
17
|
+
id?: string; // Añadido
|
|
18
|
+
dataCy?: string; // Añadido
|
|
19
|
+
inputMode?: string; // Añadido
|
|
20
|
+
showHelperOnlyOnError?: boolean; // Añadido
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface TextAreaProperties {
|
|
24
|
+
label?: string;
|
|
25
|
+
placeholder?: string;
|
|
26
|
+
rows?: number;
|
|
27
|
+
cols?: number;
|
|
28
|
+
formControl?: any;
|
|
29
|
+
maxLength?: number;
|
|
30
|
+
minLength?: number;
|
|
31
|
+
textHelper?: string;
|
|
32
|
+
id?: string;
|
|
33
|
+
resize?: "none" | "both" | "horizontal" | "vertical" | string;
|
|
34
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface Option {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
label?: string; // Para compatibilidad
|
|
5
|
+
description?: string;
|
|
6
|
+
icons?: string[];
|
|
7
|
+
tag?: string;
|
|
8
|
+
halfWidth?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
iconImages?: Array<{ url: string; alt?: string }>;
|
|
11
|
+
descriptionIcons?: Array<{ url: string; alt?: string }>;
|
|
12
|
+
table?: Array<{ name: string; value: any }>;
|
|
13
|
+
checked?: boolean; // Para Checkbox
|
|
14
|
+
preIcon?: string; // Para Checkbox
|
|
15
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export interface FileItem {
|
|
2
|
+
id: string | number;
|
|
3
|
+
file: File | null;
|
|
4
|
+
progress: number;
|
|
5
|
+
state: UploadFileState;
|
|
6
|
+
previewUrl?: string;
|
|
7
|
+
typeView?: string;
|
|
8
|
+
uploadedUrl?: string;
|
|
9
|
+
fileType?: "image" | "document" | string;
|
|
10
|
+
isTemp?: boolean;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type UploadFileState =
|
|
14
|
+
| "uploading"
|
|
15
|
+
| "complete"
|
|
16
|
+
| "error"
|
|
17
|
+
| "confirm-delete"
|
|
18
|
+
| "upload-complete";
|
|
19
|
+
|
|
20
|
+
export interface UploadParams {
|
|
21
|
+
title: string;
|
|
22
|
+
label: string;
|
|
23
|
+
previewType: "card" | "grid";
|
|
24
|
+
multiple: boolean;
|
|
25
|
+
maxFiles: number;
|
|
26
|
+
maxFileSizeMB: number;
|
|
27
|
+
accept: string[];
|
|
28
|
+
compress: boolean;
|
|
29
|
+
maxHeight: number;
|
|
30
|
+
maxWidth: number;
|
|
31
|
+
path: string;
|
|
32
|
+
onlyView: boolean;
|
|
33
|
+
viewDragAndDrop: boolean;
|
|
34
|
+
textButton?: string;
|
|
35
|
+
textDropZone?: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export const FILE_TYPE_MAP: Record<string, string[]> = {
|
|
39
|
+
IMAGE: ["image/jpeg", "image/png", "image/webp"],
|
|
40
|
+
DOCUMENT: ["application/pdf"],
|
|
41
|
+
};
|