@litigiovirtual/ius-design-components 2.1.8 → 2.1.9
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 +14 -14
- package/fesm2022/litigiovirtual-ius-design-components-utils.mjs.map +1 -1
- package/fesm2022/litigiovirtual-ius-design-components.mjs +240 -57
- package/fesm2022/litigiovirtual-ius-design-components.mjs.map +1 -1
- package/package.json +1 -1
- package/types/litigiovirtual-ius-design-components.d.ts +133 -2
package/package.json
CHANGED
|
@@ -6036,5 +6036,136 @@ declare class AccordionComponent {
|
|
|
6036
6036
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AccordionComponent, "ius-accordion", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "defaultOpen": { "alias": "defaultOpen"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "chevronIcon": { "alias": "chevronIcon"; "required": false; "isSignal": true; }; }, { "openChange": "openChange"; }, never, never, true, never>;
|
|
6037
6037
|
}
|
|
6038
6038
|
|
|
6039
|
-
|
|
6040
|
-
|
|
6039
|
+
/** Estado forzado — solo demos. */
|
|
6040
|
+
type IusAccountItemState = 'hover' | 'pressed';
|
|
6041
|
+
/** Acción del menú ⋮ de la fila (espejo de `IusDropdownItem`/`IusMenuOption`). */
|
|
6042
|
+
interface IusAccountItemAction {
|
|
6043
|
+
key?: string | number;
|
|
6044
|
+
icon?: string;
|
|
6045
|
+
label?: string;
|
|
6046
|
+
/** Agrupa: al cambiar de `group` inserta un divisor. */
|
|
6047
|
+
group?: string | number;
|
|
6048
|
+
/** Inserta un divisor en su lugar. */
|
|
6049
|
+
separator?: boolean;
|
|
6050
|
+
danger?: boolean;
|
|
6051
|
+
disabled?: boolean;
|
|
6052
|
+
onClick?: (event: MouseEvent) => void;
|
|
6053
|
+
}
|
|
6054
|
+
/** Nombre rico proyectado (alternativa al input `name`). */
|
|
6055
|
+
declare class IusAccountItemNameDirective {
|
|
6056
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<IusAccountItemNameDirective, never>;
|
|
6057
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<IusAccountItemNameDirective, "[iusAccountItemName]", never, {}, {}, never, never, true, never>;
|
|
6058
|
+
}
|
|
6059
|
+
/** Subtítulo rico proyectado (alternativa al input `subtitle`). */
|
|
6060
|
+
declare class IusAccountItemSubtitleDirective {
|
|
6061
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<IusAccountItemSubtitleDirective, never>;
|
|
6062
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<IusAccountItemSubtitleDirective, "[iusAccountItemSubtitle]", never, {}, {}, never, never, true, never>;
|
|
6063
|
+
}
|
|
6064
|
+
/** Nodo libre al borde derecho (Tag, contador, chip de estado). */
|
|
6065
|
+
declare class IusAccountItemTrailingDirective {
|
|
6066
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<IusAccountItemTrailingDirective, never>;
|
|
6067
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<IusAccountItemTrailingDirective, "[iusAccountItemTrailing]", never, {}, {}, never, never, true, never>;
|
|
6068
|
+
}
|
|
6069
|
+
/**
|
|
6070
|
+
* AccountItem — Ius Design v2 (familia data-display).
|
|
6071
|
+
*
|
|
6072
|
+
* Fila-tarjeta de una **cuenta a la que el usuario puede cambiar**: la unidad de
|
|
6073
|
+
* la vista «Cambiar de cuenta» del UserMenu. Avatar de la cuenta + nombre (+
|
|
6074
|
+
* subtítulo opcional: tipo, rol o dominio), seleccionable, con la cuenta activa
|
|
6075
|
+
* marcada con un check. Fuente de verdad: `AccountItem.jsx` +
|
|
6076
|
+
* `AccountItem.d.ts` + `AccountItem.ng-spec.md`.
|
|
6077
|
+
*
|
|
6078
|
+
* La superficie la pone **`ius-card`** (`outlined · radius lg · padding none`),
|
|
6079
|
+
* como manda la ng-spec: no se reescribe a mano. AccountItem solo aporta el
|
|
6080
|
+
* layout de la fila y sus **estados tintados info** (hover / pressed /
|
|
6081
|
+
* selected), que pisan la elevación por defecto de Card.
|
|
6082
|
+
*
|
|
6083
|
+
* `actions` compone `ius-dropdown` (trigger IconButton `more_vert` proyectado)
|
|
6084
|
+
* en un slot de **ancho fijo** (`--_ai-actions-w`), para que todas las listas de
|
|
6085
|
+
* cuentas del ecosistema queden alineadas. `[iusAccountItemTrailing]` acepta un
|
|
6086
|
+
* nodo libre en el mismo borde y convive con `actions`. Con `disabled` las
|
|
6087
|
+
* acciones quedan **visibles pero inertes** (la fila pierde `pointer-events`),
|
|
6088
|
+
* regla única del sistema.
|
|
6089
|
+
*
|
|
6090
|
+
* **Nota de port — el `split` del golden.** El golden alterna su DOM según el
|
|
6091
|
+
* contenido: sin `actions`/`trailing` la raíz **es** el `<button>` de `onClick`;
|
|
6092
|
+
* con ellos la raíz pasa a `div` y el área primaria se vuelve un botón interno
|
|
6093
|
+
* (anidar un IconButton dentro de un `<button>` es HTML inválido y rompe el
|
|
6094
|
+
* teclado). Aquí se adopta **siempre** la segunda forma — la raíz es
|
|
6095
|
+
* `<ius-card>` (div) y el área primaria es un `<button>` interno:
|
|
6096
|
+
*
|
|
6097
|
+
* - En Angular alternar la etiqueta raíz exige un `@if`/`@else`, y el contenido
|
|
6098
|
+
* proyectado (`[iusAccountItemName]`, `[iusAccountItemSubtitle]`) solo se
|
|
6099
|
+
* instancia en UNA rama: al cambiar `actions`/`trailing` en caliente —lo que
|
|
6100
|
+
* hace el playground— la proyección se perdería.
|
|
6101
|
+
* - El resultado accesible es el mismo que el del golden: un único botón real
|
|
6102
|
+
* que cubre la fila, con su `aria-label` y su `aria-pressed`, y el ⋮ como
|
|
6103
|
+
* control hermano alcanzable por teclado aparte. Nunca hay control anidado
|
|
6104
|
+
* en control, ni en el caso simple.
|
|
6105
|
+
* - Visualmente es idéntico: los estados se pintan sobre TODA la fila desde la
|
|
6106
|
+
* raíz (`data-actionable` + `:has(.ius-acctitem__main:active/:focus-visible)`),
|
|
6107
|
+
* que es exactamente lo que hace la rama `split` del golden.
|
|
6108
|
+
*
|
|
6109
|
+
* Para fila de acción/navegación → MenuItem; control de cuenta del HeaderBar →
|
|
6110
|
+
* NavUser. Primera carga → envolver en Skeleton (AccountItem no lleva
|
|
6111
|
+
* `loading` propio).
|
|
6112
|
+
*/
|
|
6113
|
+
declare class AccountItemComponent {
|
|
6114
|
+
/** Nombre de la cuenta. Para markup rico proyectar `[iusAccountItemName]`. */
|
|
6115
|
+
name?: string;
|
|
6116
|
+
/**
|
|
6117
|
+
* Subtítulo opcional (tipo, rol, dominio…). Ej. `Personal`. Para markup rico
|
|
6118
|
+
* proyectar `[iusAccountItemSubtitle]`.
|
|
6119
|
+
*/
|
|
6120
|
+
subtitle?: string;
|
|
6121
|
+
/** URL de la fotografía de la cuenta (pasa a `ius-avatar` como `src`). */
|
|
6122
|
+
avatar?: string;
|
|
6123
|
+
/** Ícono Material Symbols del medallón (sin foto/monograma/nombre cae a `account_circle`). */
|
|
6124
|
+
icon?: string;
|
|
6125
|
+
/** Monograma explícito. */
|
|
6126
|
+
monogram?: string;
|
|
6127
|
+
/** Familia de color del medallón; `auto` es estable por nombre. */
|
|
6128
|
+
color: IusAvatarColor;
|
|
6129
|
+
/** Forma del medallón. */
|
|
6130
|
+
shape: IusAvatarShape;
|
|
6131
|
+
/** Cuenta activa: fondo resaltado + check. */
|
|
6132
|
+
selected: boolean;
|
|
6133
|
+
/** Deshabilitada: la fila entera queda inerte (las acciones, visibles). */
|
|
6134
|
+
disabled: boolean;
|
|
6135
|
+
/** Acciones secundarias en el menú ⋮ del borde derecho. */
|
|
6136
|
+
actions: IusAccountItemAction[];
|
|
6137
|
+
/** aria del menú de acciones. */
|
|
6138
|
+
actionsLabel: string;
|
|
6139
|
+
/** Estado forzado — solo demos. */
|
|
6140
|
+
state?: IusAccountItemState;
|
|
6141
|
+
/** Nombre accesible del área primaria (anula el derivado del nombre). */
|
|
6142
|
+
ariaLabel?: string;
|
|
6143
|
+
/** Fila pulsada (original `onClick`). */
|
|
6144
|
+
readonly clicked: EventEmitter<MouseEvent>;
|
|
6145
|
+
private readonly nameRef;
|
|
6146
|
+
private readonly subtitleRef;
|
|
6147
|
+
private readonly trailingRef;
|
|
6148
|
+
/** Fila viva: hay quien escuche el clic y no está deshabilitada. */
|
|
6149
|
+
protected get actionable(): boolean;
|
|
6150
|
+
protected get hasSubtitle(): boolean;
|
|
6151
|
+
protected get hasTrailing(): boolean;
|
|
6152
|
+
protected get showMenu(): boolean;
|
|
6153
|
+
/** El monograma explícito gana: entonces el nombre no alimenta las iniciales. */
|
|
6154
|
+
protected get avatarName(): string | undefined;
|
|
6155
|
+
/** Sin foto/monograma/nombre, el medallón cae al ícono genérico de cuenta. */
|
|
6156
|
+
protected get effIcon(): string | undefined;
|
|
6157
|
+
/** `Cuenta <nombre>` como nombre accesible por defecto (verbatim del golden). */
|
|
6158
|
+
protected get label(): string;
|
|
6159
|
+
/** El golden solo declara `aria-pressed` cuando la cuenta está activa. */
|
|
6160
|
+
protected get ariaPressed(): string | null;
|
|
6161
|
+
/** aria del IconButton ⋮ — nombra la cuenta cuando la hay. */
|
|
6162
|
+
protected get menuLabel(): string;
|
|
6163
|
+
protected onMainClick(event: MouseEvent): void;
|
|
6164
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AccountItemComponent, never>;
|
|
6165
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AccountItemComponent, "ius-account-item", never, { "name": { "alias": "name"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "avatar": { "alias": "avatar"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "monogram": { "alias": "monogram"; "required": false; }; "color": { "alias": "color"; "required": false; }; "shape": { "alias": "shape"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "actionsLabel": { "alias": "actionsLabel"; "required": false; }; "state": { "alias": "state"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; }, { "clicked": "clicked"; }, ["nameRef", "subtitleRef", "trailingRef"], ["[iusAccountItemName]", "[iusAccountItemSubtitle]", "[iusAccountItemTrailing]"], true, never>;
|
|
6166
|
+
static ngAcceptInputType_selected: unknown;
|
|
6167
|
+
static ngAcceptInputType_disabled: unknown;
|
|
6168
|
+
}
|
|
6169
|
+
|
|
6170
|
+
export { AccordionComponent, AccountItemComponent, AlertComponent, AppLayoutComponent, AvatarComponent, ButtonComponent, CaptchaFieldComponent, CardComponent, CarouselComponent, CheckboxComponent, ChipComponent, CircularProgressComponent, CodeFieldComponent, CountdownComponent, CountdownRingComponent, DescriptionListComponent, DividerComponent, DrawerComponent, DropdownComponent, EleniaBubbleComponent, EleniaOrbComponent, EmptyStateComponent, FlexComponent, HeaderBarComponent, ILLUSTRATIONS, ILLUSTRATION_ALIAS, ILLUSTRATION_NAMES, IUS_FILTER_OPERATORS, IUS_TOAST_DEFAULT_DURATION, IUS_TOAST_DEFAULT_ICON, IconButtonComponent, IllustrationComponent, InsigniaComponent, IusAccountItemNameDirective, IusAccountItemSubtitleDirective, IusAccountItemTrailingDirective, IusAlertActionsDirective, IusAlertTrailingDirective, IusCardFooterDirective, IusCardHeaderDirective, IusDrawerFooterDirective, IusDrawerHeaderActionsDirective, IusDrawerTitleDirective, IusDropdownTriggerDirective, IusListCardLeadingDirective, IusListCardOverlineDirective, IusListCardParagraphDirective, IusListCardSubtitleDirective, IusListCardTitleDirective, IusListViewFiltersDirective, IusListViewFooterEndDirective, IusListViewFooterStartDirective, IusListViewHeaderEndDirective, IusListViewHeaderStartDirective, IusListViewToolbarDirective, IusMenuItemTrailingDirective, IusModalFooterDirective, IusPersonItemNameDirective, IusPersonItemTrailingDirective, IusSettingsNavFooterDirective, IusSettingsNavHeaderDirective, IusTagPrefixDirective, IusTagSuffixDirective, IusToastActionDirective, ListCardComponent, ListViewComponent, LoadingComponent, LoadingMarkComponent, MenuComponent, MenuItemComponent, ModalComponent, MultiTextFieldComponent, NavUserComponent, ORB_PERIODS, OauthButtonComponent, OptionItemComponent, PersonItemComponent, PersonPickerComponent, PopoverComponent, QueryBuilderComponent, STATUS_TONES, STATUS_VOCAB, STATUS_VOCABS, STATUS_VOCABS_PENDING, ScrollAreaComponent, SearchBarComponent, SegmentGroupComponent, SegmentedControlComponent, SelectComponent, SettingsNavComponent, ShowMoreComponent, SplitterComponent, StatusChipComponent, StatusStateComponent, TabsComponent, TagComponent, TextAreaComponent, TextButtonComponent, TextComponent, TextFieldComponent, ToastComponent, ToastService, ToastViewportComponent, TooltipComponent, WizardComponent, WizardController, WizardNavComponent, createWizard, pose, poseIso, poseSpeaking, poseThinking, renderCubeSvg, resolveIllustration, resolveStatus, statusOptions, statusOrder, statusToneVars, statusVocab, voiceEnv };
|
|
6171
|
+
export type { ActuacionStatus, AlertSize, AlertTone, AlertVariant, CountdownDirection, CountdownFormat, CountdownRingSize, CountdownRingTone, DescriptionListItem, DescriptionListLayout, DescriptionListSize, DescriptionListValueClick, GestionStatus, IllustrationEntry, IllustrationName, IllustrationSize, IusAccordionItem, IusAccordionVariant, IusAccountItemAction, IusAccountItemState, IusAppLayoutAccent, IusAvatarColor, IusAvatarShape, IusAvatarSize, IusButtonActionResult, IusButtonSize, IusButtonStatus, IusButtonType, IusButtonVariant, IusCaptchaAppearance, IusCaptchaFieldHandle, IusCaptchaProvider, IusCaptchaSize, IusCaptchaState, IusCaptchaTheme, IusCardAs, IusCardPadding, IusCardRadius, IusCardVariant, IusCarouselImage, IusCarouselImageInput, IusCarouselObjectFit, IusCarouselOrder, IusCarouselOverlay, IusCarouselTransition, IusCheckboxLabelPosition, IusCheckboxSize, IusChipSize, IusChipState, IusCircularProgressSize, IusCircularProgressTone, IusCodeFieldSize, IusDividerOrientation, IusDividerTextAlign, IusDividerVariant, IusDrawerSide, IusDrawerSize, IusDropdownItem, IusDropdownTone, IusDropdownVariant, IusEleniaBubblePosition, IusEleniaBubbleSize, IusEleniaOrbMood, IusEleniaOrbSurface, IusEmptyStateAction, IusEmptyStateSize, IusEmptyStateTone, IusEmptyStateVariant, IusFilterField, IusFilterFieldOption, IusFilterFieldType, IusFilterRule, IusFilterValue, IusFlexAlign, IusFlexDirection, IusFlexGap, IusFlexJustify, IusIconButtonShape, IusIconButtonSize, IusIconButtonVariant, IusInsigniaSize, IusInsigniaTone, IusInsigniaVariant, IusListCardAction, IusListCardField, IusListCardMarker, IusListCardMenuItem, IusListCardSize, IusListCardStatus, IusListCardTag, IusListCardTone, IusListViewAction, IusListViewSize, IusListViewSortOption, IusLoadingMarkSurface, IusLoadingVariant, IusMenuItemSize, IusMenuItemState, IusMenuItemVariant, IusMenuOption, IusModalCloseReason, IusModalIconTone, IusModalSize, IusMultiTextFieldSize, IusMultiTextFieldSlot, IusMultiTextFieldState, IusNavUserAccount, IusNavUserLayout, IusNavUserUser, IusOAuthButtonSize, IusOAuthButtonType, IusOAuthProvider, IusOptionItemSize, IusOptionItemState, IusPersonId, IusPersonItemAction, IusPersonItemSize, IusPersonItemState, IusPersonItemVariant, IusPersonOption, IusPersonPickerSelectedContext, IusPopoverPadding, IusPopoverPlacement, IusPopoverTrigger, IusQueryBuilderSize, IusScrollAxis, IusScrollSize, IusSearchBarSize, IusSearchBarState, IusSegmentedSize, IusSegmentedVariant, IusSelectCreateFactory, IusSelectSize, IusSelectState, IusSelectValue, IusSettingsNavAccent, IusSettingsNavItem, IusSettingsNavSize, IusShowMoreAlign, IusSplitterAccent, IusSplitterOrientation, IusStatusChipSize, IusStatusChipTone, IusStatusKind, IusTabItem, IusTabTag, IusTabsAccent, IusTabsSize, IusTagRole, IusTagShape, IusTagSize, IusTagState, IusTagTone, IusTagVariant, IusTextAlign, IusTextAreaSize, IusTextAreaState, IusTextButtonSize, IusTextButtonType, IusTextColor, IusTextFieldSize, IusTextFieldType, IusTextTag, IusTextVariant, IusTextWeight, IusToastItem, IusToastOptions, IusToastPosition, IusToastTone, IusTooltipTrigger, OrbMood, OrbPose, SegmentedOption, SelectOption, SelectOptionGroup, StatusMeta, StatusOption, StatusTone, StatusToneVars, StatusVocabMap, StatusVocabName, UseWizardOptions, WizardApi, WizardStep };
|