@caribeng/ui 22.1.1 → 22.2.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 +48 -8
- package/fesm2022/caribeng-ui-accordion.mjs +2 -2
- package/fesm2022/caribeng-ui-anchor.mjs +169 -0
- package/fesm2022/caribeng-ui-autocomplete.mjs +10 -8
- package/fesm2022/caribeng-ui-avatargroup.mjs +9 -3
- package/fesm2022/caribeng-ui-blockui.mjs +12 -4
- package/fesm2022/caribeng-ui-breadcrumb.mjs +5 -2
- 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 +2598 -303
- package/fesm2022/caribeng-ui-chip.mjs +9 -4
- package/fesm2022/caribeng-ui-chips.mjs +9 -5
- package/fesm2022/caribeng-ui-colorpicker.mjs +9 -7
- package/fesm2022/caribeng-ui-confirmdialog.mjs +74 -9
- package/fesm2022/caribeng-ui-confirmpopup.mjs +134 -9
- package/fesm2022/caribeng-ui-contextmenu.mjs +6 -3
- package/fesm2022/caribeng-ui-dataview.mjs +211 -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 +6 -3
- package/fesm2022/caribeng-ui-drawer.mjs +10 -7
- package/fesm2022/caribeng-ui-dynamicdialog.mjs +210 -6
- package/fesm2022/caribeng-ui-editor.mjs +4392 -243
- package/fesm2022/caribeng-ui-empty.mjs +80 -0
- package/fesm2022/caribeng-ui-file-card.mjs +2 -2
- package/fesm2022/caribeng-ui-fileupload.mjs +96 -19
- package/fesm2022/caribeng-ui-floatlabel.mjs +4 -2
- package/fesm2022/caribeng-ui-folder-card.mjs +10 -3
- package/fesm2022/caribeng-ui-galleria.mjs +76 -45
- package/fesm2022/caribeng-ui-image.mjs +52 -29
- 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 +14 -11
- package/fesm2022/caribeng-ui-inputotp.mjs +12 -6
- package/fesm2022/caribeng-ui-keyfilter.mjs +72 -0
- package/fesm2022/caribeng-ui-listbox.mjs +13 -11
- package/fesm2022/caribeng-ui-megamenu.mjs +222 -30
- package/fesm2022/caribeng-ui-menu.mjs +11 -5
- package/fesm2022/caribeng-ui-menubar.mjs +10 -5
- package/fesm2022/caribeng-ui-message.mjs +7 -4
- 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 +12 -7
- package/fesm2022/caribeng-ui-paginator.mjs +18 -15
- package/fesm2022/caribeng-ui-panel.mjs +5 -2
- package/fesm2022/caribeng-ui-panelmenu.mjs +6 -3
- package/fesm2022/caribeng-ui-password.mjs +8 -6
- package/fesm2022/caribeng-ui-pdfviewer.mjs +1553 -0
- package/fesm2022/caribeng-ui-picklist.mjs +251 -14
- package/fesm2022/caribeng-ui-pricing.mjs +17 -14
- 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-scrollpanel.mjs +6 -3
- package/fesm2022/caribeng-ui-scrolltop.mjs +6 -3
- package/fesm2022/caribeng-ui-select.mjs +379 -87
- package/fesm2022/caribeng-ui-selectbutton.mjs +2 -2
- 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 +8 -5
- package/fesm2022/caribeng-ui-steps.mjs +6 -3
- package/fesm2022/caribeng-ui-table.mjs +708 -82
- package/fesm2022/caribeng-ui-tabmenu.mjs +6 -3
- 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 +9 -6
- 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 +829 -6
- package/package.json +53 -3
- package/schematics/collection.json +10 -0
- package/schematics/ng-add/index.js +125 -0
- package/schematics/ng-add/schema.js +2 -0
- package/schematics/ng-add/schema.json +66 -0
- package/styles/caribeng.css +380 -0
- package/styles/scss/_mixins.scss +46 -0
- package/styles/scss/_overlay.scss +15 -0
- package/styles/scss/_tokens.scss +267 -0
- package/styles/scss/_utilities.scss +73 -0
- package/styles/scss/_variables.scss +33 -0
- package/styles/scss/index.scss +16 -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-blockui.d.ts +9 -4
- package/types/caribeng-ui-breadcrumb.d.ts +3 -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 +469 -44
- package/types/caribeng-ui-chip.d.ts +6 -0
- package/types/caribeng-ui-chips.d.ts +6 -2
- package/types/caribeng-ui-colorpicker.d.ts +3 -1
- package/types/caribeng-ui-confirmdialog.d.ts +25 -6
- package/types/caribeng-ui-confirmpopup.d.ts +37 -5
- package/types/caribeng-ui-contextmenu.d.ts +4 -1
- package/types/caribeng-ui-dataview.d.ts +63 -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 +4 -1
- package/types/caribeng-ui-drawer.d.ts +4 -1
- 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 +1 -1
- package/types/caribeng-ui-fileupload.d.ts +27 -4
- package/types/caribeng-ui-folder-card.d.ts +4 -1
- 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 +5 -0
- package/types/caribeng-ui-inputotp.d.ts +7 -2
- 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 +26 -2
- package/types/caribeng-ui-menu.d.ts +7 -2
- package/types/caribeng-ui-menubar.d.ts +5 -1
- package/types/caribeng-ui-message.d.ts +3 -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 +4 -1
- package/types/caribeng-ui-password.d.ts +4 -2
- package/types/caribeng-ui-pdfviewer.d.ts +258 -0
- package/types/caribeng-ui-picklist.d.ts +67 -7
- package/types/caribeng-ui-pricing.d.ts +8 -5
- 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-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 +3 -0
- package/types/caribeng-ui-steps.d.ts +4 -1
- package/types/caribeng-ui-table.d.ts +184 -16
- package/types/caribeng-ui-tabmenu.d.ts +4 -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 +5 -2
- 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 +501 -12
|
@@ -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
|