yukit-web 0.0.15 → 0.0.16
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/.npm/_cacache/content-v2/sha512/{4d/45/448d7568a32a10e83c1b42f01a0dfdb37044257acc46d5df8e088fbc4d5cae370823d9414201e9097ab06a0fff272d00d05d8b7567fa35920ba629a745ce → 5e/11/2c56cc46533cc988b1ad3c5e54316d97d92e480f8908d0cc332e741390cfff7bf152926325fd764bd8473272d85c1ac13198e6aca85480bdceab1d7324b2} +1 -1
- package/.npm/_cacache/index-v5/64/dc/73c7a26f2e6eb0c711133d96c247da5ecf0eba708cd37c450a7b3c7cb488 +1 -1
- package/.npm/_logs/{2026-09-08T13_19_17_944Z-debug-0.log → 2026-09-09T07_40_32_599Z-debug-0.log} +10 -10
- package/.npm/_logs/{2026-09-08T13_19_18_482Z-debug-0.log → 2026-09-09T07_40_33_128Z-debug-0.log} +2 -2
- package/fesm2022/yukit-web.mjs +89 -6
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +1 -1
- package/types/yukit-web.d.ts +53 -3
package/package.json
CHANGED
package/types/yukit-web.d.ts
CHANGED
|
@@ -2676,6 +2676,18 @@ declare class YuwSidebarRailService {
|
|
|
2676
2676
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<YuwSidebarRailService>;
|
|
2677
2677
|
}
|
|
2678
2678
|
|
|
2679
|
+
/**
|
|
2680
|
+
* - `src`: image URL. Omit to show `fallback` alone, which is also what a failed load falls back to.
|
|
2681
|
+
* - `alt`: accessible name of the image, supplied already translated. Set it to `''` when `label`
|
|
2682
|
+
* already names the same thing, so a screen reader does not read the name twice.
|
|
2683
|
+
* - `fallback`: initials shown while the image loads, fails, or is absent. Not optional: an avatar
|
|
2684
|
+
* with no `src` and no `fallback` is an empty circle.
|
|
2685
|
+
*/
|
|
2686
|
+
interface YuwSidebarAvatarDto {
|
|
2687
|
+
alt: string;
|
|
2688
|
+
fallback: string;
|
|
2689
|
+
src?: string;
|
|
2690
|
+
}
|
|
2679
2691
|
/**
|
|
2680
2692
|
* Where a sidebar entry points.
|
|
2681
2693
|
*
|
|
@@ -2728,6 +2740,10 @@ interface YuwSidebarSubItemDto extends YuwSidebarNavigationDto {
|
|
|
2728
2740
|
* navigates and toggles.
|
|
2729
2741
|
*
|
|
2730
2742
|
* - `label`: text of the entry, supplied already translated — the sidebar owns no user-facing copy.
|
|
2743
|
+
* - `avatar`: image identifying a person or entity, rendered in place of `icon` at 40px. An entry
|
|
2744
|
+
* with one is taller than an icon entry — the avatar is what sets the row height, expanded and on
|
|
2745
|
+
* the rail alike. `icon` is ignored when both are given, since they compete for the one leading
|
|
2746
|
+
* slot; pass whichever the entry actually is rather than both.
|
|
2731
2747
|
* - `icon`: name of a registered `@ng-icons` icon. Because the *consumer* chooses this name, the
|
|
2732
2748
|
* consuming app is responsible for `provideIcons()`-ing it; `provideIcons` is a component-level
|
|
2733
2749
|
* provider, so a name registered on the component hosting the sidebar resolves here through the
|
|
@@ -2743,6 +2759,7 @@ interface YuwSidebarSubItemDto extends YuwSidebarNavigationDto {
|
|
|
2743
2759
|
interface YuwSidebarItemDto extends YuwSidebarNavigationDto {
|
|
2744
2760
|
id: string;
|
|
2745
2761
|
label: string;
|
|
2762
|
+
avatar?: YuwSidebarAvatarDto;
|
|
2746
2763
|
icon?: string;
|
|
2747
2764
|
badge?: string;
|
|
2748
2765
|
tooltip?: string;
|
|
@@ -2845,7 +2862,10 @@ declare class YuwSidebarSubmenuService {
|
|
|
2845
2862
|
* button that reports through `itemClicked`. An item with `children` gets a submenu that follows
|
|
2846
2863
|
* the sidebar's own state: an accordion while the panel is open, and a sheet sliding out beside the
|
|
2847
2864
|
* rail once it is collapsed to icons, so nested entries stay reachable there. Its `expanded`
|
|
2848
|
-
* field seeds the accordion; the item holding the active route opens on its own.
|
|
2865
|
+
* field seeds the accordion; the item holding the active route opens on its own. An item may lead
|
|
2866
|
+
* with an `avatar` instead of an `icon` — a user account or a venue — which renders at 40px and
|
|
2867
|
+
* makes that row taller than an icon row in both states, and combines with `children` like any
|
|
2868
|
+
* other entry.
|
|
2849
2869
|
* - `footer`: The same, rendered into the footer region.
|
|
2850
2870
|
*
|
|
2851
2871
|
* Outputs:
|
|
@@ -3156,6 +3176,36 @@ declare class YuwSidebarMenuButtonDirective {
|
|
|
3156
3176
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<YuwSidebarMenuButtonDirective, never>;
|
|
3157
3177
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<YuwSidebarMenuButtonDirective, "button[yuwSidebarMenuButton], a[yuwSidebarMenuButton]", never, {}, {}, never, never, true, [{ directive: typeof i1$d.HlmSidebarMenuButton; inputs: { "variant": "variant"; "size": "size"; "isActive": "isActive"; "closeMobileSidebarOnClick": "closeMobileSidebarOnClick"; }; outputs: {}; }]>;
|
|
3158
3178
|
}
|
|
3179
|
+
/**
|
|
3180
|
+
* Applied alongside `[yuwSidebarMenuButton]` on an entry whose leading slot is a 40px avatar rather
|
|
3181
|
+
* than a 16px icon, carrying {@link yuwSidebarMenuAvatarButtonClass}.
|
|
3182
|
+
*
|
|
3183
|
+
* A directive rather than a `[class]` binding on the button, because a binding cannot win this
|
|
3184
|
+
* merge. `classes()` (helm/utils) applies its registered *sources* in registration order and then
|
|
3185
|
+
* appends the element's `baseClasses` — captured from the static `class` host attribute — last. An
|
|
3186
|
+
* Angular `[class]` binding is neither: it writes the `class` attribute directly, races the
|
|
3187
|
+
* `className` assignment `classes()` makes for its own sources, and is reclassified by the library's
|
|
3188
|
+
* MutationObserver only after the fact. The observed result was the helm's `h-8` surviving and the
|
|
3189
|
+
* override being dropped, leaving the 40px avatar clipped inside a 32px `overflow-hidden` button.
|
|
3190
|
+
* Registering as another source puts this class after both the helm's and
|
|
3191
|
+
* `[yuwSidebarMenuButton]`'s, which is the ordering `twMerge` needs to displace them.
|
|
3192
|
+
*
|
|
3193
|
+
* Separate from `[yuwSidebarMenuButton]` rather than an input on it, because the two are not the same
|
|
3194
|
+
* role: this is the geometry of one kind of entry, and an entry either leads with an avatar or it does
|
|
3195
|
+
* not. Hand-written markup applies it bare (`<a yuwSidebarMenuButton yuwSidebarMenuAvatarButton>`)
|
|
3196
|
+
* next to its own `<yuw-avatar>`.
|
|
3197
|
+
*
|
|
3198
|
+
* It carries a value because `YuwSidebarNavComponent` renders every entry through the same three
|
|
3199
|
+
* branches and cannot attach a directive conditionally — an attribute selector matches on presence, so
|
|
3200
|
+
* the nav applies it to every entry and passes whether that entry actually has an avatar. Its default
|
|
3201
|
+
* is `true` so the bare, hand-written form needs no value.
|
|
3202
|
+
*/
|
|
3203
|
+
declare class YuwSidebarMenuAvatarButtonDirective {
|
|
3204
|
+
readonly enabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
3205
|
+
constructor();
|
|
3206
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<YuwSidebarMenuAvatarButtonDirective, never>;
|
|
3207
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<YuwSidebarMenuAvatarButtonDirective, "[yuwSidebarMenuAvatarButton]", never, { "enabled": { "alias": "yuwSidebarMenuAvatarButton"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
3208
|
+
}
|
|
3159
3209
|
/** Trailing count or status badge of a sidebar menu item. */
|
|
3160
3210
|
declare class YuwSidebarMenuBadgeDirective {
|
|
3161
3211
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<YuwSidebarMenuBadgeDirective, never>;
|
|
@@ -3211,5 +3261,5 @@ declare const YUW_SIDEBAR_RAIL_PADDING = "22px";
|
|
|
3211
3261
|
declare const YUW_SIDEBAR_RAIL_ICON_SIZE = "20px";
|
|
3212
3262
|
declare const YUW_SIDEBAR_RAIL_WIDTH = "78px";
|
|
3213
3263
|
|
|
3214
|
-
export { DATATABLE_ALIGN_CLASS, YUW_PASSWORD_REVEAL_STATES, YUW_SIDEBAR_RAIL_ICON_SIZE, YUW_SIDEBAR_RAIL_PADDING, YUW_SIDEBAR_RAIL_WIDTH, YuwAccordion, YuwAccordionContentComponent, YuwAccordionImports, YuwAccordionItem, YuwAccordionTriggerComponent, YuwAlertActionDirective, YuwAlertComponent, YuwAlertDescriptionDirective, YuwAlertDialogComponent, YuwAlertDialogMediaDirective, YuwAlertDialogTriggerDirective, YuwAlertImports, YuwAlertTitleDirective, YuwAttachmentActionDirective, YuwAttachmentActionsDirective, YuwAttachmentContentDirective, YuwAttachmentDescriptionDirective, YuwAttachmentDirective, YuwAttachmentGroupDirective, YuwAttachmentMediaDirective, YuwAttachmentTitleDirective, YuwAttachmentTriggerDirective, YuwAvatarComponent, YuwBadgeComponent, YuwBreadcrumbComponent, YuwButtonComponent, YuwButtonGroupComponent, YuwButtonGroupContentDirective, YuwCaptionDirective, YuwCardActionDirective, YuwCardContentDirective, YuwCardDescriptionDirective, YuwCardDirective, YuwCardFooterDirective, YuwCardHeaderDirective, YuwCardImports, YuwCardTitleDirective, YuwCheckboxComponent, YuwComboboxComponent, YuwComboboxItemDirective, YuwContextMenuCheckboxDirective, YuwContextMenuCheckboxIndicatorComponent, YuwContextMenuDirective, YuwContextMenuGroupDirective, YuwContextMenuImports, YuwContextMenuItemDirective, YuwContextMenuLabelDirective, YuwContextMenuRadioDirective, YuwContextMenuRadioIndicatorComponent, YuwContextMenuSeparatorDirective, YuwContextMenuShortcutDirective, YuwContextMenuSubDirective, YuwContextMenuSubIndicatorComponent, YuwContextMenuSubTriggerDirective, YuwContextMenuTriggerDirective, YuwDatatableComponent, YuwDatatablePaginationDirective, YuwDatatableRowSelect, YuwDatepickerComponent, YuwDialogCloseDirective, YuwDialogComponent, YuwDialogFooterDirective, YuwDialogImports, YuwDialogTriggerDirective, YuwEmptyContentDirective, YuwEmptyDescriptionDirective, YuwEmptyDirective, YuwEmptyHeaderDirective, YuwEmptyImports, YuwEmptyMediaDirective, YuwEmptyTitleDirective, YuwInputAddonImports, YuwInputComponent, YuwInputOtpComponent, YuwItemActionsDirective, YuwItemContentDirective, YuwItemDescriptionDirective, YuwItemDirective, YuwItemFooterDirective, YuwItemGroupDirective, YuwItemHeaderDirective, YuwItemImports, YuwItemMediaDirective, YuwItemSeparatorDirective, YuwItemTitleDirective, YuwLabel, YuwLeftAddonDirective, YuwPaginationComponent, YuwPasswordInputComponent, YuwPopoverComponent, YuwPopoverTriggerDirective, YuwRadioGroupComponent, YuwRightAddonDirective, YuwSearchInputComponent, YuwSheetCloseDirective, YuwSheetComponent, YuwSheetFooterDirective, YuwSheetImports, YuwSheetTriggerDirective, YuwSidebarComponent, YuwSidebarContentDirective, YuwSidebarContentExtraDirective, YuwSidebarFooterDirective, YuwSidebarFooterExtraDirective, YuwSidebarGroupContentDirective, YuwSidebarGroupDirective, YuwSidebarGroupLabelDirective, YuwSidebarHeaderDirective, YuwSidebarInsetDirective, YuwSidebarMenuBadgeDirective, YuwSidebarMenuButtonDirective, YuwSidebarMenuDirective, YuwSidebarMenuItemDirective, YuwSidebarMenuSubButtonDirective, YuwSidebarMenuSubDirective, YuwSidebarMenuSubItemDirective, YuwSidebarRailDirective, YuwSidebarRailService, YuwSidebarSeparatorDirective, YuwSidebarSubmenuService, YuwSidebarTriggerComponent, YuwSidebarWrapperDirective, YuwSkeletonDirective, YuwSpinnerComponent, YuwSwitchComponent, YuwTBodyDirective, YuwTFootDirective, YuwTHeadDirective, YuwTabPanelDirective, YuwTableContainerDirective, YuwTableDirective, YuwTableImports, YuwTabsComponent, YuwTdDirective, YuwTextareaComponent, YuwThDirective, YuwToasterComponent, YuwTooltipDirective, YuwTrDirective, YuwValueAccessorBase, buildInputOtpGroups, cn, datatableCellVariants, datatableContainerVariants, datatableHeadVariants, datatableHeaderCellVariants, datatableRowVariants, getPaginationRange, provideValueAccessor, totalInputOtpLength };
|
|
3215
|
-
export type { YuwAlertDialogSizeDto, YuwAlertVariantDto, YuwAvatarGroupItemDto, YuwAvatarSizeDto, YuwBreadcrumbItemDto, YuwButtonGroupClickDto, YuwButtonGroupItemDto, YuwColorDto, YuwComboboxItemContext, YuwComboboxOptionDto, YuwComboboxValue, YuwDatatableAlign, YuwDatatableAppearanceDto, YuwDatatableColumnDef, YuwDatepickerModeDto, YuwDatepickerValue, YuwFieldSizeDto, YuwInputModeDto, YuwInputOtpGroupDto, YuwInputOtpModeDto, YuwInputTypeDto, YuwPaginationRangeItem, YuwPaginationSizeDto, YuwPasswordRevealStateDto, YuwPopoverAlignDto, YuwRadioOptionDto, YuwSearchInputCollapseFromDto, YuwSheetScrollStrategyDto, YuwSheetSideDto, YuwSidebarCollapsibleDto, YuwSidebarContentDto, YuwSidebarGroupDto, YuwSidebarItemClickDto, YuwSidebarItemDto, YuwSidebarSideDto, YuwSidebarSubItemDto, YuwSidebarVariantDto, YuwSwitchSizeDto, YuwTabItemDto, YuwTabsActivationModeDto, YuwTabsOrientationDto, YuwTabsVariantDto, YuwTextFieldContract, YuwToasterPositionDto, YuwToasterThemeDto, YuwTooltipPositionDto };
|
|
3264
|
+
export { DATATABLE_ALIGN_CLASS, YUW_PASSWORD_REVEAL_STATES, YUW_SIDEBAR_RAIL_ICON_SIZE, YUW_SIDEBAR_RAIL_PADDING, YUW_SIDEBAR_RAIL_WIDTH, YuwAccordion, YuwAccordionContentComponent, YuwAccordionImports, YuwAccordionItem, YuwAccordionTriggerComponent, YuwAlertActionDirective, YuwAlertComponent, YuwAlertDescriptionDirective, YuwAlertDialogComponent, YuwAlertDialogMediaDirective, YuwAlertDialogTriggerDirective, YuwAlertImports, YuwAlertTitleDirective, YuwAttachmentActionDirective, YuwAttachmentActionsDirective, YuwAttachmentContentDirective, YuwAttachmentDescriptionDirective, YuwAttachmentDirective, YuwAttachmentGroupDirective, YuwAttachmentMediaDirective, YuwAttachmentTitleDirective, YuwAttachmentTriggerDirective, YuwAvatarComponent, YuwBadgeComponent, YuwBreadcrumbComponent, YuwButtonComponent, YuwButtonGroupComponent, YuwButtonGroupContentDirective, YuwCaptionDirective, YuwCardActionDirective, YuwCardContentDirective, YuwCardDescriptionDirective, YuwCardDirective, YuwCardFooterDirective, YuwCardHeaderDirective, YuwCardImports, YuwCardTitleDirective, YuwCheckboxComponent, YuwComboboxComponent, YuwComboboxItemDirective, YuwContextMenuCheckboxDirective, YuwContextMenuCheckboxIndicatorComponent, YuwContextMenuDirective, YuwContextMenuGroupDirective, YuwContextMenuImports, YuwContextMenuItemDirective, YuwContextMenuLabelDirective, YuwContextMenuRadioDirective, YuwContextMenuRadioIndicatorComponent, YuwContextMenuSeparatorDirective, YuwContextMenuShortcutDirective, YuwContextMenuSubDirective, YuwContextMenuSubIndicatorComponent, YuwContextMenuSubTriggerDirective, YuwContextMenuTriggerDirective, YuwDatatableComponent, YuwDatatablePaginationDirective, YuwDatatableRowSelect, YuwDatepickerComponent, YuwDialogCloseDirective, YuwDialogComponent, YuwDialogFooterDirective, YuwDialogImports, YuwDialogTriggerDirective, YuwEmptyContentDirective, YuwEmptyDescriptionDirective, YuwEmptyDirective, YuwEmptyHeaderDirective, YuwEmptyImports, YuwEmptyMediaDirective, YuwEmptyTitleDirective, YuwInputAddonImports, YuwInputComponent, YuwInputOtpComponent, YuwItemActionsDirective, YuwItemContentDirective, YuwItemDescriptionDirective, YuwItemDirective, YuwItemFooterDirective, YuwItemGroupDirective, YuwItemHeaderDirective, YuwItemImports, YuwItemMediaDirective, YuwItemSeparatorDirective, YuwItemTitleDirective, YuwLabel, YuwLeftAddonDirective, YuwPaginationComponent, YuwPasswordInputComponent, YuwPopoverComponent, YuwPopoverTriggerDirective, YuwRadioGroupComponent, YuwRightAddonDirective, YuwSearchInputComponent, YuwSheetCloseDirective, YuwSheetComponent, YuwSheetFooterDirective, YuwSheetImports, YuwSheetTriggerDirective, YuwSidebarComponent, YuwSidebarContentDirective, YuwSidebarContentExtraDirective, YuwSidebarFooterDirective, YuwSidebarFooterExtraDirective, YuwSidebarGroupContentDirective, YuwSidebarGroupDirective, YuwSidebarGroupLabelDirective, YuwSidebarHeaderDirective, YuwSidebarInsetDirective, YuwSidebarMenuAvatarButtonDirective, YuwSidebarMenuBadgeDirective, YuwSidebarMenuButtonDirective, YuwSidebarMenuDirective, YuwSidebarMenuItemDirective, YuwSidebarMenuSubButtonDirective, YuwSidebarMenuSubDirective, YuwSidebarMenuSubItemDirective, YuwSidebarRailDirective, YuwSidebarRailService, YuwSidebarSeparatorDirective, YuwSidebarSubmenuService, YuwSidebarTriggerComponent, YuwSidebarWrapperDirective, YuwSkeletonDirective, YuwSpinnerComponent, YuwSwitchComponent, YuwTBodyDirective, YuwTFootDirective, YuwTHeadDirective, YuwTabPanelDirective, YuwTableContainerDirective, YuwTableDirective, YuwTableImports, YuwTabsComponent, YuwTdDirective, YuwTextareaComponent, YuwThDirective, YuwToasterComponent, YuwTooltipDirective, YuwTrDirective, YuwValueAccessorBase, buildInputOtpGroups, cn, datatableCellVariants, datatableContainerVariants, datatableHeadVariants, datatableHeaderCellVariants, datatableRowVariants, getPaginationRange, provideValueAccessor, totalInputOtpLength };
|
|
3265
|
+
export type { YuwAlertDialogSizeDto, YuwAlertVariantDto, YuwAvatarGroupItemDto, YuwAvatarSizeDto, YuwBreadcrumbItemDto, YuwButtonGroupClickDto, YuwButtonGroupItemDto, YuwColorDto, YuwComboboxItemContext, YuwComboboxOptionDto, YuwComboboxValue, YuwDatatableAlign, YuwDatatableAppearanceDto, YuwDatatableColumnDef, YuwDatepickerModeDto, YuwDatepickerValue, YuwFieldSizeDto, YuwInputModeDto, YuwInputOtpGroupDto, YuwInputOtpModeDto, YuwInputTypeDto, YuwPaginationRangeItem, YuwPaginationSizeDto, YuwPasswordRevealStateDto, YuwPopoverAlignDto, YuwRadioOptionDto, YuwSearchInputCollapseFromDto, YuwSheetScrollStrategyDto, YuwSheetSideDto, YuwSidebarAvatarDto, YuwSidebarCollapsibleDto, YuwSidebarContentDto, YuwSidebarGroupDto, YuwSidebarItemClickDto, YuwSidebarItemDto, YuwSidebarSideDto, YuwSidebarSubItemDto, YuwSidebarVariantDto, YuwSwitchSizeDto, YuwTabItemDto, YuwTabsActivationModeDto, YuwTabsOrientationDto, YuwTabsVariantDto, YuwTextFieldContract, YuwToasterPositionDto, YuwToasterThemeDto, YuwTooltipPositionDto };
|