@fundamental-ngx/core 0.44.0-rc.2 → 0.44.0-rc.3

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.
Files changed (77) hide show
  1. package/breadcrumb/breadcrumb.component.d.ts +4 -4
  2. package/content-density/providers/content-density-observer-providers.d.ts +1 -1
  3. package/content-density/services/content-density-observer.service.d.ts +3 -3
  4. package/dialog/dialog-container/dialog-container.component.d.ts +4 -4
  5. package/esm2022/breadcrumb/breadcrumb.component.mjs +9 -11
  6. package/esm2022/content-density/providers/content-density-observer-providers.mjs +4 -4
  7. package/esm2022/content-density/services/content-density-observer.service.mjs +13 -13
  8. package/esm2022/dialog/dialog-container/dialog-container.component.mjs +12 -13
  9. package/esm2022/message-box/message-box-container/message-box-container.component.mjs +12 -15
  10. package/esm2022/message-strip/alert/message-strip-alert-container-footer/message-strip-alert-container-footer.component.mjs +8 -9
  11. package/esm2022/message-strip/auto-dismiss-message-strip.directive.mjs +10 -9
  12. package/esm2022/multi-combobox/base-multi-combobox.class.mjs +17 -14
  13. package/esm2022/multi-combobox/multi-combobox.component.mjs +44 -45
  14. package/esm2022/multi-combobox/select-all-toggler/select-all-toggler.component.mjs +8 -10
  15. package/esm2022/overflow-layout/directives/overflow-layout-popover-content.directive.mjs +9 -11
  16. package/esm2022/segmented-button/segmented-button.component.mjs +19 -21
  17. package/esm2022/shellbar/shellbar.component.mjs +12 -11
  18. package/esm2022/split-button/split-button.component.mjs +15 -16
  19. package/esm2022/table/directives/table-cell.directive.mjs +5 -7
  20. package/esm2022/table/directives/table-row.directive.mjs +17 -20
  21. package/esm2022/table/table.component.mjs +10 -9
  22. package/esm2022/tabs/tab-list.component.mjs +26 -28
  23. package/esm2022/token/token.component.mjs +13 -13
  24. package/esm2022/toolbar/toolbar.component.mjs +23 -24
  25. package/esm2022/tree/components/tree-item/tree-item.component.mjs +21 -21
  26. package/esm2022/tree/tree.component.mjs +23 -22
  27. package/fesm2022/fundamental-ngx-core-breadcrumb.mjs +9 -10
  28. package/fesm2022/fundamental-ngx-core-breadcrumb.mjs.map +1 -1
  29. package/fesm2022/fundamental-ngx-core-content-density.mjs +15 -14
  30. package/fesm2022/fundamental-ngx-core-content-density.mjs.map +1 -1
  31. package/fesm2022/fundamental-ngx-core-dialog.mjs +10 -9
  32. package/fesm2022/fundamental-ngx-core-dialog.mjs.map +1 -1
  33. package/fesm2022/fundamental-ngx-core-message-box.mjs +11 -11
  34. package/fesm2022/fundamental-ngx-core-message-box.mjs.map +1 -1
  35. package/fesm2022/fundamental-ngx-core-message-strip.mjs +16 -14
  36. package/fesm2022/fundamental-ngx-core-message-strip.mjs.map +1 -1
  37. package/fesm2022/fundamental-ngx-core-multi-combobox.mjs +62 -63
  38. package/fesm2022/fundamental-ngx-core-multi-combobox.mjs.map +1 -1
  39. package/fesm2022/fundamental-ngx-core-overflow-layout.mjs +9 -10
  40. package/fesm2022/fundamental-ngx-core-overflow-layout.mjs.map +1 -1
  41. package/fesm2022/fundamental-ngx-core-segmented-button.mjs +17 -19
  42. package/fesm2022/fundamental-ngx-core-segmented-button.mjs.map +1 -1
  43. package/fesm2022/fundamental-ngx-core-shellbar.mjs +11 -10
  44. package/fesm2022/fundamental-ngx-core-shellbar.mjs.map +1 -1
  45. package/fesm2022/fundamental-ngx-core-split-button.mjs +13 -13
  46. package/fesm2022/fundamental-ngx-core-split-button.mjs.map +1 -1
  47. package/fesm2022/fundamental-ngx-core-table.mjs +26 -30
  48. package/fesm2022/fundamental-ngx-core-table.mjs.map +1 -1
  49. package/fesm2022/fundamental-ngx-core-tabs.mjs +27 -28
  50. package/fesm2022/fundamental-ngx-core-tabs.mjs.map +1 -1
  51. package/fesm2022/fundamental-ngx-core-token.mjs +13 -12
  52. package/fesm2022/fundamental-ngx-core-token.mjs.map +1 -1
  53. package/fesm2022/fundamental-ngx-core-toolbar.mjs +21 -22
  54. package/fesm2022/fundamental-ngx-core-toolbar.mjs.map +1 -1
  55. package/fesm2022/fundamental-ngx-core-tree.mjs +38 -38
  56. package/fesm2022/fundamental-ngx-core-tree.mjs.map +1 -1
  57. package/fundamental-ngx-core-v0.44.0-rc.3.tgz +0 -0
  58. package/message-box/message-box-container/message-box-container.component.d.ts +4 -6
  59. package/message-strip/alert/message-strip-alert-container-footer/message-strip-alert-container-footer.component.d.ts +1 -1
  60. package/message-strip/auto-dismiss-message-strip.directive.d.ts +3 -3
  61. package/multi-combobox/base-multi-combobox.class.d.ts +30 -30
  62. package/multi-combobox/multi-combobox.component.d.ts +17 -18
  63. package/multi-combobox/select-all-toggler/select-all-toggler.component.d.ts +1 -1
  64. package/overflow-layout/directives/overflow-layout-popover-content.directive.d.ts +5 -6
  65. package/package.json +3 -3
  66. package/schematics/add-dependencies/index.js +4 -4
  67. package/segmented-button/segmented-button.component.d.ts +6 -7
  68. package/shellbar/shellbar.component.d.ts +1 -1
  69. package/split-button/split-button.component.d.ts +3 -4
  70. package/table/directives/table-row.directive.d.ts +2 -4
  71. package/table/table.component.d.ts +3 -4
  72. package/tabs/tab-list.component.d.ts +4 -5
  73. package/token/token.component.d.ts +5 -5
  74. package/toolbar/toolbar.component.d.ts +6 -6
  75. package/tree/components/tree-item/tree-item.component.d.ts +28 -28
  76. package/tree/tree.component.d.ts +7 -7
  77. package/fundamental-ngx-core-v0.44.0-rc.2.tgz +0 -0
@@ -1,17 +1,17 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Directive, EventEmitter, TemplateRef, ElementRef, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, ContentChild, ViewChild, forwardRef, NgModule } from '@angular/core';
3
- import * as i3 from '@angular/common';
3
+ import * as i2 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
- import { Subscription, tap, takeUntil } from 'rxjs';
5
+ import { Subscription, tap } from 'rxjs';
6
6
  import { first } from 'rxjs/operators';
7
- import * as i5 from '@fundamental-ngx/core/menu';
7
+ import * as i4 from '@fundamental-ngx/core/menu';
8
8
  import { MenuComponent, MenuModule } from '@fundamental-ngx/core/menu';
9
- import * as i2 from '@fundamental-ngx/core/content-density';
9
+ import * as i1 from '@fundamental-ngx/core/content-density';
10
10
  import { contentDensityObserverProviders, DeprecatedCompactDirective, CONTENT_DENSITY_DIRECTIVE, ContentDensityModule } from '@fundamental-ngx/core/content-density';
11
- import * as i1 from '@fundamental-ngx/cdk/utils';
12
- import * as i4 from '@fundamental-ngx/core/button';
11
+ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
12
+ import * as i3 from '@fundamental-ngx/core/button';
13
13
  import { ButtonModule } from '@fundamental-ngx/core/button';
14
- import * as i6 from '@fundamental-ngx/i18n';
14
+ import * as i5 from '@fundamental-ngx/i18n';
15
15
  import { I18nModule } from '@fundamental-ngx/i18n';
16
16
 
17
17
  /**
@@ -82,9 +82,9 @@ class SplitButtonComponent {
82
82
  return this.fdType ? `fd-button-split--${this.fdType}` : '';
83
83
  }
84
84
  /** @hidden */
85
- constructor(_cdRef, _destroy$, _contentDensityObserver, _renderer) {
85
+ constructor(_cdRef, _destroyRef, _contentDensityObserver, _renderer) {
86
86
  this._cdRef = _cdRef;
87
- this._destroy$ = _destroy$;
87
+ this._destroyRef = _destroyRef;
88
88
  this._contentDensityObserver = _contentDensityObserver;
89
89
  this._renderer = _renderer;
90
90
  /** The icon to include in the button. See the icon page for the list of icons. */
@@ -147,7 +147,7 @@ class SplitButtonComponent {
147
147
  /** @hidden */
148
148
  ngAfterViewInit() {
149
149
  this._contentDensityObserver.isCompact$
150
- .pipe(tap(this._addButtonTextClass), takeUntil(this._destroy$))
150
+ .pipe(tap(this._addButtonTextClass), takeUntilDestroyed(this._destroyRef))
151
151
  .subscribe();
152
152
  }
153
153
  /** @hidden */
@@ -235,13 +235,13 @@ class SplitButtonComponent {
235
235
  _focusTriggerElement() {
236
236
  this.menuActionBtn?.nativeElement.focus();
237
237
  }
238
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: SplitButtonComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.DestroyedService }, { token: i2.ContentDensityObserver }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
239
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.0", type: SplitButtonComponent, selector: "fd-split-button", inputs: { glyph: "glyph", disabled: "disabled", mainActionTitle: "mainActionTitle", fdType: "fdType", expandButtonAriaLabel: "expandButtonAriaLabel", expandButtonTitle: "expandButtonTitle", selected: "selected", fixedWidth: "fixedWidth", mainAction: "mainAction", arialLabel: "arialLabel" }, outputs: { primaryButtonClicked: "primaryButtonClicked" }, providers: [contentDensityObserverProviders()], queries: [{ propertyName: "titleTemplate", first: true, predicate: SplitButtonActionTitle, descendants: true, read: TemplateRef }, { propertyName: "menu", first: true, predicate: MenuComponent, descendants: true }], viewQueries: [{ propertyName: "mainActionBtn", first: true, predicate: ["mainActionButton"], descendants: true, read: ElementRef }, { propertyName: "menuActionBtn", first: true, predicate: ["menuActionButton"], descendants: true, read: ElementRef }], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"fd-button-split fd-has-margin-right-small\"\n [ngClass]=\"typeClass\"\n role=\"group\"\n tabindex=\"-1\"\n [attr.aria-label]=\"arialLabel || ('coreSplitButton.arialLabel' | fdTranslate)\"\n [fdMenuTrigger]=\"menu\"\n (focus)=\"_onGroupFocused()\"\n>\n <button\n fd-button\n #mainActionButton\n [label]=\"mainActionTitle\"\n [style.width]=\"mainButtonWidth\"\n [fdType]=\"fdType\"\n [disabled]=\"disabled\"\n (click)=\"onMainButtonClick($event)\"\n >\n <ng-container *ngTemplateOutlet=\"titleTemplate\"></ng-container>\n </button>\n\n <button\n fd-button\n #menuActionButton\n [glyph]=\"glyph\"\n [fdType]=\"fdType\"\n [disabled]=\"disabled\"\n [ariaLabel]=\"expandButtonAriaLabel || ('coreSplitButton.expandButtonAriaLabel' | fdTranslate)\"\n [attr.title]=\"\n expandButtonTitle || expandButtonAriaLabel || ('coreSplitButton.expandButtonAriaLabel' | fdTranslate)\n \"\n [class.is-active]=\"menu.isOpen\"\n ></button>\n <ng-content select=\"fd-menu\"></ng-content>\n</div>\n", styles: ["/*!\n * Fundamental Library Styles v0.28.3\n * Copyright (c) 2023 SAP SE or an SAP affiliate company.\n * Licensed under Apache License 2.0 (https://github.com/SAP/fundamental-styles/blob/main/LICENSE)\n *//*!\n.fd-button-split\n button\n*/.fd-button-split{--fdButtonSplit_Separator_Offset:2.125rem;-webkit-box-sizing:border-box;border:0;box-sizing:border-box;color:var(--sapTextColor);display:inline-flex;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:var(--sapContent_LineHeight);margin:0;padding:0;position:relative;vertical-align:middle}.fd-button-split:after,.fd-button-split:before{box-sizing:inherit;font-size:inherit}.fd-button-split:before{background:var(--sapButton_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split:after{-webkit-transform:translateY(-50%);background:var(--sapButton_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split.is-hover:after,.fd-button-split:hover:after{display:none}.fd-button-split[dir=rtl]:after,[dir=rtl] .fd-button-split:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split>button{margin:0}.fd-button-split>button:first-of-type{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:start;-ms-flex-pack:start;align-items:center;border-radius:var(--fdButton_Border_Radius_Left);display:flex;justify-content:flex-start;margin-right:var(--fdButton_Menu_Offset)}.fd-button-split>button:first-of-type[dir=rtl],[dir=rtl] .fd-button-split>button:first-of-type{margin-left:var(--fdButton_Menu_Offset);margin-right:0}.fd-button-split>button:first-of-type.is-focus,.fd-button-split>button:first-of-type:focus{z-index:5}.fd-button-split>button:first-of-type.is-focus:after,.fd-button-split>button:first-of-type:focus:after{border-radius:var(--fdButton_Border_Radius_Outline_Left)}.fd-button-split>button:first-of-type[dir=rtl],[dir=rtl] .fd-button-split>button:first-of-type{border-radius:var(--fdButton_Border_Radius_Left_RTL)}.fd-button-split>button:first-of-type[dir=rtl].is-focus,.fd-button-split>button:first-of-type[dir=rtl]:focus,[dir=rtl] .fd-button-split>button:first-of-type.is-focus,[dir=rtl] .fd-button-split>button:first-of-type:focus{z-index:5}.fd-button-split>button:first-of-type[dir=rtl].is-focus:after,.fd-button-split>button:first-of-type[dir=rtl]:focus:after,[dir=rtl] .fd-button-split>button:first-of-type.is-focus:after,[dir=rtl] .fd-button-split>button:first-of-type:focus:after{border-radius:var(--fdButton_Border_Radius_Outline_Left_RTL)}.fd-button-split>button:nth-of-type(2){border-radius:var(--fdButton_Border_Radius_Right)}.fd-button-split>button:nth-of-type(2).is-focus,.fd-button-split>button:nth-of-type(2):focus{z-index:5}.fd-button-split>button:nth-of-type(2).is-focus:after,.fd-button-split>button:nth-of-type(2):focus:after{border-radius:var(--fdButton_Border_Radius_Outline_Right)}.fd-button-split>button:nth-of-type(2)[dir=rtl],[dir=rtl] .fd-button-split>button:nth-of-type(2){border-radius:var(--fdButton_Border_Radius_Right_RTL)}.fd-button-split>button:nth-of-type(2)[dir=rtl].is-focus,.fd-button-split>button:nth-of-type(2)[dir=rtl]:focus,[dir=rtl] .fd-button-split>button:nth-of-type(2).is-focus,[dir=rtl] .fd-button-split>button:nth-of-type(2):focus{z-index:5}.fd-button-split>button:nth-of-type(2)[dir=rtl].is-focus:after,.fd-button-split>button:nth-of-type(2)[dir=rtl]:focus:after,[dir=rtl] .fd-button-split>button:nth-of-type(2).is-focus:after,[dir=rtl] .fd-button-split>button:nth-of-type(2):focus:after{border-radius:var(--fdButton_Border_Radius_Outline_Right_RTL)}.fd-button-split>button.is-hover,.fd-button-split>button:hover{z-index:1}.fd-button-split--emphasized{position:relative}.fd-button-split--emphasized:before{background:var(--sapButton_Emphasized_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--emphasized:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Emphasized_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--emphasized.is-hover:after,.fd-button-split--emphasized:hover:after{display:none}.fd-button-split--emphasized[dir=rtl]:after,[dir=rtl] .fd-button-split--emphasized:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--transparent{position:relative}.fd-button-split--transparent:before{background:var(--sapButton_Lite_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--transparent:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Lite_TextColor);content:\"\";display:var(--fdButton_Menu_Transparent_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--transparent.is-hover:after,.fd-button-split--transparent:hover:after{display:none}.fd-button-split--transparent[dir=rtl]:after,[dir=rtl] .fd-button-split--transparent:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--ghost{position:relative}.fd-button-split--ghost:before{background:var(--fdButton_Ghost_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--ghost:after{-webkit-transform:translateY(-50%);background:var(--sapButton_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--ghost.is-hover:after,.fd-button-split--ghost:hover:after{display:none}.fd-button-split--ghost[dir=rtl]:after,[dir=rtl] .fd-button-split--ghost:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--positive{position:relative}.fd-button-split--positive:before{background:var(--sapButton_Accept_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--positive:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Accept_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--positive.is-hover:after,.fd-button-split--positive:hover:after{display:none}.fd-button-split--positive[dir=rtl]:after,[dir=rtl] .fd-button-split--positive:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--negative{position:relative}.fd-button-split--negative:before{background:var(--sapButton_Reject_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--negative:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Reject_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--negative.is-hover:after,.fd-button-split--negative:hover:after{display:none}.fd-button-split--negative[dir=rtl]:after,[dir=rtl] .fd-button-split--negative:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--attention{position:relative}.fd-button-split--attention:before{background:var(--sapButton_Attention_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--attention:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Attention_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--attention.is-hover:after,.fd-button-split--attention:hover:after{display:none}.fd-button-split--attention[dir=rtl]:after,[dir=rtl] .fd-button-split--attention:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--emphasized>button:first-of-type{margin-right:var(--fdButton_Menu_Emphasized_Margin)}.fd-button-split--emphasized>button:first-of-type[dir=rtl],[dir=rtl] .fd-button-split--emphasized>button:first-of-type{margin-left:var(--fdButton_Menu_Emphasized_Margin);margin-right:0}.fd-button-split .fd-button-split__text{-webkit-box-sizing:border-box;border:0;box-sizing:border-box;color:var(--sapTextColor);color:inherit;display:block;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:var(--sapContent_LineHeight);margin:0;max-width:var(--fdButtonSplit_Text_Max_Width, 8.5rem);overflow:hidden;padding:0;text-overflow:ellipsis;white-space:nowrap}.fd-button-split .fd-button-split__text:after,.fd-button-split .fd-button-split__text:before{box-sizing:inherit;font-size:inherit}.fd-button-split[class*=-compact],.fd-button-split[class*=-condensed],[class*=-compact] .fd-button-split:not([class*=-cozy]),[class*=-condensed] .fd-button-split:not([class*=-cozy]){--fdButtonSplit_Text_Max_Width:9rem;--fdButtonSplit_Separator_Offset:1.875rem}\n"], dependencies: [{ kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i4.ButtonComponent, selector: "button[fd-button], a[fd-button]", inputs: ["class"], exportAs: ["fd-button"] }, { kind: "directive", type: i5.MenuTriggerDirective, selector: "[fdMenuTrigger]", inputs: ["fdMenuTrigger"] }, { kind: "pipe", type: i6.FdTranslatePipe, name: "fdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
238
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: SplitButtonComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.DestroyRef }, { token: i1.ContentDensityObserver }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
239
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.0", type: SplitButtonComponent, selector: "fd-split-button", inputs: { glyph: "glyph", disabled: "disabled", mainActionTitle: "mainActionTitle", fdType: "fdType", expandButtonAriaLabel: "expandButtonAriaLabel", expandButtonTitle: "expandButtonTitle", selected: "selected", fixedWidth: "fixedWidth", mainAction: "mainAction", arialLabel: "arialLabel" }, outputs: { primaryButtonClicked: "primaryButtonClicked" }, providers: [contentDensityObserverProviders()], queries: [{ propertyName: "titleTemplate", first: true, predicate: SplitButtonActionTitle, descendants: true, read: TemplateRef }, { propertyName: "menu", first: true, predicate: MenuComponent, descendants: true }], viewQueries: [{ propertyName: "mainActionBtn", first: true, predicate: ["mainActionButton"], descendants: true, read: ElementRef }, { propertyName: "menuActionBtn", first: true, predicate: ["menuActionButton"], descendants: true, read: ElementRef }], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"fd-button-split fd-has-margin-right-small\"\n [ngClass]=\"typeClass\"\n role=\"group\"\n tabindex=\"-1\"\n [attr.aria-label]=\"arialLabel || ('coreSplitButton.arialLabel' | fdTranslate)\"\n [fdMenuTrigger]=\"menu\"\n (focus)=\"_onGroupFocused()\"\n>\n <button\n fd-button\n #mainActionButton\n [label]=\"mainActionTitle\"\n [style.width]=\"mainButtonWidth\"\n [fdType]=\"fdType\"\n [disabled]=\"disabled\"\n (click)=\"onMainButtonClick($event)\"\n >\n <ng-container *ngTemplateOutlet=\"titleTemplate\"></ng-container>\n </button>\n\n <button\n fd-button\n #menuActionButton\n [glyph]=\"glyph\"\n [fdType]=\"fdType\"\n [disabled]=\"disabled\"\n [ariaLabel]=\"expandButtonAriaLabel || ('coreSplitButton.expandButtonAriaLabel' | fdTranslate)\"\n [attr.title]=\"\n expandButtonTitle || expandButtonAriaLabel || ('coreSplitButton.expandButtonAriaLabel' | fdTranslate)\n \"\n [class.is-active]=\"menu.isOpen\"\n ></button>\n <ng-content select=\"fd-menu\"></ng-content>\n</div>\n", styles: ["/*!\n * Fundamental Library Styles v0.28.3\n * Copyright (c) 2023 SAP SE or an SAP affiliate company.\n * Licensed under Apache License 2.0 (https://github.com/SAP/fundamental-styles/blob/main/LICENSE)\n *//*!\n.fd-button-split\n button\n*/.fd-button-split{--fdButtonSplit_Separator_Offset:2.125rem;-webkit-box-sizing:border-box;border:0;box-sizing:border-box;color:var(--sapTextColor);display:inline-flex;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:var(--sapContent_LineHeight);margin:0;padding:0;position:relative;vertical-align:middle}.fd-button-split:after,.fd-button-split:before{box-sizing:inherit;font-size:inherit}.fd-button-split:before{background:var(--sapButton_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split:after{-webkit-transform:translateY(-50%);background:var(--sapButton_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split.is-hover:after,.fd-button-split:hover:after{display:none}.fd-button-split[dir=rtl]:after,[dir=rtl] .fd-button-split:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split>button{margin:0}.fd-button-split>button:first-of-type{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:start;-ms-flex-pack:start;align-items:center;border-radius:var(--fdButton_Border_Radius_Left);display:flex;justify-content:flex-start;margin-right:var(--fdButton_Menu_Offset)}.fd-button-split>button:first-of-type[dir=rtl],[dir=rtl] .fd-button-split>button:first-of-type{margin-left:var(--fdButton_Menu_Offset);margin-right:0}.fd-button-split>button:first-of-type.is-focus,.fd-button-split>button:first-of-type:focus{z-index:5}.fd-button-split>button:first-of-type.is-focus:after,.fd-button-split>button:first-of-type:focus:after{border-radius:var(--fdButton_Border_Radius_Outline_Left)}.fd-button-split>button:first-of-type[dir=rtl],[dir=rtl] .fd-button-split>button:first-of-type{border-radius:var(--fdButton_Border_Radius_Left_RTL)}.fd-button-split>button:first-of-type[dir=rtl].is-focus,.fd-button-split>button:first-of-type[dir=rtl]:focus,[dir=rtl] .fd-button-split>button:first-of-type.is-focus,[dir=rtl] .fd-button-split>button:first-of-type:focus{z-index:5}.fd-button-split>button:first-of-type[dir=rtl].is-focus:after,.fd-button-split>button:first-of-type[dir=rtl]:focus:after,[dir=rtl] .fd-button-split>button:first-of-type.is-focus:after,[dir=rtl] .fd-button-split>button:first-of-type:focus:after{border-radius:var(--fdButton_Border_Radius_Outline_Left_RTL)}.fd-button-split>button:nth-of-type(2){border-radius:var(--fdButton_Border_Radius_Right)}.fd-button-split>button:nth-of-type(2).is-focus,.fd-button-split>button:nth-of-type(2):focus{z-index:5}.fd-button-split>button:nth-of-type(2).is-focus:after,.fd-button-split>button:nth-of-type(2):focus:after{border-radius:var(--fdButton_Border_Radius_Outline_Right)}.fd-button-split>button:nth-of-type(2)[dir=rtl],[dir=rtl] .fd-button-split>button:nth-of-type(2){border-radius:var(--fdButton_Border_Radius_Right_RTL)}.fd-button-split>button:nth-of-type(2)[dir=rtl].is-focus,.fd-button-split>button:nth-of-type(2)[dir=rtl]:focus,[dir=rtl] .fd-button-split>button:nth-of-type(2).is-focus,[dir=rtl] .fd-button-split>button:nth-of-type(2):focus{z-index:5}.fd-button-split>button:nth-of-type(2)[dir=rtl].is-focus:after,.fd-button-split>button:nth-of-type(2)[dir=rtl]:focus:after,[dir=rtl] .fd-button-split>button:nth-of-type(2).is-focus:after,[dir=rtl] .fd-button-split>button:nth-of-type(2):focus:after{border-radius:var(--fdButton_Border_Radius_Outline_Right_RTL)}.fd-button-split>button.is-hover,.fd-button-split>button:hover{z-index:1}.fd-button-split--emphasized{position:relative}.fd-button-split--emphasized:before{background:var(--sapButton_Emphasized_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--emphasized:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Emphasized_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--emphasized.is-hover:after,.fd-button-split--emphasized:hover:after{display:none}.fd-button-split--emphasized[dir=rtl]:after,[dir=rtl] .fd-button-split--emphasized:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--transparent{position:relative}.fd-button-split--transparent:before{background:var(--sapButton_Lite_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--transparent:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Lite_TextColor);content:\"\";display:var(--fdButton_Menu_Transparent_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--transparent.is-hover:after,.fd-button-split--transparent:hover:after{display:none}.fd-button-split--transparent[dir=rtl]:after,[dir=rtl] .fd-button-split--transparent:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--ghost{position:relative}.fd-button-split--ghost:before{background:var(--fdButton_Ghost_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--ghost:after{-webkit-transform:translateY(-50%);background:var(--sapButton_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--ghost.is-hover:after,.fd-button-split--ghost:hover:after{display:none}.fd-button-split--ghost[dir=rtl]:after,[dir=rtl] .fd-button-split--ghost:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--positive{position:relative}.fd-button-split--positive:before{background:var(--sapButton_Accept_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--positive:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Accept_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--positive.is-hover:after,.fd-button-split--positive:hover:after{display:none}.fd-button-split--positive[dir=rtl]:after,[dir=rtl] .fd-button-split--positive:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--negative{position:relative}.fd-button-split--negative:before{background:var(--sapButton_Reject_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--negative:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Reject_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--negative.is-hover:after,.fd-button-split--negative:hover:after{display:none}.fd-button-split--negative[dir=rtl]:after,[dir=rtl] .fd-button-split--negative:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--attention{position:relative}.fd-button-split--attention:before{background:var(--sapButton_Attention_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--attention:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Attention_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--attention.is-hover:after,.fd-button-split--attention:hover:after{display:none}.fd-button-split--attention[dir=rtl]:after,[dir=rtl] .fd-button-split--attention:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--emphasized>button:first-of-type{margin-right:var(--fdButton_Menu_Emphasized_Margin)}.fd-button-split--emphasized>button:first-of-type[dir=rtl],[dir=rtl] .fd-button-split--emphasized>button:first-of-type{margin-left:var(--fdButton_Menu_Emphasized_Margin);margin-right:0}.fd-button-split .fd-button-split__text{-webkit-box-sizing:border-box;border:0;box-sizing:border-box;color:var(--sapTextColor);color:inherit;display:block;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:var(--sapContent_LineHeight);margin:0;max-width:var(--fdButtonSplit_Text_Max_Width, 8.5rem);overflow:hidden;padding:0;text-overflow:ellipsis;white-space:nowrap}.fd-button-split .fd-button-split__text:after,.fd-button-split .fd-button-split__text:before{box-sizing:inherit;font-size:inherit}.fd-button-split[class*=-compact],.fd-button-split[class*=-condensed],[class*=-compact] .fd-button-split:not([class*=-cozy]),[class*=-condensed] .fd-button-split:not([class*=-cozy]){--fdButtonSplit_Text_Max_Width:9rem;--fdButtonSplit_Separator_Offset:1.875rem}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i3.ButtonComponent, selector: "button[fd-button], a[fd-button]", inputs: ["class"], exportAs: ["fd-button"] }, { kind: "directive", type: i4.MenuTriggerDirective, selector: "[fdMenuTrigger]", inputs: ["fdMenuTrigger"] }, { kind: "pipe", type: i5.FdTranslatePipe, name: "fdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
240
240
  }
241
241
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.0", ngImport: i0, type: SplitButtonComponent, decorators: [{
242
242
  type: Component,
243
243
  args: [{ selector: 'fd-split-button', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [contentDensityObserverProviders()], template: "<div\n class=\"fd-button-split fd-has-margin-right-small\"\n [ngClass]=\"typeClass\"\n role=\"group\"\n tabindex=\"-1\"\n [attr.aria-label]=\"arialLabel || ('coreSplitButton.arialLabel' | fdTranslate)\"\n [fdMenuTrigger]=\"menu\"\n (focus)=\"_onGroupFocused()\"\n>\n <button\n fd-button\n #mainActionButton\n [label]=\"mainActionTitle\"\n [style.width]=\"mainButtonWidth\"\n [fdType]=\"fdType\"\n [disabled]=\"disabled\"\n (click)=\"onMainButtonClick($event)\"\n >\n <ng-container *ngTemplateOutlet=\"titleTemplate\"></ng-container>\n </button>\n\n <button\n fd-button\n #menuActionButton\n [glyph]=\"glyph\"\n [fdType]=\"fdType\"\n [disabled]=\"disabled\"\n [ariaLabel]=\"expandButtonAriaLabel || ('coreSplitButton.expandButtonAriaLabel' | fdTranslate)\"\n [attr.title]=\"\n expandButtonTitle || expandButtonAriaLabel || ('coreSplitButton.expandButtonAriaLabel' | fdTranslate)\n \"\n [class.is-active]=\"menu.isOpen\"\n ></button>\n <ng-content select=\"fd-menu\"></ng-content>\n</div>\n", styles: ["/*!\n * Fundamental Library Styles v0.28.3\n * Copyright (c) 2023 SAP SE or an SAP affiliate company.\n * Licensed under Apache License 2.0 (https://github.com/SAP/fundamental-styles/blob/main/LICENSE)\n *//*!\n.fd-button-split\n button\n*/.fd-button-split{--fdButtonSplit_Separator_Offset:2.125rem;-webkit-box-sizing:border-box;border:0;box-sizing:border-box;color:var(--sapTextColor);display:inline-flex;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:var(--sapContent_LineHeight);margin:0;padding:0;position:relative;vertical-align:middle}.fd-button-split:after,.fd-button-split:before{box-sizing:inherit;font-size:inherit}.fd-button-split:before{background:var(--sapButton_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split:after{-webkit-transform:translateY(-50%);background:var(--sapButton_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split.is-hover:after,.fd-button-split:hover:after{display:none}.fd-button-split[dir=rtl]:after,[dir=rtl] .fd-button-split:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split>button{margin:0}.fd-button-split>button:first-of-type{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:start;-ms-flex-pack:start;align-items:center;border-radius:var(--fdButton_Border_Radius_Left);display:flex;justify-content:flex-start;margin-right:var(--fdButton_Menu_Offset)}.fd-button-split>button:first-of-type[dir=rtl],[dir=rtl] .fd-button-split>button:first-of-type{margin-left:var(--fdButton_Menu_Offset);margin-right:0}.fd-button-split>button:first-of-type.is-focus,.fd-button-split>button:first-of-type:focus{z-index:5}.fd-button-split>button:first-of-type.is-focus:after,.fd-button-split>button:first-of-type:focus:after{border-radius:var(--fdButton_Border_Radius_Outline_Left)}.fd-button-split>button:first-of-type[dir=rtl],[dir=rtl] .fd-button-split>button:first-of-type{border-radius:var(--fdButton_Border_Radius_Left_RTL)}.fd-button-split>button:first-of-type[dir=rtl].is-focus,.fd-button-split>button:first-of-type[dir=rtl]:focus,[dir=rtl] .fd-button-split>button:first-of-type.is-focus,[dir=rtl] .fd-button-split>button:first-of-type:focus{z-index:5}.fd-button-split>button:first-of-type[dir=rtl].is-focus:after,.fd-button-split>button:first-of-type[dir=rtl]:focus:after,[dir=rtl] .fd-button-split>button:first-of-type.is-focus:after,[dir=rtl] .fd-button-split>button:first-of-type:focus:after{border-radius:var(--fdButton_Border_Radius_Outline_Left_RTL)}.fd-button-split>button:nth-of-type(2){border-radius:var(--fdButton_Border_Radius_Right)}.fd-button-split>button:nth-of-type(2).is-focus,.fd-button-split>button:nth-of-type(2):focus{z-index:5}.fd-button-split>button:nth-of-type(2).is-focus:after,.fd-button-split>button:nth-of-type(2):focus:after{border-radius:var(--fdButton_Border_Radius_Outline_Right)}.fd-button-split>button:nth-of-type(2)[dir=rtl],[dir=rtl] .fd-button-split>button:nth-of-type(2){border-radius:var(--fdButton_Border_Radius_Right_RTL)}.fd-button-split>button:nth-of-type(2)[dir=rtl].is-focus,.fd-button-split>button:nth-of-type(2)[dir=rtl]:focus,[dir=rtl] .fd-button-split>button:nth-of-type(2).is-focus,[dir=rtl] .fd-button-split>button:nth-of-type(2):focus{z-index:5}.fd-button-split>button:nth-of-type(2)[dir=rtl].is-focus:after,.fd-button-split>button:nth-of-type(2)[dir=rtl]:focus:after,[dir=rtl] .fd-button-split>button:nth-of-type(2).is-focus:after,[dir=rtl] .fd-button-split>button:nth-of-type(2):focus:after{border-radius:var(--fdButton_Border_Radius_Outline_Right_RTL)}.fd-button-split>button.is-hover,.fd-button-split>button:hover{z-index:1}.fd-button-split--emphasized{position:relative}.fd-button-split--emphasized:before{background:var(--sapButton_Emphasized_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--emphasized:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Emphasized_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--emphasized.is-hover:after,.fd-button-split--emphasized:hover:after{display:none}.fd-button-split--emphasized[dir=rtl]:after,[dir=rtl] .fd-button-split--emphasized:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--transparent{position:relative}.fd-button-split--transparent:before{background:var(--sapButton_Lite_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--transparent:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Lite_TextColor);content:\"\";display:var(--fdButton_Menu_Transparent_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--transparent.is-hover:after,.fd-button-split--transparent:hover:after{display:none}.fd-button-split--transparent[dir=rtl]:after,[dir=rtl] .fd-button-split--transparent:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--ghost{position:relative}.fd-button-split--ghost:before{background:var(--fdButton_Ghost_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--ghost:after{-webkit-transform:translateY(-50%);background:var(--sapButton_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--ghost.is-hover:after,.fd-button-split--ghost:hover:after{display:none}.fd-button-split--ghost[dir=rtl]:after,[dir=rtl] .fd-button-split--ghost:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--positive{position:relative}.fd-button-split--positive:before{background:var(--sapButton_Accept_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--positive:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Accept_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--positive.is-hover:after,.fd-button-split--positive:hover:after{display:none}.fd-button-split--positive[dir=rtl]:after,[dir=rtl] .fd-button-split--positive:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--negative{position:relative}.fd-button-split--negative:before{background:var(--sapButton_Reject_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--negative:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Reject_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--negative.is-hover:after,.fd-button-split--negative:hover:after{display:none}.fd-button-split--negative[dir=rtl]:after,[dir=rtl] .fd-button-split--negative:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--attention{position:relative}.fd-button-split--attention:before{background:var(--sapButton_Attention_Background);border-radius:var(--sapButton_BorderCornerRadius);content:\"\";display:var(--fdButton_Segmented_Pad_Display);height:100%;left:0;position:absolute;top:0;width:100%}.fd-button-split--attention:after{-webkit-transform:translateY(-50%);background:var(--sapButton_Attention_TextColor);content:\"\";display:var(--fdButton_Menu_Separator_Display);height:var(--fdButton_Menu_Transparent_Separator_Height);margin:0 .125rem;position:absolute;right:var(--fdButtonSplit_Separator_Offset);top:50%;transform:translateY(-50%);width:var(--sapButton_BorderWidth);z-index:10}.fd-button-split--attention.is-hover:after,.fd-button-split--attention:hover:after{display:none}.fd-button-split--attention[dir=rtl]:after,[dir=rtl] .fd-button-split--attention:after{left:var(--fdButtonSplit_Separator_Offset);right:auto}.fd-button-split--emphasized>button:first-of-type{margin-right:var(--fdButton_Menu_Emphasized_Margin)}.fd-button-split--emphasized>button:first-of-type[dir=rtl],[dir=rtl] .fd-button-split--emphasized>button:first-of-type{margin-left:var(--fdButton_Menu_Emphasized_Margin);margin-right:0}.fd-button-split .fd-button-split__text{-webkit-box-sizing:border-box;border:0;box-sizing:border-box;color:var(--sapTextColor);color:inherit;display:block;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);font-weight:400;forced-color-adjust:none;line-height:var(--sapContent_LineHeight);margin:0;max-width:var(--fdButtonSplit_Text_Max_Width, 8.5rem);overflow:hidden;padding:0;text-overflow:ellipsis;white-space:nowrap}.fd-button-split .fd-button-split__text:after,.fd-button-split .fd-button-split__text:before{box-sizing:inherit;font-size:inherit}.fd-button-split[class*=-compact],.fd-button-split[class*=-condensed],[class*=-compact] .fd-button-split:not([class*=-cozy]),[class*=-condensed] .fd-button-split:not([class*=-cozy]){--fdButtonSplit_Text_Max_Width:9rem;--fdButtonSplit_Separator_Offset:1.875rem}\n"] }]
244
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.DestroyedService }, { type: i2.ContentDensityObserver }, { type: i0.Renderer2 }]; }, propDecorators: { glyph: [{
244
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.DestroyRef }, { type: i1.ContentDensityObserver }, { type: i0.Renderer2 }]; }, propDecorators: { glyph: [{
245
245
  type: Input
246
246
  }], disabled: [{
247
247
  type: Input
@@ -1 +1 @@
1
- {"version":3,"file":"fundamental-ngx-core-split-button.mjs","sources":["../../../../libs/core/src/lib/split-button/split-button-utils/split-button.directives.ts","../../../../libs/core/src/lib/split-button/split-button.component.ts","../../../../libs/core/src/lib/split-button/split-button.component.html","../../../../libs/core/src/lib/split-button/deprecated-split-button-compact.directive.ts","../../../../libs/core/src/lib/split-button/split-button.module.ts","../../../../libs/core/src/lib/split-button/fundamental-ngx-core-split-button.ts"],"sourcesContent":["import { Directive } from '@angular/core';\n\n/**\n * Directive used to identify the template which will populate the main action button.\n * Used to achieve complex buttons that require more than a string.\n *```html\n * <fd-button-split>\n * <ng-template fd-button-split-action-title>\n * <p>Paragraph 1</p>\n * <p>Paragraph 2</p>\n * </ng-template>\n * <fd-menu>\n * <li fd-menu-item>\n * <a fd-menu-interactive [routerLink]=\"'/'\">\n * <span fd-menu-title>option2</span>\n * </a>\n * </li>\n * <li fd-menu-item>\n * <a fd-menu-interactive [routerLink]=\"'/'\">\n * <span fd-menu-title>option2</span>\n * </a>\n * </li>\n * </fd-menu>\n * </fd-button-split>\n *</fd-button-split>\n *```\n */\n@Directive({\n // TODO to be discussed\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[fd-split-button-action-title]'\n})\n// eslint-disable-next-line @angular-eslint/directive-class-suffix\nexport class SplitButtonActionTitle {}\n","import {\n AfterContentInit,\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n ElementRef,\n EventEmitter,\n Input,\n OnChanges,\n OnDestroy,\n Output,\n Renderer2,\n SimpleChanges,\n TemplateRef,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport { Subscription, takeUntil, tap } from 'rxjs';\nimport { first } from 'rxjs/operators';\nimport { ButtonType } from '@fundamental-ngx/core/button';\nimport { MenuComponent, MenuItemComponent } from '@fundamental-ngx/core/menu';\n\nimport { SplitButtonActionTitle } from './split-button-utils/split-button.directives';\nimport { MainAction } from './main-action';\nimport { ContentDensityObserver, contentDensityObserverProviders } from '@fundamental-ngx/core/content-density';\nimport { DestroyedService } from '@fundamental-ngx/cdk/utils';\n\nexport const splitButtonTextClass = 'fd-button-split__text';\nconst splitButtonTextClasses = [splitButtonTextClass];\n\n/**\n * Split Button component, used to enhance standard HTML button and add possibility to put some dropdown with\n * additional options.\n *\n * ```html\n * <fd-split-button>\n * <fd-menu>\n * <li fd-menu-item>\n * <div fd-menu-interactive>\n * <span fd-menu-title>Option 1</span>\n * </div>\n * </li>\n * <li fd-menu-item>\n * <div fd-menu-interactive>\n * <span fd-menu-title>Option 2</span>\n * </div>\n * </li>\n * </fd-menu>\n *</fd-split-button>\n * ```\n */\n@Component({\n selector: 'fd-split-button',\n templateUrl: 'split-button.component.html',\n styleUrls: ['./split-button.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [contentDensityObserverProviders()]\n})\nexport class SplitButtonComponent implements AfterContentInit, OnChanges, OnDestroy, AfterViewInit {\n /** The icon to include in the button. See the icon page for the list of icons. */\n @Input()\n glyph = 'slim-arrow-down';\n\n /** The icon to include in the button. See the icon page for the list of icons. */\n @Input()\n disabled: boolean;\n\n /** @deprecated The Title for main action button. This will be deprecated as an input but will remain a property on this component. */\n @Input()\n mainActionTitle: string;\n\n /** The type of the button. Types include 'standard', 'positive', 'medium', and 'negative'.\n * Leave empty for default (Action button).'*/\n @Input()\n fdType: ButtonType;\n\n /**\n * @deprecated use i18n capabilities instead\n * Aria-label attribute used to describe expand button\n */\n @Input()\n expandButtonAriaLabel: string;\n\n /** Title attribute used to describe expand button */\n @Input()\n expandButtonTitle: string;\n\n /** Selected menu item */\n @Input()\n selected: MenuItemComponent;\n\n /** Whether or not the element should keep a fixed width. The width could change if the text changes length. */\n @Input()\n fixedWidth = true;\n\n /**\n * The object that contains the mainActionTitle, keepMainAction option and the callback function that should be\n * executed when the button is clicked.\n */\n @Input()\n mainAction: MainAction;\n\n /** aria-label attribute */\n @Input()\n arialLabel: string;\n\n /** Event sent when primary button is clicked */\n @Output()\n readonly primaryButtonClicked: EventEmitter<Event> = new EventEmitter<Event>();\n\n /** @hidden */\n @ContentChild(SplitButtonActionTitle, { read: TemplateRef })\n titleTemplate: TemplateRef<any> | null;\n\n /** @hidden */\n @ContentChild(MenuComponent)\n menu: MenuComponent;\n\n /** @hidden */\n @ViewChild('mainActionButton', { read: ElementRef })\n mainActionBtn: ElementRef;\n\n /** @hidden */\n @ViewChild('menuActionButton', { read: ElementRef })\n menuActionBtn: ElementRef;\n\n /** @hidden */\n mainButtonWidth: string;\n\n /** @hidden */\n get typeClass(): string {\n return this.fdType ? `fd-button-split--${this.fdType}` : '';\n }\n\n /** @hidden */\n private _menuItemSubscriptions = new Subscription();\n\n /** @hidden */\n private _menuSubscription = new Subscription();\n\n /** @hidden */\n private _contentDensitySubscription = new Subscription();\n\n /** @hidden */\n private _menuActivePathSubscription = new Subscription();\n\n /** @hidden */\n constructor(\n private _cdRef: ChangeDetectorRef,\n private _destroy$: DestroyedService,\n private _contentDensityObserver: ContentDensityObserver,\n private _renderer: Renderer2\n ) {}\n\n /** @hidden Emits event when main button is clicked */\n onMainButtonClick(event: MouseEvent): void {\n this.primaryButtonClicked.emit(event);\n if (this.selected) {\n this.selected.elementRef.nativeElement.click();\n } else if (this.mainAction && this.mainAction.callback) {\n this.mainAction.callback();\n }\n event.stopPropagation();\n }\n\n /** @hidden */\n ngAfterContentInit(): void {\n this.menu._menuItems.forEach((item) => {\n item.menuInteractive._fromSplitButton = true;\n });\n this._setupMenuSubscription();\n this._setupMenuItemSubscriptions();\n this._handleMainActionObject();\n\n if (!this.mainActionTitle && !this.titleTemplate && !this.selected) {\n this.selectMenuItem(this.menu._menuItems.first);\n } else if (!this.mainActionTitle && this.selected) {\n this.selectMenuItem(this.selected);\n }\n\n this._menuActivePathSubscription.add(\n this.menu.activePath.subscribe((items) => {\n const lastItem = items[items.length - 1];\n if (lastItem && !lastItem.submenu) {\n this.menu.close();\n this._focusTriggerElement();\n }\n })\n );\n }\n\n /** @hidden */\n ngAfterViewInit(): void {\n this._contentDensityObserver.isCompact$\n .pipe(tap(this._addButtonTextClass), takeUntil(this._destroy$))\n .subscribe();\n }\n\n /** @hidden */\n ngOnChanges(changes: SimpleChanges): void {\n if ('selected' in changes) {\n this.selectMenuItem(this.selected);\n }\n if ('mainAction' in changes) {\n this._handleMainActionObject();\n }\n }\n\n /** @hidden */\n ngOnDestroy(): void {\n this._menuItemSubscriptions.unsubscribe();\n this._menuSubscription.unsubscribe();\n this._contentDensitySubscription.unsubscribe();\n this._menuActivePathSubscription.unsubscribe();\n }\n\n /** Function called to select a menu item for the split button. */\n selectMenuItem(menuItem: MenuItemComponent): void {\n if (menuItem && (!this.mainAction || !this.mainAction.keepMainAction)) {\n menuItem.setSelected(true);\n }\n }\n\n /**\n * Wrapper gets focused programmatically by menu\n * when the \"escape\" button is pressed.\n * In this case we need to transit focus to the \"more actions\" button\n */\n _onGroupFocused(): void {\n this._focusTriggerElement();\n }\n\n /** @hidden */\n private _getMainButtonWidth(): void {\n if (this.mainActionBtn && this.mainActionBtn.nativeElement) {\n this.mainButtonWidth = this.mainActionBtn.nativeElement.getBoundingClientRect().width + 'px';\n }\n }\n\n /** @hidden */\n private _setupMenuItemSubscriptions(): void {\n this.menu._menuItems.forEach((menuItem) => {\n menuItem.onSelect.pipe(first()).subscribe(() => {\n if (this.fixedWidth) {\n this._getMainButtonWidth();\n }\n });\n this._menuItemSubscriptions.add(\n menuItem.onSelect.subscribe(() => {\n this._handleMenuItemSelection(menuItem);\n })\n );\n });\n }\n\n /** @hidden */\n private _handleMenuItemSelection(menuItem: MenuItemComponent): void {\n if (!this.mainAction || !this.mainAction.keepMainAction) {\n this.selected = menuItem;\n this.menu._menuItems.forEach((item) => {\n item.setSelected(false, true);\n });\n menuItem.setSelected(true, true);\n this.titleTemplate = null;\n this.mainActionTitle = menuItem.menuItemTitle.title;\n this._cdRef.detectChanges();\n }\n }\n\n /** @hidden */\n private _setupMenuSubscription(): void {\n this._menuSubscription = this.menu._menuItems.changes.subscribe(() => {\n this._menuItemSubscriptions.unsubscribe();\n this._menuItemSubscriptions.closed = false;\n this._setupMenuItemSubscriptions();\n });\n // call markForCheck once menu open state gets changed\n this._menuSubscription.add(this.menu.isOpenChange.subscribe(() => this._cdRef.markForCheck()));\n }\n\n /** @hidden */\n private _handleMainActionObject(): void {\n if (this.mainAction && typeof this.mainAction.mainActionTitle === 'string') {\n this.mainActionTitle = this.mainAction.mainActionTitle;\n } else if (this.mainAction && this.mainAction.mainActionTitle instanceof TemplateRef) {\n this.titleTemplate = this.mainAction.mainActionTitle;\n }\n }\n\n /** @hidden */\n private _addButtonTextClass = (compact: boolean): void => {\n const textSpanElement = this.mainActionBtn?.nativeElement.querySelector('.fd-button__text');\n if (!textSpanElement) {\n return;\n }\n splitButtonTextClasses.forEach((_class) => this._renderer.removeClass(textSpanElement, _class));\n this._renderer.addClass(textSpanElement, splitButtonTextClass);\n };\n\n /** @hidden */\n private _focusTriggerElement(): void {\n this.menuActionBtn?.nativeElement.focus();\n }\n}\n","<div\n class=\"fd-button-split fd-has-margin-right-small\"\n [ngClass]=\"typeClass\"\n role=\"group\"\n tabindex=\"-1\"\n [attr.aria-label]=\"arialLabel || ('coreSplitButton.arialLabel' | fdTranslate)\"\n [fdMenuTrigger]=\"menu\"\n (focus)=\"_onGroupFocused()\"\n>\n <button\n fd-button\n #mainActionButton\n [label]=\"mainActionTitle\"\n [style.width]=\"mainButtonWidth\"\n [fdType]=\"fdType\"\n [disabled]=\"disabled\"\n (click)=\"onMainButtonClick($event)\"\n >\n <ng-container *ngTemplateOutlet=\"titleTemplate\"></ng-container>\n </button>\n\n <button\n fd-button\n #menuActionButton\n [glyph]=\"glyph\"\n [fdType]=\"fdType\"\n [disabled]=\"disabled\"\n [ariaLabel]=\"expandButtonAriaLabel || ('coreSplitButton.expandButtonAriaLabel' | fdTranslate)\"\n [attr.title]=\"\n expandButtonTitle || expandButtonAriaLabel || ('coreSplitButton.expandButtonAriaLabel' | fdTranslate)\n \"\n [class.is-active]=\"menu.isOpen\"\n ></button>\n <ng-content select=\"fd-menu\"></ng-content>\n</div>\n","import { CONTENT_DENSITY_DIRECTIVE, DeprecatedCompactDirective } from '@fundamental-ngx/core/content-density';\nimport { Directive, forwardRef } from '@angular/core';\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: 'fd-split-button[compact]',\n providers: [\n {\n provide: CONTENT_DENSITY_DIRECTIVE,\n useExisting: forwardRef(() => DeprecatedSplitButtonCompactDirective)\n }\n ]\n})\nexport class DeprecatedSplitButtonCompactDirective extends DeprecatedCompactDirective {\n /** @hidden */\n constructor() {\n super('fd-split-button');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { SplitButtonComponent } from './split-button.component';\nimport { ButtonModule } from '@fundamental-ngx/core/button';\nimport { I18nModule } from '@fundamental-ngx/i18n';\nimport { SplitButtonActionTitle } from './split-button-utils/split-button.directives';\nimport { MenuModule } from '@fundamental-ngx/core/menu';\nimport { ContentDensityModule } from '@fundamental-ngx/core/content-density';\nimport { DeprecatedSplitButtonCompactDirective } from './deprecated-split-button-compact.directive';\n\n@NgModule({\n imports: [CommonModule, ButtonModule, MenuModule, ContentDensityModule, I18nModule],\n declarations: [SplitButtonComponent, SplitButtonActionTitle, DeprecatedSplitButtonCompactDirective],\n exports: [SplitButtonComponent, SplitButtonActionTitle, ContentDensityModule, DeprecatedSplitButtonCompactDirective]\n})\nexport class SplitButtonModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;AAwBG;AAMH;MACa,sBAAsB,CAAA;8GAAtB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAtB,sBAAsB,EAAA,QAAA,EAAA,gCAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;2FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBANlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;;;AAGP,oBAAA,QAAQ,EAAE,gCAAgC;AAC7C,iBAAA,CAAA;;;ACFM,MAAM,oBAAoB,GAAG,wBAAwB;AAC5D,MAAM,sBAAsB,GAAG,CAAC,oBAAoB,CAAC,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;AAoBG;MASU,oBAAoB,CAAA;;AAwE7B,IAAA,IAAI,SAAS,GAAA;AACT,QAAA,OAAO,IAAI,CAAC,MAAM,GAAG,CAAA,iBAAA,EAAoB,IAAI,CAAC,MAAM,CAAE,CAAA,GAAG,EAAE,CAAC;KAC/D;;AAeD,IAAA,WAAA,CACY,MAAyB,EACzB,SAA2B,EAC3B,uBAA+C,EAC/C,SAAoB,EAAA;QAHpB,IAAM,CAAA,MAAA,GAAN,MAAM,CAAmB;QACzB,IAAS,CAAA,SAAA,GAAT,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B,EAAE,qCAAqC,CAAA,EAAA,OAAA,EAAA,CADxF,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,oBAAoB,EAAE,UAAU,CAExE,EAAA,OAAA,EAAA,CAAA,oBAAoB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,qCAAqC,CAAA,EAAA,CAAA,CAAA,EAAA;+GAE1G,iBAAiB,EAAA,OAAA,EAAA,CAJhB,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,oBAAoB,EAAE,UAAU,EAE1B,oBAAoB,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAEnE,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAL7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,oBAAoB,EAAE,UAAU,CAAC;AACnF,oBAAA,YAAY,EAAE,CAAC,oBAAoB,EAAE,sBAAsB,EAAE,qCAAqC,CAAC;oBACnG,OAAO,EAAE,CAAC,oBAAoB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,qCAAqC,CAAC;AACvH,iBAAA,CAAA;;;ACfD;;AAEG;;;;"}
1
+ {"version":3,"file":"fundamental-ngx-core-split-button.mjs","sources":["../../../../libs/core/src/lib/split-button/split-button-utils/split-button.directives.ts","../../../../libs/core/src/lib/split-button/split-button.component.ts","../../../../libs/core/src/lib/split-button/split-button.component.html","../../../../libs/core/src/lib/split-button/deprecated-split-button-compact.directive.ts","../../../../libs/core/src/lib/split-button/split-button.module.ts","../../../../libs/core/src/lib/split-button/fundamental-ngx-core-split-button.ts"],"sourcesContent":["import { Directive } from '@angular/core';\n\n/**\n * Directive used to identify the template which will populate the main action button.\n * Used to achieve complex buttons that require more than a string.\n *```html\n * <fd-button-split>\n * <ng-template fd-button-split-action-title>\n * <p>Paragraph 1</p>\n * <p>Paragraph 2</p>\n * </ng-template>\n * <fd-menu>\n * <li fd-menu-item>\n * <a fd-menu-interactive [routerLink]=\"'/'\">\n * <span fd-menu-title>option2</span>\n * </a>\n * </li>\n * <li fd-menu-item>\n * <a fd-menu-interactive [routerLink]=\"'/'\">\n * <span fd-menu-title>option2</span>\n * </a>\n * </li>\n * </fd-menu>\n * </fd-button-split>\n *</fd-button-split>\n *```\n */\n@Directive({\n // TODO to be discussed\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[fd-split-button-action-title]'\n})\n// eslint-disable-next-line @angular-eslint/directive-class-suffix\nexport class SplitButtonActionTitle {}\n","import {\n AfterContentInit,\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n DestroyRef,\n ElementRef,\n EventEmitter,\n Input,\n OnChanges,\n OnDestroy,\n Output,\n Renderer2,\n SimpleChanges,\n TemplateRef,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport { Subscription, tap } from 'rxjs';\nimport { first } from 'rxjs/operators';\nimport { ButtonType } from '@fundamental-ngx/core/button';\nimport { MenuComponent, MenuItemComponent } from '@fundamental-ngx/core/menu';\n\nimport { SplitButtonActionTitle } from './split-button-utils/split-button.directives';\nimport { MainAction } from './main-action';\nimport { ContentDensityObserver, contentDensityObserverProviders } from '@fundamental-ngx/core/content-density';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\nexport const splitButtonTextClass = 'fd-button-split__text';\nconst splitButtonTextClasses = [splitButtonTextClass];\n\n/**\n * Split Button component, used to enhance standard HTML button and add possibility to put some dropdown with\n * additional options.\n *\n * ```html\n * <fd-split-button>\n * <fd-menu>\n * <li fd-menu-item>\n * <div fd-menu-interactive>\n * <span fd-menu-title>Option 1</span>\n * </div>\n * </li>\n * <li fd-menu-item>\n * <div fd-menu-interactive>\n * <span fd-menu-title>Option 2</span>\n * </div>\n * </li>\n * </fd-menu>\n *</fd-split-button>\n * ```\n */\n@Component({\n selector: 'fd-split-button',\n templateUrl: 'split-button.component.html',\n styleUrls: ['./split-button.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [contentDensityObserverProviders()]\n})\nexport class SplitButtonComponent implements AfterContentInit, OnChanges, OnDestroy, AfterViewInit {\n /** The icon to include in the button. See the icon page for the list of icons. */\n @Input()\n glyph = 'slim-arrow-down';\n\n /** The icon to include in the button. See the icon page for the list of icons. */\n @Input()\n disabled: boolean;\n\n /** @deprecated The Title for main action button. This will be deprecated as an input but will remain a property on this component. */\n @Input()\n mainActionTitle: string;\n\n /** The type of the button. Types include 'standard', 'positive', 'medium', and 'negative'.\n * Leave empty for default (Action button).'*/\n @Input()\n fdType: ButtonType;\n\n /**\n * @deprecated use i18n capabilities instead\n * Aria-label attribute used to describe expand button\n */\n @Input()\n expandButtonAriaLabel: string;\n\n /** Title attribute used to describe expand button */\n @Input()\n expandButtonTitle: string;\n\n /** Selected menu item */\n @Input()\n selected: MenuItemComponent;\n\n /** Whether or not the element should keep a fixed width. The width could change if the text changes length. */\n @Input()\n fixedWidth = true;\n\n /**\n * The object that contains the mainActionTitle, keepMainAction option and the callback function that should be\n * executed when the button is clicked.\n */\n @Input()\n mainAction: MainAction;\n\n /** aria-label attribute */\n @Input()\n arialLabel: string;\n\n /** Event sent when primary button is clicked */\n @Output()\n readonly primaryButtonClicked: EventEmitter<Event> = new EventEmitter<Event>();\n\n /** @hidden */\n @ContentChild(SplitButtonActionTitle, { read: TemplateRef })\n titleTemplate: TemplateRef<any> | null;\n\n /** @hidden */\n @ContentChild(MenuComponent)\n menu: MenuComponent;\n\n /** @hidden */\n @ViewChild('mainActionButton', { read: ElementRef })\n mainActionBtn: ElementRef;\n\n /** @hidden */\n @ViewChild('menuActionButton', { read: ElementRef })\n menuActionBtn: ElementRef;\n\n /** @hidden */\n mainButtonWidth: string;\n\n /** @hidden */\n get typeClass(): string {\n return this.fdType ? `fd-button-split--${this.fdType}` : '';\n }\n\n /** @hidden */\n private _menuItemSubscriptions = new Subscription();\n\n /** @hidden */\n private _menuSubscription = new Subscription();\n\n /** @hidden */\n private _contentDensitySubscription = new Subscription();\n\n /** @hidden */\n private _menuActivePathSubscription = new Subscription();\n\n /** @hidden */\n constructor(\n private _cdRef: ChangeDetectorRef,\n private _destroyRef: DestroyRef,\n private _contentDensityObserver: ContentDensityObserver,\n private _renderer: Renderer2\n ) {}\n\n /** @hidden Emits event when main button is clicked */\n onMainButtonClick(event: MouseEvent): void {\n this.primaryButtonClicked.emit(event);\n if (this.selected) {\n this.selected.elementRef.nativeElement.click();\n } else if (this.mainAction && this.mainAction.callback) {\n this.mainAction.callback();\n }\n event.stopPropagation();\n }\n\n /** @hidden */\n ngAfterContentInit(): void {\n this.menu._menuItems.forEach((item) => {\n item.menuInteractive._fromSplitButton = true;\n });\n this._setupMenuSubscription();\n this._setupMenuItemSubscriptions();\n this._handleMainActionObject();\n\n if (!this.mainActionTitle && !this.titleTemplate && !this.selected) {\n this.selectMenuItem(this.menu._menuItems.first);\n } else if (!this.mainActionTitle && this.selected) {\n this.selectMenuItem(this.selected);\n }\n\n this._menuActivePathSubscription.add(\n this.menu.activePath.subscribe((items) => {\n const lastItem = items[items.length - 1];\n if (lastItem && !lastItem.submenu) {\n this.menu.close();\n this._focusTriggerElement();\n }\n })\n );\n }\n\n /** @hidden */\n ngAfterViewInit(): void {\n this._contentDensityObserver.isCompact$\n .pipe(tap(this._addButtonTextClass), takeUntilDestroyed(this._destroyRef))\n .subscribe();\n }\n\n /** @hidden */\n ngOnChanges(changes: SimpleChanges): void {\n if ('selected' in changes) {\n this.selectMenuItem(this.selected);\n }\n if ('mainAction' in changes) {\n this._handleMainActionObject();\n }\n }\n\n /** @hidden */\n ngOnDestroy(): void {\n this._menuItemSubscriptions.unsubscribe();\n this._menuSubscription.unsubscribe();\n this._contentDensitySubscription.unsubscribe();\n this._menuActivePathSubscription.unsubscribe();\n }\n\n /** Function called to select a menu item for the split button. */\n selectMenuItem(menuItem: MenuItemComponent): void {\n if (menuItem && (!this.mainAction || !this.mainAction.keepMainAction)) {\n menuItem.setSelected(true);\n }\n }\n\n /**\n * Wrapper gets focused programmatically by menu\n * when the \"escape\" button is pressed.\n * In this case we need to transit focus to the \"more actions\" button\n */\n _onGroupFocused(): void {\n this._focusTriggerElement();\n }\n\n /** @hidden */\n private _getMainButtonWidth(): void {\n if (this.mainActionBtn && this.mainActionBtn.nativeElement) {\n this.mainButtonWidth = this.mainActionBtn.nativeElement.getBoundingClientRect().width + 'px';\n }\n }\n\n /** @hidden */\n private _setupMenuItemSubscriptions(): void {\n this.menu._menuItems.forEach((menuItem) => {\n menuItem.onSelect.pipe(first()).subscribe(() => {\n if (this.fixedWidth) {\n this._getMainButtonWidth();\n }\n });\n this._menuItemSubscriptions.add(\n menuItem.onSelect.subscribe(() => {\n this._handleMenuItemSelection(menuItem);\n })\n );\n });\n }\n\n /** @hidden */\n private _handleMenuItemSelection(menuItem: MenuItemComponent): void {\n if (!this.mainAction || !this.mainAction.keepMainAction) {\n this.selected = menuItem;\n this.menu._menuItems.forEach((item) => {\n item.setSelected(false, true);\n });\n menuItem.setSelected(true, true);\n this.titleTemplate = null;\n this.mainActionTitle = menuItem.menuItemTitle.title;\n this._cdRef.detectChanges();\n }\n }\n\n /** @hidden */\n private _setupMenuSubscription(): void {\n this._menuSubscription = this.menu._menuItems.changes.subscribe(() => {\n this._menuItemSubscriptions.unsubscribe();\n this._menuItemSubscriptions.closed = false;\n this._setupMenuItemSubscriptions();\n });\n // call markForCheck once menu open state gets changed\n this._menuSubscription.add(this.menu.isOpenChange.subscribe(() => this._cdRef.markForCheck()));\n }\n\n /** @hidden */\n private _handleMainActionObject(): void {\n if (this.mainAction && typeof this.mainAction.mainActionTitle === 'string') {\n this.mainActionTitle = this.mainAction.mainActionTitle;\n } else if (this.mainAction && this.mainAction.mainActionTitle instanceof TemplateRef) {\n this.titleTemplate = this.mainAction.mainActionTitle;\n }\n }\n\n /** @hidden */\n private _addButtonTextClass = (compact: boolean): void => {\n const textSpanElement = this.mainActionBtn?.nativeElement.querySelector('.fd-button__text');\n if (!textSpanElement) {\n return;\n }\n splitButtonTextClasses.forEach((_class) => this._renderer.removeClass(textSpanElement, _class));\n this._renderer.addClass(textSpanElement, splitButtonTextClass);\n };\n\n /** @hidden */\n private _focusTriggerElement(): void {\n this.menuActionBtn?.nativeElement.focus();\n }\n}\n","<div\n class=\"fd-button-split fd-has-margin-right-small\"\n [ngClass]=\"typeClass\"\n role=\"group\"\n tabindex=\"-1\"\n [attr.aria-label]=\"arialLabel || ('coreSplitButton.arialLabel' | fdTranslate)\"\n [fdMenuTrigger]=\"menu\"\n (focus)=\"_onGroupFocused()\"\n>\n <button\n fd-button\n #mainActionButton\n [label]=\"mainActionTitle\"\n [style.width]=\"mainButtonWidth\"\n [fdType]=\"fdType\"\n [disabled]=\"disabled\"\n (click)=\"onMainButtonClick($event)\"\n >\n <ng-container *ngTemplateOutlet=\"titleTemplate\"></ng-container>\n </button>\n\n <button\n fd-button\n #menuActionButton\n [glyph]=\"glyph\"\n [fdType]=\"fdType\"\n [disabled]=\"disabled\"\n [ariaLabel]=\"expandButtonAriaLabel || ('coreSplitButton.expandButtonAriaLabel' | fdTranslate)\"\n [attr.title]=\"\n expandButtonTitle || expandButtonAriaLabel || ('coreSplitButton.expandButtonAriaLabel' | fdTranslate)\n \"\n [class.is-active]=\"menu.isOpen\"\n ></button>\n <ng-content select=\"fd-menu\"></ng-content>\n</div>\n","import { CONTENT_DENSITY_DIRECTIVE, DeprecatedCompactDirective } from '@fundamental-ngx/core/content-density';\nimport { Directive, forwardRef } from '@angular/core';\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: 'fd-split-button[compact]',\n providers: [\n {\n provide: CONTENT_DENSITY_DIRECTIVE,\n useExisting: forwardRef(() => DeprecatedSplitButtonCompactDirective)\n }\n ]\n})\nexport class DeprecatedSplitButtonCompactDirective extends DeprecatedCompactDirective {\n /** @hidden */\n constructor() {\n super('fd-split-button');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { SplitButtonComponent } from './split-button.component';\nimport { ButtonModule } from '@fundamental-ngx/core/button';\nimport { I18nModule } from '@fundamental-ngx/i18n';\nimport { SplitButtonActionTitle } from './split-button-utils/split-button.directives';\nimport { MenuModule } from '@fundamental-ngx/core/menu';\nimport { ContentDensityModule } from '@fundamental-ngx/core/content-density';\nimport { DeprecatedSplitButtonCompactDirective } from './deprecated-split-button-compact.directive';\n\n@NgModule({\n imports: [CommonModule, ButtonModule, MenuModule, ContentDensityModule, I18nModule],\n declarations: [SplitButtonComponent, SplitButtonActionTitle, DeprecatedSplitButtonCompactDirective],\n exports: [SplitButtonComponent, SplitButtonActionTitle, ContentDensityModule, DeprecatedSplitButtonCompactDirective]\n})\nexport class SplitButtonModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;AAwBG;AAMH;MACa,sBAAsB,CAAA;8GAAtB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAtB,sBAAsB,EAAA,QAAA,EAAA,gCAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;2FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBANlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;;;AAGP,oBAAA,QAAQ,EAAE,gCAAgC;AAC7C,iBAAA,CAAA;;;ACDM,MAAM,oBAAoB,GAAG,wBAAwB;AAC5D,MAAM,sBAAsB,GAAG,CAAC,oBAAoB,CAAC,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;AAoBG;MASU,oBAAoB,CAAA;;AAwE7B,IAAA,IAAI,SAAS,GAAA;AACT,QAAA,OAAO,IAAI,CAAC,MAAM,GAAG,CAAA,iBAAA,EAAoB,IAAI,CAAC,MAAM,CAAE,CAAA,GAA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