@caribeng/ui 22.1.1 → 22.4.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 +134 -12
- package/fesm2022/caribeng-ui-accordion.mjs +4 -4
- package/fesm2022/caribeng-ui-anchor.mjs +169 -0
- package/fesm2022/caribeng-ui-autocomplete.mjs +10 -8
- package/fesm2022/caribeng-ui-avatar.mjs +2 -2
- package/fesm2022/caribeng-ui-avatargroup.mjs +9 -3
- package/fesm2022/caribeng-ui-badge.mjs +8 -2
- package/fesm2022/caribeng-ui-blockui.mjs +12 -4
- package/fesm2022/caribeng-ui-breadcrumb.mjs +17 -7
- package/fesm2022/caribeng-ui-button.mjs +22 -2
- package/fesm2022/caribeng-ui-caribe-alert.mjs +5 -2
- package/fesm2022/caribeng-ui-caribe-animation-lottie.mjs +6 -3
- package/fesm2022/caribeng-ui-caribe-button-group.mjs +6 -3
- package/fesm2022/caribeng-ui-caribe-calendar.mjs +11 -6
- package/fesm2022/caribeng-ui-caribe-card-content.mjs +6 -3
- package/fesm2022/caribeng-ui-caribe-card-move.mjs +29 -7
- package/fesm2022/caribeng-ui-caribe-card-select.mjs +56 -14
- package/fesm2022/caribeng-ui-caribe-circle-loading.mjs +10 -7
- package/fesm2022/caribeng-ui-caribe-coachmark.mjs +42 -19
- package/fesm2022/caribeng-ui-caribe-data-table.mjs +15 -9
- package/fesm2022/caribeng-ui-caribe-dots-indicator.mjs +38 -5
- package/fesm2022/caribeng-ui-caribe-expansion-panel.mjs +16 -5
- package/fesm2022/caribeng-ui-caribe-fab-menu.mjs +56 -7
- package/fesm2022/caribeng-ui-caribe-file-download.mjs +68 -27
- package/fesm2022/caribeng-ui-caribe-file-select.mjs +22 -17
- package/fesm2022/caribeng-ui-caribe-float-menu.mjs +6 -3
- package/fesm2022/caribeng-ui-caribe-footer.mjs +8 -4
- package/fesm2022/caribeng-ui-caribe-header.mjs +6 -3
- package/fesm2022/caribeng-ui-caribe-icon-button.mjs +6 -3
- package/fesm2022/caribeng-ui-caribe-illustration.mjs +6 -3
- package/fesm2022/caribeng-ui-caribe-inline-alert.mjs +5 -2
- package/fesm2022/caribeng-ui-caribe-input-search.mjs +14 -10
- package/fesm2022/caribeng-ui-caribe-input-select.mjs +12 -10
- package/fesm2022/caribeng-ui-caribe-input-token.mjs +61 -11
- package/fesm2022/caribeng-ui-caribe-link.mjs +7 -2
- package/fesm2022/caribeng-ui-caribe-loader.mjs +8 -5
- package/fesm2022/caribeng-ui-caribe-modal.mjs +32 -16
- package/fesm2022/caribeng-ui-caribe-off-canvas.mjs +26 -12
- package/fesm2022/caribeng-ui-caribe-onboarding.mjs +44 -19
- package/fesm2022/caribeng-ui-caribe-pictogram.mjs +6 -3
- package/fesm2022/caribeng-ui-caribe-pop-over.mjs +34 -10
- package/fesm2022/caribeng-ui-caribe-preloader.mjs +9 -6
- package/fesm2022/caribeng-ui-caribe-progress-bar.mjs +5 -2
- package/fesm2022/caribeng-ui-caribe-shortcut.mjs +8 -3
- package/fesm2022/caribeng-ui-caribe-step-indicator.mjs +12 -5
- package/fesm2022/caribeng-ui-caribe-stroke.mjs +6 -3
- package/fesm2022/caribeng-ui-caribe-switch.mjs +5 -3
- package/fesm2022/caribeng-ui-caribe-tag-button.mjs +1 -1
- package/fesm2022/caribeng-ui-caribe-tracker.mjs +5 -2
- package/fesm2022/caribeng-ui-caribe-transaction-status.mjs +1 -1
- package/fesm2022/caribeng-ui-caribe-voucher.mjs +11 -8
- package/fesm2022/caribeng-ui-carousel.mjs +49 -14
- package/fesm2022/caribeng-ui-cascadeselect.mjs +22 -8
- package/fesm2022/caribeng-ui-chart.mjs +2601 -303
- package/fesm2022/caribeng-ui-chat.mjs +1303 -0
- package/fesm2022/caribeng-ui-chip.mjs +9 -4
- package/fesm2022/caribeng-ui-chips.mjs +9 -5
- package/fesm2022/caribeng-ui-code-block.mjs +332 -0
- package/fesm2022/caribeng-ui-colorpicker.mjs +107 -11
- package/fesm2022/caribeng-ui-command-palette.mjs +476 -0
- package/fesm2022/caribeng-ui-confirmdialog.mjs +140 -10
- package/fesm2022/caribeng-ui-confirmpopup.mjs +209 -9
- package/fesm2022/caribeng-ui-contextmenu.mjs +13 -6
- package/fesm2022/caribeng-ui-copy-button.mjs +230 -0
- package/fesm2022/caribeng-ui-dataview.mjs +214 -6
- package/fesm2022/caribeng-ui-datepicker.mjs +1630 -393
- package/fesm2022/caribeng-ui-descriptions.mjs +124 -0
- package/fesm2022/caribeng-ui-dialog.mjs +10 -7
- package/fesm2022/caribeng-ui-dock.mjs +58 -15
- package/fesm2022/caribeng-ui-drawer.mjs +17 -9
- package/fesm2022/caribeng-ui-dynamicdialog.mjs +210 -6
- package/fesm2022/caribeng-ui-editor.mjs +4413 -243
- package/fesm2022/caribeng-ui-empty.mjs +80 -0
- package/fesm2022/caribeng-ui-fieldset.mjs +2 -2
- package/fesm2022/caribeng-ui-file-card.mjs +136 -19
- package/fesm2022/caribeng-ui-fileupload.mjs +96 -19
- package/fesm2022/caribeng-ui-floatlabel.mjs +4 -2
- package/fesm2022/caribeng-ui-folder-card.mjs +132 -15
- package/fesm2022/caribeng-ui-galleria.mjs +76 -45
- package/fesm2022/caribeng-ui-image.mjs +52 -29
- package/fesm2022/caribeng-ui-inlinemessage.mjs +2 -2
- package/fesm2022/caribeng-ui-inplace.mjs +22 -6
- package/fesm2022/caribeng-ui-input-number.mjs +9 -7
- package/fesm2022/caribeng-ui-inputgroup.mjs +2 -2
- package/fesm2022/caribeng-ui-inputmask.mjs +22 -13
- package/fesm2022/caribeng-ui-inputotp.mjs +12 -6
- package/fesm2022/caribeng-ui-kanban.mjs +4612 -0
- package/fesm2022/caribeng-ui-kbd.mjs +122 -0
- package/fesm2022/caribeng-ui-keyfilter.mjs +72 -0
- package/fesm2022/caribeng-ui-listbox.mjs +13 -11
- package/fesm2022/caribeng-ui-megamenu.mjs +228 -32
- package/fesm2022/caribeng-ui-mentions.mjs +495 -0
- package/fesm2022/caribeng-ui-menu.mjs +18 -8
- package/fesm2022/caribeng-ui-menubar.mjs +17 -8
- package/fesm2022/caribeng-ui-message.mjs +13 -7
- package/fesm2022/caribeng-ui-metergroup.mjs +29 -11
- package/fesm2022/caribeng-ui-multiselect.mjs +399 -97
- package/fesm2022/caribeng-ui-orderlist.mjs +230 -11
- package/fesm2022/caribeng-ui-organizationchart.mjs +16 -15
- package/fesm2022/caribeng-ui-paginator.mjs +18 -15
- package/fesm2022/caribeng-ui-panel.mjs +11 -8
- package/fesm2022/caribeng-ui-panelmenu.mjs +14 -8
- package/fesm2022/caribeng-ui-password.mjs +8 -6
- package/fesm2022/caribeng-ui-pdfviewer.mjs +1553 -0
- package/fesm2022/caribeng-ui-phone-input.mjs +688 -0
- package/fesm2022/caribeng-ui-picklist.mjs +251 -14
- package/fesm2022/caribeng-ui-pricing.mjs +272 -75
- package/fesm2022/caribeng-ui-qrcode.mjs +564 -0
- package/fesm2022/caribeng-ui-rating.mjs +7 -3
- package/fesm2022/caribeng-ui-repeater.mjs +223 -0
- package/fesm2022/caribeng-ui-result.mjs +91 -0
- package/fesm2022/caribeng-ui-ripple.mjs +2 -0
- package/fesm2022/caribeng-ui-scrollpanel.mjs +6 -3
- package/fesm2022/caribeng-ui-scrolltop.mjs +9 -4
- package/fesm2022/caribeng-ui-select.mjs +379 -87
- package/fesm2022/caribeng-ui-selectbutton.mjs +2 -2
- package/fesm2022/caribeng-ui-sidebar.mjs +573 -0
- package/fesm2022/caribeng-ui-slider.mjs +171 -75
- package/fesm2022/caribeng-ui-speeddial.mjs +7 -4
- package/fesm2022/caribeng-ui-spinner.mjs +5 -2
- package/fesm2022/caribeng-ui-splitbutton.mjs +163 -0
- package/fesm2022/caribeng-ui-splitter.mjs +5 -2
- package/fesm2022/caribeng-ui-statistic.mjs +183 -0
- package/fesm2022/caribeng-ui-stepper.mjs +17 -7
- package/fesm2022/caribeng-ui-steps.mjs +6 -3
- package/fesm2022/caribeng-ui-table.mjs +716 -84
- package/fesm2022/caribeng-ui-tabmenu.mjs +13 -6
- package/fesm2022/caribeng-ui-tag.mjs +2 -2
- package/fesm2022/caribeng-ui-terminal.mjs +45 -9
- package/fesm2022/caribeng-ui-themetoggle.mjs +82 -0
- package/fesm2022/caribeng-ui-tieredmenu.mjs +113 -20
- package/fesm2022/caribeng-ui-timeline.mjs +175 -6
- package/fesm2022/caribeng-ui-toast.mjs +7 -4
- package/fesm2022/caribeng-ui-togglebutton.mjs +8 -6
- package/fesm2022/caribeng-ui-toolbar.mjs +6 -3
- package/fesm2022/caribeng-ui-tree.mjs +302 -6
- package/fesm2022/caribeng-ui-treeselect.mjs +26 -10
- package/fesm2022/caribeng-ui-treetable.mjs +269 -6
- package/fesm2022/caribeng-ui-virtualscroller.mjs +123 -10
- package/fesm2022/caribeng-ui.mjs +1216 -6
- package/package.json +93 -3
- package/schematics/collection.json +15 -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 +140 -0
- package/schematics/ng-add/schema.js +2 -0
- package/schematics/ng-add/schema.json +66 -0
- package/types/caribeng-ui-anchor.d.ts +50 -0
- package/types/caribeng-ui-autocomplete.d.ts +4 -2
- package/types/caribeng-ui-avatargroup.d.ts +3 -1
- package/types/caribeng-ui-badge.d.ts +3 -1
- package/types/caribeng-ui-blockui.d.ts +9 -4
- package/types/caribeng-ui-breadcrumb.d.ts +11 -0
- package/types/caribeng-ui-button.d.ts +9 -1
- package/types/caribeng-ui-caribe-alert.d.ts +3 -0
- package/types/caribeng-ui-caribe-animation-lottie.d.ts +4 -1
- package/types/caribeng-ui-caribe-button-group.d.ts +4 -1
- package/types/caribeng-ui-caribe-calendar.d.ts +5 -1
- package/types/caribeng-ui-caribe-card-content.d.ts +4 -1
- package/types/caribeng-ui-caribe-card-move.d.ts +13 -13
- package/types/caribeng-ui-caribe-card-select.d.ts +10 -1
- package/types/caribeng-ui-caribe-circle-loading.d.ts +4 -1
- package/types/caribeng-ui-caribe-coachmark.d.ts +6 -0
- package/types/caribeng-ui-caribe-data-table.d.ts +7 -2
- package/types/caribeng-ui-caribe-dots-indicator.d.ts +9 -0
- package/types/caribeng-ui-caribe-expansion-panel.d.ts +7 -10
- package/types/caribeng-ui-caribe-fab-menu.d.ts +10 -1
- package/types/caribeng-ui-caribe-file-download.d.ts +8 -10
- package/types/caribeng-ui-caribe-file-select.d.ts +7 -1
- package/types/caribeng-ui-caribe-float-menu.d.ts +4 -1
- package/types/caribeng-ui-caribe-header.d.ts +3 -0
- package/types/caribeng-ui-caribe-icon-button.d.ts +4 -1
- package/types/caribeng-ui-caribe-illustration.d.ts +4 -1
- package/types/caribeng-ui-caribe-inline-alert.d.ts +3 -0
- package/types/caribeng-ui-caribe-input-search.d.ts +4 -2
- package/types/caribeng-ui-caribe-input-select.d.ts +4 -2
- package/types/caribeng-ui-caribe-input-token.d.ts +16 -1
- package/types/caribeng-ui-caribe-link.d.ts +3 -0
- package/types/caribeng-ui-caribe-loader.d.ts +4 -1
- package/types/caribeng-ui-caribe-modal.d.ts +7 -10
- package/types/caribeng-ui-caribe-off-canvas.d.ts +6 -1
- package/types/caribeng-ui-caribe-onboarding.d.ts +6 -0
- package/types/caribeng-ui-caribe-pictogram.d.ts +4 -1
- package/types/caribeng-ui-caribe-pop-over.d.ts +7 -10
- package/types/caribeng-ui-caribe-preloader.d.ts +4 -1
- package/types/caribeng-ui-caribe-progress-bar.d.ts +3 -0
- package/types/caribeng-ui-caribe-shortcut.d.ts +3 -1
- package/types/caribeng-ui-caribe-step-indicator.d.ts +6 -0
- package/types/caribeng-ui-caribe-stroke.d.ts +4 -1
- package/types/caribeng-ui-caribe-switch.d.ts +3 -1
- package/types/caribeng-ui-caribe-tracker.d.ts +3 -0
- package/types/caribeng-ui-caribe-voucher.d.ts +5 -2
- package/types/caribeng-ui-carousel.d.ts +10 -1
- package/types/caribeng-ui-cascadeselect.d.ts +7 -2
- package/types/caribeng-ui-chart.d.ts +471 -44
- package/types/caribeng-ui-chat.d.ts +299 -0
- package/types/caribeng-ui-chip.d.ts +6 -0
- package/types/caribeng-ui-chips.d.ts +6 -2
- package/types/caribeng-ui-code-block.d.ts +65 -0
- package/types/caribeng-ui-colorpicker.d.ts +8 -2
- package/types/caribeng-ui-command-palette.d.ts +133 -0
- package/types/caribeng-ui-confirmdialog.d.ts +57 -6
- package/types/caribeng-ui-confirmpopup.d.ts +74 -5
- package/types/caribeng-ui-contextmenu.d.ts +11 -1
- package/types/caribeng-ui-copy-button.d.ts +90 -0
- package/types/caribeng-ui-dataview.d.ts +65 -5
- package/types/caribeng-ui-datepicker.d.ts +186 -21
- package/types/caribeng-ui-descriptions.d.ts +63 -0
- package/types/caribeng-ui-dialog.d.ts +4 -1
- package/types/caribeng-ui-dock.d.ts +17 -2
- package/types/caribeng-ui-drawer.d.ts +7 -2
- package/types/caribeng-ui-dynamicdialog.d.ts +93 -3
- package/types/caribeng-ui-editor.d.ts +486 -13
- package/types/caribeng-ui-empty.d.ts +34 -0
- package/types/caribeng-ui-file-card.d.ts +28 -3
- package/types/caribeng-ui-fileupload.d.ts +27 -4
- package/types/caribeng-ui-folder-card.d.ts +31 -6
- package/types/caribeng-ui-galleria.d.ts +9 -0
- package/types/caribeng-ui-image.d.ts +10 -0
- package/types/caribeng-ui-inplace.d.ts +8 -0
- package/types/caribeng-ui-input-number.d.ts +3 -1
- package/types/caribeng-ui-inputmask.d.ts +8 -1
- package/types/caribeng-ui-inputotp.d.ts +7 -2
- package/types/caribeng-ui-kanban.d.ts +783 -0
- package/types/caribeng-ui-kbd.d.ts +36 -0
- package/types/caribeng-ui-keyfilter.d.ts +30 -0
- package/types/caribeng-ui-listbox.d.ts +5 -3
- package/types/caribeng-ui-megamenu.d.ts +37 -2
- package/types/caribeng-ui-mentions.d.ts +127 -0
- package/types/caribeng-ui-menu.d.ts +14 -2
- package/types/caribeng-ui-menubar.d.ts +12 -1
- package/types/caribeng-ui-message.d.ts +5 -0
- package/types/caribeng-ui-metergroup.d.ts +9 -1
- package/types/caribeng-ui-multiselect.d.ts +71 -10
- package/types/caribeng-ui-orderlist.d.ts +58 -6
- package/types/caribeng-ui-organizationchart.d.ts +7 -1
- package/types/caribeng-ui-paginator.d.ts +3 -0
- package/types/caribeng-ui-panel.d.ts +3 -0
- package/types/caribeng-ui-panelmenu.d.ts +11 -1
- package/types/caribeng-ui-password.d.ts +4 -2
- package/types/caribeng-ui-pdfviewer.d.ts +258 -0
- package/types/caribeng-ui-phone-input.d.ts +168 -0
- package/types/caribeng-ui-picklist.d.ts +67 -7
- package/types/caribeng-ui-pricing.d.ts +49 -9
- package/types/caribeng-ui-qrcode.d.ts +88 -0
- package/types/caribeng-ui-rating.d.ts +6 -2
- package/types/caribeng-ui-repeater.d.ts +79 -0
- package/types/caribeng-ui-result.d.ts +35 -0
- package/types/caribeng-ui-scrollpanel.d.ts +4 -1
- package/types/caribeng-ui-scrolltop.d.ts +4 -1
- package/types/caribeng-ui-select.d.ts +73 -9
- package/types/caribeng-ui-sidebar.d.ts +167 -0
- package/types/caribeng-ui-slider.d.ts +63 -10
- package/types/caribeng-ui-speeddial.d.ts +5 -2
- package/types/caribeng-ui-spinner.d.ts +3 -0
- package/types/caribeng-ui-splitbutton.d.ts +49 -0
- package/types/caribeng-ui-splitter.d.ts +3 -0
- package/types/caribeng-ui-statistic.d.ts +65 -0
- package/types/caribeng-ui-stepper.d.ts +5 -0
- package/types/caribeng-ui-steps.d.ts +4 -1
- package/types/caribeng-ui-table.d.ts +185 -17
- package/types/caribeng-ui-tabmenu.d.ts +11 -1
- package/types/caribeng-ui-terminal.d.ts +10 -0
- package/types/caribeng-ui-themetoggle.d.ts +32 -0
- package/types/caribeng-ui-tieredmenu.d.ts +22 -3
- package/types/caribeng-ui-timeline.d.ts +63 -4
- package/types/caribeng-ui-toast.d.ts +3 -0
- package/types/caribeng-ui-togglebutton.d.ts +5 -3
- package/types/caribeng-ui-toolbar.d.ts +7 -4
- package/types/caribeng-ui-tree.d.ts +76 -4
- package/types/caribeng-ui-treeselect.d.ts +10 -2
- package/types/caribeng-ui-treetable.d.ts +68 -4
- package/types/caribeng-ui-virtualscroller.d.ts +45 -5
- package/types/caribeng-ui.d.ts +775 -12
|
@@ -1,19 +1,91 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { TemplateRef } from '@angular/core';
|
|
3
|
+
import * as _caribeng_ui from '@caribeng/ui';
|
|
4
|
+
import { cbFormat } from '@caribeng/ui';
|
|
2
5
|
|
|
6
|
+
/** Nodo de un `<cb-tree>`. */
|
|
3
7
|
interface CbTreeNode {
|
|
8
|
+
/** Identificador único en todo el árbol. */
|
|
4
9
|
key: string;
|
|
5
10
|
label: string;
|
|
11
|
+
/** Icono opcional (nombre del set de iconos). */
|
|
12
|
+
icon?: string;
|
|
13
|
+
/** El nodo no se puede seleccionar (sí expandir). */
|
|
14
|
+
disabled?: boolean;
|
|
6
15
|
children?: readonly CbTreeNode[];
|
|
16
|
+
/** Datos propios, disponibles en la plantilla de nodo. */
|
|
17
|
+
data?: unknown;
|
|
7
18
|
}
|
|
19
|
+
/** Contexto de la plantilla `<ng-template cbTreeNode let-node let-level="level">`. */
|
|
20
|
+
interface CbTreeNodeContext {
|
|
21
|
+
$implicit: CbTreeNode;
|
|
22
|
+
level: number;
|
|
23
|
+
expanded: boolean;
|
|
24
|
+
selected: boolean;
|
|
25
|
+
}
|
|
26
|
+
/** Plantilla para el contenido de cada nodo. */
|
|
27
|
+
declare class CbTreeNodeTemplate {
|
|
28
|
+
readonly template: TemplateRef<CbTreeNodeContext>;
|
|
29
|
+
static ngTemplateContextGuard(_dir: CbTreeNodeTemplate, ctx: unknown): ctx is CbTreeNodeContext;
|
|
30
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CbTreeNodeTemplate, never>;
|
|
31
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CbTreeNodeTemplate, "ng-template[cbTreeNode]", never, {}, {}, never, never, true, never>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Árbol jerárquico de CaribeNG con niveles ilimitados, selección simple y
|
|
35
|
+
* navegación con teclado según el patrón *tree* de WAI-ARIA.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```html
|
|
39
|
+
* <cb-tree [value]="nodes" [(selection)]="selected" ariaLabel="Documentos" />
|
|
40
|
+
*
|
|
41
|
+
* <cb-tree [value]="nodes">
|
|
42
|
+
* <ng-template cbTreeNode let-node>{{ node.label }} ({{ node.children?.length ?? 0 }})</ng-template>
|
|
43
|
+
* </cb-tree>
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
8
46
|
declare class CbTree {
|
|
47
|
+
protected readonly t: _angular_core.Signal<_caribeng_ui.CbTranslation>;
|
|
48
|
+
protected readonly fmt: typeof cbFormat;
|
|
49
|
+
private readonly host;
|
|
50
|
+
private readonly uid;
|
|
51
|
+
/** Nodos raíz. */
|
|
9
52
|
readonly value: _angular_core.InputSignal<readonly CbTreeNode[]>;
|
|
53
|
+
/** Nodo seleccionado (two-way). */
|
|
10
54
|
readonly selection: _angular_core.ModelSignal<CbTreeNode | null>;
|
|
55
|
+
/** Nombre accesible del árbol. */
|
|
56
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
57
|
+
/** Se emite al expandir un nodo. */
|
|
58
|
+
readonly nodeExpand: _angular_core.OutputEmitterRef<CbTreeNode>;
|
|
59
|
+
/** Se emite al contraer un nodo. */
|
|
60
|
+
readonly nodeCollapse: _angular_core.OutputEmitterRef<CbTreeNode>;
|
|
61
|
+
/** Se emite al seleccionar un nodo. */
|
|
62
|
+
readonly nodeSelect: _angular_core.OutputEmitterRef<CbTreeNode>;
|
|
63
|
+
protected readonly nodeTemplate: _angular_core.Signal<CbTreeNodeTemplate | undefined>;
|
|
11
64
|
protected readonly expanded: _angular_core.WritableSignal<ReadonlySet<string>>;
|
|
12
|
-
|
|
65
|
+
/** Último nodo enfocado por el usuario. */
|
|
66
|
+
protected readonly activeKey: _angular_core.WritableSignal<string | null>;
|
|
67
|
+
/** Nodo que recibe el foco con Tab (roving tabindex): el activo, el seleccionado o el primero. */
|
|
68
|
+
protected readonly tabbableKey: _angular_core.Signal<string>;
|
|
69
|
+
/** Nodos visibles en orden de lectura (solo ramas expandidas). */
|
|
70
|
+
private readonly visible;
|
|
71
|
+
/** Expande todos los nodos. */
|
|
72
|
+
expandAll(): void;
|
|
73
|
+
/** Contrae todos los nodos. */
|
|
74
|
+
collapseAll(): void;
|
|
75
|
+
protected hasChildren(node: CbTreeNode): boolean;
|
|
76
|
+
protected isExpanded(node: CbTreeNode): boolean;
|
|
77
|
+
protected isSelected(node: CbTreeNode): boolean;
|
|
78
|
+
protected itemId(node: CbTreeNode): string;
|
|
79
|
+
protected toggle(node: CbTreeNode, event?: Event): void;
|
|
80
|
+
protected onClick(event: Event, node: CbTreeNode): void;
|
|
81
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
82
|
+
private select;
|
|
83
|
+
private setExpanded;
|
|
84
|
+
private focus;
|
|
13
85
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CbTree, never>;
|
|
14
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CbTree, "cb-tree", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "selection": { "alias": "selection"; "required": false; "isSignal": true; }; }, { "selection": "selectionChange"; },
|
|
86
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CbTree, "cb-tree", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "selection": { "alias": "selection"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "selection": "selectionChange"; "nodeExpand": "nodeExpand"; "nodeCollapse": "nodeCollapse"; "nodeSelect": "nodeSelect"; }, ["nodeTemplate"], never, true, never>;
|
|
15
87
|
}
|
|
16
88
|
|
|
17
|
-
export { CbTree };
|
|
18
|
-
export type { CbTreeNode };
|
|
89
|
+
export { CbTree, CbTreeNodeTemplate };
|
|
90
|
+
export type { CbTreeNode, CbTreeNodeContext };
|
|
19
91
|
//# sourceMappingURL=caribeng-ui-tree.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import * as _caribeng_ui from '@caribeng/ui';
|
|
2
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
+
import * as _caribeng_ui from '@caribeng/ui';
|
|
3
|
+
import { cbFormat } from '@caribeng/ui';
|
|
3
4
|
import { ControlValueAccessor } from '@angular/forms';
|
|
4
5
|
|
|
5
6
|
interface CbTreeSelectNode {
|
|
@@ -18,8 +19,12 @@ interface FlatTreeSelectNode {
|
|
|
18
19
|
* TreeSelect de CaribeNG: selector desplegable jerárquico con soporte CVA.
|
|
19
20
|
*/
|
|
20
21
|
declare class CbTreeSelect implements ControlValueAccessor {
|
|
22
|
+
/** Textos de interfaz en el idioma activo (`provideCaribeNG({ locale })`). */
|
|
23
|
+
protected readonly t: _angular_core.Signal<_caribeng_ui.CbTranslation>;
|
|
24
|
+
/** Rellena `{0}`, `{1}`… de un texto traducido. */
|
|
25
|
+
protected readonly fmt: typeof cbFormat;
|
|
21
26
|
readonly nodes: _angular_core.InputSignal<CbTreeSelectNode[]>;
|
|
22
|
-
readonly placeholder: _angular_core.InputSignal<string>;
|
|
27
|
+
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
23
28
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
24
29
|
/** Marca visual y ARIA de estado inválido (también se activa con Angular Forms). */
|
|
25
30
|
readonly invalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
@@ -38,6 +43,9 @@ declare class CbTreeSelect implements ControlValueAccessor {
|
|
|
38
43
|
registerOnChange(fn: (val: string | null) => void): void;
|
|
39
44
|
registerOnTouched(fn: () => void): void;
|
|
40
45
|
setDisabledState(isDisabled: boolean): void;
|
|
46
|
+
private readonly trigger;
|
|
47
|
+
/** Escape cierra el panel y devuelve el foco al disparador. */
|
|
48
|
+
protected closeOnEscape(event: Event): void;
|
|
41
49
|
toggleOpen(): void;
|
|
42
50
|
isExpanded(key: string): boolean;
|
|
43
51
|
toggleNode(key: string, event: Event): void;
|
|
@@ -1,23 +1,87 @@
|
|
|
1
|
+
import * as _caribeng_ui from '@caribeng/ui';
|
|
2
|
+
import { cbFormat } from '@caribeng/ui';
|
|
1
3
|
import * as _angular_core from '@angular/core';
|
|
4
|
+
import { TemplateRef } from '@angular/core';
|
|
2
5
|
|
|
3
6
|
interface CbTreeTableColumn {
|
|
4
7
|
field: string;
|
|
5
8
|
header: string;
|
|
6
9
|
}
|
|
7
10
|
interface CbTreeTableNode {
|
|
11
|
+
/** Identificador único en toda la tabla. */
|
|
8
12
|
key: string;
|
|
9
13
|
data: Record<string, unknown>;
|
|
10
14
|
children?: readonly CbTreeTableNode[];
|
|
11
15
|
}
|
|
16
|
+
/** Contexto de `<ng-template cbTreeTableCell="campo" let-value let-node="node">`. */
|
|
17
|
+
interface CbTreeTableCellContext {
|
|
18
|
+
$implicit: any;
|
|
19
|
+
node: CbTreeTableNode;
|
|
20
|
+
level: number;
|
|
21
|
+
}
|
|
22
|
+
/** Plantilla para las celdas de una columna (`cbTreeTableCell="campo"`). */
|
|
23
|
+
declare class CbTreeTableCellTemplate {
|
|
24
|
+
readonly field: _angular_core.InputSignal<string>;
|
|
25
|
+
readonly template: TemplateRef<CbTreeTableCellContext>;
|
|
26
|
+
static ngTemplateContextGuard(_dir: CbTreeTableCellTemplate, ctx: unknown): ctx is CbTreeTableCellContext;
|
|
27
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CbTreeTableCellTemplate, never>;
|
|
28
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CbTreeTableCellTemplate, "ng-template[cbTreeTableCell]", never, { "field": { "alias": "cbTreeTableCell"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
29
|
+
}
|
|
30
|
+
/** Fila visible con su nivel y posición, en orden de lectura. */
|
|
31
|
+
interface Row {
|
|
32
|
+
node: CbTreeTableNode;
|
|
33
|
+
level: number;
|
|
34
|
+
parentKey: string | null;
|
|
35
|
+
setSize: number;
|
|
36
|
+
posInSet: number;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Tabla jerárquica de CaribeNG (patrón *treegrid* de WAI-ARIA): niveles
|
|
40
|
+
* ilimitados con sangría, filas expandibles y navegación con teclado.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```html
|
|
44
|
+
* <cb-treetable [value]="nodes" [columns]="columns" ariaLabel="Archivos" />
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
12
47
|
declare class CbTreeTable {
|
|
48
|
+
protected readonly t: _angular_core.Signal<_caribeng_ui.CbTranslation>;
|
|
49
|
+
protected readonly fmt: typeof cbFormat;
|
|
50
|
+
private readonly host;
|
|
51
|
+
private readonly uid;
|
|
52
|
+
/** Nodos raíz. */
|
|
13
53
|
readonly value: _angular_core.InputSignal<readonly CbTreeTableNode[]>;
|
|
54
|
+
/** Columnas; la primera muestra la jerarquía. */
|
|
14
55
|
readonly columns: _angular_core.InputSignal<readonly CbTreeTableColumn[]>;
|
|
56
|
+
/** Nombre accesible de la tabla. */
|
|
57
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
58
|
+
/** Se emite al expandir una fila. */
|
|
59
|
+
readonly nodeExpand: _angular_core.OutputEmitterRef<CbTreeTableNode>;
|
|
60
|
+
/** Se emite al contraer una fila. */
|
|
61
|
+
readonly nodeCollapse: _angular_core.OutputEmitterRef<CbTreeTableNode>;
|
|
62
|
+
private readonly cellTemplates;
|
|
15
63
|
protected readonly expanded: _angular_core.WritableSignal<ReadonlySet<string>>;
|
|
16
|
-
protected
|
|
64
|
+
protected readonly activeKey: _angular_core.WritableSignal<string | null>;
|
|
65
|
+
protected readonly tabbableKey: _angular_core.Signal<string>;
|
|
66
|
+
/** Filas visibles: las de las ramas expandidas, en orden. */
|
|
67
|
+
protected readonly rows: _angular_core.Signal<Row[]>;
|
|
68
|
+
/** Expande todas las filas. */
|
|
69
|
+
expandAll(): void;
|
|
70
|
+
/** Contrae todas las filas. */
|
|
71
|
+
collapseAll(): void;
|
|
72
|
+
protected hasChildren(node: CbTreeTableNode): boolean;
|
|
73
|
+
protected isExpanded(node: CbTreeTableNode): boolean;
|
|
74
|
+
protected rowId(node: CbTreeTableNode): string;
|
|
75
|
+
/** Texto de la primera columna, para las etiquetas accesibles. */
|
|
76
|
+
protected label(node: CbTreeTableNode): string;
|
|
77
|
+
protected cellTemplate(field: string): TemplateRef<CbTreeTableCellContext> | null;
|
|
78
|
+
protected toggle(node: CbTreeTableNode): void;
|
|
79
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
80
|
+
private setExpanded;
|
|
17
81
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CbTreeTable, never>;
|
|
18
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CbTreeTable, "cb-treetable", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; }, {},
|
|
82
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CbTreeTable, "cb-treetable", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "nodeExpand": "nodeExpand"; "nodeCollapse": "nodeCollapse"; }, ["cellTemplates"], never, true, never>;
|
|
19
83
|
}
|
|
20
84
|
|
|
21
|
-
export { CbTreeTable };
|
|
22
|
-
export type { CbTreeTableColumn, CbTreeTableNode };
|
|
85
|
+
export { CbTreeTable, CbTreeTableCellTemplate };
|
|
86
|
+
export type { CbTreeTableCellContext, CbTreeTableColumn, CbTreeTableNode };
|
|
23
87
|
//# sourceMappingURL=caribeng-ui-treetable.d.ts.map
|
|
@@ -1,17 +1,57 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { TemplateRef } from '@angular/core';
|
|
2
3
|
|
|
4
|
+
/** Contexto de `<ng-template cbVirtualItem let-item let-index="index">`. */
|
|
5
|
+
interface CbVirtualItemContext<T = any> {
|
|
6
|
+
$implicit: T;
|
|
7
|
+
index: number;
|
|
8
|
+
}
|
|
9
|
+
/** Plantilla de cada elemento de un `<cb-virtualscroller>`. */
|
|
10
|
+
declare class CbVirtualItemTemplate {
|
|
11
|
+
readonly template: TemplateRef<CbVirtualItemContext<any>>;
|
|
12
|
+
static ngTemplateContextGuard(_dir: CbVirtualItemTemplate, ctx: unknown): ctx is CbVirtualItemContext;
|
|
13
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CbVirtualItemTemplate, never>;
|
|
14
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CbVirtualItemTemplate, "ng-template[cbVirtualItem]", never, {}, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Lista virtualizada de CaribeNG: solo pinta los elementos visibles (más un
|
|
18
|
+
* margen) aunque la lista tenga miles. Cada elemento expone `aria-setsize` y
|
|
19
|
+
* `aria-posinset`, así el lector de pantalla conoce el total.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```html
|
|
23
|
+
* <cb-virtualscroller [items]="clientes" [itemSize]="48" [viewportHeight]="320" ariaLabel="Clientes">
|
|
24
|
+
* <ng-template cbVirtualItem let-cliente let-i="index">{{ i + 1 }}. {{ cliente.nombre }}</ng-template>
|
|
25
|
+
* </cb-virtualscroller>
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
3
28
|
declare class CbVirtualScroller {
|
|
29
|
+
/** Elementos de la lista. */
|
|
4
30
|
readonly items: _angular_core.InputSignal<readonly unknown[]>;
|
|
31
|
+
/** Alto fijo de cada elemento, en píxeles. */
|
|
5
32
|
readonly itemSize: _angular_core.InputSignal<number>;
|
|
33
|
+
/** Alto visible de la lista, en píxeles. */
|
|
6
34
|
readonly viewportHeight: _angular_core.InputSignal<number>;
|
|
7
|
-
|
|
35
|
+
/** Elementos extra que se pintan por encima y por debajo de lo visible (evita parpadeos al hacer scroll). */
|
|
36
|
+
readonly buffer: _angular_core.InputSignal<number>;
|
|
37
|
+
/** Nombre accesible de la lista. */
|
|
38
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
39
|
+
protected readonly itemTemplate: _angular_core.Signal<CbVirtualItemTemplate | undefined>;
|
|
40
|
+
private readonly viewport;
|
|
41
|
+
private readonly scrollTop;
|
|
42
|
+
/** Índice del primer elemento pintado. */
|
|
43
|
+
protected readonly start: _angular_core.Signal<number>;
|
|
44
|
+
private readonly end;
|
|
8
45
|
protected readonly visibleItems: _angular_core.Signal<unknown[]>;
|
|
9
46
|
protected readonly offset: _angular_core.Signal<number>;
|
|
10
|
-
protected readonly
|
|
11
|
-
|
|
47
|
+
protected readonly totalHeight: _angular_core.Signal<number>;
|
|
48
|
+
/** Desplaza la lista hasta el elemento indicado (lo deja arriba). */
|
|
49
|
+
scrollToIndex(index: number): void;
|
|
50
|
+
protected onScroll(event: Event): void;
|
|
12
51
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CbVirtualScroller, never>;
|
|
13
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CbVirtualScroller, "cb-virtualscroller", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "itemSize": { "alias": "itemSize"; "required": false; "isSignal": true; }; "viewportHeight": { "alias": "viewportHeight"; "required": false; "isSignal": true; }; }, {},
|
|
52
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CbVirtualScroller, "cb-virtualscroller", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "itemSize": { "alias": "itemSize"; "required": false; "isSignal": true; }; "viewportHeight": { "alias": "viewportHeight"; "required": false; "isSignal": true; }; "buffer": { "alias": "buffer"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, ["itemTemplate"], never, true, never>;
|
|
14
53
|
}
|
|
15
54
|
|
|
16
|
-
export { CbVirtualScroller };
|
|
55
|
+
export { CbVirtualItemTemplate, CbVirtualScroller };
|
|
56
|
+
export type { CbVirtualItemContext };
|
|
17
57
|
//# sourceMappingURL=caribeng-ui-virtualscroller.d.ts.map
|