yukit-web 0.10.8 → 0.10.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.
@@ -11,6 +11,7 @@ import { HlmButton, buttonVariants, provideBrnButtonConfig } from "yukit-web/hel
11
11
  import * as i2 from "yukit-web/helm/dropdown-menu";
12
12
  import { HlmDropdownMenu, HlmDropdownMenuCheckbox, HlmDropdownMenuCheckboxIndicator, HlmDropdownMenuGroup, HlmDropdownMenuItem, HlmDropdownMenuItemSubIndicator, HlmDropdownMenuLabel, HlmDropdownMenuRadio, HlmDropdownMenuRadioIndicator, HlmDropdownMenuSeparator, HlmDropdownMenuShortcut, HlmDropdownMenuSub, HlmDropdownMenuSubTrigger, HlmDropdownMenuTrigger } from "yukit-web/helm/dropdown-menu";
13
13
  import { cva } from "class-variance-authority";
14
+ import { OVERLAY_DEFAULT_CONFIG, Overlay, OverlayContainer } from "@angular/cdk/overlay";
14
15
  import * as i1$31 from "@spartan-ng/brain/tooltip";
15
16
  import { BrnTooltip, provideBrnTooltipDefaultOptions } from "@spartan-ng/brain/tooltip";
16
17
  import { DEFAULT_TOOLTIP_CONTENT_CLASSES, DEFAULT_TOOLTIP_SVG_CLASS, tooltipPositionVariants } from "yukit-web/helm/tooltip";
@@ -99,7 +100,6 @@ import { HlmAttachment, HlmAttachmentAction, HlmAttachmentActions, HlmAttachment
99
100
  import { distinctUntilChanged as distinctUntilChanged$1, map as map$1 } from "rxjs/operators";
100
101
  import * as i1$1 from "yukit-web/helm/sidebar";
101
102
  import { HlmSidebar, HlmSidebarContent, HlmSidebarFooter, HlmSidebarGroup, HlmSidebarGroupContent, HlmSidebarGroupLabel, HlmSidebarHeader, HlmSidebarInset, HlmSidebarMenu, HlmSidebarMenuBadge, HlmSidebarMenuButton, HlmSidebarMenuItem, HlmSidebarMenuSub, HlmSidebarMenuSubButton, HlmSidebarMenuSubItem, HlmSidebarRail, HlmSidebarSeparator, HlmSidebarService, HlmSidebarService as YuwSidebarService, HlmSidebarTrigger, HlmSidebarWrapper, injectHlmSidebarConfig, provideHlmSidebarConfig, provideHlmSidebarConfig as provideYuwSidebarConfig } from "yukit-web/helm/sidebar";
102
- import { OverlayContainer } from "@angular/cdk/overlay";
103
103
  import * as i1 from "yukit-web/helm/command";
104
104
  import { HlmCommandDialog, HlmCommandImports } from "yukit-web/helm/command";
105
105
  import { FormField, FormRoot, submit } from "@angular/forms/signals";
@@ -1224,11 +1224,18 @@ var YuwTooltipDirective = class YuwTooltipDirective {
1224
1224
  "blur": "restore()",
1225
1225
  "pointerenter": "restore()"
1226
1226
  } },
1227
- providers: [provideBrnTooltipDefaultOptions({
1228
- svgClasses: DEFAULT_TOOLTIP_SVG_CLASS,
1229
- tooltipContentClasses: DEFAULT_TOOLTIP_CONTENT_CLASSES,
1230
- arrowClasses: (position) => hlm(tooltipPositionVariants({ position }))
1231
- })],
1227
+ providers: [
1228
+ Overlay,
1229
+ {
1230
+ provide: OVERLAY_DEFAULT_CONFIG,
1231
+ useValue: { usePopover: true }
1232
+ },
1233
+ provideBrnTooltipDefaultOptions({
1234
+ svgClasses: DEFAULT_TOOLTIP_SVG_CLASS,
1235
+ tooltipContentClasses: DEFAULT_TOOLTIP_CONTENT_CLASSES,
1236
+ arrowClasses: (position) => hlm(tooltipPositionVariants({ position }))
1237
+ })
1238
+ ],
1232
1239
  hostDirectives: [{
1233
1240
  directive: i1$31.BrnTooltip,
1234
1241
  inputs: [
@@ -1257,11 +1264,18 @@ i0.ɵɵngDeclareClassMetadata({
1257
1264
  type: Directive,
1258
1265
  args: [{
1259
1266
  selector: "[yuwTooltip]",
1260
- providers: [provideBrnTooltipDefaultOptions({
1261
- svgClasses: DEFAULT_TOOLTIP_SVG_CLASS,
1262
- tooltipContentClasses: DEFAULT_TOOLTIP_CONTENT_CLASSES,
1263
- arrowClasses: (position) => hlm(tooltipPositionVariants({ position }))
1264
- })],
1267
+ providers: [
1268
+ Overlay,
1269
+ {
1270
+ provide: OVERLAY_DEFAULT_CONFIG,
1271
+ useValue: { usePopover: true }
1272
+ },
1273
+ provideBrnTooltipDefaultOptions({
1274
+ svgClasses: DEFAULT_TOOLTIP_SVG_CLASS,
1275
+ tooltipContentClasses: DEFAULT_TOOLTIP_CONTENT_CLASSES,
1276
+ arrowClasses: (position) => hlm(tooltipPositionVariants({ position }))
1277
+ })
1278
+ ],
1265
1279
  hostDirectives: [{
1266
1280
  directive: BrnTooltip,
1267
1281
  inputs: [
@@ -12705,7 +12719,7 @@ function stopOnToast(event) {
12705
12719
  if (event.target instanceof Element && event.target.closest(TOAST)) event.stopPropagation();
12706
12720
  }
12707
12721
  const TOAST_CLASS = "items-start! [&_[data-icon]]:mt-0.5";
12708
- const CLOSABLE_TOAST_CLASS = "pe-14! min-h-16!";
12722
+ const CLOSABLE_TOAST_CLASS = "has-[>[data-close-button]]:pe-14! has-[>[data-close-button]]:min-h-16!";
12709
12723
  const CLOSE_BUTTON_CLASS = "top-4! size-8! rounded-md! border-current/40! bg-transparent! text-current! hover:bg-current/10! [&_svg]:size-4 [&_svg]:stroke-2";
12710
12724
  const TOAST_STYLE = {
12711
12725
  "--normal-bg": "var(--toast)",
@@ -13238,6 +13252,7 @@ function yuwCountdownToast(options) {
13238
13252
  untracked(() => show(YuwCountdownToastComponent, {
13239
13253
  id: toastId,
13240
13254
  duration: Number.POSITIVE_INFINITY,
13255
+ closeButton: options.cancelLabel ? false : void 0,
13241
13256
  componentProps: {
13242
13257
  cancel: ref.cancel,
13243
13258
  cancelLabel: options.cancelLabel,