@litigiovirtual/ius-design-components 1.0.264 → 1.0.267
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/ng-package.json +10 -0
- package/package.json +18 -28
- package/src/lib/alert/alert.component.html +19 -0
- package/src/lib/alert/alert.component.scss +47 -0
- package/src/lib/alert/alert.component.spec.ts +23 -0
- package/src/lib/alert/alert.component.ts +73 -0
- package/src/lib/alert/index.ts +2 -0
- package/src/lib/avatar-business/avatar-business.component.html +39 -0
- package/src/lib/avatar-business/avatar-business.component.scss +89 -0
- package/src/lib/avatar-business/avatar-business.component.spec.ts +23 -0
- package/src/lib/avatar-business/avatar-business.component.ts +42 -0
- package/src/lib/avatar-business/index.ts +2 -0
- package/src/lib/avatar-icon/avatar-icon.component.html +20 -0
- package/src/lib/avatar-icon/avatar-icon.component.scss +29 -0
- package/src/lib/avatar-icon/avatar-icon.component.spec.ts +23 -0
- package/src/lib/avatar-icon/avatar-icon.component.ts +24 -0
- package/src/lib/avatar-icon/index.ts +2 -0
- package/src/lib/avatar-v2/avatar-v2.component.html +41 -0
- package/src/lib/avatar-v2/avatar-v2.component.scss +107 -0
- package/src/lib/avatar-v2/avatar-v2.component.spec.ts +23 -0
- package/src/lib/avatar-v2/avatar-v2.component.ts +65 -0
- package/src/lib/avatar-v2/index.ts +2 -0
- package/src/lib/badge/badge.component.html +3 -0
- package/src/lib/badge/badge.component.scss +29 -0
- package/src/lib/badge/badge.component.spec.ts +23 -0
- package/src/lib/badge/badge.component.ts +24 -0
- package/src/lib/badge/index.ts +2 -0
- package/src/lib/breadcrumb/breadcrumb.component.html +24 -0
- package/src/lib/breadcrumb/breadcrumb.component.scss +41 -0
- package/src/lib/breadcrumb/breadcrumb.component.spec.ts +23 -0
- package/src/lib/breadcrumb/breadcrumb.component.ts +25 -0
- package/src/lib/breadcrumb/index.ts +2 -0
- package/src/lib/button-accounts/button-accounts.component.html +39 -0
- package/src/lib/button-accounts/button-accounts.component.scss +110 -0
- package/src/lib/button-accounts/button-accounts.component.spec.ts +23 -0
- package/src/lib/button-accounts/button-accounts.component.ts +69 -0
- package/src/lib/button-accounts/index.ts +1 -0
- package/src/lib/button-auth/button-auth.component.html +4 -0
- package/src/lib/button-auth/button-auth.component.scss +39 -0
- package/src/lib/button-auth/button-auth.component.spec.ts +23 -0
- package/src/lib/button-auth/button-auth.component.ts +116 -0
- package/src/lib/button-auth/index.ts +1 -0
- package/src/lib/button-circle-secondary/button-circle-secondary.component.html +3 -0
- package/src/lib/button-circle-secondary/button-circle-secondary.component.scss +39 -0
- package/src/lib/button-circle-secondary/button-circle-secondary.component.spec.ts +23 -0
- package/src/lib/button-circle-secondary/button-circle-secondary.component.ts +25 -0
- package/src/lib/button-circle-secondary/index.ts +2 -0
- package/src/lib/button-circle-tertiary/button-circle-tertiary.component.html +3 -0
- package/src/lib/button-circle-tertiary/button-circle-tertiary.component.scss +38 -0
- package/src/lib/button-circle-tertiary/button-circle-tertiary.component.spec.ts +23 -0
- package/src/lib/button-circle-tertiary/button-circle-tertiary.component.ts +22 -0
- package/src/lib/button-circle-tertiary/index.ts +2 -0
- package/src/lib/button-dynamic/button-dynamic.component.html +19 -0
- package/src/lib/button-dynamic/button-dynamic.component.scss +56 -0
- package/src/lib/button-dynamic/button-dynamic.component.spec.ts +23 -0
- package/src/lib/button-dynamic/button-dynamic.component.ts +113 -0
- package/src/lib/button-dynamic/index.ts +2 -0
- package/src/lib/button-filter/button-filter.component.html +22 -0
- package/src/lib/button-filter/button-filter.component.scss +90 -0
- package/src/lib/button-filter/button-filter.component.spec.ts +23 -0
- package/src/lib/button-filter/button-filter.component.ts +94 -0
- package/src/lib/button-filter/index.ts +2 -0
- package/src/lib/button-menu-link/button-menu-link.component.html +3 -0
- package/src/lib/button-menu-link/button-menu-link.component.scss +33 -0
- package/src/lib/button-menu-link/button-menu-link.component.spec.ts +23 -0
- package/src/lib/button-menu-link/button-menu-link.component.ts +23 -0
- package/src/lib/button-menu-link/index.ts +2 -0
- package/src/lib/button-order/button-order.component.html +27 -0
- package/src/lib/button-order/button-order.component.scss +75 -0
- package/src/lib/button-order/button-order.component.spec.ts +23 -0
- package/src/lib/button-order/button-order.component.ts +84 -0
- package/src/lib/button-order/index.ts +2 -0
- package/src/lib/button-squared-secondary/button-squared-secondary.component.html +3 -0
- package/src/lib/button-squared-secondary/button-squared-secondary.component.scss +43 -0
- package/src/lib/button-squared-secondary/button-squared-secondary.component.spec.ts +23 -0
- package/src/lib/button-squared-secondary/button-squared-secondary.component.ts +23 -0
- package/src/lib/button-squared-secondary/index.ts +2 -0
- package/src/lib/button-squared-tertiary/button-squared-tertiary.component.html +3 -0
- package/src/lib/button-squared-tertiary/button-squared-tertiary.component.scss +42 -0
- package/src/lib/button-squared-tertiary/button-squared-tertiary.component.spec.ts +23 -0
- package/src/lib/button-squared-tertiary/button-squared-tertiary.component.ts +21 -0
- package/src/lib/button-squared-tertiary/index.ts +2 -0
- package/src/lib/button-standard-outline/button-standard-outline.component.html +6 -0
- package/src/lib/button-standard-outline/button-standard-outline.component.scss +51 -0
- package/src/lib/button-standard-outline/button-standard-outline.component.spec.ts +23 -0
- package/src/lib/button-standard-outline/button-standard-outline.component.ts +24 -0
- package/src/lib/button-standard-outline/index.ts +1 -0
- package/src/lib/button-standard-primary/button-standard-primary.component.html +6 -0
- package/src/lib/button-standard-primary/button-standard-primary.component.scss +41 -0
- package/src/lib/button-standard-primary/button-standard-primary.component.spec.ts +23 -0
- package/src/lib/button-standard-primary/button-standard-primary.component.ts +24 -0
- package/src/lib/button-standard-primary/index.ts +2 -0
- package/src/lib/button-standard-secondary/button-standard-secondary.component.html +3 -0
- package/src/lib/button-standard-secondary/button-standard-secondary.component.scss +39 -0
- package/src/lib/button-standard-secondary/button-standard-secondary.component.spec.ts +23 -0
- package/src/lib/button-standard-secondary/button-standard-secondary.component.ts +21 -0
- package/src/lib/button-standard-secondary/index.ts +2 -0
- package/src/lib/button-standard-tertiary/button-standard-tertiary.component.html +6 -0
- package/src/lib/button-standard-tertiary/button-standard-tertiary.component.scss +48 -0
- package/src/lib/button-standard-tertiary/button-standard-tertiary.component.spec.ts +23 -0
- package/src/lib/button-standard-tertiary/button-standard-tertiary.component.ts +22 -0
- package/src/lib/button-standard-tertiary/index.ts +2 -0
- package/src/lib/button-standard-tertiary-small/button-standard-tertiary-small.component.html +9 -0
- package/src/lib/button-standard-tertiary-small/button-standard-tertiary-small.component.scss +47 -0
- package/src/lib/button-standard-tertiary-small/button-standard-tertiary-small.component.spec.ts +23 -0
- package/src/lib/button-standard-tertiary-small/button-standard-tertiary-small.component.ts +22 -0
- package/src/lib/button-standard-tertiary-small/index.ts +2 -0
- package/src/lib/calification/calification.component.html +19 -0
- package/src/lib/calification/calification.component.scss +50 -0
- package/src/lib/calification/calification.component.spec.ts +23 -0
- package/src/lib/calification/calification.component.ts +35 -0
- package/src/lib/calification/index.ts +2 -0
- package/src/lib/card-actividad-evento/card-actividad-evento.component.html +77 -0
- package/src/lib/card-actividad-evento/card-actividad-evento.component.scss +192 -0
- package/src/lib/card-actividad-evento/card-actividad-evento.component.spec.ts +23 -0
- package/src/lib/card-actividad-evento/card-actividad-evento.component.ts +142 -0
- package/src/lib/card-actividad-evento/index.ts +2 -0
- package/src/lib/card-agenda-judicial/card-agenda-judicial.component.html +53 -0
- package/src/lib/card-agenda-judicial/card-agenda-judicial.component.scss +151 -0
- package/src/lib/card-agenda-judicial/card-agenda-judicial.component.spec.ts +23 -0
- package/src/lib/card-agenda-judicial/card-agenda-judicial.component.ts +51 -0
- package/src/lib/card-agenda-judicial/index.ts +2 -0
- package/src/lib/card-block/card-block.component.html +56 -0
- package/src/lib/card-block/card-block.component.scss +116 -0
- package/src/lib/card-block/card-block.component.spec.ts +23 -0
- package/src/lib/card-block/card-block.component.ts +43 -0
- package/src/lib/card-block/index.ts +2 -0
- package/src/lib/card-button-checkbox/card-button-checkbox.component.html +15 -0
- package/src/lib/card-button-checkbox/card-button-checkbox.component.scss +98 -0
- package/src/lib/card-button-checkbox/card-button-checkbox.component.spec.ts +23 -0
- package/src/lib/card-button-checkbox/card-button-checkbox.component.ts +29 -0
- package/src/lib/card-button-checkbox/index.ts +2 -0
- package/src/lib/card-collapse-detalle-proceso/card-collapse-detalle-proceso.component.html +19 -0
- package/src/lib/card-collapse-detalle-proceso/card-collapse-detalle-proceso.component.scss +104 -0
- package/src/lib/card-collapse-detalle-proceso/card-collapse-detalle-proceso.component.spec.ts +23 -0
- package/src/lib/card-collapse-detalle-proceso/card-collapse-detalle-proceso.component.ts +26 -0
- package/src/lib/card-collapse-detalle-proceso/index.ts +1 -0
- package/src/lib/card-dynamic-content/card-dynamic-content.component.html +9 -0
- package/src/lib/card-dynamic-content/card-dynamic-content.component.scss +22 -0
- package/src/lib/card-dynamic-content/card-dynamic-content.component.spec.ts +23 -0
- package/src/lib/card-dynamic-content/card-dynamic-content.component.ts +15 -0
- package/src/lib/card-dynamic-content/index.ts +2 -0
- package/src/lib/card-etapa-subetapa/card-etapa-subetapa.component.html +66 -0
- package/src/lib/card-etapa-subetapa/card-etapa-subetapa.component.scss +158 -0
- package/src/lib/card-etapa-subetapa/card-etapa-subetapa.component.spec.ts +23 -0
- package/src/lib/card-etapa-subetapa/card-etapa-subetapa.component.ts +102 -0
- package/src/lib/card-etapa-subetapa/index.ts +2 -0
- package/src/lib/card-gestion-cupo/card-gestion-cupo.component.html +21 -0
- package/src/lib/card-gestion-cupo/card-gestion-cupo.component.scss +88 -0
- package/src/lib/card-gestion-cupo/card-gestion-cupo.component.spec.ts +23 -0
- package/src/lib/card-gestion-cupo/card-gestion-cupo.component.ts +22 -0
- package/src/lib/card-gestion-cupo/index.ts +2 -0
- package/src/lib/card-impulso-procesal/card-impulso-procesal.component.html +62 -0
- package/src/lib/card-impulso-procesal/card-impulso-procesal.component.scss +158 -0
- package/src/lib/card-impulso-procesal/card-impulso-procesal.component.spec.ts +23 -0
- package/src/lib/card-impulso-procesal/card-impulso-procesal.component.ts +100 -0
- package/src/lib/card-impulso-procesal/index.ts +2 -0
- package/src/lib/card-info-facturacion/card-info-facturacion.component.html +63 -0
- package/src/lib/card-info-facturacion/card-info-facturacion.component.scss +126 -0
- package/src/lib/card-info-facturacion/card-info-facturacion.component.spec.ts +23 -0
- package/src/lib/card-info-facturacion/card-info-facturacion.component.ts +31 -0
- package/src/lib/card-info-facturacion/index.ts +2 -0
- package/src/lib/card-list-consumo/card-list-consumo.component.html +23 -0
- package/src/lib/card-list-consumo/card-list-consumo.component.scss +132 -0
- package/src/lib/card-list-consumo/card-list-consumo.component.spec.ts +23 -0
- package/src/lib/card-list-consumo/card-list-consumo.component.ts +39 -0
- package/src/lib/card-list-consumo/index.ts +2 -0
- package/src/lib/card-list-drag-on/card-list-drag-on.component.html +64 -0
- package/src/lib/card-list-drag-on/card-list-drag-on.component.scss +159 -0
- package/src/lib/card-list-drag-on/card-list-drag-on.component.spec.ts +23 -0
- package/src/lib/card-list-drag-on/card-list-drag-on.component.ts +60 -0
- package/src/lib/card-list-drag-on/index.ts +2 -0
- package/src/lib/card-list-movimientos/card-list-movimientos.component.html +154 -0
- package/src/lib/card-list-movimientos/card-list-movimientos.component.scss +150 -0
- package/src/lib/card-list-movimientos/card-list-movimientos.component.spec.ts +23 -0
- package/src/lib/card-list-movimientos/card-list-movimientos.component.ts +28 -0
- package/src/lib/card-list-movimientos/index.ts +2 -0
- package/src/lib/card-list-proceso/card-list-proceso.component.html +27 -0
- package/src/lib/card-list-proceso/card-list-proceso.component.scss +131 -0
- package/src/lib/card-list-proceso/card-list-proceso.component.spec.ts +23 -0
- package/src/lib/card-list-proceso/card-list-proceso.component.ts +32 -0
- package/src/lib/card-list-proceso/index.ts +2 -0
- package/src/lib/card-log/card-log.component.html +30 -0
- package/src/lib/card-log/card-log.component.scss +114 -0
- package/src/lib/card-log/card-log.component.spec.ts +23 -0
- package/src/lib/card-log/card-log.component.ts +26 -0
- package/src/lib/card-log/index.ts +2 -0
- package/src/lib/card-plan-small/card-plan-small.component.html +12 -0
- package/src/lib/card-plan-small/card-plan-small.component.scss +80 -0
- package/src/lib/card-plan-small/card-plan-small.component.spec.ts +23 -0
- package/src/lib/card-plan-small/card-plan-small.component.ts +17 -0
- package/src/lib/card-plan-small/index.ts +2 -0
- package/src/lib/card-plan-subscription/card-plan-subscription.component.html +65 -0
- package/src/lib/card-plan-subscription/card-plan-subscription.component.scss +273 -0
- package/src/lib/card-plan-subscription/card-plan-subscription.component.spec.ts +23 -0
- package/src/lib/card-plan-subscription/card-plan-subscription.component.ts +45 -0
- package/src/lib/card-plan-subscription/index.ts +2 -0
- package/src/lib/card-ticket/card-ticket.component.html +40 -0
- package/src/lib/card-ticket/card-ticket.component.scss +253 -0
- package/src/lib/card-ticket/card-ticket.component.spec.ts +23 -0
- package/src/lib/card-ticket/card-ticket.component.ts +44 -0
- package/src/lib/card-ticket/index.ts +2 -0
- package/src/lib/card-tipo-proceso/card-tipo-proceso.component.html +61 -0
- package/src/lib/card-tipo-proceso/card-tipo-proceso.component.scss +179 -0
- package/src/lib/card-tipo-proceso/card-tipo-proceso.component.spec.ts +23 -0
- package/src/lib/card-tipo-proceso/card-tipo-proceso.component.ts +58 -0
- package/src/lib/card-tipo-proceso/index.ts +2 -0
- package/src/lib/card-uso-plan/card-uso-plan.component.html +74 -0
- package/src/lib/card-uso-plan/card-uso-plan.component.scss +143 -0
- package/src/lib/card-uso-plan/card-uso-plan.component.spec.ts +23 -0
- package/src/lib/card-uso-plan/card-uso-plan.component.ts +31 -0
- package/src/lib/card-uso-plan/index.ts +2 -0
- package/src/lib/card-vigilancia-judicial/card-vigilancia-judicial.component.html +76 -0
- package/src/lib/card-vigilancia-judicial/card-vigilancia-judicial.component.scss +161 -0
- package/src/lib/card-vigilancia-judicial/card-vigilancia-judicial.component.spec.ts +23 -0
- package/src/lib/card-vigilancia-judicial/card-vigilancia-judicial.component.ts +111 -0
- package/src/lib/card-vigilancia-judicial/index.ts +2 -0
- package/src/lib/categories/categories.component.html +13 -0
- package/src/lib/categories/categories.component.scss +51 -0
- package/src/lib/categories/categories.component.spec.ts +23 -0
- package/src/lib/categories/categories.component.ts +31 -0
- package/src/lib/categories/index.ts +2 -0
- package/src/lib/charts-bar-grouped/charts-bar-grouped.component.html +79 -0
- package/src/lib/charts-bar-grouped/charts-bar-grouped.component.scss +141 -0
- package/src/lib/charts-bar-grouped/charts-bar-grouped.component.spec.ts +23 -0
- package/src/lib/charts-bar-grouped/charts-bar-grouped.component.ts +284 -0
- package/src/lib/charts-bar-grouped/index.ts +2 -0
- package/src/lib/charts-donut/charts-donut.component.html +57 -0
- package/src/lib/charts-donut/charts-donut.component.scss +125 -0
- package/src/lib/charts-donut/charts-donut.component.spec.ts +23 -0
- package/src/lib/charts-donut/charts-donut.component.ts +148 -0
- package/src/lib/charts-donut/index.ts +2 -0
- package/src/lib/checkbox/checkbox.component.html +9 -0
- package/src/lib/checkbox/checkbox.component.scss +67 -0
- package/src/lib/checkbox/checkbox.component.spec.ts +23 -0
- package/src/lib/checkbox/checkbox.component.ts +27 -0
- package/src/lib/checkbox/index.ts +2 -0
- package/src/lib/checkbox-radio/checkbox-radio.component.html +19 -0
- package/src/lib/checkbox-radio/checkbox-radio.component.scss +126 -0
- package/src/lib/checkbox-radio/checkbox-radio.component.spec.ts +23 -0
- package/src/lib/checkbox-radio/checkbox-radio.component.ts +70 -0
- package/src/lib/checkbox-radio/index.ts +2 -0
- package/src/lib/chip/chip.component.html +16 -0
- package/src/lib/chip/chip.component.scss +74 -0
- package/src/lib/chip/chip.component.spec.ts +21 -0
- package/src/lib/chip/chip.component.ts +23 -0
- package/src/lib/chip/index.ts +1 -0
- package/src/lib/chip-user/chip-user.component.html +13 -0
- package/src/lib/chip-user/chip-user.component.scss +66 -0
- package/src/lib/chip-user/chip-user.component.spec.ts +23 -0
- package/src/lib/chip-user/chip-user.component.ts +22 -0
- package/src/lib/chip-user/index.ts +2 -0
- package/src/lib/create-ticket/create-ticket.component.html +57 -0
- package/src/lib/create-ticket/create-ticket.component.scss +54 -0
- package/src/lib/create-ticket/create-ticket.component.ts +119 -0
- package/src/lib/create-ticket/index.ts +1 -0
- package/src/lib/custom-dropdown/custom-dropdown.component.html +89 -0
- package/src/lib/custom-dropdown/custom-dropdown.component.scss +209 -0
- package/src/lib/custom-dropdown/custom-dropdown.component.spec.ts +23 -0
- package/src/lib/custom-dropdown/custom-dropdown.component.ts +122 -0
- package/src/lib/custom-dropdown/index.ts +2 -0
- package/src/lib/date-hour-picker/date-hour-picker.component.html +216 -0
- package/src/lib/date-hour-picker/date-hour-picker.component.scss +516 -0
- package/src/lib/date-hour-picker/date-hour-picker.component.spec.ts +22 -0
- package/src/lib/date-hour-picker/date-hour-picker.component.ts +317 -0
- package/src/lib/date-hour-picker/index.ts +2 -0
- package/src/lib/date-picker/date-picker.component.html +121 -0
- package/src/lib/date-picker/date-picker.component.scss +337 -0
- package/src/lib/date-picker/date-picker.component.spec.ts +23 -0
- package/src/lib/date-picker/date-picker.component.ts +164 -0
- package/src/lib/date-picker/index.ts +2 -0
- package/src/lib/directives/infinite-scroll.directive.ts +60 -0
- package/src/lib/directives/popover.directive.ts +164 -0
- package/src/lib/double-date-picker/double-date-picker.component.html +176 -0
- package/src/lib/double-date-picker/double-date-picker.component.scss +365 -0
- package/src/lib/double-date-picker/double-date-picker.component.spec.ts +23 -0
- package/src/lib/double-date-picker/double-date-picker.component.ts +237 -0
- package/src/lib/double-date-picker/index.ts +2 -0
- package/src/lib/drawer-container-right/drawer-container-right.component.html +24 -0
- package/src/lib/drawer-container-right/drawer-container-right.component.scss +75 -0
- package/src/lib/drawer-container-right/drawer-container-right.component.spec.ts +23 -0
- package/src/lib/drawer-container-right/drawer-container-right.component.ts +49 -0
- package/src/lib/drawer-container-right/index.ts +1 -0
- package/src/lib/dropdown/dropdown.component.html +36 -0
- package/src/lib/dropdown/dropdown.component.scss +147 -0
- package/src/lib/dropdown/dropdown.component.spec.ts +23 -0
- package/src/lib/dropdown/dropdown.component.ts +81 -0
- package/src/lib/dropdown/index.ts +2 -0
- package/src/lib/dropdown-contextual-menu/dropdown-contextual-menu.component.html +7 -0
- package/src/lib/dropdown-contextual-menu/dropdown-contextual-menu.component.scss +20 -0
- package/src/lib/dropdown-contextual-menu/dropdown-contextual-menu.component.spec.ts +23 -0
- package/src/lib/dropdown-contextual-menu/dropdown-contextual-menu.component.ts +12 -0
- package/src/lib/dropdown-contextual-menu/index.ts +2 -0
- package/src/lib/dropdown-option-item/dropdown-option-item.component.html +6 -0
- package/src/lib/dropdown-option-item/dropdown-option-item.component.scss +40 -0
- package/src/lib/dropdown-option-item/dropdown-option-item.component.spec.ts +23 -0
- package/src/lib/dropdown-option-item/dropdown-option-item.component.ts +27 -0
- package/src/lib/dropdown-option-item/index.ts +2 -0
- package/src/lib/dropdown-user-menu/dropdown-user-menu.component.html +11 -0
- package/src/lib/dropdown-user-menu/dropdown-user-menu.component.scss +111 -0
- package/src/lib/dropdown-user-menu/dropdown-user-menu.component.spec.ts +23 -0
- package/src/lib/dropdown-user-menu/dropdown-user-menu.component.ts +57 -0
- package/src/lib/dropdown-user-menu/index.ts +2 -0
- package/src/lib/empty-list/empty-list.component.html +17 -0
- package/src/lib/empty-list/empty-list.component.scss +68 -0
- package/src/lib/empty-list/empty-list.component.spec.ts +23 -0
- package/src/lib/empty-list/empty-list.component.ts +15 -0
- package/src/lib/empty-list/index.ts +2 -0
- package/src/lib/filter-item/filter-item.component.html +6 -0
- package/src/lib/filter-item/filter-item.component.scss +38 -0
- package/src/lib/filter-item/filter-item.component.spec.ts +23 -0
- package/src/lib/filter-item/filter-item.component.ts +22 -0
- package/src/lib/filter-item/index.ts +1 -0
- package/src/lib/icon-lg/icon-lg.component.html +1 -0
- package/src/lib/icon-lg/icon-lg.component.scss +14 -0
- package/src/lib/icon-lg/icon-lg.component.spec.ts +23 -0
- package/src/lib/icon-lg/icon-lg.component.ts +25 -0
- package/src/lib/icon-lg/index.ts +2 -0
- package/src/lib/icon-md/icon-md.component.html +1 -0
- package/src/lib/icon-md/icon-md.component.scss +14 -0
- package/src/lib/icon-md/icon-md.component.spec.ts +23 -0
- package/src/lib/icon-md/icon-md.component.ts +25 -0
- package/src/lib/icon-md/index.ts +2 -0
- package/src/lib/icon-sm/icon-sm.component.html +1 -0
- package/src/lib/icon-sm/icon-sm.component.scss +14 -0
- package/src/lib/icon-sm/icon-sm.component.spec.ts +23 -0
- package/src/lib/icon-sm/icon-sm.component.ts +25 -0
- package/src/lib/icon-sm/index.ts +2 -0
- package/src/lib/icon-xl/icon-xl.component.html +1 -0
- package/src/lib/icon-xl/icon-xl.component.scss +14 -0
- package/src/lib/icon-xl/icon-xl.component.spec.ts +23 -0
- package/src/lib/icon-xl/icon-xl.component.ts +25 -0
- package/src/lib/icon-xl/index.ts +2 -0
- package/src/lib/icon-xs/icon-xs.component.html +1 -0
- package/src/lib/icon-xs/icon-xs.component.scss +14 -0
- package/src/lib/icon-xs/icon-xs.component.spec.ts +23 -0
- package/src/lib/icon-xs/icon-xs.component.ts +26 -0
- package/src/lib/icon-xs/index.ts +2 -0
- package/src/lib/icon-xxl/icon-xxl.component.html +1 -0
- package/src/lib/icon-xxl/icon-xxl.component.scss +14 -0
- package/src/lib/icon-xxl/icon-xxl.component.spec.ts +23 -0
- package/src/lib/icon-xxl/icon-xxl.component.ts +25 -0
- package/src/lib/icon-xxl/index.ts +2 -0
- package/src/lib/icons/icons-map.ts +1163 -0
- package/src/lib/input-card/index.ts +2 -0
- package/src/lib/input-card/input-card.component.html +67 -0
- package/src/lib/input-card/input-card.component.scss +221 -0
- package/src/lib/input-card/input-card.component.spec.ts +23 -0
- package/src/lib/input-card/input-card.component.ts +156 -0
- package/src/lib/input-large/index.ts +2 -0
- package/src/lib/input-large/input-large.component.html +46 -0
- package/src/lib/input-large/input-large.component.scss +152 -0
- package/src/lib/input-large/input-large.component.spec.ts +23 -0
- package/src/lib/input-large/input-large.component.ts +79 -0
- package/src/lib/input-otp/index.ts +2 -0
- package/src/lib/input-otp/input-otp.component.html +60 -0
- package/src/lib/input-otp/input-otp.component.scss +141 -0
- package/src/lib/input-otp/input-otp.component.spec.ts +23 -0
- package/src/lib/input-otp/input-otp.component.ts +161 -0
- package/src/lib/input-password/index.ts +2 -0
- package/src/lib/input-password/input-password.component.html +44 -0
- package/src/lib/input-password/input-password.component.scss +142 -0
- package/src/lib/input-password/input-password.component.spec.ts +23 -0
- package/src/lib/input-password/input-password.component.ts +73 -0
- package/src/lib/input-select/index.ts +2 -0
- package/src/lib/input-select/input-select.component.html +52 -0
- package/src/lib/input-select/input-select.component.scss +195 -0
- package/src/lib/input-select/input-select.component.spec.ts +23 -0
- package/src/lib/input-select/input-select.component.ts +181 -0
- package/src/lib/input-select-filter/index.ts +2 -0
- package/src/lib/input-select-filter/input-select-filter.component.html +56 -0
- package/src/lib/input-select-filter/input-select-filter.component.scss +266 -0
- package/src/lib/input-select-filter/input-select-filter.component.spec.ts +23 -0
- package/src/lib/input-select-filter/input-select-filter.component.ts +214 -0
- package/src/lib/input-select-number/index.ts +2 -0
- package/src/lib/input-select-number/input-select-number.component.html +24 -0
- package/src/lib/input-select-number/input-select-number.component.scss +128 -0
- package/src/lib/input-select-number/input-select-number.component.spec.ts +23 -0
- package/src/lib/input-select-number/input-select-number.component.ts +68 -0
- package/src/lib/input-textfield/index.ts +2 -0
- package/src/lib/input-textfield/input-textfield.component.html +65 -0
- package/src/lib/input-textfield/input-textfield.component.scss +167 -0
- package/src/lib/input-textfield/input-textfield.component.spec.ts +23 -0
- package/src/lib/input-textfield/input-textfield.component.ts +125 -0
- package/src/lib/item-document/index.ts +1 -0
- package/src/lib/item-document/item-document.component.html +53 -0
- package/src/lib/item-document/item-document.component.scss +72 -0
- package/src/lib/item-document/item-document.component.spec.ts +23 -0
- package/src/lib/item-document/item-document.component.ts +51 -0
- package/src/lib/linear-progress-bar/index.ts +2 -0
- package/src/lib/linear-progress-bar/linear-progress-bar.component.html +4 -0
- package/src/lib/linear-progress-bar/linear-progress-bar.component.scss +26 -0
- package/src/lib/linear-progress-bar/linear-progress-bar.component.spec.ts +23 -0
- package/src/lib/linear-progress-bar/linear-progress-bar.component.ts +12 -0
- package/src/lib/loading-circle/index.ts +2 -0
- package/src/lib/loading-circle/loading-circle.component.html +3 -0
- package/src/lib/loading-circle/loading-circle.component.scss +19 -0
- package/src/lib/loading-circle/loading-circle.component.spec.ts +23 -0
- package/src/lib/loading-circle/loading-circle.component.ts +14 -0
- package/src/lib/loading-component-dynamic/index.ts +2 -0
- package/src/lib/loading-component-dynamic/loading-animation.const.ts +274 -0
- package/src/lib/loading-component-dynamic/loading-component-dynamic.component.html +42 -0
- package/src/lib/loading-component-dynamic/loading-component-dynamic.component.scss +52 -0
- package/src/lib/loading-component-dynamic/loading-component-dynamic.component.spec.ts +23 -0
- package/src/lib/loading-component-dynamic/loading-component-dynamic.component.ts +44 -0
- package/src/lib/menu-item/index.ts +2 -0
- package/src/lib/menu-item/menu-item.component.html +9 -0
- package/src/lib/menu-item/menu-item.component.scss +55 -0
- package/src/lib/menu-item/menu-item.component.spec.ts +23 -0
- package/src/lib/menu-item/menu-item.component.ts +26 -0
- package/src/lib/nav-rail/index.ts +2 -0
- package/src/lib/nav-rail/nav-rail.component.html +14 -0
- package/src/lib/nav-rail/nav-rail.component.scss +58 -0
- package/src/lib/nav-rail/nav-rail.component.spec.ts +23 -0
- package/src/lib/nav-rail/nav-rail.component.ts +39 -0
- package/src/lib/notification-card/index.ts +2 -0
- package/src/lib/notification-card/notification-card.component.html +69 -0
- package/src/lib/notification-card/notification-card.component.scss +137 -0
- package/src/lib/notification-card/notification-card.component.spec.ts +23 -0
- package/src/lib/notification-card/notification-card.component.ts +76 -0
- package/src/lib/notifications/index.ts +2 -0
- package/src/lib/notifications/notifications.component.html +49 -0
- package/src/lib/notifications/notifications.component.scss +113 -0
- package/src/lib/notifications/notifications.component.spec.ts +23 -0
- package/src/lib/notifications/notifications.component.ts +64 -0
- package/src/lib/option/index.ts +2 -0
- package/src/lib/option/option.component.html +11 -0
- package/src/lib/option/option.component.scss +54 -0
- package/src/lib/option/option.component.spec.ts +23 -0
- package/src/lib/option/option.component.ts +27 -0
- package/src/lib/option-item/index.ts +1 -0
- package/src/lib/option-item/option-item.component.html +6 -0
- package/src/lib/option-item/option-item.component.scss +47 -0
- package/src/lib/option-item/option-item.component.spec.ts +23 -0
- package/src/lib/option-item/option-item.component.ts +22 -0
- package/src/lib/page-not-found/index.ts +2 -0
- package/src/lib/page-not-found/page-not-found.component.html +46 -0
- package/src/lib/page-not-found/page-not-found.component.scss +72 -0
- package/src/lib/page-not-found/page-not-found.component.spec.ts +23 -0
- package/src/lib/page-not-found/page-not-found.component.ts +23 -0
- package/src/lib/popover/popover.component.html +8 -0
- package/src/lib/popover/popover.component.scss +80 -0
- package/src/lib/popover/popover.component.spec.ts +23 -0
- package/src/lib/popover/popover.component.ts +18 -0
- package/src/lib/progress-bar/progress-bar.component.html +23 -0
- package/src/lib/progress-bar/progress-bar.component.scss +37 -0
- package/src/lib/progress-bar/progress-bar.component.spec.ts +23 -0
- package/src/lib/progress-bar/progress-bar.component.ts +109 -0
- package/src/lib/search-bar/index.ts +2 -0
- package/src/lib/search-bar/search-bar.component.html +26 -0
- package/src/lib/search-bar/search-bar.component.scss +100 -0
- package/src/lib/search-bar/search-bar.component.spec.ts +23 -0
- package/src/lib/search-bar/search-bar.component.ts +70 -0
- package/src/lib/section-collapse-drawer-child/index.ts +2 -0
- package/src/lib/section-collapse-drawer-child/section-collapse-drawer-child.component.html +15 -0
- package/src/lib/section-collapse-drawer-child/section-collapse-drawer-child.component.scss +52 -0
- package/src/lib/section-collapse-drawer-child/section-collapse-drawer-child.component.spec.ts +23 -0
- package/src/lib/section-collapse-drawer-child/section-collapse-drawer-child.component.ts +45 -0
- package/src/lib/section-collapse-drawer-parent/index.ts +2 -0
- package/src/lib/section-collapse-drawer-parent/section-collapse-drawer-parent.component.html +16 -0
- package/src/lib/section-collapse-drawer-parent/section-collapse-drawer-parent.component.scss +52 -0
- package/src/lib/section-collapse-drawer-parent/section-collapse-drawer-parent.component.spec.ts +23 -0
- package/src/lib/section-collapse-drawer-parent/section-collapse-drawer-parent.component.ts +46 -0
- package/src/lib/segment/index.ts +1 -0
- package/src/lib/segment/segment.component.html +15 -0
- package/src/lib/segment/segment.component.scss +62 -0
- package/src/lib/segment/segment.component.spec.ts +23 -0
- package/src/lib/segment/segment.component.ts +34 -0
- package/src/lib/simple-card-contador/index.ts +2 -0
- package/src/lib/simple-card-contador/simple-card-contador.component.html +39 -0
- package/src/lib/simple-card-contador/simple-card-contador.component.scss +110 -0
- package/src/lib/simple-card-contador/simple-card-contador.component.spec.ts +23 -0
- package/src/lib/simple-card-contador/simple-card-contador.component.ts +56 -0
- package/src/lib/simple-chip/index.ts +2 -0
- package/src/lib/simple-chip/simple-chip.component.html +8 -0
- package/src/lib/simple-chip/simple-chip.component.scss +49 -0
- package/src/lib/simple-chip/simple-chip.component.spec.ts +23 -0
- package/src/lib/simple-chip/simple-chip.component.ts +26 -0
- package/src/lib/simple-divider/index.ts +2 -0
- package/src/lib/simple-divider/simple-divider.component.html +1 -0
- package/src/lib/simple-divider/simple-divider.component.scss +9 -0
- package/src/lib/simple-divider/simple-divider.component.spec.ts +23 -0
- package/src/lib/simple-divider/simple-divider.component.ts +12 -0
- package/src/lib/simple-user-card/index.ts +2 -0
- package/src/lib/simple-user-card/simple-user-card.component.html +20 -0
- package/src/lib/simple-user-card/simple-user-card.component.scss +113 -0
- package/src/lib/simple-user-card/simple-user-card.component.spec.ts +23 -0
- package/src/lib/simple-user-card/simple-user-card.component.ts +17 -0
- package/src/lib/slide-toggle/index.ts +1 -0
- package/src/lib/slide-toggle/slide-toggle.component.html +6 -0
- package/src/lib/slide-toggle/slide-toggle.component.scss +49 -0
- package/src/lib/slide-toggle/slide-toggle.component.spec.ts +23 -0
- package/src/lib/slide-toggle/slide-toggle.component.ts +19 -0
- package/src/lib/snackbar/index.ts +1 -0
- package/src/lib/snackbar/snackbar.component.html +10 -0
- package/src/lib/snackbar/snackbar.component.scss +92 -0
- package/src/lib/snackbar/snackbar.component.spec.ts +23 -0
- package/src/lib/snackbar/snackbar.component.ts +34 -0
- package/src/lib/support-panel/index.ts +1 -0
- package/src/lib/support-panel/support-panel.component.html +30 -0
- package/src/lib/support-panel/support-panel.component.scss +72 -0
- package/src/lib/support-panel/support-panel.component.spec.ts +23 -0
- package/src/lib/support-panel/support-panel.component.ts +44 -0
- package/src/lib/toolbar/index.ts +1 -0
- package/src/lib/toolbar/toolbar.component.html +127 -0
- package/src/lib/toolbar/toolbar.component.scss +139 -0
- package/src/lib/toolbar/toolbar.component.spec.ts +23 -0
- package/src/lib/toolbar/toolbar.component.ts +388 -0
- package/src/lib/toolbar-user-menu/index.ts +1 -0
- package/src/lib/toolbar-user-menu/toolbar-user-menu.component.html +180 -0
- package/src/lib/toolbar-user-menu/toolbar-user-menu.component.scss +282 -0
- package/src/lib/toolbar-user-menu/toolbar-user-menu.component.spec.ts +23 -0
- package/src/lib/toolbar-user-menu/toolbar-user-menu.component.ts +111 -0
- package/src/lib/user-card/index.ts +1 -0
- package/src/lib/user-card/user-card.component.html +81 -0
- package/src/lib/user-card/user-card.component.scss +235 -0
- package/src/lib/user-card/user-card.component.spec.ts +23 -0
- package/src/lib/user-card/user-card.component.ts +67 -0
- package/src/public-api.ts +108 -0
- package/tsconfig.lib.json +14 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +14 -0
- package/esm2022/lib/alert/alert.component.mjs +0 -76
- package/esm2022/lib/alert/index.mjs +0 -2
- package/esm2022/lib/avatar-business/avatar-business.component.mjs +0 -52
- package/esm2022/lib/avatar-business/index.mjs +0 -2
- package/esm2022/lib/avatar-icon/avatar-icon.component.mjs +0 -33
- package/esm2022/lib/avatar-icon/index.mjs +0 -2
- package/esm2022/lib/avatar-v2/avatar-v2.component.mjs +0 -74
- package/esm2022/lib/avatar-v2/index.mjs +0 -2
- package/esm2022/lib/badge/badge.component.mjs +0 -26
- package/esm2022/lib/badge/index.mjs +0 -2
- package/esm2022/lib/breadcrumb/breadcrumb.component.mjs +0 -22
- package/esm2022/lib/breadcrumb/index.mjs +0 -2
- package/esm2022/lib/button-accounts/button-accounts.component.mjs +0 -64
- package/esm2022/lib/button-accounts/index.mjs +0 -2
- package/esm2022/lib/button-auth/button-auth.component.mjs +0 -113
- package/esm2022/lib/button-auth/index.mjs +0 -2
- package/esm2022/lib/button-circle-secondary/button-circle-secondary.component.mjs +0 -28
- package/esm2022/lib/button-circle-secondary/index.mjs +0 -2
- package/esm2022/lib/button-circle-tertiary/button-circle-tertiary.component.mjs +0 -28
- package/esm2022/lib/button-circle-tertiary/index.mjs +0 -2
- package/esm2022/lib/button-dynamic/button-dynamic.component.mjs +0 -115
- package/esm2022/lib/button-dynamic/index.mjs +0 -2
- package/esm2022/lib/button-filter/button-filter.component.mjs +0 -90
- package/esm2022/lib/button-filter/index.mjs +0 -2
- package/esm2022/lib/button-menu-link/button-menu-link.component.mjs +0 -31
- package/esm2022/lib/button-menu-link/index.mjs +0 -2
- package/esm2022/lib/button-order/button-order.component.mjs +0 -75
- package/esm2022/lib/button-order/index.mjs +0 -2
- package/esm2022/lib/button-squared-secondary/button-squared-secondary.component.mjs +0 -28
- package/esm2022/lib/button-squared-secondary/index.mjs +0 -2
- package/esm2022/lib/button-squared-tertiary/button-squared-tertiary.component.mjs +0 -28
- package/esm2022/lib/button-squared-tertiary/index.mjs +0 -2
- package/esm2022/lib/button-standard-outline/button-standard-outline.component.mjs +0 -28
- package/esm2022/lib/button-standard-outline/index.mjs +0 -2
- package/esm2022/lib/button-standard-primary/button-standard-primary.component.mjs +0 -28
- package/esm2022/lib/button-standard-primary/index.mjs +0 -2
- package/esm2022/lib/button-standard-secondary/button-standard-secondary.component.mjs +0 -24
- package/esm2022/lib/button-standard-secondary/index.mjs +0 -2
- package/esm2022/lib/button-standard-tertiary/button-standard-tertiary.component.mjs +0 -28
- package/esm2022/lib/button-standard-tertiary/index.mjs +0 -2
- package/esm2022/lib/button-standard-tertiary-small/button-standard-tertiary-small.component.mjs +0 -31
- package/esm2022/lib/button-standard-tertiary-small/index.mjs +0 -2
- package/esm2022/lib/calification/calification.component.mjs +0 -36
- package/esm2022/lib/calification/index.mjs +0 -2
- package/esm2022/lib/card-actividad-evento/card-actividad-evento.component.mjs +0 -172
- package/esm2022/lib/card-actividad-evento/index.mjs +0 -2
- package/esm2022/lib/card-agenda-judicial/card-agenda-judicial.component.mjs +0 -62
- package/esm2022/lib/card-agenda-judicial/index.mjs +0 -2
- package/esm2022/lib/card-block/card-block.component.mjs +0 -53
- package/esm2022/lib/card-block/index.mjs +0 -2
- package/esm2022/lib/card-button-checkbox/card-button-checkbox.component.mjs +0 -42
- package/esm2022/lib/card-button-checkbox/index.mjs +0 -2
- package/esm2022/lib/card-collapse-detalle-proceso/card-collapse-detalle-proceso.component.mjs +0 -32
- package/esm2022/lib/card-collapse-detalle-proceso/index.mjs +0 -2
- package/esm2022/lib/card-dynamic-content/card-dynamic-content.component.mjs +0 -20
- package/esm2022/lib/card-dynamic-content/index.mjs +0 -2
- package/esm2022/lib/card-etapa-subetapa/card-etapa-subetapa.component.mjs +0 -124
- package/esm2022/lib/card-etapa-subetapa/index.mjs +0 -2
- package/esm2022/lib/card-gestion-cupo/card-gestion-cupo.component.mjs +0 -28
- package/esm2022/lib/card-gestion-cupo/index.mjs +0 -2
- package/esm2022/lib/card-impulso-procesal/card-impulso-procesal.component.mjs +0 -120
- package/esm2022/lib/card-impulso-procesal/index.mjs +0 -2
- package/esm2022/lib/card-info-facturacion/card-info-facturacion.component.mjs +0 -43
- package/esm2022/lib/card-info-facturacion/index.mjs +0 -2
- package/esm2022/lib/card-list-consumo/card-list-consumo.component.mjs +0 -39
- package/esm2022/lib/card-list-consumo/index.mjs +0 -2
- package/esm2022/lib/card-list-drag-on/card-list-drag-on.component.mjs +0 -84
- package/esm2022/lib/card-list-drag-on/index.mjs +0 -2
- package/esm2022/lib/card-list-movimientos/card-list-movimientos.component.mjs +0 -43
- package/esm2022/lib/card-list-movimientos/index.mjs +0 -2
- package/esm2022/lib/card-list-proceso/card-list-proceso.component.mjs +0 -44
- package/esm2022/lib/card-list-proceso/index.mjs +0 -2
- package/esm2022/lib/card-log/card-log.component.mjs +0 -36
- package/esm2022/lib/card-log/index.mjs +0 -2
- package/esm2022/lib/card-plan-small/card-plan-small.component.mjs +0 -18
- package/esm2022/lib/card-plan-small/index.mjs +0 -2
- package/esm2022/lib/card-plan-subscription/card-plan-subscription.component.mjs +0 -55
- package/esm2022/lib/card-plan-subscription/index.mjs +0 -2
- package/esm2022/lib/card-ticket/card-ticket.component.mjs +0 -54
- package/esm2022/lib/card-ticket/index.mjs +0 -2
- package/esm2022/lib/card-tipo-proceso/card-tipo-proceso.component.mjs +0 -67
- package/esm2022/lib/card-tipo-proceso/index.mjs +0 -2
- package/esm2022/lib/card-uso-plan/card-uso-plan.component.mjs +0 -43
- package/esm2022/lib/card-uso-plan/index.mjs +0 -2
- package/esm2022/lib/card-vigilancia-judicial/card-vigilancia-judicial.component.mjs +0 -129
- package/esm2022/lib/card-vigilancia-judicial/index.mjs +0 -2
- package/esm2022/lib/categories/categories.component.mjs +0 -43
- package/esm2022/lib/categories/index.mjs +0 -2
- package/esm2022/lib/charts-bar-grouped/charts-bar-grouped.component.mjs +0 -238
- package/esm2022/lib/charts-bar-grouped/index.mjs +0 -2
- package/esm2022/lib/charts-donut/charts-donut.component.mjs +0 -137
- package/esm2022/lib/charts-donut/index.mjs +0 -2
- package/esm2022/lib/checkbox/checkbox.component.mjs +0 -31
- package/esm2022/lib/checkbox/index.mjs +0 -2
- package/esm2022/lib/checkbox-radio/checkbox-radio.component.mjs +0 -74
- package/esm2022/lib/checkbox-radio/index.mjs +0 -2
- package/esm2022/lib/chip/chip.component.mjs +0 -33
- package/esm2022/lib/chip/index.mjs +0 -2
- package/esm2022/lib/chip-user/chip-user.component.mjs +0 -30
- package/esm2022/lib/chip-user/index.mjs +0 -2
- package/esm2022/lib/create-ticket/create-ticket.component.mjs +0 -101
- package/esm2022/lib/create-ticket/index.mjs +0 -2
- package/esm2022/lib/custom-dropdown/custom-dropdown.component.mjs +0 -149
- package/esm2022/lib/custom-dropdown/index.mjs +0 -2
- package/esm2022/lib/date-hour-picker/date-hour-picker.component.mjs +0 -302
- package/esm2022/lib/date-hour-picker/index.mjs +0 -2
- package/esm2022/lib/date-picker/date-picker.component.mjs +0 -161
- package/esm2022/lib/date-picker/index.mjs +0 -2
- package/esm2022/lib/directives/infinite-scroll.directive.mjs +0 -52
- package/esm2022/lib/directives/popover.directive.mjs +0 -170
- package/esm2022/lib/double-date-picker/double-date-picker.component.mjs +0 -230
- package/esm2022/lib/double-date-picker/index.mjs +0 -2
- package/esm2022/lib/drawer-container-right/drawer-container-right.component.mjs +0 -71
- package/esm2022/lib/drawer-container-right/index.mjs +0 -2
- package/esm2022/lib/dropdown/dropdown.component.mjs +0 -77
- package/esm2022/lib/dropdown/index.mjs +0 -2
- package/esm2022/lib/dropdown-contextual-menu/dropdown-contextual-menu.component.mjs +0 -11
- package/esm2022/lib/dropdown-contextual-menu/index.mjs +0 -2
- package/esm2022/lib/dropdown-option-item/dropdown-option-item.component.mjs +0 -31
- package/esm2022/lib/dropdown-option-item/index.mjs +0 -2
- package/esm2022/lib/dropdown-user-menu/dropdown-user-menu.component.mjs +0 -56
- package/esm2022/lib/dropdown-user-menu/index.mjs +0 -2
- package/esm2022/lib/empty-list/empty-list.component.mjs +0 -22
- package/esm2022/lib/empty-list/index.mjs +0 -2
- package/esm2022/lib/filter-item/filter-item.component.mjs +0 -28
- package/esm2022/lib/filter-item/index.mjs +0 -2
- package/esm2022/lib/icon-lg/icon-lg.component.mjs +0 -29
- package/esm2022/lib/icon-lg/index.mjs +0 -2
- package/esm2022/lib/icon-md/icon-md.component.mjs +0 -29
- package/esm2022/lib/icon-md/index.mjs +0 -2
- package/esm2022/lib/icon-sm/icon-sm.component.mjs +0 -29
- package/esm2022/lib/icon-sm/index.mjs +0 -2
- package/esm2022/lib/icon-xl/icon-xl.component.mjs +0 -29
- package/esm2022/lib/icon-xl/index.mjs +0 -2
- package/esm2022/lib/icon-xs/icon-xs.component.mjs +0 -29
- package/esm2022/lib/icon-xs/index.mjs +0 -2
- package/esm2022/lib/icon-xxl/icon-xxl.component.mjs +0 -29
- package/esm2022/lib/icon-xxl/index.mjs +0 -2
- package/esm2022/lib/icons/icons-map.mjs +0 -1164
- package/esm2022/lib/input-card/index.mjs +0 -2
- package/esm2022/lib/input-card/input-card.component.mjs +0 -158
- package/esm2022/lib/input-large/index.mjs +0 -2
- package/esm2022/lib/input-large/input-large.component.mjs +0 -98
- package/esm2022/lib/input-otp/index.mjs +0 -2
- package/esm2022/lib/input-otp/input-otp.component.mjs +0 -173
- package/esm2022/lib/input-password/index.mjs +0 -2
- package/esm2022/lib/input-password/input-password.component.mjs +0 -91
- package/esm2022/lib/input-select/index.mjs +0 -2
- package/esm2022/lib/input-select/input-select.component.mjs +0 -190
- package/esm2022/lib/input-select-filter/index.mjs +0 -2
- package/esm2022/lib/input-select-filter/input-select-filter.component.mjs +0 -202
- package/esm2022/lib/input-select-number/index.mjs +0 -2
- package/esm2022/lib/input-select-number/input-select-number.component.mjs +0 -68
- package/esm2022/lib/input-textfield/index.mjs +0 -2
- package/esm2022/lib/input-textfield/input-textfield.component.mjs +0 -143
- package/esm2022/lib/item-document/index.mjs +0 -2
- package/esm2022/lib/item-document/item-document.component.mjs +0 -61
- package/esm2022/lib/linear-progress-bar/index.mjs +0 -2
- package/esm2022/lib/linear-progress-bar/linear-progress-bar.component.mjs +0 -16
- package/esm2022/lib/loading-circle/index.mjs +0 -2
- package/esm2022/lib/loading-circle/loading-circle.component.mjs +0 -17
- package/esm2022/lib/loading-component-dynamic/index.mjs +0 -2
- package/esm2022/lib/loading-component-dynamic/loading-component-dynamic.component.mjs +0 -63
- package/esm2022/lib/menu-item/index.mjs +0 -2
- package/esm2022/lib/menu-item/menu-item.component.mjs +0 -33
- package/esm2022/lib/nav-rail/index.mjs +0 -2
- package/esm2022/lib/nav-rail/nav-rail.component.mjs +0 -53
- package/esm2022/lib/notification-card/index.mjs +0 -2
- package/esm2022/lib/notification-card/notification-card.component.mjs +0 -88
- package/esm2022/lib/notifications/index.mjs +0 -2
- package/esm2022/lib/notifications/notifications.component.mjs +0 -90
- package/esm2022/lib/option/index.mjs +0 -2
- package/esm2022/lib/option/option.component.mjs +0 -34
- package/esm2022/lib/option-item/index.mjs +0 -2
- package/esm2022/lib/option-item/option-item.component.mjs +0 -30
- package/esm2022/lib/page-not-found/index.mjs +0 -2
- package/esm2022/lib/page-not-found/page-not-found.component.mjs +0 -28
- package/esm2022/lib/popover/popover.component.mjs +0 -30
- package/esm2022/lib/progress-bar/progress-bar.component.mjs +0 -117
- package/esm2022/lib/search-bar/index.mjs +0 -2
- package/esm2022/lib/search-bar/search-bar.component.mjs +0 -79
- package/esm2022/lib/section-collapse-drawer-child/index.mjs +0 -2
- package/esm2022/lib/section-collapse-drawer-child/section-collapse-drawer-child.component.mjs +0 -73
- package/esm2022/lib/section-collapse-drawer-parent/index.mjs +0 -2
- package/esm2022/lib/section-collapse-drawer-parent/section-collapse-drawer-parent.component.mjs +0 -73
- package/esm2022/lib/segment/index.mjs +0 -2
- package/esm2022/lib/segment/segment.component.mjs +0 -43
- package/esm2022/lib/simple-card-contador/index.mjs +0 -2
- package/esm2022/lib/simple-card-contador/simple-card-contador.component.mjs +0 -53
- package/esm2022/lib/simple-chip/index.mjs +0 -2
- package/esm2022/lib/simple-chip/simple-chip.component.mjs +0 -38
- package/esm2022/lib/simple-divider/index.mjs +0 -2
- package/esm2022/lib/simple-divider/simple-divider.component.mjs +0 -11
- package/esm2022/lib/simple-user-card/index.mjs +0 -2
- package/esm2022/lib/simple-user-card/simple-user-card.component.mjs +0 -17
- package/esm2022/lib/slide-toggle/index.mjs +0 -2
- package/esm2022/lib/slide-toggle/slide-toggle.component.mjs +0 -26
- package/esm2022/lib/snackbar/index.mjs +0 -2
- package/esm2022/lib/snackbar/snackbar.component.mjs +0 -40
- package/esm2022/lib/support-panel/index.mjs +0 -2
- package/esm2022/lib/support-panel/support-panel.component.mjs +0 -45
- package/esm2022/lib/toolbar/index.mjs +0 -2
- package/esm2022/lib/toolbar/toolbar.component.mjs +0 -360
- package/esm2022/lib/toolbar-user-menu/index.mjs +0 -2
- package/esm2022/lib/toolbar-user-menu/toolbar-user-menu.component.mjs +0 -138
- package/esm2022/lib/user-card/index.mjs +0 -2
- package/esm2022/lib/user-card/user-card.component.mjs +0 -84
- package/esm2022/litigiovirtual-ius-design-components.mjs +0 -5
- package/esm2022/public-api.mjs +0 -105
- package/fesm2022/litigiovirtual-ius-design-components.mjs +0 -8076
- package/fesm2022/litigiovirtual-ius-design-components.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/alert/alert.component.d.ts +0 -22
- package/lib/alert/index.d.ts +0 -1
- package/lib/avatar-business/avatar-business.component.d.ts +0 -16
- package/lib/avatar-business/index.d.ts +0 -1
- package/lib/avatar-icon/avatar-icon.component.d.ts +0 -10
- package/lib/avatar-icon/index.d.ts +0 -1
- package/lib/avatar-v2/avatar-v2.component.d.ts +0 -23
- package/lib/avatar-v2/index.d.ts +0 -1
- package/lib/badge/badge.component.d.ts +0 -7
- package/lib/badge/index.d.ts +0 -1
- package/lib/breadcrumb/breadcrumb.component.d.ts +0 -16
- package/lib/breadcrumb/index.d.ts +0 -1
- package/lib/button-accounts/button-accounts.component.d.ts +0 -26
- package/lib/button-accounts/index.d.ts +0 -1
- package/lib/button-auth/button-auth.component.d.ts +0 -22
- package/lib/button-auth/index.d.ts +0 -1
- package/lib/button-circle-secondary/button-circle-secondary.component.d.ts +0 -10
- package/lib/button-circle-secondary/index.d.ts +0 -1
- package/lib/button-circle-tertiary/button-circle-tertiary.component.d.ts +0 -10
- package/lib/button-circle-tertiary/index.d.ts +0 -1
- package/lib/button-dynamic/button-dynamic.component.d.ts +0 -28
- package/lib/button-dynamic/index.d.ts +0 -1
- package/lib/button-filter/button-filter.component.d.ts +0 -25
- package/lib/button-filter/index.d.ts +0 -1
- package/lib/button-menu-link/button-menu-link.component.d.ts +0 -11
- package/lib/button-menu-link/index.d.ts +0 -1
- package/lib/button-order/button-order.component.d.ts +0 -29
- package/lib/button-order/index.d.ts +0 -1
- package/lib/button-squared-secondary/button-squared-secondary.component.d.ts +0 -10
- package/lib/button-squared-secondary/index.d.ts +0 -1
- package/lib/button-squared-tertiary/button-squared-tertiary.component.d.ts +0 -10
- package/lib/button-squared-tertiary/index.d.ts +0 -1
- package/lib/button-standard-outline/button-standard-outline.component.d.ts +0 -10
- package/lib/button-standard-outline/index.d.ts +0 -1
- package/lib/button-standard-primary/button-standard-primary.component.d.ts +0 -10
- package/lib/button-standard-primary/index.d.ts +0 -1
- package/lib/button-standard-secondary/button-standard-secondary.component.d.ts +0 -9
- package/lib/button-standard-secondary/index.d.ts +0 -1
- package/lib/button-standard-tertiary/button-standard-tertiary.component.d.ts +0 -10
- package/lib/button-standard-tertiary/index.d.ts +0 -1
- package/lib/button-standard-tertiary-small/button-standard-tertiary-small.component.d.ts +0 -11
- package/lib/button-standard-tertiary-small/index.d.ts +0 -1
- package/lib/calification/calification.component.d.ts +0 -14
- package/lib/calification/index.d.ts +0 -1
- package/lib/card-actividad-evento/card-actividad-evento.component.d.ts +0 -40
- package/lib/card-actividad-evento/index.d.ts +0 -1
- package/lib/card-agenda-judicial/card-agenda-judicial.component.d.ts +0 -20
- package/lib/card-agenda-judicial/index.d.ts +0 -1
- package/lib/card-block/card-block.component.d.ts +0 -23
- package/lib/card-block/index.d.ts +0 -1
- package/lib/card-button-checkbox/card-button-checkbox.component.d.ts +0 -14
- package/lib/card-button-checkbox/index.d.ts +0 -1
- package/lib/card-collapse-detalle-proceso/card-collapse-detalle-proceso.component.d.ts +0 -13
- package/lib/card-collapse-detalle-proceso/index.d.ts +0 -1
- package/lib/card-dynamic-content/card-dynamic-content.component.d.ts +0 -7
- package/lib/card-dynamic-content/index.d.ts +0 -1
- package/lib/card-etapa-subetapa/card-etapa-subetapa.component.d.ts +0 -32
- package/lib/card-etapa-subetapa/index.d.ts +0 -1
- package/lib/card-gestion-cupo/card-gestion-cupo.component.d.ts +0 -12
- package/lib/card-gestion-cupo/index.d.ts +0 -1
- package/lib/card-impulso-procesal/card-impulso-procesal.component.d.ts +0 -31
- package/lib/card-impulso-procesal/index.d.ts +0 -1
- package/lib/card-info-facturacion/card-info-facturacion.component.d.ts +0 -19
- package/lib/card-info-facturacion/index.d.ts +0 -1
- package/lib/card-list-consumo/card-list-consumo.component.d.ts +0 -16
- package/lib/card-list-consumo/index.d.ts +0 -1
- package/lib/card-list-drag-on/card-list-drag-on.component.d.ts +0 -28
- package/lib/card-list-drag-on/index.d.ts +0 -1
- package/lib/card-list-movimientos/card-list-movimientos.component.d.ts +0 -16
- package/lib/card-list-movimientos/index.d.ts +0 -1
- package/lib/card-list-proceso/card-list-proceso.component.d.ts +0 -19
- package/lib/card-list-proceso/index.d.ts +0 -1
- package/lib/card-log/card-log.component.d.ts +0 -18
- package/lib/card-log/index.d.ts +0 -1
- package/lib/card-plan-small/card-plan-small.component.d.ts +0 -8
- package/lib/card-plan-small/index.d.ts +0 -1
- package/lib/card-plan-subscription/card-plan-subscription.component.d.ts +0 -23
- package/lib/card-plan-subscription/index.d.ts +0 -1
- package/lib/card-ticket/card-ticket.component.d.ts +0 -22
- package/lib/card-ticket/index.d.ts +0 -1
- package/lib/card-tipo-proceso/card-tipo-proceso.component.d.ts +0 -25
- package/lib/card-tipo-proceso/index.d.ts +0 -1
- package/lib/card-uso-plan/card-uso-plan.component.d.ts +0 -19
- package/lib/card-uso-plan/index.d.ts +0 -1
- package/lib/card-vigilancia-judicial/card-vigilancia-judicial.component.d.ts +0 -28
- package/lib/card-vigilancia-judicial/index.d.ts +0 -1
- package/lib/categories/categories.component.d.ts +0 -14
- package/lib/categories/index.d.ts +0 -1
- package/lib/charts-bar-grouped/charts-bar-grouped.component.d.ts +0 -98
- package/lib/charts-bar-grouped/index.d.ts +0 -1
- package/lib/charts-donut/charts-donut.component.d.ts +0 -47
- package/lib/charts-donut/index.d.ts +0 -1
- package/lib/checkbox/checkbox.component.d.ts +0 -10
- package/lib/checkbox/index.d.ts +0 -1
- package/lib/checkbox-radio/checkbox-radio.component.d.ts +0 -20
- package/lib/checkbox-radio/index.d.ts +0 -1
- package/lib/chip/chip.component.d.ts +0 -11
- package/lib/chip/index.d.ts +0 -1
- package/lib/chip-user/chip-user.component.d.ts +0 -12
- package/lib/chip-user/index.d.ts +0 -1
- package/lib/create-ticket/create-ticket.component.d.ts +0 -57
- package/lib/create-ticket/index.d.ts +0 -1
- package/lib/custom-dropdown/custom-dropdown.component.d.ts +0 -40
- package/lib/custom-dropdown/index.d.ts +0 -1
- package/lib/date-hour-picker/date-hour-picker.component.d.ts +0 -60
- package/lib/date-hour-picker/index.d.ts +0 -1
- package/lib/date-picker/date-picker.component.d.ts +0 -42
- package/lib/date-picker/index.d.ts +0 -1
- package/lib/directives/infinite-scroll.directive.d.ts +0 -15
- package/lib/directives/popover.directive.d.ts +0 -41
- package/lib/double-date-picker/double-date-picker.component.d.ts +0 -57
- package/lib/double-date-picker/index.d.ts +0 -1
- package/lib/drawer-container-right/drawer-container-right.component.d.ts +0 -13
- package/lib/drawer-container-right/index.d.ts +0 -1
- package/lib/dropdown/dropdown.component.d.ts +0 -28
- package/lib/dropdown/index.d.ts +0 -1
- package/lib/dropdown-contextual-menu/dropdown-contextual-menu.component.d.ts +0 -5
- package/lib/dropdown-contextual-menu/index.d.ts +0 -1
- package/lib/dropdown-option-item/dropdown-option-item.component.d.ts +0 -13
- package/lib/dropdown-option-item/index.d.ts +0 -1
- package/lib/dropdown-user-menu/dropdown-user-menu.component.d.ts +0 -17
- package/lib/dropdown-user-menu/index.d.ts +0 -1
- package/lib/empty-list/empty-list.component.d.ts +0 -8
- package/lib/empty-list/index.d.ts +0 -1
- package/lib/filter-item/filter-item.component.d.ts +0 -10
- package/lib/filter-item/index.d.ts +0 -1
- package/lib/icon-lg/icon-lg.component.d.ts +0 -12
- package/lib/icon-lg/index.d.ts +0 -1
- package/lib/icon-md/icon-md.component.d.ts +0 -12
- package/lib/icon-md/index.d.ts +0 -1
- package/lib/icon-sm/icon-sm.component.d.ts +0 -13
- package/lib/icon-sm/index.d.ts +0 -1
- package/lib/icon-xl/icon-xl.component.d.ts +0 -12
- package/lib/icon-xl/index.d.ts +0 -1
- package/lib/icon-xs/icon-xs.component.d.ts +0 -12
- package/lib/icon-xs/index.d.ts +0 -1
- package/lib/icon-xxl/icon-xxl.component.d.ts +0 -12
- package/lib/icon-xxl/index.d.ts +0 -1
- package/lib/icons/icons-map.d.ts +0 -1
- package/lib/input-card/index.d.ts +0 -1
- package/lib/input-card/input-card.component.d.ts +0 -43
- package/lib/input-large/index.d.ts +0 -1
- package/lib/input-large/input-large.component.d.ts +0 -30
- package/lib/input-otp/index.d.ts +0 -1
- package/lib/input-otp/input-otp.component.d.ts +0 -34
- package/lib/input-password/index.d.ts +0 -1
- package/lib/input-password/input-password.component.d.ts +0 -29
- package/lib/input-select/index.d.ts +0 -1
- package/lib/input-select/input-select.component.d.ts +0 -47
- package/lib/input-select-filter/index.d.ts +0 -1
- package/lib/input-select-filter/input-select-filter.component.d.ts +0 -62
- package/lib/input-select-number/index.d.ts +0 -1
- package/lib/input-select-number/input-select-number.component.d.ts +0 -18
- package/lib/input-textfield/index.d.ts +0 -1
- package/lib/input-textfield/input-textfield.component.d.ts +0 -36
- package/lib/item-document/index.d.ts +0 -1
- package/lib/item-document/item-document.component.d.ts +0 -19
- package/lib/linear-progress-bar/index.d.ts +0 -1
- package/lib/linear-progress-bar/linear-progress-bar.component.d.ts +0 -6
- package/lib/loading-circle/index.d.ts +0 -1
- package/lib/loading-circle/loading-circle.component.d.ts +0 -6
- package/lib/loading-component-dynamic/index.d.ts +0 -1
- package/lib/loading-component-dynamic/loading-component-dynamic.component.d.ts +0 -22
- package/lib/menu-item/index.d.ts +0 -1
- package/lib/menu-item/menu-item.component.d.ts +0 -11
- package/lib/nav-rail/index.d.ts +0 -1
- package/lib/nav-rail/nav-rail.component.d.ts +0 -10
- package/lib/notification-card/index.d.ts +0 -1
- package/lib/notification-card/notification-card.component.d.ts +0 -30
- package/lib/notifications/index.d.ts +0 -1
- package/lib/notifications/notifications.component.d.ts +0 -19
- package/lib/option/index.d.ts +0 -1
- package/lib/option/option.component.d.ts +0 -13
- package/lib/option-item/index.d.ts +0 -1
- package/lib/option-item/option-item.component.d.ts +0 -11
- package/lib/page-not-found/index.d.ts +0 -1
- package/lib/page-not-found/page-not-found.component.d.ts +0 -12
- package/lib/popover/popover.component.d.ts +0 -10
- package/lib/progress-bar/progress-bar.component.d.ts +0 -43
- package/lib/search-bar/index.d.ts +0 -1
- package/lib/search-bar/search-bar.component.d.ts +0 -24
- package/lib/section-collapse-drawer-child/index.d.ts +0 -1
- package/lib/section-collapse-drawer-child/section-collapse-drawer-child.component.d.ts +0 -12
- package/lib/section-collapse-drawer-parent/index.d.ts +0 -1
- package/lib/section-collapse-drawer-parent/section-collapse-drawer-parent.component.d.ts +0 -12
- package/lib/segment/index.d.ts +0 -1
- package/lib/segment/segment.component.d.ts +0 -14
- package/lib/simple-card-contador/index.d.ts +0 -1
- package/lib/simple-card-contador/simple-card-contador.component.d.ts +0 -14
- package/lib/simple-chip/index.d.ts +0 -1
- package/lib/simple-chip/simple-chip.component.d.ts +0 -13
- package/lib/simple-divider/index.d.ts +0 -1
- package/lib/simple-divider/simple-divider.component.d.ts +0 -5
- package/lib/simple-user-card/index.d.ts +0 -1
- package/lib/simple-user-card/simple-user-card.component.d.ts +0 -8
- package/lib/slide-toggle/index.d.ts +0 -1
- package/lib/slide-toggle/slide-toggle.component.d.ts +0 -10
- package/lib/snackbar/index.d.ts +0 -1
- package/lib/snackbar/snackbar.component.d.ts +0 -16
- package/lib/support-panel/index.d.ts +0 -1
- package/lib/support-panel/support-panel.component.d.ts +0 -17
- package/lib/toolbar/index.d.ts +0 -1
- package/lib/toolbar/toolbar.component.d.ts +0 -136
- package/lib/toolbar-user-menu/index.d.ts +0 -1
- package/lib/toolbar-user-menu/toolbar-user-menu.component.d.ts +0 -45
- package/lib/user-card/index.d.ts +0 -1
- package/lib/user-card/user-card.component.d.ts +0 -32
- package/public-api.d.ts +0 -103
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import {
|
|
3
|
+
Component, Input, Output, EventEmitter,
|
|
4
|
+
OnChanges, computed, signal, ViewChild, ElementRef,
|
|
5
|
+
AfterViewInit, OnDestroy, NgZone
|
|
6
|
+
} from '@angular/core';
|
|
7
|
+
import { PopoverDirective } from '../directives/popover.directive';
|
|
8
|
+
|
|
9
|
+
export type BarSeriesItem = { label: string; value: number; color?: string };
|
|
10
|
+
export type BarGroup = { label: string; items: BarSeriesItem[] };
|
|
11
|
+
|
|
12
|
+
type SeriesColorMap = Record<string, string>;
|
|
13
|
+
|
|
14
|
+
type BarRect = {
|
|
15
|
+
groupLabel: string;
|
|
16
|
+
seriesLabel: string;
|
|
17
|
+
value: number;
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
width: number;
|
|
21
|
+
height: number;
|
|
22
|
+
color: string;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
type BarStripe = { x: number; width: number };
|
|
26
|
+
|
|
27
|
+
@Component({
|
|
28
|
+
selector: 'ius-charts-bar-grouped',
|
|
29
|
+
standalone: true,
|
|
30
|
+
imports: [CommonModule, PopoverDirective],
|
|
31
|
+
templateUrl: './charts-bar-grouped.component.html',
|
|
32
|
+
styleUrls: ['./charts-bar-grouped.component.scss'],
|
|
33
|
+
})
|
|
34
|
+
export class IusChartsBarGroupedComponent implements OnChanges, AfterViewInit, OnDestroy {
|
|
35
|
+
@Input() data: BarGroup[] = [];
|
|
36
|
+
@Input() legendPosition: 'right' | 'bottom' = 'bottom';
|
|
37
|
+
@Input() seriesOrder?: string[];
|
|
38
|
+
|
|
39
|
+
// Escala Y (se pueden exponer como @Input si quieres)
|
|
40
|
+
yMax?: number;
|
|
41
|
+
ticks = 5;
|
|
42
|
+
|
|
43
|
+
// Fallbacks si no hay tamaño CSS externo
|
|
44
|
+
width = 640;
|
|
45
|
+
size = 320; // alto por defecto cuando el host no fija height
|
|
46
|
+
|
|
47
|
+
// Márgenes y layout X
|
|
48
|
+
margin = { top: 24, right: 16, bottom: 55, left: 40 };
|
|
49
|
+
barWidth = 11;
|
|
50
|
+
barGap = 2;
|
|
51
|
+
groupGap = 40;
|
|
52
|
+
outerGap = 18;
|
|
53
|
+
|
|
54
|
+
// Estilo barra
|
|
55
|
+
barRadius = 5;
|
|
56
|
+
|
|
57
|
+
@Input() maxLabelChars = 10;
|
|
58
|
+
@Output() barClick = new EventEmitter<{ group: string; series: string; value: number }>();
|
|
59
|
+
|
|
60
|
+
// Solo necesitamos medir ANCHO visible del plot
|
|
61
|
+
@ViewChild('plotCtn', { static: true }) plotCtn!: ElementRef<HTMLElement>;
|
|
62
|
+
private ro?: ResizeObserver;
|
|
63
|
+
private rafId: number | null = null;
|
|
64
|
+
|
|
65
|
+
// Estado
|
|
66
|
+
private _bars = signal<BarRect[]>([]);
|
|
67
|
+
private _groups = signal<string[]>([]);
|
|
68
|
+
private _series = signal<string[]>([]);
|
|
69
|
+
private _colors = signal<SeriesColorMap>({});
|
|
70
|
+
private _yMax = signal(0);
|
|
71
|
+
|
|
72
|
+
private _paneH = signal(0); // alto real del host (o fallback size)
|
|
73
|
+
private _plotW = signal(0); // ancho visible del contenedor scrolleable
|
|
74
|
+
private _plotWidth = signal(0); // ancho virtual del SVG derecho
|
|
75
|
+
private _groupCenters = signal<number[]>([]);
|
|
76
|
+
private _barStripes = signal<BarStripe[]>([]);
|
|
77
|
+
|
|
78
|
+
// Derivados
|
|
79
|
+
readonly bars = computed(() => this._bars());
|
|
80
|
+
readonly groups = computed(() => this._groups());
|
|
81
|
+
readonly series = computed(() => this._series());
|
|
82
|
+
readonly colors = computed(() => this._colors());
|
|
83
|
+
readonly yScaleMax = computed(() => this._yMax());
|
|
84
|
+
|
|
85
|
+
readonly chartHeight = computed(() => this._paneH() || this.size);
|
|
86
|
+
readonly plotWidth = computed(() => this._plotWidth());
|
|
87
|
+
readonly groupCenters = computed(() => this._groupCenters());
|
|
88
|
+
readonly barStripes = computed(() => this._barStripes());
|
|
89
|
+
|
|
90
|
+
readonly innerHeight = computed(() =>
|
|
91
|
+
Math.max(this.chartHeight() - this.margin.top - this.margin.bottom, 0)
|
|
92
|
+
);
|
|
93
|
+
|
|
94
|
+
readonly axisViewBox = computed(() => `0 0 ${this.margin.left} ${this.chartHeight()}`);
|
|
95
|
+
readonly plotViewBox = computed(() => `0 0 ${this.plotWidth()} ${this.chartHeight()}`);
|
|
96
|
+
|
|
97
|
+
readonly Math = Math;
|
|
98
|
+
|
|
99
|
+
constructor(private zone: NgZone, private hostEl: ElementRef<HTMLElement>) {}
|
|
100
|
+
|
|
101
|
+
ngAfterViewInit(): void {
|
|
102
|
+
// Medición inicial en el próximo frame para evitar ExpressionChanged y loops
|
|
103
|
+
this.raf(() => {
|
|
104
|
+
this.measureNow();
|
|
105
|
+
this.recalc();
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
// Observa alto del HOST y ancho visible del plot, throttled por rAF
|
|
109
|
+
this.ro = new ResizeObserver(() => {
|
|
110
|
+
this.raf(() => {
|
|
111
|
+
const changed = this.measureNow();
|
|
112
|
+
if (changed) this.recalc();
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
this.ro.observe(this.hostEl.nativeElement);
|
|
116
|
+
this.ro.observe(this.plotCtn.nativeElement);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
ngOnDestroy(): void {
|
|
120
|
+
this.ro?.disconnect();
|
|
121
|
+
if (this.rafId !== null) cancelAnimationFrame(this.rafId);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
ngOnChanges(): void {
|
|
125
|
+
// Cambios de @Input disparan recálculo
|
|
126
|
+
this.recalc();
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// ========= Medición =========
|
|
130
|
+
/** Ejecuta una tarea en el próximo frame dentro de Angular */
|
|
131
|
+
private raf(fn: () => void) {
|
|
132
|
+
if (this.rafId !== null) cancelAnimationFrame(this.rafId);
|
|
133
|
+
this.rafId = requestAnimationFrame(() => this.zone.run(fn));
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/** Mide alto del host y ancho visible del plot. Devuelve true si cambió algo. */
|
|
137
|
+
private measureNow(): boolean {
|
|
138
|
+
const hostH = Math.floor(this.hostEl.nativeElement.clientHeight || 0);
|
|
139
|
+
const paneH = hostH > 0 ? hostH : this.size;
|
|
140
|
+
|
|
141
|
+
const plotW = Math.floor(this.plotCtn?.nativeElement?.clientWidth || 0)
|
|
142
|
+
|| (this.width - this.margin.left);
|
|
143
|
+
|
|
144
|
+
let changed = false;
|
|
145
|
+
if (paneH !== this._paneH()) { this._paneH.set(paneH); changed = true; }
|
|
146
|
+
if (plotW !== this._plotW()) { this._plotW.set(plotW); changed = true; }
|
|
147
|
+
return changed;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// ========= Layout & data =========
|
|
151
|
+
private recalc(): void {
|
|
152
|
+
const cleaned = (this.data ?? [])
|
|
153
|
+
.map(g => ({ label: g.label, items: (g.items ?? []).filter(i => Number(i?.value) >= 0) }))
|
|
154
|
+
.filter(x => x.items.length > 0);
|
|
155
|
+
|
|
156
|
+
const groups = cleaned.map(g => g.label);
|
|
157
|
+
|
|
158
|
+
// series + orden
|
|
159
|
+
const seriesSet = new Set<string>();
|
|
160
|
+
for (const g of cleaned) for (const it of g.items) seriesSet.add(it.label);
|
|
161
|
+
let series = Array.from(seriesSet);
|
|
162
|
+
if (this.seriesOrder?.length) {
|
|
163
|
+
const order = new Map(this.seriesOrder.map((k, idx) => [k, idx]));
|
|
164
|
+
series.sort((a, b) => (order.get(a) ?? 1e9) - (order.get(b) ?? 1e9));
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
// colores por serie
|
|
168
|
+
const palette = [
|
|
169
|
+
'#2167FF', // Info-500
|
|
170
|
+
'#0A2893', // Info-800
|
|
171
|
+
'#40CAE9', // Primary-400
|
|
172
|
+
'#5892FF', // Info-400
|
|
173
|
+
'#08A6DB', // Primary-500
|
|
174
|
+
'#C4DFFF', // Info-200
|
|
175
|
+
];
|
|
176
|
+
const colorMap: SeriesColorMap = {};
|
|
177
|
+
series.forEach((s, i) => (colorMap[s] = palette[i % palette.length]));
|
|
178
|
+
|
|
179
|
+
// normalizar
|
|
180
|
+
const normalized = cleaned.map(g => {
|
|
181
|
+
const map = new Map(g.items.map(i => [i.label, i]));
|
|
182
|
+
const items = series.map(s => {
|
|
183
|
+
const i = map.get(s);
|
|
184
|
+
return { label: s, value: i?.value ?? 0, color: i?.color ?? colorMap[s] };
|
|
185
|
+
});
|
|
186
|
+
return { label: g.label, items };
|
|
187
|
+
});
|
|
188
|
+
|
|
189
|
+
// Y máx
|
|
190
|
+
const maxValue = Math.max(0, ...normalized.flatMap(g => g.items.map(i => i.value)));
|
|
191
|
+
const yMax = this.yMax && this.yMax > 0 ? this.yMax : this.niceMax(maxValue);
|
|
192
|
+
this._yMax.set(yMax);
|
|
193
|
+
|
|
194
|
+
// Dimensiones visibles del panel derecho
|
|
195
|
+
const visibleW = this._plotW() || (this.width - this.margin.left);
|
|
196
|
+
|
|
197
|
+
// ===== Layout X con outerGap =====
|
|
198
|
+
const G = normalized.length;
|
|
199
|
+
const S = series.length;
|
|
200
|
+
const groupInnerWidth = S * this.barWidth + Math.max(0, S - 1) * this.barGap;
|
|
201
|
+
const innerNaturalWidth =
|
|
202
|
+
Math.max(0, (this.outerGap * 2) + G * groupInnerWidth + Math.max(0, G - 1) * this.groupGap);
|
|
203
|
+
|
|
204
|
+
const innerVisibleWidth = Math.max(visibleW - this.margin.right, 0);
|
|
205
|
+
const innerVirtualWidth = Math.max(innerVisibleWidth, innerNaturalWidth);
|
|
206
|
+
const plotWidth = innerVirtualWidth + this.margin.right;
|
|
207
|
+
this._plotWidth.set(plotWidth);
|
|
208
|
+
|
|
209
|
+
// Construcción de barras + franjas
|
|
210
|
+
const ih = this.innerHeight();
|
|
211
|
+
const bars: BarRect[] = [];
|
|
212
|
+
const centers: number[] = [];
|
|
213
|
+
const stripes: BarStripe[] = [];
|
|
214
|
+
|
|
215
|
+
let cursor = this.outerGap;
|
|
216
|
+
normalized.forEach(g => {
|
|
217
|
+
const startX = cursor;
|
|
218
|
+
const center = startX + groupInnerWidth / 2;
|
|
219
|
+
centers.push(center);
|
|
220
|
+
|
|
221
|
+
g.items.forEach((it, si) => {
|
|
222
|
+
const x = startX + si * (this.barWidth + this.barGap);
|
|
223
|
+
|
|
224
|
+
stripes.push({ x, width: this.barWidth }); // franja por barra
|
|
225
|
+
|
|
226
|
+
const h = it.value <= 0 ? 0 : (it.value / yMax) * ih;
|
|
227
|
+
const y = this.margin.top + ih - h;
|
|
228
|
+
bars.push({
|
|
229
|
+
groupLabel: g.label,
|
|
230
|
+
seriesLabel: it.label,
|
|
231
|
+
value: it.value,
|
|
232
|
+
x, y, width: this.barWidth, height: h,
|
|
233
|
+
color: it.color ?? colorMap[it.label]
|
|
234
|
+
});
|
|
235
|
+
});
|
|
236
|
+
|
|
237
|
+
cursor += groupInnerWidth + this.groupGap;
|
|
238
|
+
});
|
|
239
|
+
|
|
240
|
+
this._bars.set(bars);
|
|
241
|
+
this._groups.set(groups);
|
|
242
|
+
this._series.set(series);
|
|
243
|
+
this._colors.set(colorMap);
|
|
244
|
+
this._groupCenters.set(centers);
|
|
245
|
+
this._barStripes.set(stripes);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
// ========= Helpers =========
|
|
249
|
+
private niceMax(maxVal: number): number {
|
|
250
|
+
if (maxVal <= 0) return 1;
|
|
251
|
+
const exp = Math.floor(Math.log10(maxVal));
|
|
252
|
+
const base = Math.pow(10, exp);
|
|
253
|
+
const n = Math.ceil(maxVal / base);
|
|
254
|
+
const nice = n <= 2 ? 2 : n <= 5 ? 5 : 10;
|
|
255
|
+
return nice * base;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
getY(value: number): number {
|
|
259
|
+
const ih = this.innerHeight();
|
|
260
|
+
const max = this.yScaleMax();
|
|
261
|
+
return this.margin.top + ih - (value / max) * ih;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
get yTicksArr(): number[] {
|
|
265
|
+
const max = this.yScaleMax();
|
|
266
|
+
const n = Math.max(2, this.ticks | 0);
|
|
267
|
+
const step = max / n;
|
|
268
|
+
const arr: number[] = [];
|
|
269
|
+
for (let i = 0; i <= n; i++) arr.push(+((i * step)).toFixed(2));
|
|
270
|
+
return arr;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
shortLabel(lbl: string): string {
|
|
274
|
+
return lbl.length > this.maxLabelChars ? (lbl.slice(0, this.maxLabelChars - 1) + '…') : lbl;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
formatTooltip(b: BarRect): string {
|
|
278
|
+
return `${b.seriesLabel}: ${b.value}`;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
onBarClick(b: BarRect) {
|
|
282
|
+
this.barClick.emit({ group: b.groupLabel, series: b.seriesLabel, value: b.value });
|
|
283
|
+
}
|
|
284
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
<div class="donut-wrapper" [class.bottom]="legendPosition === 'bottom'">
|
|
2
|
+
<svg
|
|
3
|
+
class="donut"
|
|
4
|
+
role="img"
|
|
5
|
+
[attr.aria-label]="ariaLabel"
|
|
6
|
+
[attr.width]="size"
|
|
7
|
+
[attr.height]="size"
|
|
8
|
+
[attr.viewBox]="viewBox()">
|
|
9
|
+
<!-- pista -->
|
|
10
|
+
<circle
|
|
11
|
+
class="track"
|
|
12
|
+
[attr.cx]="size/2"
|
|
13
|
+
[attr.cy]="size/2"
|
|
14
|
+
[attr.r]="radius()"
|
|
15
|
+
[attr.stroke-width]="thickness"
|
|
16
|
+
></circle>
|
|
17
|
+
|
|
18
|
+
<!-- slices como PATH (cada uno es su arco real) -->
|
|
19
|
+
@for (s of slices(); track s.label) {
|
|
20
|
+
<path
|
|
21
|
+
class="slice"
|
|
22
|
+
[attr.d]="s.pathD"
|
|
23
|
+
fill="none"
|
|
24
|
+
[attr.stroke]="s.color"
|
|
25
|
+
[attr.stroke-width]="thickness"
|
|
26
|
+
stroke-linecap="butt"
|
|
27
|
+
[iusPopoverContent]="getPopoverText(s)"
|
|
28
|
+
(click)="onSliceClick(s)"
|
|
29
|
+
tabindex="0"
|
|
30
|
+
>
|
|
31
|
+
</path>
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
<!-- centro -->
|
|
35
|
+
<g>
|
|
36
|
+
<text
|
|
37
|
+
[attr.x]="size/2"
|
|
38
|
+
[attr.y]="size/2"
|
|
39
|
+
text-anchor="middle"
|
|
40
|
+
alignment-baseline="middle"
|
|
41
|
+
class="center-text">
|
|
42
|
+
{{ centerLabel }}
|
|
43
|
+
</text>
|
|
44
|
+
</g>
|
|
45
|
+
</svg>
|
|
46
|
+
|
|
47
|
+
@if (showLegend && slices().length) {
|
|
48
|
+
<div class="legend scrollable-small" [class.bottom]="legendPosition === 'bottom'">
|
|
49
|
+
@for (s of slices(); track s.label) {
|
|
50
|
+
<div class="legend-item">
|
|
51
|
+
<span class="dot" [style.background]="s.color"></span>
|
|
52
|
+
<span class="label caption-sm" [iusPopoverContent]="s.value.toString() + ' - ' + s.label">{{s.value}} - {{s.label}}</span>
|
|
53
|
+
</div>
|
|
54
|
+
}
|
|
55
|
+
</div>
|
|
56
|
+
}
|
|
57
|
+
</div>
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
@use "@litigiovirtual/ius-design-styles/lib/colors" as colors;
|
|
2
|
+
@use "@litigiovirtual/ius-design-styles/lib/typography" as typography;
|
|
3
|
+
@use "@litigiovirtual/ius-design-styles/lib/variables" as variables;
|
|
4
|
+
@use "@litigiovirtual/ius-design-styles/lib/semantic-colors" as semantic-colors;
|
|
5
|
+
|
|
6
|
+
:host {
|
|
7
|
+
display: block;
|
|
8
|
+
max-width: 100%;
|
|
9
|
+
height: 100%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.donut-wrapper {
|
|
13
|
+
display: grid;
|
|
14
|
+
grid-template-columns: auto 1fr;
|
|
15
|
+
column-gap: 16px;
|
|
16
|
+
height: 100%;
|
|
17
|
+
align-items: stretch;
|
|
18
|
+
|
|
19
|
+
&.bottom {
|
|
20
|
+
grid-template-columns: 1fr;
|
|
21
|
+
grid-template-rows: auto 1fr;
|
|
22
|
+
row-gap: 12px;
|
|
23
|
+
align-items: stretch;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.donut {
|
|
28
|
+
display: block;
|
|
29
|
+
max-width: 100%;
|
|
30
|
+
height: auto;
|
|
31
|
+
align-self: center;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.track {
|
|
35
|
+
fill: none;
|
|
36
|
+
stroke: #eef2f6;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.slice {
|
|
40
|
+
pointer-events: stroke;
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
transition: opacity .15s ease, transform .15s ease;
|
|
43
|
+
|
|
44
|
+
&:focus {
|
|
45
|
+
outline: none;
|
|
46
|
+
filter: drop-shadow(0 0 2px rgba(0, 0, 0, .2));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&:hover {
|
|
50
|
+
opacity: .9;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.center-text {
|
|
55
|
+
fill: semantic-colors.$color-text-secundary-on-light;
|
|
56
|
+
font-family: typography.$font-secondary;
|
|
57
|
+
font-size: typography.$font-size-h3;
|
|
58
|
+
font-weight: 600;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.legend {
|
|
62
|
+
display: flex;
|
|
63
|
+
justify-content: center;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
gap: 8px;
|
|
66
|
+
padding-right: 4px;
|
|
67
|
+
min-width: 0;
|
|
68
|
+
overflow-x: hidden;
|
|
69
|
+
overflow-y: auto;
|
|
70
|
+
align-self: stretch;
|
|
71
|
+
max-height: 100%;
|
|
72
|
+
min-height: 0;
|
|
73
|
+
|
|
74
|
+
&.bottom {
|
|
75
|
+
flex-direction: row;
|
|
76
|
+
flex-wrap: wrap;
|
|
77
|
+
overflow-y: auto;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.legend-item {
|
|
81
|
+
display: flex;
|
|
82
|
+
align-items: center;
|
|
83
|
+
gap: 8px;
|
|
84
|
+
min-width: 0;
|
|
85
|
+
white-space: nowrap;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.dot {
|
|
89
|
+
width: variables.$icon-size-xxs;
|
|
90
|
+
height: variables.$icon-size-xxs;
|
|
91
|
+
border-radius: variables.$radius-md;
|
|
92
|
+
flex: 0 0 variables.$icon-size-xxs;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.label {
|
|
96
|
+
color: semantic-colors.$color-text-secundary-on-light;
|
|
97
|
+
min-width: 0;
|
|
98
|
+
overflow: hidden;
|
|
99
|
+
text-overflow: ellipsis;
|
|
100
|
+
white-space: nowrap;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
.scrollable-small::-webkit-scrollbar {
|
|
106
|
+
-webkit-appearance: none;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.scrollable-small::-webkit-scrollbar:vertical {
|
|
110
|
+
width: variables.$spacing-xxs;
|
|
111
|
+
height: variables.$spacing-xl;
|
|
112
|
+
padding-top: 2px;
|
|
113
|
+
padding-bottom: 2px;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.scrollable-small::-webkit-scrollbar:horizontal {
|
|
117
|
+
height: 5px;
|
|
118
|
+
padding-top: 2px;
|
|
119
|
+
padding-bottom: 2px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.scrollable-small::-webkit-scrollbar-thumb {
|
|
123
|
+
background-color: colors.$primary-500;
|
|
124
|
+
border-radius: variables.$radius-sm;
|
|
125
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { ChartsDonutComponent } from './charts-donut.component';
|
|
4
|
+
|
|
5
|
+
describe('ChartsDonutComponent', () => {
|
|
6
|
+
let component: ChartsDonutComponent;
|
|
7
|
+
let fixture: ComponentFixture<ChartsDonutComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
imports: [ChartsDonutComponent]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(ChartsDonutComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { Component, computed, EventEmitter, Input, Output, signal, OnChanges } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { PopoverDirective } from '../directives/popover.directive';
|
|
4
|
+
|
|
5
|
+
export type DonutData = { label: string; value: number; color?: string };
|
|
6
|
+
|
|
7
|
+
type SliceComputed = DonutData & {
|
|
8
|
+
percentage: number;
|
|
9
|
+
pathD: string; // path del arco
|
|
10
|
+
midX: number; // punto medio del arco (por si se quiere anclar ahí)
|
|
11
|
+
midY: number;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
@Component({
|
|
15
|
+
selector: 'ius-charts-donut',
|
|
16
|
+
standalone: true,
|
|
17
|
+
imports: [CommonModule, PopoverDirective],
|
|
18
|
+
templateUrl: './charts-donut.component.html',
|
|
19
|
+
styleUrls: ['./charts-donut.component.scss']
|
|
20
|
+
})
|
|
21
|
+
export class ChartsDonutComponent implements OnChanges {
|
|
22
|
+
@Input() data: DonutData[] = [];
|
|
23
|
+
@Input() size = 180; // width/height del SVG
|
|
24
|
+
@Input() thickness = 18; // grosor del anillo
|
|
25
|
+
@Input() gapDegrees = 0; // separación entre segmentos (grados)
|
|
26
|
+
@Input() showLegend = true;
|
|
27
|
+
@Input() legendPosition: 'right' | 'bottom' = 'right';
|
|
28
|
+
@Input() centerText?: string | number; // sobrescribe el texto central
|
|
29
|
+
@Input() sort = false; // ordena segmentos por valor (desc)
|
|
30
|
+
|
|
31
|
+
@Output() sliceClick = new EventEmitter<DonutData>();
|
|
32
|
+
|
|
33
|
+
// señales para recalcular
|
|
34
|
+
private _slices = signal<SliceComputed[]>([]);
|
|
35
|
+
private _total = signal(0);
|
|
36
|
+
private _circ = signal(0);
|
|
37
|
+
private _radius = signal(0);
|
|
38
|
+
|
|
39
|
+
readonly slices = computed(() => this._slices());
|
|
40
|
+
readonly total = computed(() => this._total());
|
|
41
|
+
readonly radius = computed(() => this._radius());
|
|
42
|
+
readonly circumference = computed(() => this._circ());
|
|
43
|
+
readonly viewBox = computed(() => `0 0 ${this.size} ${this.size}`);
|
|
44
|
+
|
|
45
|
+
ngOnChanges(): void {
|
|
46
|
+
const cleaned = (this.data ?? []).filter(d => Number(d?.value) > 0);
|
|
47
|
+
const total = cleaned.reduce((a, b) => a + b.value, 0);
|
|
48
|
+
|
|
49
|
+
const radius = this.size / 2 - this.thickness / 2;
|
|
50
|
+
const circumference = 2 * Math.PI * radius;
|
|
51
|
+
this._radius.set(radius);
|
|
52
|
+
this._circ.set(circumference);
|
|
53
|
+
|
|
54
|
+
// sin datos válidos
|
|
55
|
+
if (total <= 0) {
|
|
56
|
+
this._slices.set([]);
|
|
57
|
+
this._total.set(0);
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// paleta (rota si no alcanza)
|
|
62
|
+
const palette = [
|
|
63
|
+
'#2167FF', // Info-500
|
|
64
|
+
'#0A2893', // Info-800
|
|
65
|
+
'#40CAE9', // Primary-400
|
|
66
|
+
'#5892FF', // Info-400
|
|
67
|
+
'#08A6DB', // Primary-500
|
|
68
|
+
'#C4DFFF', // Info-200
|
|
69
|
+
];
|
|
70
|
+
let pIndex = 0;
|
|
71
|
+
const base = cleaned.map(d => ({
|
|
72
|
+
...d,
|
|
73
|
+
color: d.color ?? palette[pIndex++ % palette.length]
|
|
74
|
+
}));
|
|
75
|
+
|
|
76
|
+
// orden opcional
|
|
77
|
+
const dataOrdered = this.sort ? [...base].sort((a, b) => b.value - a.value) : base;
|
|
78
|
+
|
|
79
|
+
// geometría angular
|
|
80
|
+
const cx = this.size / 2;
|
|
81
|
+
const cy = this.size / 2;
|
|
82
|
+
const n = dataOrdered.length;
|
|
83
|
+
const gap = Math.max(this.gapDegrees, 0);
|
|
84
|
+
const usefulDeg = Math.max(360 - n * gap, 0); // evita negativos
|
|
85
|
+
|
|
86
|
+
let current = -90; // arranca a las 12 en punto
|
|
87
|
+
const slices: SliceComputed[] = dataOrdered.map(d => {
|
|
88
|
+
const fraction = d.value / total;
|
|
89
|
+
const sweep = usefulDeg * fraction;
|
|
90
|
+
|
|
91
|
+
// dejamos medio gap antes y después del arco
|
|
92
|
+
const startDeg = current + gap / 2;
|
|
93
|
+
const endDeg = startDeg + sweep;
|
|
94
|
+
|
|
95
|
+
const pathD = this.arcPath(cx, cy, radius, startDeg, endDeg);
|
|
96
|
+
const midDeg = startDeg + sweep / 2;
|
|
97
|
+
const mid = this.polarToCartesian(cx, cy, radius, midDeg);
|
|
98
|
+
|
|
99
|
+
// avanza el cursor angular para el siguiente slice
|
|
100
|
+
current = endDeg + gap / 2;
|
|
101
|
+
|
|
102
|
+
return {
|
|
103
|
+
...d,
|
|
104
|
+
percentage: +(fraction * 100).toFixed(2),
|
|
105
|
+
pathD,
|
|
106
|
+
midX: mid.x,
|
|
107
|
+
midY: mid.y
|
|
108
|
+
};
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
this._slices.set(slices);
|
|
112
|
+
this._total.set(total);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// === helpers de geometría ===
|
|
116
|
+
private polarToCartesian(cx: number, cy: number, r: number, deg: number) {
|
|
117
|
+
const rad = (deg * Math.PI) / 180;
|
|
118
|
+
return { x: cx + r * Math.cos(rad), y: cy + r * Math.sin(rad) };
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
private arcPath(cx: number, cy: number, r: number, startDeg: number, endDeg: number): string {
|
|
122
|
+
const start = this.polarToCartesian(cx, cy, r, startDeg);
|
|
123
|
+
const end = this.polarToCartesian(cx, cy, r, endDeg);
|
|
124
|
+
const sweep = endDeg - startDeg;
|
|
125
|
+
const largeArcFlag = sweep > 180 ? 1 : 0;
|
|
126
|
+
// arco horario (sweep-flag=1)
|
|
127
|
+
return `M ${start.x} ${start.y} A ${r} ${r} 0 ${largeArcFlag} 1 ${end.x} ${end.y}`;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// eventos / utilidades
|
|
131
|
+
onSliceClick(s: SliceComputed) {
|
|
132
|
+
this.sliceClick.emit({ label: s.label, value: s.value, color: s.color });
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
get centerLabel(): string {
|
|
136
|
+
return `${this.centerText ?? this.total()}`;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
getPopoverText(s: { label: string; value: number; percentage: number }): string {
|
|
140
|
+
return `${s.label}: ${s.value} (${s.percentage}%)`;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// accesibilidad: describe la dona
|
|
144
|
+
get ariaLabel(): string {
|
|
145
|
+
const parts = this.slices().map(s => `${s.label}: ${s.value} (${s.percentage}%)`);
|
|
146
|
+
return `Gráfica de dona. Total ${this.total()}. ${parts.join('. ')}`;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<div class="container-general" (click)="onChecked()">
|
|
2
|
+
<div class="container-interno" [class.checked]="checked" [class.disabled]="disabled">
|
|
3
|
+
@if (checked) {
|
|
4
|
+
<ius-icon-md iconName="icon-check" class="icon"></ius-icon-md>
|
|
5
|
+
}@else{
|
|
6
|
+
<div class="icon-false"></div>
|
|
7
|
+
}
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|