@caribeng/ui 22.2.0 → 22.5.0
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 +311 -231
- package/fesm2022/caribeng-ui-accordion.mjs +2 -2
- package/fesm2022/caribeng-ui-account-picker.mjs +533 -0
- package/fesm2022/caribeng-ui-aging.mjs +488 -0
- package/fesm2022/{caribeng-ui-caribe-alert.mjs → caribeng-ui-alert.mjs} +45 -45
- package/fesm2022/caribeng-ui-amount.mjs +249 -0
- package/fesm2022/caribeng-ui-anchor.mjs +2 -2
- package/fesm2022/{caribeng-ui-caribe-animation-lottie.mjs → caribeng-ui-animation-lottie.mjs} +41 -41
- package/fesm2022/caribeng-ui-audit-log.mjs +323 -0
- package/fesm2022/caribeng-ui-avatar.mjs +4 -4
- package/fesm2022/caribeng-ui-badge.mjs +8 -2
- package/fesm2022/caribeng-ui-breadcrumb.mjs +26 -9
- package/fesm2022/{caribeng-ui-caribe-button-group.mjs → caribeng-ui-button-group.mjs} +15 -15
- package/fesm2022/caribeng-ui-button.mjs +2 -2
- package/fesm2022/{caribeng-ui-caribe-card-content.mjs → caribeng-ui-card-content.mjs} +39 -39
- package/fesm2022/{caribeng-ui-caribe-card-move.mjs → caribeng-ui-card-move.mjs} +65 -65
- package/fesm2022/{caribeng-ui-caribe-card-primary.mjs → caribeng-ui-card-primary.mjs} +31 -31
- package/fesm2022/{caribeng-ui-caribe-card-select.mjs → caribeng-ui-card-select.mjs} +67 -67
- package/fesm2022/caribeng-ui-carousel.mjs +2 -2
- package/fesm2022/caribeng-ui-cascadeselect.mjs +45 -9
- package/fesm2022/caribeng-ui-chart.mjs +8 -5
- package/fesm2022/caribeng-ui-chat.mjs +1303 -0
- package/fesm2022/{caribeng-ui-caribe-coachmark.mjs → caribeng-ui-coachmark.mjs} +85 -85
- package/fesm2022/caribeng-ui-code-block.mjs +332 -0
- package/fesm2022/caribeng-ui-colorpicker.mjs +99 -5
- package/fesm2022/caribeng-ui-command-palette.mjs +476 -0
- package/fesm2022/caribeng-ui-comments.mjs +864 -0
- package/fesm2022/caribeng-ui-confirmdialog.mjs +78 -13
- package/fesm2022/caribeng-ui-confirmpopup.mjs +91 -16
- package/fesm2022/caribeng-ui-contextmenu.mjs +8 -4
- package/fesm2022/caribeng-ui-copy-button.mjs +230 -0
- package/fesm2022/caribeng-ui-datagrid.mjs +1635 -0
- package/fesm2022/caribeng-ui-dataview.mjs +6 -3
- package/fesm2022/caribeng-ui-datepicker.mjs +2 -2
- package/fesm2022/caribeng-ui-dock.mjs +52 -12
- package/fesm2022/caribeng-ui-document.mjs +495 -0
- package/fesm2022/{caribeng-ui-caribe-dots-indicator.mjs → caribeng-ui-dots-indicator.mjs} +41 -41
- package/fesm2022/caribeng-ui-drawer.mjs +9 -4
- package/fesm2022/caribeng-ui-dynamic-form.mjs +1581 -0
- package/fesm2022/caribeng-ui-editor.mjs +2324 -1311
- package/fesm2022/{caribeng-ui-caribe-expansion-panel.mjs → caribeng-ui-expansion-panel.mjs} +39 -39
- package/fesm2022/{caribeng-ui-caribe-fab-menu.mjs → caribeng-ui-fab-menu.mjs} +75 -75
- package/fesm2022/caribeng-ui-fieldset.mjs +2 -2
- package/fesm2022/caribeng-ui-file-card.mjs +134 -17
- package/fesm2022/{caribeng-ui-caribe-file-download.mjs → caribeng-ui-file-download.mjs} +63 -63
- package/fesm2022/caribeng-ui-financial-report.mjs +380 -0
- package/fesm2022/{caribeng-ui-caribe-float-menu.mjs → caribeng-ui-float-menu.mjs} +31 -31
- package/fesm2022/caribeng-ui-floatlabel.mjs +2 -2
- package/fesm2022/caribeng-ui-flow.mjs +1508 -0
- package/fesm2022/caribeng-ui-folder-card.mjs +122 -12
- package/fesm2022/{caribeng-ui-caribe-footer.mjs → caribeng-ui-footer.mjs} +19 -19
- package/fesm2022/caribeng-ui-gantt.mjs +1094 -0
- package/fesm2022/{caribeng-ui-caribe-header.mjs → caribeng-ui-header.mjs} +49 -49
- package/fesm2022/{caribeng-ui-caribe-icon-button.mjs → caribeng-ui-icon-button.mjs} +23 -23
- package/fesm2022/caribeng-ui-image-cropper.mjs +671 -0
- package/fesm2022/caribeng-ui-import-wizard.mjs +746 -0
- package/fesm2022/caribeng-ui-infinite-scroll.mjs +226 -0
- package/fesm2022/caribeng-ui-inlinemessage.mjs +2 -2
- package/fesm2022/caribeng-ui-input-number.mjs +22 -6
- package/fesm2022/{caribeng-ui-caribe-input-search.mjs → caribeng-ui-input-search.mjs} +65 -65
- package/fesm2022/{caribeng-ui-caribe-input-token.mjs → caribeng-ui-input-token.mjs} +59 -59
- package/fesm2022/caribeng-ui-inputmask.mjs +8 -2
- package/fesm2022/caribeng-ui-inputotp.mjs +2 -2
- package/fesm2022/caribeng-ui-journal-entry.mjs +340 -0
- package/fesm2022/caribeng-ui-kanban.mjs +4612 -0
- package/fesm2022/caribeng-ui-kbd.mjs +122 -0
- package/fesm2022/caribeng-ui-kpi.mjs +189 -0
- package/fesm2022/{caribeng-ui-caribe-link.mjs → caribeng-ui-link.mjs} +37 -37
- package/fesm2022/caribeng-ui-masonry.mjs +93 -0
- package/fesm2022/caribeng-ui-media-player.mjs +821 -0
- package/fesm2022/caribeng-ui-megamenu.mjs +13 -9
- package/fesm2022/caribeng-ui-mentions.mjs +495 -0
- package/fesm2022/caribeng-ui-menu.mjs +8 -4
- package/fesm2022/caribeng-ui-menubar.mjs +9 -5
- package/fesm2022/caribeng-ui-message.mjs +6 -3
- package/fesm2022/caribeng-ui-notification-center.mjs +636 -0
- package/fesm2022/{caribeng-ui-caribe-off-canvas.mjs → caribeng-ui-off-canvas.mjs} +55 -55
- package/fesm2022/{caribeng-ui-caribe-onboarding.mjs → caribeng-ui-onboarding.mjs} +105 -105
- package/fesm2022/caribeng-ui-orderlist.mjs +2 -2
- package/fesm2022/caribeng-ui-organizationchart.mjs +6 -10
- package/fesm2022/caribeng-ui-panel.mjs +6 -6
- package/fesm2022/caribeng-ui-panelmenu.mjs +9 -6
- package/fesm2022/caribeng-ui-pdfviewer.mjs +1755 -25
- package/fesm2022/caribeng-ui-period-picker.mjs +637 -0
- package/fesm2022/caribeng-ui-phone-input.mjs +688 -0
- package/fesm2022/caribeng-ui-picklist.mjs +2 -2
- package/fesm2022/caribeng-ui-pivot.mjs +419 -0
- package/fesm2022/caribeng-ui-pricing.mjs +263 -69
- package/fesm2022/caribeng-ui-qrcode.mjs +564 -0
- package/fesm2022/caribeng-ui-rating.mjs +14 -17
- package/fesm2022/caribeng-ui-reconciliation.mjs +386 -0
- package/fesm2022/caribeng-ui-ripple.mjs +2 -0
- package/fesm2022/caribeng-ui-scheduler.mjs +1027 -0
- package/fesm2022/caribeng-ui-scrolltop.mjs +3 -1
- package/fesm2022/caribeng-ui-select.mjs +2 -2
- package/fesm2022/{caribeng-ui-caribe-shortcut.mjs → caribeng-ui-shortcut.mjs} +29 -29
- package/fesm2022/caribeng-ui-sidebar.mjs +573 -0
- package/fesm2022/caribeng-ui-signature-pad.mjs +654 -0
- package/fesm2022/{caribeng-ui-caribe-status.mjs → caribeng-ui-status.mjs} +11 -11
- package/fesm2022/{caribeng-ui-caribe-step-indicator.mjs → caribeng-ui-step-indicator.mjs} +53 -53
- package/fesm2022/caribeng-ui-stepper.mjs +12 -5
- package/fesm2022/caribeng-ui-steps.mjs +2 -2
- package/fesm2022/caribeng-ui-table.mjs +333 -19
- package/fesm2022/caribeng-ui-tabmenu.mjs +10 -6
- package/fesm2022/caribeng-ui-tabs.mjs +2 -2
- package/fesm2022/{caribeng-ui-caribe-tag-button.mjs → caribeng-ui-tag-button.mjs} +25 -25
- package/fesm2022/caribeng-ui-tag.mjs +2 -2
- package/fesm2022/caribeng-ui-tieredmenu.mjs +111 -21
- package/fesm2022/{caribeng-ui-caribe-tracker.mjs → caribeng-ui-tracker.mjs} +29 -29
- package/fesm2022/{caribeng-ui-caribe-transaction-status.mjs → caribeng-ui-transaction-status.mjs} +11 -11
- package/fesm2022/caribeng-ui-treeselect.mjs +44 -9
- package/fesm2022/caribeng-ui-treetable.mjs +236 -17
- package/fesm2022/{caribeng-ui-caribe-voucher.mjs → caribeng-ui-voucher.mjs} +45 -45
- package/fesm2022/caribeng-ui-xlsx.mjs +486 -0
- package/fesm2022/caribeng-ui.mjs +1568 -1
- package/package.json +258 -178
- package/schematics/collection.json +5 -0
- package/schematics/migrate-from-primeng/core-icons.json +1 -0
- package/schematics/migrate-from-primeng/icons.js +269 -0
- package/schematics/migrate-from-primeng/index.js +290 -0
- package/schematics/migrate-from-primeng/mappings/button.js +93 -0
- package/schematics/migrate-from-primeng/mappings/card.js +33 -0
- package/schematics/migrate-from-primeng/mappings/checkbox.js +44 -0
- package/schematics/migrate-from-primeng/mappings/confirm.js +221 -0
- package/schematics/migrate-from-primeng/mappings/datepicker.js +121 -0
- package/schematics/migrate-from-primeng/mappings/dialog.js +84 -0
- package/schematics/migrate-from-primeng/mappings/index.js +88 -0
- package/schematics/migrate-from-primeng/mappings/inputnumber.js +62 -0
- package/schematics/migrate-from-primeng/mappings/inputtext.js +60 -0
- package/schematics/migrate-from-primeng/mappings/menu.js +468 -0
- package/schematics/migrate-from-primeng/mappings/multiselect.js +49 -0
- package/schematics/migrate-from-primeng/mappings/radiobutton.js +22 -0
- package/schematics/migrate-from-primeng/mappings/rules.js +206 -0
- package/schematics/migrate-from-primeng/mappings/select.js +97 -0
- package/schematics/migrate-from-primeng/mappings/service-calls.js +100 -0
- package/schematics/migrate-from-primeng/mappings/table.js +613 -0
- package/schematics/migrate-from-primeng/mappings/tabs.js +225 -0
- package/schematics/migrate-from-primeng/mappings/tag.js +29 -0
- package/schematics/migrate-from-primeng/mappings/textarea.js +44 -0
- package/schematics/migrate-from-primeng/mappings/toast.js +173 -0
- package/schematics/migrate-from-primeng/mappings/toggleswitch.js +37 -0
- package/schematics/migrate-from-primeng/mappings/tooltip.js +44 -0
- package/schematics/migrate-from-primeng/mappings/types.js +10 -0
- package/schematics/migrate-from-primeng/report.js +79 -0
- package/schematics/migrate-from-primeng/schema.js +2 -0
- package/schematics/migrate-from-primeng/schema.json +34 -0
- package/schematics/migrate-from-primeng/template.js +387 -0
- package/schematics/migrate-from-primeng/todo.js +5 -0
- package/schematics/migrate-from-primeng/typescript.js +442 -0
- package/schematics/migrate-from-primeng/workspace.js +117 -0
- package/schematics/ng-add/index.js +16 -1
- package/types/caribeng-ui-account-picker.d.ts +142 -0
- package/types/caribeng-ui-aging.d.ts +123 -0
- package/types/{caribeng-ui-caribe-alert.d.ts → caribeng-ui-alert.d.ts} +2 -2
- package/types/caribeng-ui-amount.d.ts +82 -0
- package/types/{caribeng-ui-caribe-animation-lottie.d.ts → caribeng-ui-animation-lottie.d.ts} +2 -2
- package/types/caribeng-ui-audit-log.d.ts +86 -0
- package/types/caribeng-ui-badge.d.ts +3 -1
- package/types/caribeng-ui-breadcrumb.d.ts +9 -1
- package/types/{caribeng-ui-caribe-button-group.d.ts → caribeng-ui-button-group.d.ts} +2 -2
- package/types/{caribeng-ui-caribe-card-content.d.ts → caribeng-ui-card-content.d.ts} +2 -2
- package/types/{caribeng-ui-caribe-card-move.d.ts → caribeng-ui-card-move.d.ts} +1 -1
- package/types/{caribeng-ui-caribe-card-primary.d.ts → caribeng-ui-card-primary.d.ts} +2 -2
- package/types/{caribeng-ui-caribe-card-select.d.ts → caribeng-ui-card-select.d.ts} +2 -2
- package/types/caribeng-ui-cascadeselect.d.ts +6 -0
- package/types/caribeng-ui-chart.d.ts +3 -1
- package/types/caribeng-ui-chat.d.ts +299 -0
- package/types/{caribeng-ui-caribe-coachmark.d.ts → caribeng-ui-coachmark.d.ts} +2 -2
- package/types/caribeng-ui-code-block.d.ts +65 -0
- package/types/caribeng-ui-colorpicker.d.ts +5 -1
- package/types/caribeng-ui-command-palette.d.ts +133 -0
- package/types/caribeng-ui-comments.d.ts +214 -0
- package/types/caribeng-ui-confirmdialog.d.ts +34 -2
- package/types/caribeng-ui-confirmpopup.d.ts +39 -2
- package/types/caribeng-ui-contextmenu.d.ts +7 -0
- package/types/caribeng-ui-copy-button.d.ts +90 -0
- package/types/caribeng-ui-datagrid.d.ts +269 -0
- package/types/caribeng-ui-dataview.d.ts +2 -0
- package/types/caribeng-ui-dock.d.ts +13 -1
- package/types/caribeng-ui-document.d.ts +138 -0
- package/types/{caribeng-ui-caribe-dots-indicator.d.ts → caribeng-ui-dots-indicator.d.ts} +2 -2
- package/types/caribeng-ui-drawer.d.ts +3 -1
- package/types/caribeng-ui-dynamic-form.d.ts +409 -0
- package/types/caribeng-ui-editor.d.ts +110 -12
- package/types/{caribeng-ui-caribe-expansion-panel.d.ts → caribeng-ui-expansion-panel.d.ts} +1 -1
- package/types/{caribeng-ui-caribe-fab-menu.d.ts → caribeng-ui-fab-menu.d.ts} +2 -2
- package/types/caribeng-ui-file-card.d.ts +27 -2
- package/types/{caribeng-ui-caribe-file-download.d.ts → caribeng-ui-file-download.d.ts} +1 -1
- package/types/caribeng-ui-financial-report.d.ts +102 -0
- package/types/{caribeng-ui-caribe-float-menu.d.ts → caribeng-ui-float-menu.d.ts} +2 -2
- package/types/caribeng-ui-flow.d.ts +228 -0
- package/types/caribeng-ui-folder-card.d.ts +27 -5
- package/types/{caribeng-ui-caribe-footer.d.ts → caribeng-ui-footer.d.ts} +2 -2
- package/types/caribeng-ui-gantt.d.ts +244 -0
- package/types/{caribeng-ui-caribe-header.d.ts → caribeng-ui-header.d.ts} +2 -2
- package/types/{caribeng-ui-caribe-icon-button.d.ts → caribeng-ui-icon-button.d.ts} +2 -2
- package/types/{caribeng-ui-caribe-illustration.d.ts → caribeng-ui-illustration.d.ts} +1 -1
- package/types/caribeng-ui-image-cropper.d.ts +169 -0
- package/types/caribeng-ui-import-wizard.d.ts +149 -0
- package/types/caribeng-ui-infinite-scroll.d.ts +75 -0
- package/types/caribeng-ui-input-number.d.ts +1 -1
- package/types/{caribeng-ui-caribe-input-search.d.ts → caribeng-ui-input-search.d.ts} +2 -2
- package/types/{caribeng-ui-caribe-input-token.d.ts → caribeng-ui-input-token.d.ts} +2 -2
- package/types/caribeng-ui-inputmask.d.ts +3 -1
- package/types/caribeng-ui-journal-entry.d.ts +110 -0
- package/types/caribeng-ui-kanban.d.ts +783 -0
- package/types/caribeng-ui-kbd.d.ts +36 -0
- package/types/caribeng-ui-kpi.d.ts +64 -0
- package/types/{caribeng-ui-caribe-link.d.ts → caribeng-ui-link.d.ts} +2 -2
- package/types/{caribeng-ui-caribe-logo.d.ts → caribeng-ui-logo.d.ts} +1 -1
- package/types/caribeng-ui-masonry.d.ts +32 -0
- package/types/caribeng-ui-media-player.d.ts +140 -0
- package/types/caribeng-ui-megamenu.d.ts +11 -0
- package/types/caribeng-ui-mentions.d.ts +127 -0
- package/types/caribeng-ui-menu.d.ts +7 -0
- package/types/caribeng-ui-menubar.d.ts +7 -0
- package/types/caribeng-ui-message.d.ts +2 -0
- package/types/caribeng-ui-notification-center.d.ts +153 -0
- package/types/{caribeng-ui-caribe-off-canvas.d.ts → caribeng-ui-off-canvas.d.ts} +2 -2
- package/types/{caribeng-ui-caribe-onboarding.d.ts → caribeng-ui-onboarding.d.ts} +2 -2
- package/types/caribeng-ui-panelmenu.d.ts +7 -0
- package/types/caribeng-ui-pdfviewer.d.ts +245 -5
- package/types/caribeng-ui-period-picker.d.ts +148 -0
- package/types/caribeng-ui-phone-input.d.ts +168 -0
- package/types/caribeng-ui-pivot.d.ts +116 -0
- package/types/caribeng-ui-pricing.d.ts +41 -4
- package/types/caribeng-ui-qrcode.d.ts +88 -0
- package/types/caribeng-ui-reconciliation.d.ts +109 -0
- package/types/caribeng-ui-scheduler.d.ts +188 -0
- package/types/{caribeng-ui-caribe-shortcut.d.ts → caribeng-ui-shortcut.d.ts} +2 -2
- package/types/caribeng-ui-sidebar.d.ts +167 -0
- package/types/caribeng-ui-signature-pad.d.ts +151 -0
- package/types/{caribeng-ui-caribe-status.d.ts → caribeng-ui-status.d.ts} +2 -2
- package/types/{caribeng-ui-caribe-step-indicator.d.ts → caribeng-ui-step-indicator.d.ts} +2 -2
- package/types/caribeng-ui-stepper.d.ts +2 -0
- package/types/caribeng-ui-table.d.ts +67 -3
- package/types/caribeng-ui-tabmenu.d.ts +7 -0
- package/types/{caribeng-ui-caribe-tag-button.d.ts → caribeng-ui-tag-button.d.ts} +2 -2
- package/types/caribeng-ui-tieredmenu.d.ts +17 -1
- package/types/{caribeng-ui-caribe-tracker.d.ts → caribeng-ui-tracker.d.ts} +2 -2
- package/types/{caribeng-ui-caribe-transaction-status.d.ts → caribeng-ui-transaction-status.d.ts} +2 -2
- package/types/caribeng-ui-treeselect.d.ts +6 -0
- package/types/caribeng-ui-treetable.d.ts +67 -2
- package/types/{caribeng-ui-caribe-voucher.d.ts → caribeng-ui-voucher.d.ts} +2 -2
- package/types/caribeng-ui-xlsx.d.ts +79 -0
- package/types/caribeng-ui.d.ts +985 -2
- package/fesm2022/caribeng-ui-caribe-calendar.mjs +0 -92
- package/fesm2022/caribeng-ui-caribe-circle-loading.mjs +0 -130
- package/fesm2022/caribeng-ui-caribe-data-table.mjs +0 -94
- package/fesm2022/caribeng-ui-caribe-file-select.mjs +0 -88
- package/fesm2022/caribeng-ui-caribe-inline-alert.mjs +0 -100
- package/fesm2022/caribeng-ui-caribe-input-date.mjs +0 -138
- package/fesm2022/caribeng-ui-caribe-input-select.mjs +0 -154
- package/fesm2022/caribeng-ui-caribe-loader.mjs +0 -48
- package/fesm2022/caribeng-ui-caribe-modal.mjs +0 -119
- package/fesm2022/caribeng-ui-caribe-pictogram.mjs +0 -52
- package/fesm2022/caribeng-ui-caribe-pop-over.mjs +0 -104
- package/fesm2022/caribeng-ui-caribe-preloader.mjs +0 -57
- package/fesm2022/caribeng-ui-caribe-progress-bar.mjs +0 -84
- package/fesm2022/caribeng-ui-caribe-stroke.mjs +0 -69
- package/fesm2022/caribeng-ui-caribe-switch.mjs +0 -182
- package/styles/caribeng.css +0 -380
- package/styles/scss/_mixins.scss +0 -46
- package/styles/scss/_overlay.scss +0 -15
- package/styles/scss/_tokens.scss +0 -267
- package/styles/scss/_utilities.scss +0 -73
- package/styles/scss/_variables.scss +0 -33
- package/styles/scss/index.scss +0 -16
- package/types/caribeng-ui-caribe-calendar.d.ts +0 -27
- package/types/caribeng-ui-caribe-circle-loading.d.ts +0 -28
- package/types/caribeng-ui-caribe-data-table.d.ts +0 -26
- package/types/caribeng-ui-caribe-file-select.d.ts +0 -31
- package/types/caribeng-ui-caribe-inline-alert.d.ts +0 -28
- package/types/caribeng-ui-caribe-input-date.d.ts +0 -40
- package/types/caribeng-ui-caribe-input-select.d.ts +0 -47
- package/types/caribeng-ui-caribe-loader.d.ts +0 -22
- package/types/caribeng-ui-caribe-modal.d.ts +0 -21
- package/types/caribeng-ui-caribe-pictogram.d.ts +0 -15
- package/types/caribeng-ui-caribe-pop-over.d.ts +0 -17
- package/types/caribeng-ui-caribe-preloader.d.ts +0 -24
- package/types/caribeng-ui-caribe-progress-bar.d.ts +0 -28
- package/types/caribeng-ui-caribe-stroke.d.ts +0 -17
- package/types/caribeng-ui-caribe-switch.d.ts +0 -55
- /package/fesm2022/{caribeng-ui-caribe-illustration.mjs → caribeng-ui-illustration.mjs} +0 -0
- /package/fesm2022/{caribeng-ui-caribe-logo.mjs → caribeng-ui-logo.mjs} +0 -0
|
@@ -1,17 +1,27 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
+
import * as _caribeng_ui from '@caribeng/ui';
|
|
3
|
+
import { CbMenuItem } from '@caribeng/ui/menu';
|
|
2
4
|
|
|
3
5
|
/**
|
|
4
6
|
* Tarjeta de categoría/almacenamiento de CaribeNG: icono con tinte, título y
|
|
5
7
|
* subtítulo a la izquierda; dos valores alineados a la derecha. Útil para
|
|
6
8
|
* resúmenes de media, almacenamiento o métricas de categoría.
|
|
7
9
|
*
|
|
10
|
+
* Como `cb-folder-card`: con `actions` muestra un botón ⋮ con un menú
|
|
11
|
+
* (`actionSelect`) y con `clickable` toda la tarjeta emite `open`.
|
|
12
|
+
*
|
|
8
13
|
* @example
|
|
9
14
|
* ```html
|
|
10
15
|
* <cb-file-card icon="image" color="#10b981" title="Imágenes"
|
|
11
|
-
* subtitle="17% usado" value="245 archivos" valueSub="26.4 GB"
|
|
16
|
+
* subtitle="17% usado" value="245 archivos" valueSub="26.4 GB"
|
|
17
|
+
* clickable (open)="verImagenes()" />
|
|
12
18
|
* ```
|
|
13
19
|
*/
|
|
14
20
|
declare class CbFileCard {
|
|
21
|
+
/** Textos de interfaz en el idioma activo (`provideCaribeNG({ locale })`). */
|
|
22
|
+
protected readonly t: _angular_core.Signal<_caribeng_ui.CbTranslation>;
|
|
23
|
+
private readonly menu;
|
|
24
|
+
private readonly trigger;
|
|
15
25
|
/** Nombre del icono (del set de CaribeNG). */
|
|
16
26
|
readonly icon: _angular_core.InputSignal<string>;
|
|
17
27
|
/** Color del icono (CSS). El fondo del recuadro se deriva con transparencia. */
|
|
@@ -24,10 +34,25 @@ declare class CbFileCard {
|
|
|
24
34
|
readonly value: _angular_core.InputSignal<string>;
|
|
25
35
|
/** Valor secundario a la derecha (p. ej. "26.4 GB"). */
|
|
26
36
|
readonly valueSub: _angular_core.InputSignal<string>;
|
|
37
|
+
/** Acciones del menú ⋮. Sin acciones no se muestra el botón. */
|
|
38
|
+
readonly actions: _angular_core.InputSignal<readonly CbMenuItem[]>;
|
|
39
|
+
/** Nombre del botón ⋮ y del menú. Por defecto, "Más acciones: {título}" del idioma activo. */
|
|
40
|
+
readonly actionsAriaLabel: _angular_core.InputSignal<string | undefined>;
|
|
41
|
+
/** Toda la tarjeta es pulsable y emite `open` (clic, Enter o Espacio). */
|
|
42
|
+
readonly clickable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
43
|
+
/** Acción elegida en el menú ⋮. */
|
|
44
|
+
readonly actionSelect: _angular_core.OutputEmitterRef<CbMenuItem>;
|
|
45
|
+
/** Se pulsó la tarjeta (solo con `clickable`). */
|
|
46
|
+
readonly open: _angular_core.OutputEmitterRef<MouseEvent>;
|
|
47
|
+
protected readonly menuOpen: _angular_core.WritableSignal<boolean>;
|
|
48
|
+
protected readonly menuLabel: _angular_core.Signal<string>;
|
|
27
49
|
/** Fondo tintado derivado del color (cualquier color CSS: hex, rgb(), var(--…)). */
|
|
28
50
|
protected tintBg(): string | null;
|
|
51
|
+
/** Abre o cierra el menú de acciones anclado al botón ⋮. */
|
|
52
|
+
toggleMenu(): void;
|
|
53
|
+
protected openFromKeyboard(event: Event): void;
|
|
29
54
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CbFileCard, never>;
|
|
30
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CbFileCard, "cb-file-card", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "valueSub": { "alias": "valueSub"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
55
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CbFileCard, "cb-file-card", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "valueSub": { "alias": "valueSub"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "actionsAriaLabel": { "alias": "actionsAriaLabel"; "required": false; "isSignal": true; }; "clickable": { "alias": "clickable"; "required": false; "isSignal": true; }; }, { "actionSelect": "actionSelect"; "open": "open"; }, never, never, true, never>;
|
|
31
56
|
}
|
|
32
57
|
|
|
33
58
|
export { CbFileCard };
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import * as _caribeng_ui from '@caribeng/ui';
|
|
3
|
+
import { cbFormat, CbNegativeStyle } from '@caribeng/ui';
|
|
4
|
+
import { CbAccount } from '@caribeng/ui/account-picker';
|
|
5
|
+
import { CbTreeTableNode, CbTreeTableColumn } from '@caribeng/ui/treetable';
|
|
6
|
+
import { CbXlsxSheet } from '@caribeng/ui/xlsx';
|
|
7
|
+
|
|
8
|
+
/** Fila de total calculada a partir de cuentas (p. ej. «Utilidad del ejercicio» = 4 − 5 − 6). */
|
|
9
|
+
interface CbReportTotal {
|
|
10
|
+
readonly label: string;
|
|
11
|
+
readonly terms: readonly {
|
|
12
|
+
readonly code: string;
|
|
13
|
+
readonly sign?: 1 | -1;
|
|
14
|
+
}[];
|
|
15
|
+
}
|
|
16
|
+
/** Valores por cuenta de movimiento: uno por periodo, en el orden de `periods`. */
|
|
17
|
+
type CbReportBalances = Readonly<Record<string, readonly (number | null)[]>>;
|
|
18
|
+
/**
|
|
19
|
+
* Informe financiero jerárquico de CaribeNG: balance general, estado de resultados
|
|
20
|
+
* o balance de prueba a partir del plan de cuentas y los saldos de las cuentas de
|
|
21
|
+
* movimiento.
|
|
22
|
+
*
|
|
23
|
+
* - Cada cuenta mayor suma a sus auxiliares; los niveles se abren con los botones
|
|
24
|
+
* «Nivel 1…N» y se pueden ocultar las cuentas en cero.
|
|
25
|
+
* - Varios periodos en columnas y, con `comparative`, la variación y el % del
|
|
26
|
+
* primero frente al segundo.
|
|
27
|
+
* - Totales calculados (`totals`), saldos de naturaleza crédito en positivo
|
|
28
|
+
* (`signByNature`), exportación a Excel con niveles plegables e impresión.
|
|
29
|
+
* - Clic o Enter en una cuenta de movimiento emite `accountOpen` (ver sus movimientos).
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```html
|
|
33
|
+
* <cb-financial-report title="Estado de resultados" [accounts]="puc" [balances]="saldos" [periods]="['2026', '2025']" comparative [classes]="['4', '5', '6']" [totals]="utilidad" />
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
declare class CbFinancialReport {
|
|
37
|
+
protected readonly t: _angular_core.Signal<_caribeng_ui.CbTranslation>;
|
|
38
|
+
protected readonly fmt: typeof cbFormat;
|
|
39
|
+
private readonly config;
|
|
40
|
+
protected readonly uid: string;
|
|
41
|
+
private readonly tree;
|
|
42
|
+
readonly title: _angular_core.InputSignal<string>;
|
|
43
|
+
/** Líneas bajo el título (empresa, NIT, periodo). */
|
|
44
|
+
readonly subtitle: _angular_core.InputSignal<readonly string[]>;
|
|
45
|
+
/** Plan de cuentas. */
|
|
46
|
+
readonly accounts: _angular_core.InputSignal<readonly CbAccount[]>;
|
|
47
|
+
/** Saldos de las cuentas de movimiento, uno por periodo. */
|
|
48
|
+
readonly balances: _angular_core.InputSignal<Readonly<Record<string, readonly (number | null)[]>>>;
|
|
49
|
+
/** Nombres de los periodos (columnas). */
|
|
50
|
+
readonly periods: _angular_core.InputSignal<readonly string[]>;
|
|
51
|
+
/** Columnas de variación y % del primer periodo frente al segundo. */
|
|
52
|
+
readonly comparative: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
53
|
+
/**
|
|
54
|
+
* Clases (cuentas raíz) que se muestran: `['1', '2', '3']` para el balance. Todas
|
|
55
|
+
* por defecto. Los `totals` pueden usar cualquier cuenta, también de otras clases.
|
|
56
|
+
*/
|
|
57
|
+
readonly classes: _angular_core.InputSignal<readonly string[] | null>;
|
|
58
|
+
/** Muestra en positivo los saldos de naturaleza crédito (pasivo, patrimonio, ingresos). */
|
|
59
|
+
readonly signByNature: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
60
|
+
/** Filas de total al final. */
|
|
61
|
+
readonly totals: _angular_core.InputSignal<readonly CbReportTotal[]>;
|
|
62
|
+
/** Niveles abiertos (1 = solo las clases). */
|
|
63
|
+
readonly level: _angular_core.ModelSignal<number>;
|
|
64
|
+
/** Oculta las cuentas cuyos saldos son todos cero. */
|
|
65
|
+
readonly hideZero: _angular_core.ModelSignal<boolean>;
|
|
66
|
+
readonly toolbar: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
67
|
+
readonly currency: _angular_core.InputSignal<string | undefined>;
|
|
68
|
+
readonly negativeStyle: _angular_core.InputSignal<CbNegativeStyle | undefined>;
|
|
69
|
+
/** Clic o Enter en una cuenta de movimiento. */
|
|
70
|
+
readonly accountOpen: _angular_core.OutputEmitterRef<CbAccount>;
|
|
71
|
+
private readonly resolved;
|
|
72
|
+
private readonly byCode;
|
|
73
|
+
/** Signo de cada cuenta según la naturaleza de su clase. */
|
|
74
|
+
private signOf;
|
|
75
|
+
/** Árbol de todo el plan de cuentas con los saldos (con signo) en las hojas. */
|
|
76
|
+
private readonly allNodes;
|
|
77
|
+
/** Árbol del informe: solo las clases pedidas (`classes`). */
|
|
78
|
+
private readonly baseNodes;
|
|
79
|
+
/** Árbol mostrado: sin las cuentas en cero (si se pide) y con las filas de total. */
|
|
80
|
+
protected readonly nodes: _angular_core.Signal<CbTreeTableNode[]>;
|
|
81
|
+
/** Total (con signo) de una cuenta en cada periodo, sumando sus hojas. */
|
|
82
|
+
private readonly sums;
|
|
83
|
+
private readonly totalNodes;
|
|
84
|
+
protected readonly columns: _angular_core.Signal<CbTreeTableColumn[]>;
|
|
85
|
+
/** Niveles disponibles (hasta la profundidad del plan de cuentas). */
|
|
86
|
+
protected readonly levels: _angular_core.Signal<number[]>;
|
|
87
|
+
protected readonly rowClass: (node: CbTreeTableNode) => string | null;
|
|
88
|
+
constructor();
|
|
89
|
+
protected onActivate(node: CbTreeTableNode): void;
|
|
90
|
+
/** Hoja de Excel del informe: todas las cuentas con sus niveles plegables, títulos y totales. */
|
|
91
|
+
toExcelSheet(): CbXlsxSheet;
|
|
92
|
+
/** Descarga el informe en Excel. */
|
|
93
|
+
exportExcel(filename?: string): void;
|
|
94
|
+
/** Imprime el informe (todas las cuentas hasta el nivel abierto) en una ventana de impresión limpia. */
|
|
95
|
+
print(): void;
|
|
96
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CbFinancialReport, never>;
|
|
97
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CbFinancialReport, "cb-financial-report", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "accounts": { "alias": "accounts"; "required": false; "isSignal": true; }; "balances": { "alias": "balances"; "required": false; "isSignal": true; }; "periods": { "alias": "periods"; "required": false; "isSignal": true; }; "comparative": { "alias": "comparative"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; "signByNature": { "alias": "signByNature"; "required": false; "isSignal": true; }; "totals": { "alias": "totals"; "required": false; "isSignal": true; }; "level": { "alias": "level"; "required": false; "isSignal": true; }; "hideZero": { "alias": "hideZero"; "required": false; "isSignal": true; }; "toolbar": { "alias": "toolbar"; "required": false; "isSignal": true; }; "currency": { "alias": "currency"; "required": false; "isSignal": true; }; "negativeStyle": { "alias": "negativeStyle"; "required": false; "isSignal": true; }; }, { "level": "levelChange"; "hideZero": "hideZeroChange"; "accountOpen": "accountOpen"; }, never, never, true, never>;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export { CbFinancialReport };
|
|
101
|
+
export type { CbReportBalances, CbReportTotal };
|
|
102
|
+
//# sourceMappingURL=caribeng-ui-financial-report.d.ts.map
|
|
@@ -6,7 +6,7 @@ interface CbFloatMenuItem {
|
|
|
6
6
|
label: string;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
|
-
* Float-menu
|
|
9
|
+
* Float-menu: menú flotante en forma de píldora con opciones
|
|
10
10
|
* seleccionables (segmentado horizontal).
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
@@ -31,4 +31,4 @@ declare class CbFloatMenu {
|
|
|
31
31
|
|
|
32
32
|
export { CbFloatMenu };
|
|
33
33
|
export type { CbFloatMenuItem };
|
|
34
|
-
//# sourceMappingURL=caribeng-ui-
|
|
34
|
+
//# sourceMappingURL=caribeng-ui-float-menu.d.ts.map
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import * as _caribeng_ui from '@caribeng/ui';
|
|
3
|
+
import { cbFormat } from '@caribeng/ui';
|
|
4
|
+
|
|
5
|
+
/** Tipo de nodo de un flujo. */
|
|
6
|
+
type CbFlowNodeType = 'start' | 'task' | 'decision' | 'end';
|
|
7
|
+
/** Nodo: `x`, `y` es su esquina superior izquierda en el lienzo (px a zoom 100 %). */
|
|
8
|
+
interface CbFlowNode {
|
|
9
|
+
readonly id: string;
|
|
10
|
+
readonly type: CbFlowNodeType;
|
|
11
|
+
readonly label: string;
|
|
12
|
+
readonly x: number;
|
|
13
|
+
readonly y: number;
|
|
14
|
+
}
|
|
15
|
+
/** Conexión dirigida de `from` a `to`, con una etiqueta opcional ("Aprobado"). */
|
|
16
|
+
interface CbFlowEdge {
|
|
17
|
+
readonly id: string;
|
|
18
|
+
readonly from: string;
|
|
19
|
+
readonly to: string;
|
|
20
|
+
readonly label?: string;
|
|
21
|
+
}
|
|
22
|
+
/** Un flujo: nodos y conexiones. */
|
|
23
|
+
interface CbFlow {
|
|
24
|
+
readonly nodes: readonly CbFlowNode[];
|
|
25
|
+
readonly edges: readonly CbFlowEdge[];
|
|
26
|
+
}
|
|
27
|
+
/** Problema de un flujo (`cbValidateFlow`). */
|
|
28
|
+
type CbFlowIssueCode = 'no-start' | 'many-starts' | 'no-end' | 'start-incoming' | 'end-outgoing' | 'dead-end' | 'decision-branches' | 'branch-label' | 'unreachable';
|
|
29
|
+
interface CbFlowIssue {
|
|
30
|
+
readonly code: CbFlowIssueCode;
|
|
31
|
+
/** Nodo afectado (si lo hay). */
|
|
32
|
+
readonly nodeId?: string;
|
|
33
|
+
/** `warning` no impide usar el flujo (una salida de decisión sin etiqueta). */
|
|
34
|
+
readonly severity: 'error' | 'warning';
|
|
35
|
+
}
|
|
36
|
+
/** Tamaño de cada tipo de nodo (px a zoom 100 %). */
|
|
37
|
+
declare const CB_FLOW_NODE_SIZE: Readonly<Record<CbFlowNodeType, {
|
|
38
|
+
readonly w: number;
|
|
39
|
+
readonly h: number;
|
|
40
|
+
}>>;
|
|
41
|
+
/**
|
|
42
|
+
* Problemas del flujo: falta un inicio o un fin, nodos sin salida o inalcanzables desde el inicio,
|
|
43
|
+
* decisiones con menos de dos salidas (o salidas sin etiqueta), y conexiones que entran en un inicio
|
|
44
|
+
* o salen de un fin. Un flujo vacío no tiene problemas.
|
|
45
|
+
*/
|
|
46
|
+
declare function cbValidateFlow(flow: CbFlow): CbFlowIssue[];
|
|
47
|
+
/**
|
|
48
|
+
* Coloca los nodos por niveles de arriba abajo (el inicio arriba y cada paso debajo del anterior),
|
|
49
|
+
* centrados y sin cruzar más de lo necesario. Las conexiones que vuelven atrás no cuentan para
|
|
50
|
+
* los niveles. Las posiciones se ajustan a la rejilla `grid`.
|
|
51
|
+
*/
|
|
52
|
+
declare function cbLayoutFlow(flow: CbFlow, grid?: number): CbFlow;
|
|
53
|
+
|
|
54
|
+
/** Conexión ya colocada: trazado, flecha, etiqueta y nombre accesible. */
|
|
55
|
+
interface EdgeView {
|
|
56
|
+
readonly edge: CbFlowEdge;
|
|
57
|
+
readonly d: string;
|
|
58
|
+
readonly arrow: string;
|
|
59
|
+
readonly mid: readonly [number, number];
|
|
60
|
+
readonly label: string;
|
|
61
|
+
}
|
|
62
|
+
/** Edición en línea del nombre de un nodo o de la etiqueta de una conexión. */
|
|
63
|
+
interface Editing {
|
|
64
|
+
readonly id: string;
|
|
65
|
+
readonly kind: 'node' | 'edge';
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Editor de flujos (aprobaciones, procesos): nodos de inicio, tarea, decisión y fin unidos por
|
|
69
|
+
* conexiones con etiqueta. Se arrastran los nodos, se conectan desde su tirador y el lienzo se
|
|
70
|
+
* desplaza y amplía. Todo se puede hacer con el teclado, y la vista Lista es una alternativa
|
|
71
|
+
* sin lienzo para editar el flujo con lector de pantalla. Valida el flujo (`issues`) y lo ordena
|
|
72
|
+
* por niveles (`layout()`).
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* ```html
|
|
76
|
+
* <cb-flow-editor [(flow)]="aprobacion" />
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
declare class CbFlowEditor {
|
|
80
|
+
/** Textos de interfaz en el idioma activo (`provideCaribeNG({ locale })`). */
|
|
81
|
+
protected readonly t: _angular_core.Signal<_caribeng_ui.CbTranslation>;
|
|
82
|
+
protected readonly format: typeof cbFormat;
|
|
83
|
+
/** El flujo: nodos y conexiones. */
|
|
84
|
+
readonly flow: _angular_core.ModelSignal<CbFlow>;
|
|
85
|
+
/** Solo lectura: se puede recorrer, desplazar y ampliar, pero no editar. Intro abre el nodo (`nodeOpen`). */
|
|
86
|
+
readonly readonly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
87
|
+
/** Rejilla en px: los nodos se ajustan a ella al moverlos (1 la desactiva). */
|
|
88
|
+
readonly gridSize: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
89
|
+
/** Zoom (1 = 100 %). */
|
|
90
|
+
readonly zoom: _angular_core.ModelSignal<number>;
|
|
91
|
+
/** Diagrama o lista (alternativa sin lienzo, para teclado y lector de pantalla). */
|
|
92
|
+
readonly view: _angular_core.ModelSignal<"diagram" | "list">;
|
|
93
|
+
/** Nodo o conexión seleccionada (su `id`). */
|
|
94
|
+
readonly selected: _angular_core.ModelSignal<string | null>;
|
|
95
|
+
/** Muestra los problemas del flujo bajo el editor. */
|
|
96
|
+
readonly showValidation: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
97
|
+
/** Ajusta el zoom para ver todo el flujo al cargarlo. */
|
|
98
|
+
readonly fitOnLoad: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
99
|
+
/** Nombre accesible (por defecto, "Editor de flujo"). */
|
|
100
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
101
|
+
/** Se abrió un nodo: doble clic, o Intro en solo lectura. */
|
|
102
|
+
readonly nodeOpen: _angular_core.OutputEmitterRef<CbFlowNode>;
|
|
103
|
+
protected readonly uid: string;
|
|
104
|
+
protected readonly types: readonly CbFlowNodeType[];
|
|
105
|
+
protected readonly sizes: Readonly<Record<CbFlowNodeType, {
|
|
106
|
+
readonly w: number;
|
|
107
|
+
readonly h: number;
|
|
108
|
+
}>>;
|
|
109
|
+
protected readonly minZoom = 0.25;
|
|
110
|
+
protected readonly maxZoom = 2;
|
|
111
|
+
protected readonly step = 1.2;
|
|
112
|
+
private readonly host;
|
|
113
|
+
private readonly injector;
|
|
114
|
+
private readonly viewport;
|
|
115
|
+
private readonly editor;
|
|
116
|
+
/** Desplazamiento del lienzo (px de pantalla). */
|
|
117
|
+
protected readonly pan: _angular_core.WritableSignal<{
|
|
118
|
+
x: number;
|
|
119
|
+
y: number;
|
|
120
|
+
}>;
|
|
121
|
+
protected readonly panning: _angular_core.WritableSignal<boolean>;
|
|
122
|
+
/** Posición provisional de un nodo mientras se arrastra. */
|
|
123
|
+
private readonly dragPos;
|
|
124
|
+
/** Nodo desde el que se conecta (con el teclado o con el botón Conectar). */
|
|
125
|
+
protected readonly connectFrom: _angular_core.WritableSignal<string | null>;
|
|
126
|
+
/** Conexión que se arrastra desde un tirador, hasta el puntero (coordenadas del lienzo). */
|
|
127
|
+
private readonly linkDrag;
|
|
128
|
+
protected readonly editing: _angular_core.WritableSignal<Editing | null>;
|
|
129
|
+
protected readonly announcement: _angular_core.WritableSignal<string>;
|
|
130
|
+
private announceFlip;
|
|
131
|
+
private fitted;
|
|
132
|
+
/** Problemas del flujo (los mismos que muestra el editor). */
|
|
133
|
+
readonly issues: _angular_core.Signal<CbFlowIssue[]>;
|
|
134
|
+
protected readonly nodes: _angular_core.Signal<readonly CbFlowNode[]>;
|
|
135
|
+
private readonly nodeMap;
|
|
136
|
+
protected readonly outgoing: _angular_core.Signal<Map<string, CbFlowEdge[]>>;
|
|
137
|
+
protected readonly issuesByNode: _angular_core.Signal<Map<string, CbFlowIssue[]>>;
|
|
138
|
+
protected readonly edgeViews: _angular_core.Signal<EdgeView[]>;
|
|
139
|
+
/** Caja del SVG de conexiones: la de los nodos con margen para las curvas que rodean. */
|
|
140
|
+
protected readonly svgBox: _angular_core.Signal<{
|
|
141
|
+
x: number;
|
|
142
|
+
y: number;
|
|
143
|
+
w: number;
|
|
144
|
+
h: number;
|
|
145
|
+
}>;
|
|
146
|
+
protected readonly tempLine: _angular_core.Signal<string>;
|
|
147
|
+
protected readonly worldTransform: _angular_core.Signal<string>;
|
|
148
|
+
protected readonly gridBackground: _angular_core.Signal<{
|
|
149
|
+
size: string;
|
|
150
|
+
position: string;
|
|
151
|
+
}>;
|
|
152
|
+
protected readonly percent: _angular_core.Signal<string>;
|
|
153
|
+
protected readonly ordered: _angular_core.Signal<CbFlowNode[]>;
|
|
154
|
+
protected readonly selectedNode: _angular_core.Signal<CbFlowNode | null>;
|
|
155
|
+
protected readonly selectedExists: _angular_core.Signal<boolean>;
|
|
156
|
+
/** Caja del campo de edición en línea (sobre el nodo o en el punto medio de la conexión). */
|
|
157
|
+
protected readonly editorBox: _angular_core.Signal<{
|
|
158
|
+
x: number;
|
|
159
|
+
y: number;
|
|
160
|
+
w: number;
|
|
161
|
+
label: string;
|
|
162
|
+
} | null>;
|
|
163
|
+
constructor();
|
|
164
|
+
/** Añade un nodo. Con un nodo seleccionado, lo pone debajo y lo conecta desde él; después abre su nombre. */
|
|
165
|
+
addNode(type: CbFlowNodeType): CbFlowNode;
|
|
166
|
+
/** Conecta dos nodos (si se puede: no consigo mismo, no repetida, no hacia un inicio ni desde un fin). */
|
|
167
|
+
connect(from: string, to: string, label?: string): CbFlowEdge | null;
|
|
168
|
+
removeNode(id: string): void;
|
|
169
|
+
removeEdge(id: string): void;
|
|
170
|
+
rename(id: string, label: string): void;
|
|
171
|
+
relabel(id: string, label: string): void;
|
|
172
|
+
/** Coloca los nodos por niveles de arriba abajo y ajusta la vista. */
|
|
173
|
+
layout(): void;
|
|
174
|
+
/** Ajusta zoom y desplazamiento para ver todo el flujo. */
|
|
175
|
+
fit(): void;
|
|
176
|
+
/** Multiplica el zoom por `factor` alrededor del centro de la vista (o del punto `at`, en px de la vista). */
|
|
177
|
+
zoomBy(factor: number, at?: {
|
|
178
|
+
x: number;
|
|
179
|
+
y: number;
|
|
180
|
+
}): void;
|
|
181
|
+
protected toggleConnect(): void;
|
|
182
|
+
protected deleteSelected(): void;
|
|
183
|
+
protected connectFromList(from: string, select: HTMLSelectElement): void;
|
|
184
|
+
protected reveal(id: string): void;
|
|
185
|
+
protected onNodeKeydown(event: KeyboardEvent, rendered: CbFlowNode): void;
|
|
186
|
+
protected onEdgeKeydown(event: KeyboardEvent, edge: CbFlowEdge): void;
|
|
187
|
+
protected onHostKeydown(event: KeyboardEvent): void;
|
|
188
|
+
protected startEdit(id: string, kind: 'node' | 'edge'): void;
|
|
189
|
+
protected onEditorKeydown(event: KeyboardEvent): void;
|
|
190
|
+
/** Guarda lo escrito (al pulsar Intro o al salir del campo). */
|
|
191
|
+
protected commitEdit(refocus?: boolean): void;
|
|
192
|
+
private cancelEdit;
|
|
193
|
+
private focusItem;
|
|
194
|
+
protected onNodePointerDown(event: PointerEvent, node: CbFlowNode): void;
|
|
195
|
+
protected onNodeDblClick(node: CbFlowNode): void;
|
|
196
|
+
/** Arrastrar desde el tirador crea una conexión con el nodo donde se suelta. */
|
|
197
|
+
protected onHandlePointerDown(event: PointerEvent, node: CbFlowNode): void;
|
|
198
|
+
protected onEdgePointerDown(event: PointerEvent, edge: CbFlowEdge): void;
|
|
199
|
+
/** Arrastrar el fondo desplaza el lienzo; un clic sin moverse quita la selección. */
|
|
200
|
+
protected onBackgroundPointerDown(event: PointerEvent): void;
|
|
201
|
+
/** Rueda: desplaza; con Ctrl (o el gesto de pellizcar del panel táctil), amplía alrededor del puntero. */
|
|
202
|
+
protected onWheel(event: WheelEvent): void;
|
|
203
|
+
private track;
|
|
204
|
+
private beginConnect;
|
|
205
|
+
private cancelConnect;
|
|
206
|
+
private moveNode;
|
|
207
|
+
private newEdge;
|
|
208
|
+
/** Coordenadas del lienzo bajo el puntero. */
|
|
209
|
+
private toWorld;
|
|
210
|
+
/** Desplaza el lienzo lo justo para que se vea el nodo. */
|
|
211
|
+
private ensureVisible;
|
|
212
|
+
private focusNode;
|
|
213
|
+
private focusAfterRemoval;
|
|
214
|
+
protected nodeLabel(n: CbFlowNode): string;
|
|
215
|
+
protected typeLabel(type: CbFlowNodeType): string;
|
|
216
|
+
protected nameOf(id: string): string;
|
|
217
|
+
/** Destinos posibles en la lista: todos menos él mismo, los inicios y los ya conectados. */
|
|
218
|
+
protected targetsFor(node: CbFlowNode): CbFlowNode[];
|
|
219
|
+
protected issueText(issue: CbFlowIssue): string;
|
|
220
|
+
protected diamond(type: CbFlowNodeType): string;
|
|
221
|
+
private announce;
|
|
222
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CbFlowEditor, never>;
|
|
223
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CbFlowEditor, "cb-flow-editor", never, { "flow": { "alias": "flow"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "gridSize": { "alias": "gridSize"; "required": false; "isSignal": true; }; "zoom": { "alias": "zoom"; "required": false; "isSignal": true; }; "view": { "alias": "view"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "showValidation": { "alias": "showValidation"; "required": false; "isSignal": true; }; "fitOnLoad": { "alias": "fitOnLoad"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "flow": "flowChange"; "zoom": "zoomChange"; "view": "viewChange"; "selected": "selectedChange"; "nodeOpen": "nodeOpen"; }, never, never, true, never>;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export { CB_FLOW_NODE_SIZE, CbFlowEditor, cbLayoutFlow, cbValidateFlow };
|
|
227
|
+
export type { CbFlow, CbFlowEdge, CbFlowIssue, CbFlowIssueCode, CbFlowNode, CbFlowNodeType };
|
|
228
|
+
//# sourceMappingURL=caribeng-ui-flow.d.ts.map
|
|
@@ -1,20 +1,27 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import * as _caribeng_ui from '@caribeng/ui';
|
|
3
|
+
import { CbMenuItem } from '@caribeng/ui/menu';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Tarjeta de carpeta de CaribeNG: icono de carpeta, nombre y una fila con
|
|
6
|
-
* número de archivos y tamaño.
|
|
7
|
+
* número de archivos y tamaño.
|
|
8
|
+
*
|
|
9
|
+
* Con `actions` muestra un botón ⋮ que abre un menú (`cb-menu`) con esas
|
|
10
|
+
* acciones y emite `actionSelect`. Con `clickable`, toda la tarjeta abre la
|
|
11
|
+
* carpeta (`open`) sin interferir con el botón del menú. Sigue aceptando un
|
|
12
|
+
* trigger propio proyectado por `[cb-folder-actions]`.
|
|
7
13
|
*
|
|
8
14
|
* @example
|
|
9
15
|
* ```html
|
|
10
|
-
* <cb-folder-card name="Imágenes" files="345" size="26.4 GB"
|
|
11
|
-
*
|
|
12
|
-
* </cb-folder-card>
|
|
16
|
+
* <cb-folder-card name="Imágenes" files="345" size="26.4 GB" clickable
|
|
17
|
+
* [actions]="acciones" (actionSelect)="onAccion($event)" (open)="abrir()" />
|
|
13
18
|
* ```
|
|
14
19
|
*/
|
|
15
20
|
declare class CbFolderCard {
|
|
16
21
|
/** Textos de interfaz en el idioma activo (`provideCaribeNG({ locale })`). */
|
|
17
22
|
protected readonly t: _angular_core.Signal<_caribeng_ui.CbTranslation>;
|
|
23
|
+
private readonly menu;
|
|
24
|
+
private readonly trigger;
|
|
18
25
|
/** Nombre de la carpeta. */
|
|
19
26
|
readonly name: _angular_core.InputSignal<string>;
|
|
20
27
|
/** Número de archivos (texto o número). */
|
|
@@ -25,8 +32,23 @@ declare class CbFolderCard {
|
|
|
25
32
|
readonly size: _angular_core.InputSignal<string>;
|
|
26
33
|
/** Color del icono de carpeta. */
|
|
27
34
|
readonly color: _angular_core.InputSignal<string>;
|
|
35
|
+
/** Acciones del menú ⋮ (abrir, renombrar, eliminar…). Sin acciones no se muestra el botón. */
|
|
36
|
+
readonly actions: _angular_core.InputSignal<readonly CbMenuItem[]>;
|
|
37
|
+
/** Nombre del botón ⋮ y del menú. Por defecto, "Más acciones: {nombre}" del idioma activo. */
|
|
38
|
+
readonly actionsAriaLabel: _angular_core.InputSignal<string | undefined>;
|
|
39
|
+
/** Toda la tarjeta es pulsable y emite `open` (clic, Enter o Espacio). */
|
|
40
|
+
readonly clickable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
41
|
+
/** Acción elegida en el menú ⋮. */
|
|
42
|
+
readonly actionSelect: _angular_core.OutputEmitterRef<CbMenuItem>;
|
|
43
|
+
/** Se pidió abrir la carpeta (solo con `clickable`). */
|
|
44
|
+
readonly open: _angular_core.OutputEmitterRef<MouseEvent>;
|
|
45
|
+
protected readonly menuOpen: _angular_core.WritableSignal<boolean>;
|
|
46
|
+
protected readonly menuLabel: _angular_core.Signal<string>;
|
|
47
|
+
/** Abre o cierra el menú de acciones anclado al botón ⋮. */
|
|
48
|
+
toggleMenu(): void;
|
|
49
|
+
protected openFromKeyboard(event: Event): void;
|
|
28
50
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CbFolderCard, never>;
|
|
29
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CbFolderCard, "cb-folder-card", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "files": { "alias": "files"; "required": false; "isSignal": true; }; "filesLabel": { "alias": "filesLabel"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; }, {}, never, ["[cb-folder-actions]"], true, never>;
|
|
51
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CbFolderCard, "cb-folder-card", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "files": { "alias": "files"; "required": false; "isSignal": true; }; "filesLabel": { "alias": "filesLabel"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "actionsAriaLabel": { "alias": "actionsAriaLabel"; "required": false; "isSignal": true; }; "clickable": { "alias": "clickable"; "required": false; "isSignal": true; }; }, { "actionSelect": "actionSelect"; "open": "open"; }, never, ["[cb-folder-actions]"], true, never>;
|
|
30
52
|
}
|
|
31
53
|
|
|
32
54
|
export { CbFolderCard };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Footer
|
|
4
|
+
* Footer: pie de página con texto de copyright y una zona de
|
|
5
5
|
* enlaces o acciones proyectadas.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
@@ -17,4 +17,4 @@ declare class CbFooter {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export { CbFooter };
|
|
20
|
-
//# sourceMappingURL=caribeng-ui-
|
|
20
|
+
//# sourceMappingURL=caribeng-ui-footer.d.ts.map
|