@kaufmann-lab/ui 0.1.43 → 0.1.45
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/package.json
CHANGED
|
@@ -3463,6 +3463,24 @@ type DrawerSheetSize = 'auto' | 'medium' | 'large' | 'full';
|
|
|
3463
3463
|
type DrawerDetent = 'medium' | 'large';
|
|
3464
3464
|
/** Ancho de la hoja inferior: ancho completo o de lectura, centrada, desde 640px. */
|
|
3465
3465
|
type DrawerSheetWidth = 'full' | 'readable';
|
|
3466
|
+
/**
|
|
3467
|
+
* Marca el contenido del slot `[kfDrawerTitle]` de `kf-drawer`: un título con contenido propio
|
|
3468
|
+
* (una placa, una insignia de estado, texto) en vez del texto plano de `title`. `kf-drawer` la
|
|
3469
|
+
* detecta vía `contentChild` para dibujar la barra de título aunque no haya `title`; hay que
|
|
3470
|
+
* importarla junto a `Drawer`. Con `title` también presente, gana el slot (ver `Drawer`). El atributo
|
|
3471
|
+
* va en camelCase porque la regla de lint de selectores de directiva lo exige (como `kfAuthLayoutSso`);
|
|
3472
|
+
* `[kf-drawer-actions]` y los otros slots son kebab-case porque no necesitan directiva.
|
|
3473
|
+
*
|
|
3474
|
+
* <kf-drawer [(open)]="open" role="dialog" side="right" closeLabel="Cerrar ticket">
|
|
3475
|
+
* <kf-plate kfDrawerTitle value="D4K-902" country="PE" />
|
|
3476
|
+
* <kf-badge kfDrawerTitle tone="info">En ruta</kf-badge>
|
|
3477
|
+
* …
|
|
3478
|
+
* </kf-drawer>
|
|
3479
|
+
*/
|
|
3480
|
+
declare class DrawerTitle {
|
|
3481
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DrawerTitle, never>;
|
|
3482
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DrawerTitle, "[kfDrawerTitle]", never, {}, {}, never, never, true, never>;
|
|
3483
|
+
}
|
|
3466
3484
|
/**
|
|
3467
3485
|
* Panel lateral genérico, agnóstico de contenido — no sabe qué es navegación
|
|
3468
3486
|
* ni qué es sesión, solo da tres lugares para proyectar contenido
|
|
@@ -3523,6 +3541,22 @@ type DrawerSheetWidth = 'full' | 'readable';
|
|
|
3523
3541
|
* …
|
|
3524
3542
|
* </kf-drawer>
|
|
3525
3543
|
*
|
|
3544
|
+
* `[kfDrawerTitle]` (con la directiva `DrawerTitle` importada) reemplaza el texto de `title` por
|
|
3545
|
+
* contenido propio —una placa y una insignia de estado, por ejemplo—, y crea la barra de título por
|
|
3546
|
+
* sí solo: no necesita `title`. Cada elemento marcado queda en la misma fila, centrado con los demás,
|
|
3547
|
+
* y la fila baja de línea sin cortarse; un texto va en un `<span kfDrawerTitle>`. El título vive
|
|
3548
|
+
* en el mismo `<h2>` que el de texto, así que `aria-labelledby` del panel apunta a él y el nombre
|
|
3549
|
+
* accesible es el texto de todo lo proyectado (la placa y la insignia incluidas). Con `title` también
|
|
3550
|
+
* presente gana el slot y el texto de `title` no se dibuja. El botón de cerrar y `[kf-drawer-actions]`
|
|
3551
|
+
* quedan igual a su derecha. Con `@if`, un solo elemento raíz por bloque: Angular decide el slot por
|
|
3552
|
+
* ese elemento.
|
|
3553
|
+
*
|
|
3554
|
+
* <kf-drawer [(open)]="open" role="dialog" side="right" closeLabel="Cerrar ticket">
|
|
3555
|
+
* <kf-plate kfDrawerTitle value="D4K-902" country="PE" />
|
|
3556
|
+
* <kf-badge kfDrawerTitle tone="info">En ruta</kf-badge>
|
|
3557
|
+
* …
|
|
3558
|
+
* </kf-drawer>
|
|
3559
|
+
*
|
|
3526
3560
|
* `side="bottom"` lo convierte en hoja inferior (grip, esquinas superiores
|
|
3527
3561
|
* redondeadas, alto máximo 80vh) — pensado para un resumen en mobile.
|
|
3528
3562
|
*
|
|
@@ -3636,7 +3670,11 @@ declare class Drawer {
|
|
|
3636
3670
|
* nombra el panel con su texto visible. Default: "Menú" (`navigation`) o
|
|
3637
3671
|
* "Diálogo" (`dialog`). */
|
|
3638
3672
|
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
3639
|
-
/**
|
|
3673
|
+
/**
|
|
3674
|
+
* Título visible en una barra clara arriba del panel, con botón de cierre. Sin él (ni
|
|
3675
|
+
* `[kfDrawerTitle]`) no hay barra (comportamiento histórico). Con `[kfDrawerTitle]`
|
|
3676
|
+
* proyectado, ese contenido lo reemplaza.
|
|
3677
|
+
*/
|
|
3640
3678
|
readonly title: _angular_core.InputSignal<string | undefined>;
|
|
3641
3679
|
/** Nombre accesible del botón de cierre de la barra de título y del
|
|
3642
3680
|
* overlay. Default: "Cerrar menú" (`navigation`) o "Cerrar" (`dialog`). */
|
|
@@ -3696,6 +3734,13 @@ declare class Drawer {
|
|
|
3696
3734
|
/** `closeLabel` o, sin él, el default según el rol. */
|
|
3697
3735
|
protected readonly resolvedCloseLabel: _angular_core.Signal<string>;
|
|
3698
3736
|
protected readonly titleId: string;
|
|
3737
|
+
/**
|
|
3738
|
+
* Presencia de `[kfDrawerTitle]`. Sin `descendants`: como la proyección, solo cuenta lo que se
|
|
3739
|
+
* declara directo en este `<kf-drawer>`, no el título de un drawer anidado en su cuerpo.
|
|
3740
|
+
*/
|
|
3741
|
+
protected readonly titleSlot: _angular_core.Signal<DrawerTitle | undefined>;
|
|
3742
|
+
/** La barra de título existe con `title` o con el slot proyectado. */
|
|
3743
|
+
protected readonly hasTitleBar: _angular_core.Signal<boolean>;
|
|
3699
3744
|
/** Ausente solo un instante: con `mountInOverlay` la plantilla se monta tras el primer render. */
|
|
3700
3745
|
private readonly panelRef;
|
|
3701
3746
|
private readonly contentTemplate;
|
|
@@ -3740,7 +3785,7 @@ declare class Drawer {
|
|
|
3740
3785
|
protected onDragCancel(): void;
|
|
3741
3786
|
private getOrCreateFocusTrap;
|
|
3742
3787
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Drawer, never>;
|
|
3743
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Drawer, "kf-drawer", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "side": { "alias": "side"; "required": false; "isSignal": true; }; "role": { "alias": "role"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "closeLabel": { "alias": "closeLabel"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "sheetSize": { "alias": "sheetSize"; "required": false; "isSignal": true; }; "expandable": { "alias": "expandable"; "required": false; "isSignal": true; }; "sheetWidth": { "alias": "sheetWidth"; "required": false; "isSignal": true; }; "flush": { "alias": "flush"; "required": false; "isSignal": true; }; "swipeToClose": { "alias": "swipeToClose"; "required": false; "isSignal": true; }; "closeOnBack": { "alias": "closeOnBack"; "required": false; "isSignal": true; }; "mountInOverlay": { "alias": "mountInOverlay"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "closedAfterBack": "closedAfterBack"; "detentChange": "detentChange"; },
|
|
3788
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Drawer, "kf-drawer", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "side": { "alias": "side"; "required": false; "isSignal": true; }; "role": { "alias": "role"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "closeLabel": { "alias": "closeLabel"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "sheetSize": { "alias": "sheetSize"; "required": false; "isSignal": true; }; "expandable": { "alias": "expandable"; "required": false; "isSignal": true; }; "sheetWidth": { "alias": "sheetWidth"; "required": false; "isSignal": true; }; "flush": { "alias": "flush"; "required": false; "isSignal": true; }; "swipeToClose": { "alias": "swipeToClose"; "required": false; "isSignal": true; }; "closeOnBack": { "alias": "closeOnBack"; "required": false; "isSignal": true; }; "mountInOverlay": { "alias": "mountInOverlay"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "closedAfterBack": "closedAfterBack"; "detentChange": "detentChange"; }, ["titleSlot"], ["[kfDrawerTitle]", "[kf-drawer-actions]", "[kf-drawer-header]", "*", "[kf-drawer-footer]"], true, never>;
|
|
3744
3789
|
}
|
|
3745
3790
|
|
|
3746
3791
|
/**
|
|
@@ -6125,10 +6170,15 @@ type PageHeaderDensity = 'default' | 'compact';
|
|
|
6125
6170
|
* `title-sm`, el subtítulo y la línea desaparecen.
|
|
6126
6171
|
*
|
|
6127
6172
|
* Con `sticky`, pasado el alto del encabezado queda fijo arriba (`--kf-page-header-top`, default
|
|
6128
|
-
* `0px`) en una versión compacta de
|
|
6129
|
-
* misma fila, las acciones y la frescura compacta; solo se
|
|
6130
|
-
* elevación mientras flota (`data-stuck`). Necesita que el
|
|
6131
|
-
* el contenido que se desplaza.
|
|
6173
|
+
* `0px`) en una versión compacta de 56px (`--kf-page-header-stuck-height`): el título en una
|
|
6174
|
+
* línea, las pestañas (de 32px) en la misma fila, las acciones y la frescura compacta; solo se
|
|
6175
|
+
* oculta el subtítulo. Tiene línea fina y elevación mientras flota (`data-stuck`). Necesita que el
|
|
6176
|
+
* contenedor del encabezado abarque todo el contenido que se desplaza.
|
|
6177
|
+
*
|
|
6178
|
+
* La barra compacta deja en el flujo el alto que el encabezado completo ocupaba: al fijarse o
|
|
6179
|
+
* soltarse, el contenido de abajo no se mueve ni cambia el alto del documento. Sin esa reserva, el
|
|
6180
|
+
* cambio de alto lo corrige el ancla de desplazamiento del navegador y la página salta o vuelve al
|
|
6181
|
+
* tope cerca del umbral.
|
|
6132
6182
|
*
|
|
6133
6183
|
* <kf-page-header layout="v4" sticky title="Divisiones" subtitle="Configuración de las 4 divisiones">
|
|
6134
6184
|
* <kf-button actions size="sm">Nueva división</kf-button>
|
|
@@ -6149,6 +6199,12 @@ declare class PageHeader {
|
|
|
6149
6199
|
readonly sticky: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
6150
6200
|
private readonly isMobile;
|
|
6151
6201
|
protected readonly stuck: _angular_core.WritableSignal<boolean>;
|
|
6202
|
+
/**
|
|
6203
|
+
* Alto del encabezado completo (sin fijar). Lo lee el CSS de la barra compacta para dejar en el flujo la
|
|
6204
|
+
* diferencia (`margin-block-end`). Mientras está fija solo se conoce el alto compacto, así que se conserva
|
|
6205
|
+
* el último medido.
|
|
6206
|
+
*/
|
|
6207
|
+
protected readonly naturalHeight: _angular_core.WritableSignal<number | null>;
|
|
6152
6208
|
private readonly host;
|
|
6153
6209
|
protected readonly resolvedTitleVariant: _angular_core.Signal<TextVariant>;
|
|
6154
6210
|
protected readonly compact: _angular_core.Signal<boolean>;
|
|
@@ -9045,5 +9101,5 @@ declare class ViewToggle {
|
|
|
9045
9101
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ViewToggle, "kf-view-toggle", never, { "view": { "alias": "view"; "required": true; "isSignal": true; }; "iconOnly": { "alias": "iconOnly"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "tableLabel": { "alias": "tableLabel"; "required": false; "isSignal": true; }; "cardsLabel": { "alias": "cardsLabel"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "viewChange": "viewChange"; }, never, never, true, never>;
|
|
9046
9102
|
}
|
|
9047
9103
|
|
|
9048
|
-
export { AUDIO_PLAYER_LABELS, ActionMenu, ActionRow, ActionTile, AdminBadge, AiMark, AiTag, Alert, AlertGroup, AlertRow, AudioPlayer, Avatar, Badge, BrandLogo, Breadcrumb, BucketProgress, Button, CUSTOM_PRESET_ID, Calendar, Card, Carousel, CarouselSlide, Checkbox, Chip, Collapsible, ConfirmDialog, ContactPopover, ContentSlot, ContentState, ContentStateLoading, ContentViewer, CursorPager, DATA_TABLE_MAX_SKELETON_ROWS, DEFAULT_MILESTONE_TIMELINE_LABELS, DEFAULT_PAGE_SIZE_OPTIONS, DataFreshness, DataTable, DateField, DateRangeField, DateTimeField, DeadlineStrip, DescriptionList, DescriptionValue, Divider, DocumentRow, Drawer, Dropdown, DropdownGroup, DropdownItem, DropdownPanel, EditFooter, EmptyState, EventTimeline, FeatureCard, Field, FieldLabel, Fieldset, FileInput, Filter, FilterChips, FloatingToolbar, FolderTabs, FolderTabsPanel, Footer, FormatInputDirective, Icon, Image, Input, JourneyStepper, LIST_TOOLBAR_HYSTERESIS, LayoutThumb, Link, ListGroup, ListMap, ListToolbar, MEDIA_VIEWER_LABELS, MediaViewer, MetricCard, MilestoneTimeline, Modal, MultiSelect, NoteBlock, NumberStepper, OptionList, PROGRESS_STATUS, PROGRESS_STATUS_LABEL, PageHeader, Pagination, Panel, PopoverDirective, PortalHeader, Progress, ProgressStrip, PulseDot, RowActions, SKELETON_PRESET_MAX_COUNT, ScrollSpyDirective, ScrollTop, SectionHeader, SectionNav, SectionNavItem, SectionNavSubsection, Segmented, Select, SelectableCardGroup, SelectableCardPreview, SidebarShell, SignaturePad, Skeleton, SkeletonPreset, Slider, SortableItem, SortableList, Spinner, StatCard, StatTile, StatusMark, StatusNode, StatusPill, Switch, TOAST_DEFAULT_DURATION_MS, TOAST_MAX_QUEUE, TOAST_MAX_VISIBLE, Tabs, Text, Textarea, TileGrid, TimeField, TimeSlotPicker, ToastHost, ToastService, TooltipDirective, ViewToggle, ZoomPanDirective, dataTableViewSignal, defaultDateRangePresets, formatDataAge, formatFileSize, resolveListToolbarMode };
|
|
9104
|
+
export { AUDIO_PLAYER_LABELS, ActionMenu, ActionRow, ActionTile, AdminBadge, AiMark, AiTag, Alert, AlertGroup, AlertRow, AudioPlayer, Avatar, Badge, BrandLogo, Breadcrumb, BucketProgress, Button, CUSTOM_PRESET_ID, Calendar, Card, Carousel, CarouselSlide, Checkbox, Chip, Collapsible, ConfirmDialog, ContactPopover, ContentSlot, ContentState, ContentStateLoading, ContentViewer, CursorPager, DATA_TABLE_MAX_SKELETON_ROWS, DEFAULT_MILESTONE_TIMELINE_LABELS, DEFAULT_PAGE_SIZE_OPTIONS, DataFreshness, DataTable, DateField, DateRangeField, DateTimeField, DeadlineStrip, DescriptionList, DescriptionValue, Divider, DocumentRow, Drawer, DrawerTitle, Dropdown, DropdownGroup, DropdownItem, DropdownPanel, EditFooter, EmptyState, EventTimeline, FeatureCard, Field, FieldLabel, Fieldset, FileInput, Filter, FilterChips, FloatingToolbar, FolderTabs, FolderTabsPanel, Footer, FormatInputDirective, Icon, Image, Input, JourneyStepper, LIST_TOOLBAR_HYSTERESIS, LayoutThumb, Link, ListGroup, ListMap, ListToolbar, MEDIA_VIEWER_LABELS, MediaViewer, MetricCard, MilestoneTimeline, Modal, MultiSelect, NoteBlock, NumberStepper, OptionList, PROGRESS_STATUS, PROGRESS_STATUS_LABEL, PageHeader, Pagination, Panel, PopoverDirective, PortalHeader, Progress, ProgressStrip, PulseDot, RowActions, SKELETON_PRESET_MAX_COUNT, ScrollSpyDirective, ScrollTop, SectionHeader, SectionNav, SectionNavItem, SectionNavSubsection, Segmented, Select, SelectableCardGroup, SelectableCardPreview, SidebarShell, SignaturePad, Skeleton, SkeletonPreset, Slider, SortableItem, SortableList, Spinner, StatCard, StatTile, StatusMark, StatusNode, StatusPill, Switch, TOAST_DEFAULT_DURATION_MS, TOAST_MAX_QUEUE, TOAST_MAX_VISIBLE, Tabs, Text, Textarea, TileGrid, TimeField, TimeSlotPicker, ToastHost, ToastService, TooltipDirective, ViewToggle, ZoomPanDirective, dataTableViewSignal, defaultDateRangePresets, formatDataAge, formatFileSize, resolveListToolbarMode };
|
|
9049
9105
|
export type { ActionMenuEntry, ActionMenuGroup, ActionMenuItem, ActionMenuPresentation, ActionRowState, ActionRowStatusPlacement, ActionRowStatusTone, AlertAppearance, AlertGroupEntry, AlertGroupItem, AlertIconAlign, AlertRowTone, AlertTone, AlertVariant, AudioPlayerLabels, AudioPlayerLayout, AudioPlayerStatus, AudioPlayerVariant, BreadcrumbItem, BucketProgressItem, CalendarDay, ConfirmDialogIconPlacement, ConfirmDialogResult, ConfirmDialogTone, ContentStateKind, ContentStateLoad, ContentStateVariant, ContentViewerType, DataTableCardRole, DataTableCardRows, DataTableCellClick, DataTableColumn, DataTableDensity, DataTableItemLabel, DataTableSort, DataTableView, DateFieldPresentation, DateRange, DateRangeFieldPresentation, DateRangePreset, DateTimeFieldPresentation, DeadlineItem, DescriptionItem, DescriptionListDensity, DescriptionListLayout, DividerOrientation, DocumentRowTone, DrawerDetent, DrawerRole, DrawerSheetSize, DrawerSheetWidth, DrawerSide, DrawerSize, DropdownItemBadgeTone, DropdownItemTone, DropdownPanelRole, DropdownPanelVariant, EditFooterPlacement, EmptyStateTone, EmptyStateVariant, EventTimelineItem, EventTimelineTone, FileRejection, FileRejectionReason, FilterChipOption, FilterFieldChange, FilterFieldConfig, FilterFieldType, FilterValue, FloatingToolbarPlacement, FolderTabOption, FooterLink, IconName, IconRotation, IconSize, ImageFit, ImageNaturalSize, ImageRadius, ImageStatus, InputBound, JourneyStep, JourneyStepStatus, JourneyStepperColorScheme, JourneyStepperOrientation, JourneyStepperSurface, LayoutThumbSize, LayoutThumbTile, LayoutThumbTone, LinkVariant, ListMapView, ListToolbarMode, MediaViewerClose, MediaViewerDescription, MediaViewerDescriptionSource, MediaViewerItem, MediaViewerItemStatus, MediaViewerItemType, MediaViewerLabels, MediaViewerLabelsInput, MediaViewerTone, MilestoneGroup, MilestoneItem, MilestoneTimelineLabels, ModalIconTone, ModalSize, MultiSelectOption, NoteBlockTone, OptionListOption, PageHeaderDensity, PageHeaderLayout, PageHeaderTitleSize, PaginationItem, PopoverPlacement, PopoverTrigger, PortalHeaderAdminAction, PortalHeaderNavItem, ProgressSize, ProgressStatus, ProgressStripVariant, ProgressTone, RowAction, RowActionKind, RowActionsMode, ScrollSpyScrollOptions, SectionNavSubsectionData, SegmentedFit, SegmentedOption, SegmentedSemantics, SelectOption, SelectableCardLayout, SelectableCardOption, SidebarNavItemData, SignaturePadResult, SkeletonPresetVariant, SkeletonVariant, SortableItemContext, SortableListLabels, SortableListReorder, SortableListVariant, SpinnerSize, StatCardBadgeTone, StatCardDensity, StatCardTone, StatTileTone, StatTileVariant, SurfaceTone, SwitchSize, TabOption, TabSection, TabSectionSelect, TabUrgency, TabsOverflow, TextAs, TextTone, TextVariant, TimeSlot, ToastAction, ToastOptions, ToastPromiseMessages, ToastState, ToastTone, TooltipPosition, ViewToggleOption, ZoomPanMode, ZoomPanRotation, ZoomPanSize, ZoomPanSwipe };
|