@caribeng/ui 22.4.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 -313
- 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 +2 -2
- package/fesm2022/caribeng-ui-breadcrumb.mjs +13 -3
- 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-chat.mjs +2 -2
- package/fesm2022/{caribeng-ui-caribe-coachmark.mjs → caribeng-ui-coachmark.mjs} +85 -85
- package/fesm2022/caribeng-ui-command-palette.mjs +2 -2
- package/fesm2022/caribeng-ui-comments.mjs +864 -0
- package/fesm2022/caribeng-ui-datagrid.mjs +1635 -0
- package/fesm2022/caribeng-ui-dataview.mjs +2 -2
- package/fesm2022/caribeng-ui-datepicker.mjs +2 -2
- 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-dynamic-form.mjs +1581 -0
- package/fesm2022/caribeng-ui-editor.mjs +2303 -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-file-card.mjs +2 -2
- 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-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-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-inputotp.mjs +2 -2
- package/fesm2022/caribeng-ui-journal-entry.mjs +340 -0
- package/fesm2022/caribeng-ui-kanban.mjs +6 -6
- 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-mentions.mjs +2 -2
- 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-pdfviewer.mjs +1755 -25
- package/fesm2022/caribeng-ui-period-picker.mjs +637 -0
- package/fesm2022/caribeng-ui-phone-input.mjs +2 -2
- package/fesm2022/caribeng-ui-picklist.mjs +2 -2
- package/fesm2022/caribeng-ui-pivot.mjs +419 -0
- package/fesm2022/caribeng-ui-pricing.mjs +2 -2
- package/fesm2022/caribeng-ui-rating.mjs +14 -17
- package/fesm2022/caribeng-ui-reconciliation.mjs +386 -0
- package/fesm2022/caribeng-ui-scheduler.mjs +1027 -0
- 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 +2 -2
- 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 +2 -2
- package/fesm2022/caribeng-ui-steps.mjs +2 -2
- package/fesm2022/caribeng-ui-table.mjs +323 -15
- package/fesm2022/caribeng-ui-tabmenu.mjs +2 -2
- 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 +6 -6
- 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 +1181 -1
- package/package.json +217 -177
- 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-breadcrumb.d.ts +2 -2
- 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-caribe-coachmark.d.ts → caribeng-ui-coachmark.d.ts} +2 -2
- package/types/caribeng-ui-comments.d.ts +214 -0
- package/types/caribeng-ui-datagrid.d.ts +269 -0
- 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-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-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-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-journal-entry.d.ts +110 -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-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-pdfviewer.d.ts +245 -5
- package/types/caribeng-ui-period-picker.d.ts +148 -0
- package/types/caribeng-ui-pivot.d.ts +116 -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-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-table.d.ts +66 -2
- package/types/{caribeng-ui-caribe-tag-button.d.ts → caribeng-ui-tag-button.d.ts} +2 -2
- 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 +711 -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/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
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
/** Filas que ocupa un elemento de `height` px con un hueco de `gap` px debajo. */
|
|
4
|
+
declare function masonrySpan(height: number, gap: number, row?: number): number;
|
|
5
|
+
/**
|
|
6
|
+
* Masonry de CaribeNG: reparte los elementos proyectados en columnas de alturas distintas, sin
|
|
7
|
+
* huecos, como un tablero de Pinterest. Usa CSS Grid y mide la altura de cada elemento (también
|
|
8
|
+
* si cambia, p. ej. al cargar una imagen), así que el orden del DOM —el que siguen el teclado y
|
|
9
|
+
* los lectores de pantalla— es el orden visual por filas, a diferencia de las columnas de CSS.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```html
|
|
13
|
+
* <cb-masonry minColumnWidth="14rem" gap="12px" role="list">
|
|
14
|
+
* @for (foto of fotos(); track foto.id) { <figure role="listitem">…</figure> }
|
|
15
|
+
* </cb-masonry>
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
declare class CbMasonry {
|
|
19
|
+
private readonly host;
|
|
20
|
+
/** Número fijo de columnas (0 = las que quepan con `minColumnWidth`). */
|
|
21
|
+
readonly columns: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
22
|
+
/** Ancho mínimo de columna cuando `columns` es 0. */
|
|
23
|
+
readonly minColumnWidth: _angular_core.InputSignal<string>;
|
|
24
|
+
/** Separación entre elementos (cualquier longitud CSS). */
|
|
25
|
+
readonly gap: _angular_core.InputSignal<string>;
|
|
26
|
+
constructor();
|
|
27
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CbMasonry, never>;
|
|
28
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CbMasonry, "cb-masonry", never, { "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "minColumnWidth": { "alias": "minColumnWidth"; "required": false; "isSignal": true; }; "gap": { "alias": "gap"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { CbMasonry, masonrySpan as cbMasonrySpan };
|
|
32
|
+
//# sourceMappingURL=caribeng-ui-masonry.d.ts.map
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import * as _caribeng_ui from '@caribeng/ui';
|
|
3
|
+
import { cbFormat } from '@caribeng/ui';
|
|
4
|
+
|
|
5
|
+
/** Fuente del medio (varias para que el navegador elija el formato que soporte). */
|
|
6
|
+
interface CbMediaSource {
|
|
7
|
+
readonly src: string;
|
|
8
|
+
/** Tipo MIME (`video/mp4`, `audio/mpeg`…). */
|
|
9
|
+
readonly type?: string;
|
|
10
|
+
}
|
|
11
|
+
/** Pista de texto: subtítulos, subtítulos para personas sordas (`captions`) o descripciones. */
|
|
12
|
+
interface CbMediaTrack {
|
|
13
|
+
/** Archivo WebVTT. */
|
|
14
|
+
readonly src: string;
|
|
15
|
+
readonly kind?: 'subtitles' | 'captions' | 'descriptions' | 'chapters';
|
|
16
|
+
/** Idioma BCP 47 (`es`, `en`). */
|
|
17
|
+
readonly srclang: string;
|
|
18
|
+
readonly label: string;
|
|
19
|
+
readonly default?: boolean;
|
|
20
|
+
}
|
|
21
|
+
/** Velocidades por defecto. */
|
|
22
|
+
declare const CB_MEDIA_RATES: readonly number[];
|
|
23
|
+
/** "1:05" o "1:02:05" (con `total` de una hora o más, siempre con horas). */
|
|
24
|
+
declare function formatTime(seconds: number, total?: number): string;
|
|
25
|
+
|
|
26
|
+
/** Transcripción del medio (`<div cbMediaTranscript>…</div>`), en un desplegable bajo los controles. */
|
|
27
|
+
declare class CbMediaTranscript {
|
|
28
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CbMediaTranscript, never>;
|
|
29
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CbMediaTranscript, "[cbMediaTranscript]", never, {}, {}, never, never, true, never>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Reproductor de audio y vídeo de CaribeNG con controles propios y accesibles: reproducir,
|
|
33
|
+
* avanzar y retroceder, barra de progreso y volumen (sliders con su valor hablado), silencio,
|
|
34
|
+
* velocidad, subtítulos (WebVTT), imagen en imagen, pantalla completa, atajos de teclado como
|
|
35
|
+
* los de YouTube y transcripción desplegable. Los controles no se ocultan solos.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```html
|
|
39
|
+
* <cb-media-player src="/video/bienvenida.mp4" poster="/video/poster.jpg" [tracks]="subtitulos" heading="Bienvenida" />
|
|
40
|
+
* <cb-media-player kind="audio" src="/audio/podcast.mp3" heading="Episodio 12">
|
|
41
|
+
* <div cbMediaTranscript>…</div>
|
|
42
|
+
* </cb-media-player>
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
declare class CbMediaPlayer {
|
|
46
|
+
protected readonly t: _angular_core.Signal<_caribeng_ui.CbTranslation>;
|
|
47
|
+
protected readonly fmt: typeof cbFormat;
|
|
48
|
+
private readonly host;
|
|
49
|
+
private readonly document;
|
|
50
|
+
protected readonly hintId: string;
|
|
51
|
+
/** Archivo a reproducir (o `sources` con varios formatos). */
|
|
52
|
+
readonly src: _angular_core.InputSignal<string>;
|
|
53
|
+
readonly sources: _angular_core.InputSignal<readonly CbMediaSource[]>;
|
|
54
|
+
readonly kind: _angular_core.InputSignal<"video" | "audio">;
|
|
55
|
+
readonly poster: _angular_core.InputSignal<string>;
|
|
56
|
+
/** Título: nombre del reproductor y, en audio, se muestra encima de los controles (no `title`, que daría un tooltip). */
|
|
57
|
+
readonly heading: _angular_core.InputSignal<string>;
|
|
58
|
+
/** Texto secundario en audio (autor, programa…). */
|
|
59
|
+
readonly subtitle: _angular_core.InputSignal<string>;
|
|
60
|
+
/** Subtítulos y descripciones (WebVTT). */
|
|
61
|
+
readonly tracks: _angular_core.InputSignal<readonly CbMediaTrack[]>;
|
|
62
|
+
readonly rates: _angular_core.InputSignal<readonly number[]>;
|
|
63
|
+
/** Segundos de los botones de retroceder y avanzar (0 los oculta). */
|
|
64
|
+
readonly skipSeconds: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
65
|
+
readonly loop: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
66
|
+
/** Empieza silenciado. */
|
|
67
|
+
readonly startMuted: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
68
|
+
readonly preload: _angular_core.InputSignal<"none" | "metadata" | "auto">;
|
|
69
|
+
/** `anonymous` para subtítulos o medios de otro dominio con CORS. */
|
|
70
|
+
readonly crossorigin: _angular_core.InputSignal<"" | "anonymous" | "use-credentials">;
|
|
71
|
+
readonly errorMessage: _angular_core.InputSignal<string | undefined>;
|
|
72
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
73
|
+
readonly played: _angular_core.OutputEmitterRef<void>;
|
|
74
|
+
readonly paused: _angular_core.OutputEmitterRef<void>;
|
|
75
|
+
readonly ended: _angular_core.OutputEmitterRef<void>;
|
|
76
|
+
/** Segundo actual, mientras se reproduce. */
|
|
77
|
+
readonly timeUpdate: _angular_core.OutputEmitterRef<number>;
|
|
78
|
+
readonly mediaError: _angular_core.OutputEmitterRef<MediaError | null>;
|
|
79
|
+
protected readonly transcript: _angular_core.Signal<CbMediaTranscript | undefined>;
|
|
80
|
+
private readonly mediaRef;
|
|
81
|
+
protected readonly playing: _angular_core.WritableSignal<boolean>;
|
|
82
|
+
protected readonly started: _angular_core.WritableSignal<boolean>;
|
|
83
|
+
protected readonly waiting: _angular_core.WritableSignal<boolean>;
|
|
84
|
+
protected readonly current: _angular_core.WritableSignal<number>;
|
|
85
|
+
protected readonly duration: _angular_core.WritableSignal<number>;
|
|
86
|
+
protected readonly volume: _angular_core.WritableSignal<number>;
|
|
87
|
+
protected readonly muted: _angular_core.WritableSignal<boolean>;
|
|
88
|
+
protected readonly rate: _angular_core.WritableSignal<number>;
|
|
89
|
+
protected readonly activeTrack: _angular_core.WritableSignal<number>;
|
|
90
|
+
protected readonly fullscreen: _angular_core.WritableSignal<boolean>;
|
|
91
|
+
protected readonly pip: _angular_core.WritableSignal<boolean>;
|
|
92
|
+
protected readonly error: _angular_core.WritableSignal<boolean>;
|
|
93
|
+
protected readonly announcement: _angular_core.WritableSignal<string>;
|
|
94
|
+
protected readonly pipSupported: boolean;
|
|
95
|
+
protected readonly sourceList: _angular_core.Signal<readonly CbMediaSource[]>;
|
|
96
|
+
protected readonly label: _angular_core.Signal<string>;
|
|
97
|
+
protected readonly progress: _angular_core.Signal<number>;
|
|
98
|
+
protected readonly seekText: _angular_core.Signal<string>;
|
|
99
|
+
constructor();
|
|
100
|
+
play(): Promise<void>;
|
|
101
|
+
pause(): void;
|
|
102
|
+
toggle(): void;
|
|
103
|
+
/** Salta al segundo indicado. */
|
|
104
|
+
seekTo(seconds: number): void;
|
|
105
|
+
seekBy(seconds: number): void;
|
|
106
|
+
protected percent(v: number): number;
|
|
107
|
+
protected timeText(seconds: number): string;
|
|
108
|
+
protected rateText(r: number): string;
|
|
109
|
+
private spoken;
|
|
110
|
+
protected onSeekInput(event: Event): void;
|
|
111
|
+
/** En la barra de progreso, las flechas saltan 5 s y Re Pág / Av Pág 10 s (el paso nativo sería casi nulo). */
|
|
112
|
+
protected onSeekKeydown(event: KeyboardEvent): void;
|
|
113
|
+
protected onVolumeInput(event: Event): void;
|
|
114
|
+
protected toggleMute(): void;
|
|
115
|
+
protected setRate(rate: number): void;
|
|
116
|
+
protected toggleCaptions(): void;
|
|
117
|
+
protected setTrack(index: number): void;
|
|
118
|
+
protected toggleFullscreen(): Promise<void>;
|
|
119
|
+
protected togglePip(): Promise<void>;
|
|
120
|
+
/** Atajos con el foco en el reproductor, salvo las teclas que ya usa el control enfocado. */
|
|
121
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
122
|
+
protected onPlay(): void;
|
|
123
|
+
protected onPause(): void;
|
|
124
|
+
protected onEnded(event: Event): void;
|
|
125
|
+
protected onTime(event: Event): void;
|
|
126
|
+
protected sync(event: Event): void;
|
|
127
|
+
protected onError(event: Event): void;
|
|
128
|
+
private run;
|
|
129
|
+
private media;
|
|
130
|
+
private syncFromMedia;
|
|
131
|
+
/** Un espacio duro alterno hace que el mismo texto cuente como cambio y se vuelva a anunciar. */
|
|
132
|
+
private announce;
|
|
133
|
+
private announceFlip;
|
|
134
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CbMediaPlayer, never>;
|
|
135
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CbMediaPlayer, "cb-media-player", never, { "src": { "alias": "src"; "required": false; "isSignal": true; }; "sources": { "alias": "sources"; "required": false; "isSignal": true; }; "kind": { "alias": "kind"; "required": false; "isSignal": true; }; "poster": { "alias": "poster"; "required": false; "isSignal": true; }; "heading": { "alias": "heading"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "tracks": { "alias": "tracks"; "required": false; "isSignal": true; }; "rates": { "alias": "rates"; "required": false; "isSignal": true; }; "skipSeconds": { "alias": "skipSeconds"; "required": false; "isSignal": true; }; "loop": { "alias": "loop"; "required": false; "isSignal": true; }; "startMuted": { "alias": "muted"; "required": false; "isSignal": true; }; "preload": { "alias": "preload"; "required": false; "isSignal": true; }; "crossorigin": { "alias": "crossorigin"; "required": false; "isSignal": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "played": "played"; "paused": "paused"; "ended": "ended"; "timeUpdate": "timeUpdate"; "mediaError": "mediaError"; }, ["transcript"], ["[cbMediaTranscript]"], true, never>;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export { CB_MEDIA_RATES, CbMediaPlayer, CbMediaTranscript, formatTime as cbFormatMediaTime };
|
|
139
|
+
export type { CbMediaSource, CbMediaTrack };
|
|
140
|
+
//# sourceMappingURL=caribeng-ui-media-player.d.ts.map
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import * as _caribeng_ui from '@caribeng/ui';
|
|
3
|
+
import { cbFormat } from '@caribeng/ui';
|
|
4
|
+
|
|
5
|
+
/** Acción propia de una notificación ("Aprobar", "Ver pedido"…). */
|
|
6
|
+
interface CbNotificationAction {
|
|
7
|
+
readonly id: string;
|
|
8
|
+
readonly label: string;
|
|
9
|
+
/** `primary` para la acción principal; el resto se pinta como secundaria. */
|
|
10
|
+
readonly severity?: 'primary' | 'secondary';
|
|
11
|
+
}
|
|
12
|
+
/** Aviso del centro de notificaciones. */
|
|
13
|
+
interface CbNotification {
|
|
14
|
+
readonly id: string;
|
|
15
|
+
readonly title: string;
|
|
16
|
+
/** Detalle en una o dos líneas. */
|
|
17
|
+
readonly text?: string;
|
|
18
|
+
/** Fecha (`Date` o ISO 8601). */
|
|
19
|
+
readonly date: Date | string;
|
|
20
|
+
readonly read?: boolean;
|
|
21
|
+
/** Persona que lo origina: se muestra su foto o sus iniciales en lugar del icono. */
|
|
22
|
+
readonly person?: {
|
|
23
|
+
readonly name: string;
|
|
24
|
+
readonly image?: string;
|
|
25
|
+
};
|
|
26
|
+
/** Icono (si no hay `person`); por defecto, según `severity`. */
|
|
27
|
+
readonly icon?: string;
|
|
28
|
+
/** Color del icono. */
|
|
29
|
+
readonly severity?: 'info' | 'success' | 'warning' | 'danger';
|
|
30
|
+
readonly actions?: readonly CbNotificationAction[];
|
|
31
|
+
}
|
|
32
|
+
/** Acción pulsada en una notificación. */
|
|
33
|
+
interface CbNotificationActionEvent {
|
|
34
|
+
readonly notification: CbNotification;
|
|
35
|
+
readonly action: CbNotificationAction;
|
|
36
|
+
}
|
|
37
|
+
/** Qué muestra el panel. */
|
|
38
|
+
type CbNotificationFilter = 'all' | 'unread';
|
|
39
|
+
/** Grupo por fecha: hoy, ayer o antes. */
|
|
40
|
+
type CbNotificationGroupKey = 'today' | 'yesterday' | 'earlier';
|
|
41
|
+
interface CbNotificationGroup {
|
|
42
|
+
readonly key: CbNotificationGroupKey;
|
|
43
|
+
readonly items: readonly CbNotification[];
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Centro de notificaciones de CaribeNG: campana con el número de avisos sin leer que abre un
|
|
48
|
+
* panel con la lista agrupada por fecha (Hoy, Ayer, Anteriores), filtro Todas / No leídas,
|
|
49
|
+
* marcar como leída (una o todas), eliminar y acciones propias en cada aviso. Con `inline` el
|
|
50
|
+
* panel se pinta en la página, sin campana.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```html
|
|
54
|
+
* <cb-notification-center [(notifications)]="avisos" (itemClick)="abrir($event)" />
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
declare class CbNotificationCenter {
|
|
58
|
+
protected readonly t: _angular_core.Signal<_caribeng_ui.CbTranslation>;
|
|
59
|
+
protected readonly fmt: typeof cbFormat;
|
|
60
|
+
private readonly host;
|
|
61
|
+
private readonly injector;
|
|
62
|
+
private readonly overlay;
|
|
63
|
+
private readonly vcr;
|
|
64
|
+
protected readonly panelId: string;
|
|
65
|
+
/** Avisos (el panel los ordena del más reciente al más antiguo). Se actualiza al leer o eliminar. */
|
|
66
|
+
readonly notifications: _angular_core.ModelSignal<readonly CbNotification[]>;
|
|
67
|
+
/** Todas o solo las no leídas. */
|
|
68
|
+
readonly filter: _angular_core.ModelSignal<CbNotificationFilter>;
|
|
69
|
+
/** Panel abierto (sin `inline`). */
|
|
70
|
+
readonly open: _angular_core.ModelSignal<boolean>;
|
|
71
|
+
/** Pinta el panel en la página, sin campana ni ventana flotante. */
|
|
72
|
+
readonly inline: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
73
|
+
/** Agrupa por fecha: Hoy, Ayer y Anteriores. */
|
|
74
|
+
readonly groupByDate: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
75
|
+
/** Muestra el botón de eliminar en cada aviso. */
|
|
76
|
+
readonly removable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
77
|
+
/** Cierra el panel al elegir un aviso. */
|
|
78
|
+
readonly closeOnSelect: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
79
|
+
/**
|
|
80
|
+
* Anuncia a los lectores de pantalla los avisos nuevos sin leer. Si la misma lista se muestra en
|
|
81
|
+
* dos centros (la campana y una página), desactívalo en uno para no oírlo dos veces.
|
|
82
|
+
*/
|
|
83
|
+
readonly announceNew: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
84
|
+
/** Muestra el pie con "Ver todas" (`viewAll`). */
|
|
85
|
+
readonly showViewAll: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
86
|
+
/** A partir de este número, la campana muestra "99+". */
|
|
87
|
+
readonly max: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
88
|
+
/** Título del panel (por defecto, "Notificaciones"). No es `title` para no dar un tooltip al componente. */
|
|
89
|
+
readonly heading: _angular_core.InputSignal<string | undefined>;
|
|
90
|
+
/** Nivel del título (los grupos usan el siguiente). */
|
|
91
|
+
readonly headingLevel: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
92
|
+
readonly emptyMessage: _angular_core.InputSignal<string | undefined>;
|
|
93
|
+
readonly panelWidth: _angular_core.InputSignal<string>;
|
|
94
|
+
/** Alto máximo de la lista (con scroll). */
|
|
95
|
+
readonly maxHeight: _angular_core.InputSignal<string>;
|
|
96
|
+
/** Aviso elegido (ya marcado como leído). */
|
|
97
|
+
readonly itemClick: _angular_core.OutputEmitterRef<CbNotification>;
|
|
98
|
+
readonly actionClick: _angular_core.OutputEmitterRef<CbNotificationActionEvent>;
|
|
99
|
+
/** Un aviso pasó a leído (`read: true`) o a no leído. */
|
|
100
|
+
readonly readChange: _angular_core.OutputEmitterRef<CbNotification>;
|
|
101
|
+
readonly markAll: _angular_core.OutputEmitterRef<void>;
|
|
102
|
+
readonly itemRemove: _angular_core.OutputEmitterRef<CbNotification>;
|
|
103
|
+
readonly viewAll: _angular_core.OutputEmitterRef<void>;
|
|
104
|
+
protected readonly unread: _angular_core.Signal<number>;
|
|
105
|
+
protected readonly badge: _angular_core.Signal<string>;
|
|
106
|
+
protected readonly bellLabel: _angular_core.Signal<string>;
|
|
107
|
+
private readonly now;
|
|
108
|
+
protected readonly groups: _angular_core.Signal<CbNotificationGroup[]>;
|
|
109
|
+
protected readonly announcement: _angular_core.WritableSignal<string>;
|
|
110
|
+
private readonly panelTpl;
|
|
111
|
+
private readonly bell;
|
|
112
|
+
private overlayRef;
|
|
113
|
+
/** El foco está (o estaba, si su elemento desapareció) dentro del panel. */
|
|
114
|
+
protected focusInside: boolean;
|
|
115
|
+
private readonly positions;
|
|
116
|
+
constructor();
|
|
117
|
+
toggle(): void;
|
|
118
|
+
show(): void;
|
|
119
|
+
hide(): void;
|
|
120
|
+
protected initials(name: string): string;
|
|
121
|
+
protected iconOf(n: CbNotification): string;
|
|
122
|
+
protected groupLabel(key: CbNotificationGroupKey): string;
|
|
123
|
+
protected itemId(n: CbNotification): string;
|
|
124
|
+
protected iso(date: Date | string): string;
|
|
125
|
+
protected full(date: Date | string): string;
|
|
126
|
+
protected rel(date: Date | string): string;
|
|
127
|
+
protected select(n: CbNotification): void;
|
|
128
|
+
protected runAction(n: CbNotification, action: CbNotificationAction): void;
|
|
129
|
+
protected setRead(n: CbNotification, read: boolean): void;
|
|
130
|
+
protected markAllRead(): void;
|
|
131
|
+
protected remove(n: CbNotification): void;
|
|
132
|
+
protected onViewAll(): void;
|
|
133
|
+
/** Escape cierra; Tab fuera del panel lo cierra y devuelve el foco a la campana. */
|
|
134
|
+
protected onPanelKeydown(event: KeyboardEvent): void;
|
|
135
|
+
/** Sale el foco hacia otro elemento de la página (no cuando su elemento desaparece). */
|
|
136
|
+
protected onPanelFocusOut(event: FocusEvent): void;
|
|
137
|
+
private patch;
|
|
138
|
+
/** Antes de quitar un aviso de la vista: foco al siguiente (o al anterior, o al título). */
|
|
139
|
+
private focusAfterRemoval;
|
|
140
|
+
private panelRoot;
|
|
141
|
+
private attach;
|
|
142
|
+
private detach;
|
|
143
|
+
/** Un espacio duro alterno hace que el mismo texto cuente como cambio y se vuelva a anunciar. */
|
|
144
|
+
private announce;
|
|
145
|
+
private announceFlip;
|
|
146
|
+
private focusLater;
|
|
147
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CbNotificationCenter, never>;
|
|
148
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CbNotificationCenter, "cb-notification-center", never, { "notifications": { "alias": "notifications"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "inline": { "alias": "inline"; "required": false; "isSignal": true; }; "groupByDate": { "alias": "groupByDate"; "required": false; "isSignal": true; }; "removable": { "alias": "removable"; "required": false; "isSignal": true; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; "isSignal": true; }; "announceNew": { "alias": "announceNew"; "required": false; "isSignal": true; }; "showViewAll": { "alias": "showViewAll"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "heading": { "alias": "heading"; "required": false; "isSignal": true; }; "headingLevel": { "alias": "headingLevel"; "required": false; "isSignal": true; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; "isSignal": true; }; "panelWidth": { "alias": "panelWidth"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; }, { "notifications": "notificationsChange"; "filter": "filterChange"; "open": "openChange"; "itemClick": "itemClick"; "actionClick": "actionClick"; "readChange": "readChange"; "markAll": "markAll"; "itemRemove": "itemRemove"; "viewAll": "viewAll"; }, never, never, true, never>;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export { CbNotificationCenter };
|
|
152
|
+
export type { CbNotification, CbNotificationAction, CbNotificationActionEvent, CbNotificationFilter };
|
|
153
|
+
//# sourceMappingURL=caribeng-ui-notification-center.d.ts.map
|
|
@@ -2,7 +2,7 @@ import * as _angular_core from '@angular/core';
|
|
|
2
2
|
import * as _caribeng_ui from '@caribeng/ui';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* Off-canvas
|
|
5
|
+
* Off-canvas: panel lateral deslizable con cabecera, botón de
|
|
6
6
|
* cierre y contenido proyectado.
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
@@ -26,4 +26,4 @@ declare class CbOffCanvas {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export { CbOffCanvas };
|
|
29
|
-
//# sourceMappingURL=caribeng-ui-
|
|
29
|
+
//# sourceMappingURL=caribeng-ui-off-canvas.d.ts.map
|
|
@@ -3,7 +3,7 @@ import * as _caribeng_ui from '@caribeng/ui';
|
|
|
3
3
|
import { cbFormat } from '@caribeng/ui';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Onboarding
|
|
6
|
+
* Onboarding: panel de bienvenida paso a paso con progreso y
|
|
7
7
|
* navegación.
|
|
8
8
|
*
|
|
9
9
|
* @example
|
|
@@ -27,4 +27,4 @@ declare class CbOnboarding {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export { CbOnboarding };
|
|
30
|
-
//# sourceMappingURL=caribeng-ui-
|
|
30
|
+
//# sourceMappingURL=caribeng-ui-onboarding.d.ts.map
|