@kaufmann-lab/ui 0.1.29 → 0.1.30
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
|
@@ -225,6 +225,12 @@ type AlertVariant = 'card' | 'bar';
|
|
|
225
225
|
* Ver el JSDoc de `Alert` para cuándo usar cada una.
|
|
226
226
|
*/
|
|
227
227
|
type AlertAppearance = 'surface' | 'elevated' | 'solid';
|
|
228
|
+
/**
|
|
229
|
+
* Dónde se alinea en vertical el ícono de estado (y el botón de cerrar) en la
|
|
230
|
+
* variante `card`: `start` (default) con la primera línea del texto o `center` con
|
|
231
|
+
* todo el bloque de título y mensaje. Ver el JSDoc de `Alert`.
|
|
232
|
+
*/
|
|
233
|
+
type AlertIconAlign = 'start' | 'center';
|
|
228
234
|
/**
|
|
229
235
|
* Banner contextual que vive dentro del flujo: validaciones, avisos de
|
|
230
236
|
* vencimiento, confirmaciones. Persiste hasta que se descarta o hasta que la
|
|
@@ -233,7 +239,8 @@ type AlertAppearance = 'surface' | 'elevated' | 'solid';
|
|
|
233
239
|
* El color sale siempre de los tokens (`*-soft`, `*-strong`), nunca de un input.
|
|
234
240
|
* Ninguna apariencia lleva borde ni acento lateral de color. El ícono va
|
|
235
241
|
* alineado con la primera línea del texto (la del título si lo hay), no
|
|
236
|
-
* centrado en el bloque: en un aviso de una sola línea ambas cosas coinciden.
|
|
242
|
+
* centrado en el bloque: en un aviso de una sola línea ambas cosas coinciden. Con
|
|
243
|
+
* `iconAlign="center"` se centra contra el bloque de título y mensaje.
|
|
237
244
|
*
|
|
238
245
|
* `appearance` elige cómo se muestra el tono (solo aplica a `variant="card"`):
|
|
239
246
|
*
|
|
@@ -278,6 +285,22 @@ type AlertAppearance = 'surface' | 'elevated' | 'solid';
|
|
|
278
285
|
* Las acciones de `variant="card"` van siempre bajo el mensaje. Los botones de
|
|
279
286
|
* un `<div kfAlertActions>` quedan separados 12px (8px en `solid`).
|
|
280
287
|
*
|
|
288
|
+
* `iconAlign` elige dónde se alinea en vertical el ícono de estado (solo aplica a
|
|
289
|
+
* `variant="card"`, en las tres apariencias). `start` (default) lo pone en la
|
|
290
|
+
* primera línea del texto: es lo correcto cuando el contenido es solo texto.
|
|
291
|
+
* `center` lo centra contra todo el bloque de título y mensaje (sin contar la zona
|
|
292
|
+
* de acciones): úsalo cuando el contenido proyectado es más alto que una línea de
|
|
293
|
+
* texto, como una fila con el texto a la izquierda y un `kf-button size="sm"` a la
|
|
294
|
+
* derecha, donde el texto queda centrado en la fila y un ícono en la primera línea
|
|
295
|
+
* se vería más arriba. El botón de cerrar sigue la misma regla.
|
|
296
|
+
*
|
|
297
|
+
* <kf-alert iconAlign="center" tone="info">
|
|
298
|
+
* <div class="fila">
|
|
299
|
+
* <span>Estás viendo la cuenta de Ana Pérez.</span>
|
|
300
|
+
* <kf-button size="sm" variant="outline">Volver a mi cuenta</kf-button>
|
|
301
|
+
* </div>
|
|
302
|
+
* </kf-alert>
|
|
303
|
+
*
|
|
281
304
|
* `open` es two-way: el botón de cerrar lo pone en `false` y el componente
|
|
282
305
|
* deja de renderizar. El consumidor puede volver a abrirlo poniéndolo en
|
|
283
306
|
* `true` (ej. cuando la validación falla otra vez).
|
|
@@ -315,6 +338,12 @@ declare class Alert {
|
|
|
315
338
|
* la ignora. Se expone en el host como `data-appearance`.
|
|
316
339
|
*/
|
|
317
340
|
readonly appearance: _angular_core.InputSignal<AlertAppearance>;
|
|
341
|
+
/**
|
|
342
|
+
* `start` (default) alinea el ícono y el botón de cerrar con la primera línea del
|
|
343
|
+
* texto; `center` los centra contra el bloque de título y mensaje. Solo aplica a
|
|
344
|
+
* `variant="card"`; `bar` la ignora. Se expone en el host como `data-icon-align`.
|
|
345
|
+
*/
|
|
346
|
+
readonly iconAlign: _angular_core.InputSignal<AlertIconAlign>;
|
|
318
347
|
/**
|
|
319
348
|
* Título arriba del mensaje. Vacío deja solo el contenido proyectado y, en
|
|
320
349
|
* `surface`, el layout compacto.
|
|
@@ -330,10 +359,13 @@ declare class Alert {
|
|
|
330
359
|
protected readonly ariaRole: _angular_core.Signal<"alert" | "status">;
|
|
331
360
|
/** Glifo de trazo de `kf-icon`: lo usan `bar` y `solid`. `surface`/`elevated` dibujan el suyo relleno. */
|
|
332
361
|
protected readonly toneIcon: _angular_core.Signal<IconName>;
|
|
333
|
-
/**
|
|
362
|
+
/**
|
|
363
|
+
* Clases del contenedor: tono, forma (`bar` o `card` + apariencia), si lleva título y,
|
|
364
|
+
* solo en `card` con `iconAlign="center"`, `kf-alert--icon-center`.
|
|
365
|
+
*/
|
|
334
366
|
protected readonly rootClass: _angular_core.Signal<string>;
|
|
335
367
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Alert, never>;
|
|
336
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Alert, "kf-alert", never, { "tone": { "alias": "tone"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "dismissible": { "alias": "dismissible"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; }, { "open": "openChange"; }, never, ["*", "[kfAlertActions]"], true, never>;
|
|
368
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Alert, "kf-alert", never, { "tone": { "alias": "tone"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "iconAlign": { "alias": "iconAlign"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "dismissible": { "alias": "dismissible"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; }, { "open": "openChange"; }, never, ["*", "[kfAlertActions]"], true, never>;
|
|
337
369
|
}
|
|
338
370
|
|
|
339
371
|
type AlertRowTone = 'warn' | 'error' | 'neutral';
|
|
@@ -5624,4 +5656,4 @@ declare class ViewToggle {
|
|
|
5624
5656
|
}
|
|
5625
5657
|
|
|
5626
5658
|
export { ActionTile, AdminBadge, Alert, AlertRow, Avatar, Badge, Breadcrumb, BucketProgress, Button, Calendar, Card, Carousel, CarouselSlide, Checkbox, Chip, Collapsible, ContactPopover, ContentSlot, ContentState, ContentStateLoading, ContentViewer, CursorPager, DATA_TABLE_MAX_SKELETON_ROWS, DEFAULT_MILESTONE_TIMELINE_LABELS, DEFAULT_PAGE_SIZE_OPTIONS, DataTable, Divider, DocumentRow, Drawer, Dropdown, DropdownItem, DropdownPanel, EmptyState, EventTimeline, FeatureCard, Field, FieldLabel, FileInput, Filter, FilterChips, FolderTabs, FolderTabsPanel, Footer, FormatInputDirective, Icon, Input, JourneyStepper, LIST_TOOLBAR_HYSTERESIS, Link, ListToolbar, MetricCard, MilestoneTimeline, Modal, MultiSelect, NoteBlock, OptionList, PROGRESS_STATUS, PROGRESS_STATUS_LABEL, PageHeader, Pagination, Panel, PopoverDirective, PortalHeader, Progress, PulseDot, RowActions, SKELETON_PRESET_MAX_COUNT, SectionHeader, SectionNav, SectionNavItem, SectionNavSubsection, Segmented, Select, SelectableCardGroup, SidebarShell, Skeleton, SkeletonPreset, Spinner, StatCard, StatTile, StatusMark, StatusNode, StatusPill, Switch, TOAST_DEFAULT_DURATION_MS, Tabs, Text, Textarea, TileGrid, TimeSlotPicker, ToastHost, ToastService, TooltipDirective, ViewToggle, dataTableViewSignal, formatFileSize, resolveListToolbarMode };
|
|
5627
|
-
export type { AlertAppearance, AlertRowTone, AlertTone, AlertVariant, BreadcrumbItem, BucketProgressItem, CalendarDay, ContentStateKind, ContentStateLoad, ContentViewerType, DataTableCardRole, DataTableCellClick, DataTableColumn, DataTableDensity, DataTableItemLabel, DataTableSort, DataTableView, DividerOrientation, DocumentRowTone, DrawerRole, DrawerSide, DropdownItemTone, DropdownPanelRole, DropdownPanelVariant, EmptyStateTone, EventTimelineItem, EventTimelineTone, FileRejection, FileRejectionReason, FilterChipOption, FilterFieldChange, FilterFieldConfig, FilterFieldType, FilterValue, FolderTabOption, FooterLink, IconName, IconRotation, IconSize, InputBound, JourneyStep, JourneyStepStatus, JourneyStepperColorScheme, JourneyStepperOrientation, JourneyStepperSurface, LinkVariant, ListToolbarMode, MilestoneGroup, MilestoneItem, MilestoneTimelineLabels, ModalSize, MultiSelectOption, NoteBlockTone, OptionListOption, PageHeaderTitleSize, PaginationItem, PopoverPlacement, PortalHeaderAdminAction, PortalHeaderNavItem, ProgressSize, ProgressStatus, ProgressTone, RowAction, RowActionKind, RowActionsMode, SectionNavSubsectionData, SegmentedOption, SelectOption, SelectableCardOption, SidebarNavItemData, SkeletonPresetVariant, SkeletonVariant, SpinnerSize, StatCardBadgeTone, StatCardDensity, StatCardTone, StatTileTone, StatTileVariant, SwitchSize, TabOption, TextAs, TextTone, TextVariant, TimeSlot, ToastAction, ToastOptions, ToastPromiseMessages, ToastState, ToastTone, TooltipPosition, ViewToggleOption };
|
|
5659
|
+
export type { AlertAppearance, AlertIconAlign, AlertRowTone, AlertTone, AlertVariant, BreadcrumbItem, BucketProgressItem, CalendarDay, ContentStateKind, ContentStateLoad, ContentViewerType, DataTableCardRole, DataTableCellClick, DataTableColumn, DataTableDensity, DataTableItemLabel, DataTableSort, DataTableView, DividerOrientation, DocumentRowTone, DrawerRole, DrawerSide, DropdownItemTone, DropdownPanelRole, DropdownPanelVariant, EmptyStateTone, EventTimelineItem, EventTimelineTone, FileRejection, FileRejectionReason, FilterChipOption, FilterFieldChange, FilterFieldConfig, FilterFieldType, FilterValue, FolderTabOption, FooterLink, IconName, IconRotation, IconSize, InputBound, JourneyStep, JourneyStepStatus, JourneyStepperColorScheme, JourneyStepperOrientation, JourneyStepperSurface, LinkVariant, ListToolbarMode, MilestoneGroup, MilestoneItem, MilestoneTimelineLabels, ModalSize, MultiSelectOption, NoteBlockTone, OptionListOption, PageHeaderTitleSize, PaginationItem, PopoverPlacement, PortalHeaderAdminAction, PortalHeaderNavItem, ProgressSize, ProgressStatus, ProgressTone, RowAction, RowActionKind, RowActionsMode, SectionNavSubsectionData, SegmentedOption, SelectOption, SelectableCardOption, SidebarNavItemData, SkeletonPresetVariant, SkeletonVariant, SpinnerSize, StatCardBadgeTone, StatCardDensity, StatCardTone, StatTileTone, StatTileVariant, SwitchSize, TabOption, TextAs, TextTone, TextVariant, TimeSlot, ToastAction, ToastOptions, ToastPromiseMessages, ToastState, ToastTone, TooltipPosition, ViewToggleOption };
|
|
@@ -370,7 +370,7 @@ declare class MapView {
|
|
|
370
370
|
protected readonly isPreview: _angular_core.Signal<boolean>;
|
|
371
371
|
protected readonly containerRole: _angular_core.Signal<"img" | "region">;
|
|
372
372
|
/** Ver estado de carga/error real, más abajo (`status`). */
|
|
373
|
-
protected readonly status: _angular_core.WritableSignal<"
|
|
373
|
+
protected readonly status: _angular_core.WritableSignal<"loading" | "ready" | "error">;
|
|
374
374
|
/** Elección manual del consumidor final vía el control `mapStyle` — pisa
|
|
375
375
|
* `theme()` de forma sostenida (no vuelve a `theme()` sola) hasta que se
|
|
376
376
|
* destruya este `kf-map`; ver `resolvedTheme()`. */
|