@liquid-js/lyr-core 22.0.0-alpha.0 → 22.0.0-alpha.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.
- package/components/accordion/accordion-item-body.component.html +7 -0
- package/components/accordion/accordion-item-body.component.scss +4 -0
- package/components/file-drop/file-drop.component.scss +5 -1
- package/components/menu/menu-item.component.html +16 -14
- package/fesm2022/liquid-js-lyr-core-accordion.mjs +83 -14
- package/fesm2022/liquid-js-lyr-core-accordion.mjs.map +1 -1
- package/fesm2022/liquid-js-lyr-core-base.mjs +51 -3
- package/fesm2022/liquid-js-lyr-core-base.mjs.map +1 -1
- package/fesm2022/liquid-js-lyr-core-button.mjs +5 -2
- package/fesm2022/liquid-js-lyr-core-button.mjs.map +1 -1
- package/fesm2022/liquid-js-lyr-core-chat.mjs +1 -1
- package/fesm2022/liquid-js-lyr-core-chat.mjs.map +1 -1
- package/fesm2022/liquid-js-lyr-core-checkbox.mjs +2 -2
- package/fesm2022/liquid-js-lyr-core-checkbox.mjs.map +1 -1
- package/fesm2022/liquid-js-lyr-core-context-menu.mjs +1 -0
- package/fesm2022/liquid-js-lyr-core-context-menu.mjs.map +1 -1
- package/fesm2022/liquid-js-lyr-core-datepicker.mjs +7 -5
- package/fesm2022/liquid-js-lyr-core-datepicker.mjs.map +1 -1
- package/fesm2022/liquid-js-lyr-core-dialog.mjs +13 -4
- package/fesm2022/liquid-js-lyr-core-dialog.mjs.map +1 -1
- package/fesm2022/liquid-js-lyr-core-file-drop.mjs +9 -6
- package/fesm2022/liquid-js-lyr-core-file-drop.mjs.map +1 -1
- package/fesm2022/liquid-js-lyr-core-form-field.mjs +1 -1
- package/fesm2022/liquid-js-lyr-core-form-field.mjs.map +1 -1
- package/fesm2022/liquid-js-lyr-core-input.mjs +8 -5
- package/fesm2022/liquid-js-lyr-core-input.mjs.map +1 -1
- package/fesm2022/liquid-js-lyr-core-menu.mjs +52 -4
- package/fesm2022/liquid-js-lyr-core-menu.mjs.map +1 -1
- package/fesm2022/liquid-js-lyr-core-radio.mjs +1 -1
- package/fesm2022/liquid-js-lyr-core-radio.mjs.map +1 -1
- package/fesm2022/liquid-js-lyr-core-select.mjs +25 -15
- package/fesm2022/liquid-js-lyr-core-select.mjs.map +1 -1
- package/fesm2022/liquid-js-lyr-core-slider.mjs +5 -2
- package/fesm2022/liquid-js-lyr-core-slider.mjs.map +1 -1
- package/fesm2022/liquid-js-lyr-core-timepicker.mjs +1 -1
- package/fesm2022/liquid-js-lyr-core-timepicker.mjs.map +1 -1
- package/fesm2022/liquid-js-lyr-core-toggle.mjs +2 -2
- package/fesm2022/liquid-js-lyr-core-toggle.mjs.map +1 -1
- package/package.json +1 -1
- package/schematics/ng-add/index.js +2 -2
- package/schematics/util/package.js +10 -1
- package/types/liquid-js-lyr-core-accordion.d.ts +28 -3
- package/types/liquid-js-lyr-core-base.d.ts +11 -4
- package/types/liquid-js-lyr-core-dialog.d.ts +11 -4
- package/types/liquid-js-lyr-core-menu.d.ts +42 -1
- package/types/liquid-js-lyr-core-select.d.ts +2 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { ChangeDetectorRef, Component, DestroyRef, Directive, ElementRef, InjectionToken, NgModule, PLATFORM_ID, Renderer2, computed, contentChildren, effect, forwardRef, inject, input, linkedSignal, numberAttribute, output, signal, untracked } from "@angular/core";
|
|
3
|
-
import { NB_DOCUMENT, NbStatusService, injectNbDefaults, ɵconvertToBoolProperty, ɵenableTransitionsAfterRender } from "@liquid-js/lyr-core/base";
|
|
3
|
+
import { NB_DOCUMENT, NbStatusService, injectNbDefaults, ɵconvertToBoolProperty, ɵenableTransitionsAfterRender, ɵsameControlValue } from "@liquid-js/lyr-core/base";
|
|
4
4
|
import { ɵNbIconRef } from "@liquid-js/lyr-core/icon";
|
|
5
5
|
import { isPlatformBrowser } from "@angular/common";
|
|
6
6
|
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
@@ -772,7 +772,10 @@ var NbButtonGroupComponent = class NbButtonGroupComponent {
|
|
|
772
772
|
this.onTouched = fn;
|
|
773
773
|
}
|
|
774
774
|
writeValue(value) {
|
|
775
|
-
|
|
775
|
+
untracked(() => {
|
|
776
|
+
const next = value ?? null;
|
|
777
|
+
if (!ɵsameControlValue(this.valueState(), next)) this.valueState.set(next);
|
|
778
|
+
});
|
|
776
779
|
}
|
|
777
780
|
setDisabledState(isDisabled) {
|
|
778
781
|
this.isDisabled.set(isDisabled);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"liquid-js-lyr-core-button.mjs","names":["convertToBoolProperty","NbIconRef","enableTransitionsAfterRender","convertToBoolProperty","convertToBoolProperty","convertToBoolProperty"],"sources":["../../../packages/core/src/components/button-group/button-group-injection-tokens.ts","../../../packages/core/src/components/button/base-button.ts","../../../packages/core/src/components/button/button.component.ts","../../../packages/core/src/components/button/button.module.ts","../../../packages/core/src/components/button-group/button-toggle.directive.ts","../../../packages/core/src/components/button-group/button-group.component.ts","../../../packages/core/src/components/button-group/button-group.module.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core'\nimport type { NbButtonGroupComponent } from './button-group.component'\n\nexport const NB_BUTTON_GROUP = new InjectionToken<NbButtonGroupComponent>('NB_BUTTON_GROUP')\n","import {\n AfterContentChecked,\n ChangeDetectorRef,\n computed,\n contentChildren,\n Directive,\n ElementRef,\n EmbeddedViewRef,\n inject,\n input,\n linkedSignal,\n Signal,\n signal,\n numberAttribute\n} from '@angular/core'\n\nimport { injectNbDefaults, NbStatusService, ɵconvertToBoolProperty as convertToBoolProperty, NbBooleanInput, NbComponentSize, NbComponentOrCustomStatus, NbComponentShape, ɵenableTransitionsAfterRender as enableTransitionsAfterRender, type NbButtonAppearance } from '@liquid-js/lyr-core/base'\nimport { ɵNbIconRef as NbIconRef } from '@liquid-js/lyr-core/icon'\nimport { NB_BUTTON_GROUP } from '../button-group/button-group-injection-tokens'\n\n/** The side of a button that lines up with the content around it, as `edge` sets it. */\nexport type NbButtonEdge = 'start' | 'end'\n\nexport interface NbButtonProperties {\n appearance: NbButtonAppearance\n size: NbComponentSize\n shape: NbComponentShape\n status: NbComponentOrCustomStatus\n disabled: boolean\n}\n\n/**\n * Properties shared by buttons and button toggles. Inside `nb-button-group`, the group's `appearance`, `size`,\n * `shape` and `status` replace the button's own, and the button is disabled when either of them is.\n */\n@Directive({\n host: {\n '[class]': 'hostClasses()',\n '[class.full-width]': 'fullWidth()',\n '[class.icon-start]': 'iconStart()',\n '[class.icon-end]': 'iconEnd()',\n '[class.edge-start]': \"edge() === 'start'\",\n '[class.edge-end]': \"edge() === 'end'\",\n '[class.btn-inline]': 'inline()',\n '[class.btn-disabled]': 'properties().disabled',\n '[class.btn-loading]': 'isBusy()',\n '[attr.aria-busy]': 'isBusy() || null',\n '[attr.aria-disabled]': 'properties().disabled || isBusy()',\n '[attr.disabled]': 'properties().disabled || null',\n // A disabled button is skipped by Tab.\n '[attr.tabindex]': 'tabbable()'\n }\n})\nexport abstract class NbButton<A extends NbButtonAppearance = NbButtonAppearance>\nimplements AfterContentChecked {\n // The app's defaults for this type, which the inputs below start from.\n protected readonly nbDefaults = injectNbDefaults('button')\n\n protected readonly hostElement = inject<ElementRef<HTMLElement>>(ElementRef)\n protected readonly cd = inject(ChangeDetectorRef)\n protected readonly statusService = inject(NbStatusService)\n protected readonly group = inject(NB_BUTTON_GROUP, { optional: true })\n\n /**\n * Button size: `tiny`, `small`, `medium`, `large` or `giant`. Unset, it follows the app's default, or `medium`.\n */\n readonly sizeInput = input<NbComponentSize | undefined>(undefined, { alias: 'size' })\n /** The size in use: the input's, the app's default, or 'medium'. */\n readonly size = linkedSignal<NbComponentSize>(() => this.sizeInput() ?? this.nbDefaults().size ?? 'medium')\n\n /**\n * Button status: `basic` (default), `primary`, `info`, `success`, `warning`, `danger`, `control` or a custom one.\n */\n readonly status = input<NbComponentOrCustomStatus>('basic')\n\n /**\n * Button shape: `rectangle`, `semi-round` or `round`. Unset, it follows the app's default, or `rectangle`.\n */\n readonly shapeInput = input<NbComponentShape | undefined>(undefined, { alias: 'shape' })\n /** The shape in use: the input's, the app's default, or 'rectangle'. */\n readonly shape = linkedSignal<NbComponentShape>(() => this.shapeInput() ?? this.nbDefaults().shape ?? 'rectangle')\n\n /**\n * Button appearance: `filled`, `outline`, `ghost` or, for `nbButton` only, `hero`. Unset, it follows the app's\n * default, or `filled`.\n */\n readonly appearanceInput = input<A | undefined>(undefined, { alias: 'appearance' })\n /** The appearance in use: the input's, or the app's default for buttons, or `filled`. */\n readonly appearance = linkedSignal<A>(\n () => this.appearanceInput() ?? this.defaultAppearance(this.nbDefaults().appearance)\n )\n\n /**\n * Sets the `filled` appearance, over `appearance`.\n */\n readonly filled = input<boolean, NbBooleanInput>(false, { transform: convertToBoolProperty })\n\n /**\n * Sets the `outline` appearance, over `appearance` and `filled`.\n */\n readonly outline = input<boolean, NbBooleanInput>(false, { transform: convertToBoolProperty })\n\n /**\n * Sets the `ghost` appearance, over `appearance`, `filled` and `outline`.\n */\n readonly ghost = input<boolean, NbBooleanInput>(false, { transform: convertToBoolProperty })\n\n /**\n * Fills the width of the container.\n */\n readonly fullWidth = input<boolean, NbBooleanInput>(false, { transform: convertToBoolProperty })\n\n /**\n * Lines up the button's label or icon, instead of its box, with the content around it, at its `start` or `end`: the\n * button reaches past that side by as much as its content is inset, e.g. a ghost button at the end of a card header,\n * whose icon then ends where the header's text does. It follows the page's direction, and the button's size.\n */\n readonly edge = input<NbButtonEdge>()\n\n /**\n * Takes no more room in a row than its label does, as text would: its box reaches above and below into the space\n * around it, e.g. in a card header, which then is as tall as with its title alone. For a ghost button, whose box shows\n * only when hovered or pressed; with `edge`, it lines up as text would on every side.\n */\n readonly inline = input<boolean, NbBooleanInput>(false, { transform: convertToBoolProperty })\n\n /**\n * Disables the button, an `a` too: it ignores clicks, is skipped by Tab and is `aria-disabled`.\n */\n readonly disabled = input<boolean, NbBooleanInput>(false, { transform: convertToBoolProperty })\n\n /**\n * Tabindex of the button, e.g. `tabIndex=\"-1\"`, as a select's.\n */\n readonly tabIndex = input<number | undefined, unknown>(undefined, {\n transform: (value: unknown) => (value == null || value === '' ? undefined : numberAttribute(value))\n })\n\n /**\n * The properties the button renders with: its own, or its group's.\n */\n readonly properties: Signal<NbButtonProperties> = computed(() => {\n const groupProperties = this.group?.buttonProperties()\n if (groupProperties) {\n return { ...groupProperties, disabled: groupProperties.disabled || this.disabled() }\n }\n return {\n appearance: this.appearanceFlag() ?? this.appearance(),\n size: this.size(),\n shape: this.shape(),\n status: this.status(),\n disabled: this.disabled()\n }\n })\n\n /** The appearance the button starts with: the app's default for buttons, or `filled`. */\n protected defaultAppearance(appearance?: NbButtonAppearance): A {\n return (appearance ?? 'filled') as A\n }\n\n protected readonly icons = contentChildren(NbIconRef, { read: ElementRef })\n protected readonly iconStart = signal(false)\n protected readonly iconEnd = signal(false)\n\n protected readonly tabbable = computed(() => {\n if (this.properties().disabled) {\n return '-1'\n }\n return String(this.tabIndex() ?? 0)\n })\n\n protected readonly hostClasses = computed(() => {\n const { appearance, size, shape } = this.properties()\n const classes = [`appearance-${appearance}`, `size-${size}`, `shape-${shape}`, ...this.statusClasses()]\n return classes.filter(Boolean)\n })\n\n /**\n * The appearance set with a boolean input such as `outline`, if any.\n */\n protected appearanceFlag(): NbButtonAppearance | undefined {\n if (this.ghost()) {\n return 'ghost'\n }\n if (this.outline()) {\n return 'outline'\n }\n if (this.filled()) {\n return 'filled'\n }\n return undefined\n }\n\n /**\n * Whether the button is busy with an action: it shows a spinner and ignores clicks, but stays focusable.\n */\n protected isBusy() {\n return false\n }\n\n protected statusClasses(): Array<string | undefined> {\n return [this.statusService.getStatusClass(this.properties().status)]\n }\n\n constructor() {\n enableTransitionsAfterRender(this.hostElement.nativeElement)\n }\n\n ngAfterContentChecked() {\n // Runs before the host bindings are checked, so they see the icons the content renders this time.\n const nodes = this.nodes\n this.iconStart.set(this.isIconExist(nodes[0]))\n this.iconEnd.set(this.isIconExist(nodes[nodes.length - 1]))\n }\n\n get iconElement() {\n const el = this.hostElement.nativeElement\n return el.querySelector('nb-icon')\n }\n\n protected get nodes(): Node[] {\n // The change detector of a component is its host view.\n const view = this.cd as EmbeddedViewRef<unknown>\n return view.rootNodes.filter((child: Node) => child.nodeType !== Node.COMMENT_NODE)\n }\n\n protected isIconExist(node: Node): boolean {\n return this.icons().some((item) => item.nativeElement === node)\n }\n}\n","import { Component, DestroyRef, inject, input, Renderer2 } from '@angular/core'\n\nimport { ɵconvertToBoolProperty as convertToBoolProperty, NbBooleanInput } from '@liquid-js/lyr-core/base'\nimport { NbButton } from './base-button'\n\n/**\n * Basic button component.\n *\n * Default button size is `medium` and status color is `basic`:\n *\n * @stacked-example(Button Showcase, button/button-showcase.component)\n *\n * ```html\n * <button nbButton></button>\n * ```\n * ### Installation\n *\n * Import `NbButtonComponent` into your standalone component:\n * ```ts\n * @Component({\n * imports: [NbButtonComponent],\n * })\n * export class PageComponent { }\n * ```\n *\n * With NgModules:\n *\n * Import `NbButtonModule` to your feature module.\n * ```ts\n * @NgModule({\n * imports: [\n * // ...\n * NbButtonModule,\n * ],\n * })\n * export class PageModule { }\n * ```\n * ### Usage\n *\n * Buttons are coloured by their `status`:\n * @stacked-example(Button Colors, button/button-colors.component.html)\n *\n * They come in five sizes, from `tiny` to `giant`:\n * @stacked-example(Button Sizes, button/button-sizes.component.html)\n *\n * Besides the default `filled` appearance there are `outline` and `ghost`:\n * @stacked-example(Outline Buttons, button/button-outline.component.html)\n *\n * and `hero`, with a gradient and a glow:\n * @stacked-example(Button Hero, button/button-hero.component.html)\n *\n * The shapes combine with the other properties:\n * @stacked-example(Button Shapes, button/button-shapes.component)\n *\n * `nbButton` applies to `button`, `input[type=\"button\"]`, `input[type=\"submit\"]` and `a`:\n * @stacked-example(Button Elements, button/button-types.component.html)\n *\n * A `fullWidth` button fills its container:\n * @stacked-example(Full Width Button, button/button-full-width.component.html)\n *\n * An icon at the start or the end of the content gets its spacing from the text, and a button with an icon alone is\n * padded for it:\n * @stacked-example(Icon Button, button/button-icon.component.html)\n *\n * A ghost button shows its box only when hovered or pressed, so at the edge of a card, a header or a list item its\n * label or icon should line up with the text around it, as text would. `edge=\"start\"` or `edge=\"end\"` does that: the\n * button reaches past that side by as much as its content is inset, for its size and in either direction of the page.\n * `inline` does the same above and below: the button takes no more room in its row than its label, so a header or a\n * footer is as tall as with text alone.\n * ```html\n * <nb-card-footer>\n * <button nbButton ghost inline edge=\"start\">Back</button>\n * <button nbButton ghost inline edge=\"end\">Next</button>\n * </nb-card-footer>\n * ```\n *\n * Set `loading` while the action the button started runs. The button shows a spinner in place of its content,\n * keeps its size and focus, ignores clicks, and tells assistive technology it is busy:\n * @stacked-example(Loading Button, button/button-loading.component)\n * @additional-example(Interactive example, button/button-interactive.component)\n * @styles\n *\n * button-cursor:\n * button-outline-width:\n * button-outline-color:\n * button-text-font-family:\n * button-text-font-weight:\n * button-disabled-cursor:\n * button-loading-cursor:\n * button-spinner-border-width:\n * button-tiny-text-font-size:\n * button-tiny-text-line-height:\n * button-tiny-icon-size:\n * button-tiny-icon-vertical-margin:\n * button-tiny-icon-offset:\n * button-small-text-font-size:\n * button-small-text-line-height:\n * button-small-icon-size:\n * button-small-icon-vertical-margin:\n * button-small-icon-offset:\n * button-medium-text-font-size:\n * button-medium-text-line-height:\n * button-medium-icon-size:\n * button-medium-icon-vertical-margin:\n * button-medium-icon-offset:\n * button-large-text-font-size:\n * button-large-text-line-height:\n * button-large-icon-size:\n * button-large-icon-vertical-margin:\n * button-large-icon-offset:\n * button-giant-text-font-size:\n * button-giant-text-line-height:\n * button-giant-icon-size:\n * button-giant-icon-vertical-margin:\n * button-giant-icon-offset:\n * button-rectangle-border-radius:\n * button-semi-round-border-radius:\n * button-round-border-radius:\n * button-filled-border-style:\n * button-filled-border-width:\n * button-filled-text-transform:\n * button-filled-tiny-padding:\n * icon-button-filled-tiny-padding:\n * button-filled-small-padding:\n * icon-button-filled-small-padding:\n * button-filled-medium-padding:\n * icon-button-filled-medium-padding:\n * button-filled-large-padding:\n * icon-button-filled-large-padding:\n * button-filled-giant-padding:\n * icon-button-filled-giant-padding:\n * button-filled-basic-background-color:\n * button-filled-basic-border-color:\n * button-filled-basic-text-color:\n * button-filled-basic-focus-background-color:\n * button-filled-basic-focus-border-color:\n * button-filled-basic-hover-background-color:\n * button-filled-basic-hover-border-color:\n * button-filled-basic-active-background-color:\n * button-filled-basic-active-border-color:\n * button-filled-basic-disabled-background-color:\n * button-filled-basic-disabled-border-color:\n * button-filled-basic-disabled-text-color:\n * button-filled-primary-background-color:\n * button-filled-primary-border-color:\n * button-filled-primary-text-color:\n * button-filled-primary-focus-background-color:\n * button-filled-primary-focus-border-color:\n * button-filled-primary-hover-background-color:\n * button-filled-primary-hover-border-color:\n * button-filled-primary-active-background-color:\n * button-filled-primary-active-border-color:\n * button-filled-primary-disabled-background-color:\n * button-filled-primary-disabled-border-color:\n * button-filled-primary-disabled-text-color:\n * button-filled-success-background-color:\n * button-filled-success-border-color:\n * button-filled-success-text-color:\n * button-filled-success-focus-background-color:\n * button-filled-success-focus-border-color:\n * button-filled-success-hover-background-color:\n * button-filled-success-hover-border-color:\n * button-filled-success-active-background-color:\n * button-filled-success-active-border-color:\n * button-filled-success-disabled-background-color:\n * button-filled-success-disabled-border-color:\n * button-filled-success-disabled-text-color:\n * button-filled-info-background-color:\n * button-filled-info-border-color:\n * button-filled-info-text-color:\n * button-filled-info-focus-background-color:\n * button-filled-info-focus-border-color:\n * button-filled-info-hover-background-color:\n * button-filled-info-hover-border-color:\n * button-filled-info-active-background-color:\n * button-filled-info-active-border-color:\n * button-filled-info-disabled-background-color:\n * button-filled-info-disabled-border-color:\n * button-filled-info-disabled-text-color:\n * button-filled-warning-background-color:\n * button-filled-warning-border-color:\n * button-filled-warning-text-color:\n * button-filled-warning-focus-background-color:\n * button-filled-warning-focus-border-color:\n * button-filled-warning-hover-background-color:\n * button-filled-warning-hover-border-color:\n * button-filled-warning-active-background-color:\n * button-filled-warning-active-border-color:\n * button-filled-warning-disabled-background-color:\n * button-filled-warning-disabled-border-color:\n * button-filled-warning-disabled-text-color:\n * button-filled-danger-background-color:\n * button-filled-danger-border-color:\n * button-filled-danger-text-color:\n * button-filled-danger-focus-background-color:\n * button-filled-danger-focus-border-color:\n * button-filled-danger-hover-background-color:\n * button-filled-danger-hover-border-color:\n * button-filled-danger-active-background-color:\n * button-filled-danger-active-border-color:\n * button-filled-danger-disabled-background-color:\n * button-filled-danger-disabled-border-color:\n * button-filled-danger-disabled-text-color:\n * button-filled-control-background-color:\n * button-filled-control-border-color:\n * button-filled-control-text-color:\n * button-filled-control-focus-background-color:\n * button-filled-control-focus-border-color:\n * button-filled-control-hover-background-color:\n * button-filled-control-hover-border-color:\n * button-filled-control-active-background-color:\n * button-filled-control-active-border-color:\n * button-filled-control-disabled-background-color:\n * button-filled-control-disabled-border-color:\n * button-filled-control-disabled-text-color:\n * button-outline-border-style:\n * button-outline-border-width:\n * button-outline-text-transform:\n * button-outline-focus-inset-shadow-length:\n * button-outline-tiny-padding:\n * icon-button-outline-tiny-padding:\n * button-outline-small-padding:\n * icon-button-outline-small-padding:\n * button-outline-medium-padding:\n * icon-button-outline-medium-padding:\n * button-outline-large-padding:\n * icon-button-outline-large-padding:\n * button-outline-giant-padding:\n * icon-button-outline-giant-padding:\n * button-outline-basic-background-color:\n * button-outline-basic-border-color:\n * button-outline-basic-text-color:\n * button-outline-basic-focus-background-color:\n * button-outline-basic-focus-border-color:\n * button-outline-basic-focus-text-color:\n * button-outline-basic-hover-background-color:\n * button-outline-basic-hover-border-color:\n * button-outline-basic-hover-text-color:\n * button-outline-basic-active-background-color:\n * button-outline-basic-active-border-color:\n * button-outline-basic-active-text-color:\n * button-outline-basic-disabled-background-color:\n * button-outline-basic-disabled-border-color:\n * button-outline-basic-disabled-text-color:\n * button-outline-primary-background-color:\n * button-outline-primary-border-color:\n * button-outline-primary-text-color:\n * button-outline-primary-focus-background-color:\n * button-outline-primary-focus-border-color:\n * button-outline-primary-focus-text-color:\n * button-outline-primary-hover-background-color:\n * button-outline-primary-hover-border-color:\n * button-outline-primary-hover-text-color:\n * button-outline-primary-active-background-color:\n * button-outline-primary-active-border-color:\n * button-outline-primary-active-text-color:\n * button-outline-primary-disabled-background-color:\n * button-outline-primary-disabled-border-color:\n * button-outline-primary-disabled-text-color:\n * button-outline-success-background-color:\n * button-outline-success-border-color:\n * button-outline-success-text-color:\n * button-outline-success-focus-background-color:\n * button-outline-success-focus-border-color:\n * button-outline-success-focus-text-color:\n * button-outline-success-hover-background-color:\n * button-outline-success-hover-border-color:\n * button-outline-success-hover-text-color:\n * button-outline-success-active-background-color:\n * button-outline-success-active-border-color:\n * button-outline-success-active-text-color:\n * button-outline-success-disabled-background-color:\n * button-outline-success-disabled-border-color:\n * button-outline-success-disabled-text-color:\n * button-outline-info-background-color:\n * button-outline-info-border-color:\n * button-outline-info-text-color:\n * button-outline-info-focus-background-color:\n * button-outline-info-focus-border-color:\n * button-outline-info-focus-text-color:\n * button-outline-info-hover-background-color:\n * button-outline-info-hover-border-color:\n * button-outline-info-hover-text-color:\n * button-outline-info-active-background-color:\n * button-outline-info-active-border-color:\n * button-outline-info-active-text-color:\n * button-outline-info-disabled-background-color:\n * button-outline-info-disabled-border-color:\n * button-outline-info-disabled-text-color:\n * button-outline-warning-background-color:\n * button-outline-warning-border-color:\n * button-outline-warning-text-color:\n * button-outline-warning-focus-background-color:\n * button-outline-warning-focus-border-color:\n * button-outline-warning-focus-text-color:\n * button-outline-warning-hover-background-color:\n * button-outline-warning-hover-border-color:\n * button-outline-warning-hover-text-color:\n * button-outline-warning-active-background-color:\n * button-outline-warning-active-border-color:\n * button-outline-warning-active-text-color:\n * button-outline-warning-disabled-background-color:\n * button-outline-warning-disabled-border-color:\n * button-outline-warning-disabled-text-color:\n * button-outline-danger-background-color:\n * button-outline-danger-border-color:\n * button-outline-danger-text-color:\n * button-outline-danger-focus-background-color:\n * button-outline-danger-focus-border-color:\n * button-outline-danger-focus-text-color:\n * button-outline-danger-hover-background-color:\n * button-outline-danger-hover-border-color:\n * button-outline-danger-hover-text-color:\n * button-outline-danger-active-background-color:\n * button-outline-danger-active-border-color:\n * button-outline-danger-active-text-color:\n * button-outline-danger-disabled-background-color:\n * button-outline-danger-disabled-border-color:\n * button-outline-danger-disabled-text-color:\n * button-outline-control-background-color:\n * button-outline-control-border-color:\n * button-outline-control-text-color:\n * button-outline-control-focus-background-color:\n * button-outline-control-focus-border-color:\n * button-outline-control-focus-text-color:\n * button-outline-control-hover-background-color:\n * button-outline-control-hover-border-color:\n * button-outline-control-hover-text-color:\n * button-outline-control-active-background-color:\n * button-outline-control-active-border-color:\n * button-outline-control-active-text-color:\n * button-outline-control-disabled-background-color:\n * button-outline-control-disabled-border-color:\n * button-outline-control-disabled-text-color:\n * button-ghost-background-color:\n * button-ghost-border-color:\n * button-ghost-border-style:\n * button-ghost-border-width:\n * button-ghost-text-transform:\n * button-ghost-focus-inset-shadow-length:\n * button-ghost-tiny-padding:\n * icon-button-ghost-tiny-padding:\n * button-ghost-small-padding:\n * icon-button-ghost-small-padding:\n * button-ghost-medium-padding:\n * icon-button-ghost-medium-padding:\n * button-ghost-large-padding:\n * icon-button-ghost-large-padding:\n * button-ghost-giant-padding:\n * icon-button-ghost-giant-padding:\n * button-ghost-basic-text-color:\n * button-ghost-basic-focus-background-color:\n * button-ghost-basic-focus-border-color:\n * button-ghost-basic-focus-text-color:\n * button-ghost-basic-hover-background-color:\n * button-ghost-basic-hover-border-color:\n * button-ghost-basic-hover-text-color:\n * button-ghost-basic-active-background-color:\n * button-ghost-basic-active-border-color:\n * button-ghost-basic-active-text-color:\n * button-ghost-basic-disabled-background-color:\n * button-ghost-basic-disabled-border-color:\n * button-ghost-basic-disabled-text-color:\n * button-ghost-primary-text-color:\n * button-ghost-primary-focus-background-color:\n * button-ghost-primary-focus-border-color:\n * button-ghost-primary-focus-text-color:\n * button-ghost-primary-hover-background-color:\n * button-ghost-primary-hover-border-color:\n * button-ghost-primary-hover-text-color:\n * button-ghost-primary-active-background-color:\n * button-ghost-primary-active-border-color:\n * button-ghost-primary-active-text-color:\n * button-ghost-primary-disabled-background-color:\n * button-ghost-primary-disabled-border-color:\n * button-ghost-primary-disabled-text-color:\n * button-ghost-success-text-color:\n * button-ghost-success-focus-background-color:\n * button-ghost-success-focus-border-color:\n * button-ghost-success-focus-text-color:\n * button-ghost-success-hover-background-color:\n * button-ghost-success-hover-border-color:\n * button-ghost-success-hover-text-color:\n * button-ghost-success-active-background-color:\n * button-ghost-success-active-border-color:\n * button-ghost-success-active-text-color:\n * button-ghost-success-disabled-background-color:\n * button-ghost-success-disabled-border-color:\n * button-ghost-success-disabled-text-color:\n * button-ghost-info-text-color:\n * button-ghost-info-focus-background-color:\n * button-ghost-info-focus-border-color:\n * button-ghost-info-focus-text-color:\n * button-ghost-info-hover-background-color:\n * button-ghost-info-hover-border-color:\n * button-ghost-info-hover-text-color:\n * button-ghost-info-active-background-color:\n * button-ghost-info-active-border-color:\n * button-ghost-info-active-text-color:\n * button-ghost-info-disabled-background-color:\n * button-ghost-info-disabled-border-color:\n * button-ghost-info-disabled-text-color:\n * button-ghost-warning-text-color:\n * button-ghost-warning-focus-background-color:\n * button-ghost-warning-focus-border-color:\n * button-ghost-warning-focus-text-color:\n * button-ghost-warning-hover-background-color:\n * button-ghost-warning-hover-border-color:\n * button-ghost-warning-hover-text-color:\n * button-ghost-warning-active-background-color:\n * button-ghost-warning-active-border-color:\n * button-ghost-warning-active-text-color:\n * button-ghost-warning-disabled-background-color:\n * button-ghost-warning-disabled-border-color:\n * button-ghost-warning-disabled-text-color:\n * button-ghost-danger-text-color:\n * button-ghost-danger-focus-background-color:\n * button-ghost-danger-focus-border-color:\n * button-ghost-danger-focus-text-color:\n * button-ghost-danger-hover-background-color:\n * button-ghost-danger-hover-border-color:\n * button-ghost-danger-hover-text-color:\n * button-ghost-danger-active-background-color:\n * button-ghost-danger-active-border-color:\n * button-ghost-danger-active-text-color:\n * button-ghost-danger-disabled-background-color:\n * button-ghost-danger-disabled-border-color:\n * button-ghost-danger-disabled-text-color:\n * button-ghost-control-text-color:\n * button-ghost-control-focus-background-color:\n * button-ghost-control-focus-border-color:\n * button-ghost-control-focus-text-color:\n * button-ghost-control-hover-background-color:\n * button-ghost-control-hover-border-color:\n * button-ghost-control-hover-text-color:\n * button-ghost-control-active-background-color:\n * button-ghost-control-active-border-color:\n * button-ghost-control-active-text-color:\n * button-ghost-control-disabled-background-color:\n * button-ghost-control-disabled-border-color:\n * button-ghost-control-disabled-text-color:\n * button-hero-border-color:\n * button-hero-border-style:\n * button-hero-border-width:\n * button-hero-text-transform:\n * button-hero-tiny-padding:\n * icon-button-hero-tiny-padding:\n * button-hero-small-padding:\n * icon-button-hero-small-padding:\n * button-hero-medium-padding:\n * icon-button-hero-medium-padding:\n * button-hero-large-padding:\n * icon-button-hero-large-padding:\n * button-hero-giant-padding:\n * icon-button-hero-giant-padding:\n * button-hero-shadow:\n * button-hero-text-shadow:\n * button-hero-bevel-size:\n * button-hero-glow-size:\n * button-hero-outline-color:\n * button-hero-outline-width:\n * button-hero-basic-text-color:\n * button-hero-basic-bevel-color:\n * button-hero-basic-glow-color:\n * button-hero-basic-left-background-color:\n * button-hero-basic-right-background-color:\n * button-hero-basic-focus-left-background-color:\n * button-hero-basic-focus-right-background-color:\n * button-hero-basic-hover-left-background-color:\n * button-hero-basic-hover-right-background-color:\n * button-hero-basic-active-left-background-color:\n * button-hero-basic-active-right-background-color:\n * button-hero-basic-disabled-background-color:\n * button-hero-basic-disabled-text-color:\n * button-hero-primary-text-color:\n * button-hero-primary-bevel-color:\n * button-hero-primary-glow-color:\n * button-hero-primary-left-background-color:\n * button-hero-primary-right-background-color:\n * button-hero-primary-focus-left-background-color:\n * button-hero-primary-focus-right-background-color:\n * button-hero-primary-hover-left-background-color:\n * button-hero-primary-hover-right-background-color:\n * button-hero-primary-active-left-background-color:\n * button-hero-primary-active-right-background-color:\n * button-hero-primary-disabled-background-color:\n * button-hero-primary-disabled-text-color:\n * button-hero-success-text-color:\n * button-hero-success-bevel-color:\n * button-hero-success-glow-color:\n * button-hero-success-left-background-color:\n * button-hero-success-right-background-color:\n * button-hero-success-focus-left-background-color:\n * button-hero-success-focus-right-background-color:\n * button-hero-success-hover-left-background-color:\n * button-hero-success-hover-right-background-color:\n * button-hero-success-active-left-background-color:\n * button-hero-success-active-right-background-color:\n * button-hero-success-disabled-background-color:\n * button-hero-success-disabled-text-color:\n * button-hero-info-text-color:\n * button-hero-info-bevel-color:\n * button-hero-info-glow-color:\n * button-hero-info-left-background-color:\n * button-hero-info-right-background-color:\n * button-hero-info-focus-left-background-color:\n * button-hero-info-focus-right-background-color:\n * button-hero-info-hover-left-background-color:\n * button-hero-info-hover-right-background-color:\n * button-hero-info-active-left-background-color:\n * button-hero-info-active-right-background-color:\n * button-hero-info-disabled-background-color:\n * button-hero-info-disabled-text-color:\n * button-hero-warning-text-color:\n * button-hero-warning-bevel-color:\n * button-hero-warning-glow-color:\n * button-hero-warning-left-background-color:\n * button-hero-warning-right-background-color:\n * button-hero-warning-focus-left-background-color:\n * button-hero-warning-focus-right-background-color:\n * button-hero-warning-hover-left-background-color:\n * button-hero-warning-hover-right-background-color:\n * button-hero-warning-active-left-background-color:\n * button-hero-warning-active-right-background-color:\n * button-hero-warning-disabled-background-color:\n * button-hero-warning-disabled-text-color:\n * button-hero-danger-text-color:\n * button-hero-danger-bevel-color:\n * button-hero-danger-glow-color:\n * button-hero-danger-left-background-color:\n * button-hero-danger-right-background-color:\n * button-hero-danger-focus-left-background-color:\n * button-hero-danger-focus-right-background-color:\n * button-hero-danger-hover-left-background-color:\n * button-hero-danger-hover-right-background-color:\n * button-hero-danger-active-left-background-color:\n * button-hero-danger-active-right-background-color:\n * button-hero-danger-disabled-background-color:\n * button-hero-danger-disabled-text-color:\n * button-hero-control-text-color:\n * button-hero-control-bevel-color:\n * button-hero-control-glow-color:\n * button-hero-control-left-background-color:\n * button-hero-control-right-background-color:\n * button-hero-control-focus-left-background-color:\n * button-hero-control-focus-right-background-color:\n * button-hero-control-hover-left-background-color:\n * button-hero-control-hover-right-background-color:\n * button-hero-control-active-left-background-color:\n * button-hero-control-active-right-background-color:\n * button-hero-control-disabled-background-color:\n * button-hero-control-disabled-text-color:\n */\n@Component({\n selector: 'button[nbButton],a[nbButton],input[type=\"button\"][nbButton],input[type=\"submit\"][nbButton]',\n template: `\n @if (loading()) {\n <span class=\"nb-button-spinner\" aria-hidden=\"true\"></span>\n }\n <ng-content />\n `,\n providers: [\n { provide: NbButton, useExisting: NbButtonComponent }\n ]\n})\nexport class NbButtonComponent extends NbButton {\n /**\n * Sets the `hero` appearance, over `appearance` and the other boolean appearances.\n */\n readonly hero = input<boolean, NbBooleanInput>(false, { transform: convertToBoolProperty })\n\n /**\n * Shows a spinner in place of the content and ignores clicks, e.g. while a form submits.\n * Unlike `disabled`, the button keeps its focus and looks enabled.\n */\n readonly loading = input<boolean, NbBooleanInput>(false, { transform: convertToBoolProperty })\n\n constructor() {\n super()\n // A capture listener on the button runs before every click listener on it, including the ones its user\n // binds with (click), which a host listener can't guarantee.\n const listen = (event: Event) => this.onClick(event)\n const unlisten = inject(Renderer2).listen(this.hostElement.nativeElement, 'click', listen, { capture: true })\n inject(DestroyRef).onDestroy(unlisten)\n }\n\n protected override appearanceFlag() {\n return this.hero() ? 'hero' : super.appearanceFlag()\n }\n\n protected override isBusy() {\n return this.loading()\n }\n\n // The spinner is not content, so it doesn't count as a leading icon.\n protected override get nodes(): Node[] {\n return super.nodes.filter((node) => !(node instanceof Element && node.classList.contains('nb-button-spinner')))\n }\n\n onClick(event: Event) {\n if (this.properties().disabled || this.loading()) {\n event.preventDefault()\n event.stopImmediatePropagation()\n }\n }\n}\n","import { NgModule } from '@angular/core'\n\nimport { NbButtonComponent } from './button.component'\n\nconst NB_BUTTON_COMPONENTS = [\n NbButtonComponent\n]\n\n@NgModule({\n imports: [...NB_BUTTON_COMPONENTS],\n exports: [...NB_BUTTON_COMPONENTS]\n})\nexport class NbButtonModule { }\n","import { Directive, inject, input, linkedSignal, output } from '@angular/core'\n\nimport { ɵconvertToBoolProperty as convertToBoolProperty, NbBooleanInput, type NbButtonAppearance, type NbButtonToggleAppearance } from '@liquid-js/lyr-core/base'\nimport { NbButton } from '../button/base-button'\nimport { NB_BUTTON_GROUP } from './button-group-injection-tokens'\n\nconst toggleStatuses = ['primary', 'success', 'info', 'warning', 'danger', 'control']\n\n/**\n * A button with a pressed state, `aria-pressed` for assistive technologies. It's `basic` until pressed, then in its\n * status, or `primary` for a `basic` one. In an `nb-button-group` without `multiple` a click doesn't unpress it, as\n * with radio buttons.\n */\n@Directive({\n selector: 'button[nbButtonToggle]',\n providers: [{ provide: NbButton, useExisting: NbButtonToggleDirective }],\n exportAs: 'nbButtonToggle',\n host: {\n '[attr.aria-pressed]': 'isPressed()',\n '(click)': 'onClick()'\n }\n})\nexport class NbButtonToggleDirective<T = unknown> extends NbButton<NbButtonToggleAppearance> {\n protected readonly buttonGroup = inject(NB_BUTTON_GROUP, { optional: true })\n\n /** The buttons' default appearance, but `filled` for `hero`, which toggles don't have. */\n protected override defaultAppearance(appearance?: NbButtonAppearance): NbButtonToggleAppearance {\n return appearance && appearance !== 'hero' ? appearance : 'filled'\n }\n\n /**\n * Value the button group emits in `valueChange` while the toggle is pressed.\n */\n readonly value = input<T>()\n\n /**\n * Whether the button is pressed. Supports two-way binding with `[(pressed)]`.\n */\n readonly pressed = input<boolean, NbBooleanInput>(false, { transform: convertToBoolProperty })\n\n /**\n * Emits when a click or the button group changes the pressed state.\n */\n readonly pressedChange = output<boolean>()\n\n /**\n * The current pressed state: the `pressed` input, until a click or the button group changes it.\n */\n readonly isPressed = linkedSignal(() => this.pressed())\n\n protected override statusClasses() {\n const status = this.properties().status\n // A toggle is `basic` until pressed, and a `basic` one is `primary` when pressed.\n const pressedStatus = status === 'basic' ? 'primary' : status\n return [\n !this.isPressed() ? 'status-basic' : toggleStatuses.includes(pressedStatus) ? `status-${pressedStatus}` : undefined,\n // `success` isn't one of the status service's core statuses, so check the toggle's own list first.\n !toggleStatuses.includes(status) && this.statusService.isCustomStatus(status)\n ? this.statusService.getStatusClass(status)\n : undefined\n ]\n }\n\n onClick() {\n // In a group without `multiple` a click doesn't unpress the toggle, as with radio buttons.\n if (this.buttonGroup?.multiple() || !this.isPressed()) {\n this.setPressed(!this.isPressed())\n }\n }\n\n /**\n * Sets the pressed state and emits `pressedChange` when it changes.\n */\n setPressed(pressed: boolean) {\n if (this.isPressed() !== pressed) {\n this.isPressed.set(pressed)\n this.pressedChange.emit(pressed)\n }\n }\n}\n","import {\n Component,\n computed,\n contentChildren,\n DestroyRef,\n effect,\n ElementRef,\n forwardRef,\n inject,\n input,\n linkedSignal,\n output,\n PLATFORM_ID,\n untracked\n} from '@angular/core'\nimport { isPlatformBrowser } from '@angular/common'\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop'\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'\nimport { fromEvent, merge } from 'rxjs'\nimport { filter, switchMap } from 'rxjs/operators'\nimport { NB_DOCUMENT, injectNbDefaults, NbStatusService, ɵconvertToBoolProperty as convertToBoolProperty, NbBooleanInput, NbComponentSize, NbComponentShape, NbComponentOrCustomStatus, type NbButtonToggleAppearance } from '@liquid-js/lyr-core/base'\nimport { NbButtonProperties } from '../button/base-button'\nimport { NbButtonToggleDirective } from './button-toggle.directive'\n\nimport { NB_BUTTON_GROUP } from './button-group-injection-tokens'\n\n// The value a group starts with, until it or the app sets one.\nconst NO_VALUE = Symbol('no value')\n\n/**\n * Whether a group's `multiple` isn't given. Angular's template type checker doesn't apply a type parameter's default:\n * without a `multiple` binding it infers `M` as its whole constraint (or `any`), which no binding gives.\n */\ntype NbButtonGroupMultipleUnset<M> = 0 extends 1 & M ? true : [NbBooleanInput] extends [M] ? true : false\n\n/**\n * A button group's value, for toggles of value `T` and a `multiple` of `M`, as a select's: the pressed toggle's value,\n * or `null` when none is pressed; with `multiple` (`true`, `''` or `'true'`), the values of all pressed toggles.\n */\nexport type NbButtonGroupValue<T, M extends NbBooleanInput = NbBooleanInput> =\n NbButtonGroupMultipleUnset<M> extends true ? T | null : M extends true | '' | 'true' ? T[] : T | null\n\n// The values a group's value holds.\nfunction valuesOf<T>(value: T | T[] | null | undefined): T[] {\n return Array.isArray(value) ? value : value == null ? [] : [value]\n}\n\n/**\n * Groups buttons into one strip, and sets their appearance, size, shape, status and disabled state as a group.\n *\n * @stacked-example(Button Group Showcase, button-group/button-group-showcase.component)\n *\n * ### Installation\n *\n * Import `NbButtonGroupComponent`, `NbButtonToggleDirective` into your standalone component:\n * ```ts\n * @Component({\n * imports: [NbButtonGroupComponent, NbButtonToggleDirective],\n * })\n * export class PageComponent { }\n * ```\n *\n * With NgModules:\n *\n * Import `NbButtonGroupModule` to your feature module.\n * ```ts\n * @NgModule({\n * imports: [\n * // ...\n * NbButtonGroupModule,\n * ],\n * })\n * export class PageModule { }\n * ```\n *\n * ### Usage\n *\n * A group holds `[nbButton]`s or `[nbButtonToggle]`s.\n * @stacked-example(Button and Button Toggle Groups, button-group/button-and-button-toggle-groups.component)\n *\n * By default only one toggle in a group is pressed at a time, as in a radio group, and clicking it again keeps it\n * pressed. With `multiple` on the group any number of toggles stays pressed.\n * @stacked-example(Button Group Multiple, button-group/button-group-multiple.component)\n *\n * The group's value is the value of the pressed toggle, given to a toggle with its `value` input, or `null` when none\n * is pressed; with `multiple`, it's the values of all pressed toggles, as a select's. Listen to `(valueChange)`, bind\n * `value` both ways, e.g. `<nb-button-group [(value)]=\"track\">`, to press toggles from the app too, or use the group\n * in a form, as a radio group, with `formControl`, `ngModel` or `formField`; the values have the type of what it's\n * bound to.\n * @stacked-example(Button Group Value Change, button-group/button-group-value-change.component)\n *\n * `disabled` on the group, or its form control, disables all its buttons.\n * @stacked-example(Button Group Disabled, button-group/button-group-disabled.component)\n *\n * The group's `appearance`, `status`, `size` and `shape` replace those of its buttons.\n *\n * Button group appearances:\n * @stacked-example(Button Group Appearances, button-group/button-group-appearances.component)\n *\n * Button group statuses:\n * @stacked-example(Button Group Statuses, button-group/button-group-statuses.component)\n *\n * Button group sizes:\n * @stacked-example(Button Group Sizes, button-group/button-group-sizes.component)\n *\n * Buttons group shapes:\n * @additional-example(Button Group Shapes, button-group/button-group-shapes.component)\n * @styles\n *\n * button-group-filled-button-basic-text-color:\n * button-group-filled-button-primary-text-color:\n * button-group-filled-button-success-text-color:\n * button-group-filled-button-info-text-color:\n * button-group-filled-button-warning-text-color:\n * button-group-filled-button-danger-text-color:\n * button-group-filled-button-control-text-color:\n * button-group-filled-basic-divider-color:\n * button-group-filled-primary-divider-color:\n * button-group-filled-success-divider-color:\n * button-group-filled-info-divider-color:\n * button-group-filled-warning-divider-color:\n * button-group-filled-danger-divider-color:\n * button-group-filled-control-divider-color:\n * button-group-ghost-divider-color:\n * button-group-separate-gap:\n **/\n@Component({\n selector: 'nb-button-group',\n template: ' <ng-content /> ',\n providers: [\n { provide: NB_BUTTON_GROUP, useExisting: NbButtonGroupComponent },\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => NbButtonGroupComponent), multi: true }\n ],\n host: {\n 'role': 'group',\n '[class]': 'customStatusClass()',\n '[class.separate]': 'separate()'\n }\n})\nexport class NbButtonGroupComponent<T = unknown, M extends NbBooleanInput = NbBooleanInput>\nimplements ControlValueAccessor {\n // The app's defaults for this type, which the inputs below start from.\n protected readonly nbDefaults = injectNbDefaults('buttonGroup')\n\n protected readonly statusService = inject(NbStatusService)\n\n // The toggles in a group carry values of the group's type.\n protected readonly toggles = contentChildren<NbButtonToggleDirective<T>>(NbButtonToggleDirective)\n\n /**\n * Size of the buttons: `tiny`, `small`, `medium`, `large` or `giant`. Unset, it follows the app's default, or\n * `medium`.\n */\n readonly sizeInput = input<NbComponentSize | undefined>(undefined, { alias: 'size' })\n /** The size in use: the input's, the app's default, or 'medium'. */\n readonly size = linkedSignal<NbComponentSize>(() => this.sizeInput() ?? this.nbDefaults().size ?? 'medium')\n\n /**\n * Status of the buttons: `basic` (default), `primary`, `info`, `success`, `warning`, `danger`, `control` or a\n * custom one.\n */\n readonly status = input<NbComponentOrCustomStatus>('basic')\n\n /**\n * Shape of the buttons: `rectangle`, `semi-round` or `round`. Unset, it follows the app's default, or `rectangle`.\n */\n readonly shapeInput = input<NbComponentShape | undefined>(undefined, { alias: 'shape' })\n /** The shape in use: the input's, the app's default, or 'rectangle'. */\n readonly shape = linkedSignal<NbComponentShape>(() => this.shapeInput() ?? this.nbDefaults().shape ?? 'rectangle')\n\n /**\n * Appearance of the buttons: `filled`, `outline` or `ghost`. Unset, it follows the app's default, or `filled`.\n */\n readonly appearanceInput = input<NbButtonToggleAppearance | undefined>(undefined, { alias: 'appearance' })\n /** The appearance in use: the input's, the app's default, or 'filled'. */\n readonly appearance = linkedSignal<NbButtonToggleAppearance>(() => this.appearanceInput() ?? this.nbDefaults().appearance ?? 'filled')\n\n /**\n * Disables the buttons in the group; a form control's disabled state does too.\n */\n readonly disabled = input<boolean, NbBooleanInput>(false, { transform: convertToBoolProperty })\n\n /** Whether the buttons are disabled: the `disabled` input, or the form's disabled state, whichever changed last. */\n readonly isDisabled = linkedSignal(() => this.disabled())\n\n /**\n * Keeps the buttons apart, each with its own corners and border, wrapping onto more rows as they need, e.g. for\n * times to pick from; by default they're joined in one strip.\n */\n readonly separate = input<boolean, NbBooleanInput>(false, { transform: convertToBoolProperty })\n\n /**\n * Lets any number of toggles stay pressed, and makes the value an array. Off by default: the toggle pressed last\n * stays pressed, and clicking it again doesn't unpress it.\n */\n readonly multiple = input<boolean, M>(false, { transform: convertToBoolProperty })\n\n /**\n * Sets the `filled` appearance, over `appearance`.\n */\n readonly filled = input<boolean, NbBooleanInput>(false, { transform: convertToBoolProperty })\n\n /**\n * Sets the `outline` appearance, over `appearance` and `filled`.\n */\n readonly outline = input<boolean, NbBooleanInput>(false, { transform: convertToBoolProperty })\n\n /**\n * Sets the `ghost` appearance, over `appearance`, `filled` and `outline`.\n */\n readonly ghost = input<boolean, NbBooleanInput>(false, { transform: convertToBoolProperty })\n\n /**\n * The value of the pressed toggle, or `null`; with `multiple`, the values of the pressed toggles. `valueChange`\n * emits as they're pressed; set it, or bind it both ways with `[(value)]`, to press the toggles with those values.\n */\n readonly value = input<T | T[] | null>()\n /** Emits the value after the change detection that pressed or unpressed a toggle, and only when it differs. */\n readonly valueChange = output<NbButtonGroupValue<T, M>>()\n\n // The value: the `value` input or the form's, whichever changed last, or the pressed toggles'.\n protected readonly valueState = linkedSignal<T | T[] | null | undefined | typeof NO_VALUE>(() => {\n const value = this.value()\n return value === undefined ? NO_VALUE : value\n })\n\n /**\n * The properties the buttons in the group render with.\n */\n readonly buttonProperties = computed<NbButtonProperties>(() => ({\n appearance: (this.ghost() && 'ghost') || (this.outline() && 'outline') || (this.filled() && 'filled') ||\n this.appearance(),\n size: this.size(),\n shape: this.shape(),\n status: this.status(),\n disabled: this.isDisabled()\n }))\n\n protected readonly customStatusClass = computed(() =>\n this.statusService.isCustomStatus(this.status()) ? [this.statusService.getStatusClass(this.status())] : []\n )\n\n // The value the group set itself, or the default it starts with; a value other than this came from the app.\n protected ownValue: T | T[] | null | typeof NO_VALUE = NO_VALUE\n\n protected readonly hostElement = inject<ElementRef<HTMLElement>>(ElementRef)\n protected readonly document = inject(NB_DOCUMENT)\n protected onChange: (value: NbButtonGroupValue<T, M>) => void = () => {}\n protected onTouched: () => void = () => {}\n\n constructor() {\n if (isPlatformBrowser(inject(PLATFORM_ID))) {\n this.subscribeOnBlur()\n }\n\n // The app's value presses the toggles with its values, and only those.\n effect(() => {\n const state = this.valueState()\n if (state === this.ownValue || state === NO_VALUE) {\n return\n }\n const value = valuesOf<T>(state)\n const toggles = this.toggles()\n untracked(() =>\n toggles.forEach((toggle) => {\n const toggleValue = toggle.value()\n toggle.setPressed(toggleValue !== undefined && value.includes(toggleValue))\n })\n )\n })\n\n let pressedBefore = new Set<NbButtonToggleDirective<T>>()\n effect(() => {\n let pressed = this.toggles().filter((toggle) => toggle.isPressed())\n // Without `multiple`, the toggle pressed last stays pressed.\n if (!this.multiple() && pressed.length > 1) {\n const kept = pressed.filter((toggle) => !pressedBefore.has(toggle)).pop() ?? pressed[0]\n untracked(() => pressed.filter((toggle) => toggle !== kept).forEach((toggle) => toggle.setPressed(false)))\n pressed = [kept]\n }\n pressedBefore = new Set(pressed)\n\n const value = pressed.map((toggle) => toggle.value()).filter((item): item is T => typeof item !== 'undefined')\n // Emit after change detection, as the group did before, so handlers can update what's already rendered.\n queueMicrotask(() => this.emitValue(value))\n })\n }\n\n registerOnChange(fn: (value: NbButtonGroupValue<T, M>) => void) {\n this.onChange = fn\n }\n\n registerOnTouched(fn: () => void) {\n this.onTouched = fn\n }\n\n writeValue(value: NbButtonGroupValue<T, M> | undefined) {\n this.valueState.set(value ?? null)\n }\n\n setDisabledState(isDisabled: boolean) {\n this.isDisabled.set(isDisabled)\n }\n\n protected emitValue(values: T[]) {\n const state = this.valueState()\n const last = state === NO_VALUE ? [] : valuesOf<T>(state)\n if (values.length === last.length && values.every((item, index) => item === last[index])) {\n return\n }\n const value = (this.multiple() ? values : (values[0] ?? null)) as NbButtonGroupValue<T, M>\n this.ownValue = value\n this.valueState.set(value)\n this.valueChange.emit(value)\n this.onChange(value)\n }\n\n // Leaving the group, by focus or a click elsewhere, touches its control, as leaving a radio group does.\n protected subscribeOnBlur() {\n const hostElement = this.hostElement.nativeElement\n fromEvent<Event>(hostElement, 'focusin')\n .pipe(\n filter((event) => hostElement.contains(event.target as Node)),\n switchMap(() => merge(fromEvent<Event>(this.document, 'focusin'), fromEvent<Event>(this.document, 'click'))),\n filter((event) => !hostElement.contains(event.target as Node)),\n takeUntilDestroyed(inject(DestroyRef))\n )\n .subscribe(() => this.onTouched())\n }\n}\n","import { NgModule } from '@angular/core'\nimport { NbButtonGroupComponent } from './button-group.component'\nimport { NbButtonToggleDirective } from './button-toggle.directive'\n\n@NgModule({\n imports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;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,OAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,aAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,aAAA;EAAA,CAAA;CAAA;AAAA,CAAA;AC3IpG,IAAa,sBAAb,MAAa,oBAAmB;CAAnB;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAmB,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAnB;EAAA,KAAA,OAAA,GAAA,oBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAmB,SAAA,CAHlB,wBAAwB,uBAAuB;GAAA,SAAA,CAC/C,wBAAwB,uBAAuB;EAAA,CAAA;CAAA;CAEhD;EAAA,KAAA,OAAA,GAAA,oBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;EAAmB,CAAA;CAAA;;AAAnB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAmB,YAAA,CAAA;EAJ/B,MAAA;EAAS,MAAA,CAAA;GACN,SAAS,CAAC,wBAAwB,uBAAuB;GACzD,SAAS,CAAC,wBAAwB,uBAAuB;EAC5D,CAAA"}
|
|
1
|
+
{"version":3,"file":"liquid-js-lyr-core-button.mjs","names":["convertToBoolProperty","NbIconRef","enableTransitionsAfterRender","convertToBoolProperty","convertToBoolProperty","convertToBoolProperty","sameControlValue"],"sources":["../../../packages/core/src/components/button-group/button-group-injection-tokens.ts","../../../packages/core/src/components/button/base-button.ts","../../../packages/core/src/components/button/button.component.ts","../../../packages/core/src/components/button/button.module.ts","../../../packages/core/src/components/button-group/button-toggle.directive.ts","../../../packages/core/src/components/button-group/button-group.component.ts","../../../packages/core/src/components/button-group/button-group.module.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core'\nimport type { NbButtonGroupComponent } from './button-group.component'\n\nexport const NB_BUTTON_GROUP = new InjectionToken<NbButtonGroupComponent>('NB_BUTTON_GROUP')\n","import {\n AfterContentChecked,\n ChangeDetectorRef,\n computed,\n contentChildren,\n Directive,\n ElementRef,\n EmbeddedViewRef,\n inject,\n input,\n linkedSignal,\n Signal,\n signal,\n numberAttribute\n} from '@angular/core'\n\nimport { injectNbDefaults, NbStatusService, ɵconvertToBoolProperty as convertToBoolProperty, NbBooleanInput, NbComponentSize, NbComponentOrCustomStatus, NbComponentShape, ɵenableTransitionsAfterRender as enableTransitionsAfterRender, type NbButtonAppearance } from '@liquid-js/lyr-core/base'\nimport { ɵNbIconRef as NbIconRef } from '@liquid-js/lyr-core/icon'\nimport { NB_BUTTON_GROUP } from '../button-group/button-group-injection-tokens'\n\n/** The side of a button that lines up with the content around it, as `edge` sets it. */\nexport type NbButtonEdge = 'start' | 'end'\n\nexport interface NbButtonProperties {\n appearance: NbButtonAppearance\n size: NbComponentSize\n shape: NbComponentShape\n status: NbComponentOrCustomStatus\n disabled: boolean\n}\n\n/**\n * Properties shared by buttons and button toggles. Inside `nb-button-group`, the group's `appearance`, `size`,\n * `shape` and `status` replace the button's own, and the button is disabled when either of them is.\n */\n@Directive({\n host: {\n '[class]': 'hostClasses()',\n '[class.full-width]': 'fullWidth()',\n '[class.icon-start]': 'iconStart()',\n '[class.icon-end]': 'iconEnd()',\n '[class.edge-start]': \"edge() === 'start'\",\n '[class.edge-end]': \"edge() === 'end'\",\n '[class.btn-inline]': 'inline()',\n '[class.btn-disabled]': 'properties().disabled',\n '[class.btn-loading]': 'isBusy()',\n '[attr.aria-busy]': 'isBusy() || null',\n '[attr.aria-disabled]': 'properties().disabled || isBusy()',\n '[attr.disabled]': 'properties().disabled || null',\n // A disabled button is skipped by Tab.\n '[attr.tabindex]': 'tabbable()'\n }\n})\nexport abstract class NbButton<A extends NbButtonAppearance = NbButtonAppearance>\nimplements AfterContentChecked {\n // The app's defaults for this type, which the inputs below start from.\n protected readonly nbDefaults = injectNbDefaults('button')\n\n protected readonly hostElement = inject<ElementRef<HTMLElement>>(ElementRef)\n protected readonly cd = inject(ChangeDetectorRef)\n protected readonly statusService = inject(NbStatusService)\n protected readonly group = inject(NB_BUTTON_GROUP, { optional: true })\n\n /**\n * Button size: `tiny`, `small`, `medium`, `large` or `giant`. Unset, it follows the app's default, or `medium`.\n */\n readonly sizeInput = input<NbComponentSize | undefined>(undefined, { alias: 'size' })\n /** The size in use: the input's, the app's default, or 'medium'. */\n readonly size = linkedSignal<NbComponentSize>(() => this.sizeInput() ?? this.nbDefaults().size ?? 'medium')\n\n /**\n * Button status: `basic` (default), `primary`, `info`, `success`, `warning`, `danger`, `control` or a custom one.\n */\n readonly status = input<NbComponentOrCustomStatus>('basic')\n\n /**\n * Button shape: `rectangle`, `semi-round` or `round`. Unset, it follows the app's default, or `rectangle`.\n */\n readonly shapeInput = input<NbComponentShape | undefined>(undefined, { alias: 'shape' })\n /** The shape in use: the input's, the app's default, or 'rectangle'. */\n readonly shape = linkedSignal<NbComponentShape>(() => this.shapeInput() ?? this.nbDefaults().shape ?? 'rectangle')\n\n /**\n * Button appearance: `filled`, `outline`, `ghost` or, for `nbButton` only, `hero`. Unset, it follows the app's\n * default, or `filled`.\n */\n readonly appearanceInput = input<A | undefined>(undefined, { alias: 'appearance' })\n /** The appearance in use: the input's, or the app's default for buttons, or `filled`. */\n readonly appearance = linkedSignal<A>(\n () => this.appearanceInput() ?? this.defaultAppearance(this.nbDefaults().appearance)\n )\n\n /**\n * Sets the `filled` appearance, over `appearance`.\n */\n readonly filled = input<boolean, NbBooleanInput>(false, { transform: convertToBoolProperty })\n\n /**\n * Sets the `outline` appearance, over `appearance` and `filled`.\n */\n readonly outline = input<boolean, NbBooleanInput>(false, { transform: convertToBoolProperty })\n\n /**\n * Sets the `ghost` appearance, over `appearance`, `filled` and `outline`.\n */\n readonly ghost = input<boolean, NbBooleanInput>(false, { transform: convertToBoolProperty })\n\n /**\n * Fills the width of the container.\n */\n readonly fullWidth = input<boolean, NbBooleanInput>(false, { transform: convertToBoolProperty })\n\n /**\n * Lines up the button's label or icon, instead of its box, with the content around it, at its `start` or `end`: the\n * button reaches past that side by as much as its content is inset, e.g. a ghost button at the end of a card header,\n * whose icon then ends where the header's text does. It follows the page's direction, and the button's size.\n */\n readonly edge = input<NbButtonEdge>()\n\n /**\n * Takes no more room in a row than its label does, as text would: its box reaches above and below into the space\n * around it, e.g. in a card header, which then is as tall as with its title alone. For a ghost button, whose box shows\n * only when hovered or pressed; with `edge`, it lines up as text would on every side.\n */\n readonly inline = input<boolean, NbBooleanInput>(false, { transform: convertToBoolProperty })\n\n /**\n * Disables the button, an `a` too: it ignores clicks, is skipped by Tab and is `aria-disabled`.\n */\n readonly disabled = input<boolean, NbBooleanInput>(false, { transform: convertToBoolProperty })\n\n /**\n * Tabindex of the button, e.g. `tabIndex=\"-1\"`, as a select's.\n */\n readonly tabIndex = input<number | undefined, unknown>(undefined, {\n transform: (value: unknown) => (value == null || value === '' ? undefined : numberAttribute(value))\n })\n\n /**\n * The properties the button renders with: its own, or its group's.\n */\n readonly properties: Signal<NbButtonProperties> = computed(() => {\n const groupProperties = this.group?.buttonProperties()\n if (groupProperties) {\n return { ...groupProperties, disabled: groupProperties.disabled || this.disabled() }\n }\n return {\n appearance: this.appearanceFlag() ?? this.appearance(),\n size: this.size(),\n shape: this.shape(),\n status: this.status(),\n disabled: this.disabled()\n }\n })\n\n /** The appearance the button starts with: the app's default for buttons, or `filled`. */\n protected defaultAppearance(appearance?: NbButtonAppearance): A {\n return (appearance ?? 'filled') as A\n }\n\n protected readonly icons = contentChildren(NbIconRef, { read: ElementRef })\n protected readonly iconStart = signal(false)\n protected readonly iconEnd = signal(false)\n\n protected readonly tabbable = computed(() => {\n if (this.properties().disabled) {\n return '-1'\n }\n return String(this.tabIndex() ?? 0)\n })\n\n protected readonly hostClasses = computed(() => {\n const { appearance, size, shape } = this.properties()\n const classes = [`appearance-${appearance}`, `size-${size}`, `shape-${shape}`, ...this.statusClasses()]\n return classes.filter(Boolean)\n })\n\n /**\n * The appearance set with a boolean input such as `outline`, if any.\n */\n protected appearanceFlag(): NbButtonAppearance | undefined {\n if (this.ghost()) {\n return 'ghost'\n }\n if (this.outline()) {\n return 'outline'\n }\n if (this.filled()) {\n return 'filled'\n }\n return undefined\n }\n\n /**\n * Whether the button is busy with an action: it shows a spinner and ignores clicks, but stays focusable.\n */\n protected isBusy() {\n return false\n }\n\n protected statusClasses(): Array<string | undefined> {\n return [this.statusService.getStatusClass(this.properties().status)]\n }\n\n constructor() {\n enableTransitionsAfterRender(this.hostElement.nativeElement)\n }\n\n ngAfterContentChecked() {\n // Runs before the host bindings are checked, so they see the icons the content renders this time.\n const nodes = this.nodes\n this.iconStart.set(this.isIconExist(nodes[0]))\n this.iconEnd.set(this.isIconExist(nodes[nodes.length - 1]))\n }\n\n get iconElement() {\n const el = this.hostElement.nativeElement\n return el.querySelector('nb-icon')\n }\n\n protected get nodes(): Node[] {\n // The change detector of a component is its host view.\n const view = this.cd as EmbeddedViewRef<unknown>\n return view.rootNodes.filter((child: Node) => child.nodeType !== Node.COMMENT_NODE)\n }\n\n protected isIconExist(node: Node): boolean {\n return this.icons().some((item) => item.nativeElement === node)\n }\n}\n","import { Component, DestroyRef, inject, input, Renderer2 } from '@angular/core'\n\nimport { ɵconvertToBoolProperty as convertToBoolProperty, NbBooleanInput } from '@liquid-js/lyr-core/base'\nimport { NbButton } from './base-button'\n\n/**\n * Basic button component.\n *\n * Default button size is `medium` and status color is `basic`:\n *\n * @stacked-example(Button Showcase, button/button-showcase.component)\n *\n * ```html\n * <button nbButton></button>\n * ```\n * ### Installation\n *\n * Import `NbButtonComponent` into your standalone component:\n * ```ts\n * @Component({\n * imports: [NbButtonComponent],\n * })\n * export class PageComponent { }\n * ```\n *\n * With NgModules:\n *\n * Import `NbButtonModule` to your feature module.\n * ```ts\n * @NgModule({\n * imports: [\n * // ...\n * NbButtonModule,\n * ],\n * })\n * export class PageModule { }\n * ```\n * ### Usage\n *\n * Buttons are coloured by their `status`:\n * @stacked-example(Button Colors, button/button-colors.component.html)\n *\n * They come in five sizes, from `tiny` to `giant`:\n * @stacked-example(Button Sizes, button/button-sizes.component.html)\n *\n * Besides the default `filled` appearance there are `outline` and `ghost`:\n * @stacked-example(Outline Buttons, button/button-outline.component.html)\n *\n * and `hero`, with a gradient and a glow:\n * @stacked-example(Button Hero, button/button-hero.component.html)\n *\n * The shapes combine with the other properties:\n * @stacked-example(Button Shapes, button/button-shapes.component)\n *\n * `nbButton` applies to `button`, `input[type=\"button\"]`, `input[type=\"submit\"]` and `a`:\n * @stacked-example(Button Elements, button/button-types.component.html)\n *\n * A `fullWidth` button fills its container:\n * @stacked-example(Full Width Button, button/button-full-width.component.html)\n *\n * An icon at the start or the end of the content gets its spacing from the text, and a button with an icon alone is\n * padded for it:\n * @stacked-example(Icon Button, button/button-icon.component.html)\n *\n * A ghost button shows its box only when hovered or pressed, so at the edge of a card, a header or a list item its\n * label or icon should line up with the text around it, as text would. `edge=\"start\"` or `edge=\"end\"` does that: the\n * button reaches past that side by as much as its content is inset, for its size and in either direction of the page.\n * `inline` does the same above and below: the button takes no more room in its row than its label, so a header or a\n * footer is as tall as with text alone.\n * ```html\n * <nb-card-footer>\n * <button nbButton ghost inline edge=\"start\">Back</button>\n * <button nbButton ghost inline edge=\"end\">Next</button>\n * </nb-card-footer>\n * ```\n *\n * Set `loading` while the action the button started runs. The button shows a spinner in place of its content,\n * keeps its size and focus, ignores clicks, and tells assistive technology it is busy:\n * @stacked-example(Loading Button, button/button-loading.component)\n * @additional-example(Interactive example, button/button-interactive.component)\n * @styles\n *\n * button-cursor:\n * button-outline-width:\n * button-outline-color:\n * button-text-font-family:\n * button-text-font-weight:\n * button-disabled-cursor:\n * button-loading-cursor:\n * button-spinner-border-width:\n * button-tiny-text-font-size:\n * button-tiny-text-line-height:\n * button-tiny-icon-size:\n * button-tiny-icon-vertical-margin:\n * button-tiny-icon-offset:\n * button-small-text-font-size:\n * button-small-text-line-height:\n * button-small-icon-size:\n * button-small-icon-vertical-margin:\n * button-small-icon-offset:\n * button-medium-text-font-size:\n * button-medium-text-line-height:\n * button-medium-icon-size:\n * button-medium-icon-vertical-margin:\n * button-medium-icon-offset:\n * button-large-text-font-size:\n * button-large-text-line-height:\n * button-large-icon-size:\n * button-large-icon-vertical-margin:\n * button-large-icon-offset:\n * button-giant-text-font-size:\n * button-giant-text-line-height:\n * button-giant-icon-size:\n * button-giant-icon-vertical-margin:\n * button-giant-icon-offset:\n * button-rectangle-border-radius:\n * button-semi-round-border-radius:\n * button-round-border-radius:\n * button-filled-border-style:\n * button-filled-border-width:\n * button-filled-text-transform:\n * button-filled-tiny-padding:\n * icon-button-filled-tiny-padding:\n * button-filled-small-padding:\n * icon-button-filled-small-padding:\n * button-filled-medium-padding:\n * icon-button-filled-medium-padding:\n * button-filled-large-padding:\n * icon-button-filled-large-padding:\n * button-filled-giant-padding:\n * icon-button-filled-giant-padding:\n * button-filled-basic-background-color:\n * button-filled-basic-border-color:\n * button-filled-basic-text-color:\n * button-filled-basic-focus-background-color:\n * button-filled-basic-focus-border-color:\n * button-filled-basic-hover-background-color:\n * button-filled-basic-hover-border-color:\n * button-filled-basic-active-background-color:\n * button-filled-basic-active-border-color:\n * button-filled-basic-disabled-background-color:\n * button-filled-basic-disabled-border-color:\n * button-filled-basic-disabled-text-color:\n * button-filled-primary-background-color:\n * button-filled-primary-border-color:\n * button-filled-primary-text-color:\n * button-filled-primary-focus-background-color:\n * button-filled-primary-focus-border-color:\n * button-filled-primary-hover-background-color:\n * button-filled-primary-hover-border-color:\n * button-filled-primary-active-background-color:\n * button-filled-primary-active-border-color:\n * button-filled-primary-disabled-background-color:\n * button-filled-primary-disabled-border-color:\n * button-filled-primary-disabled-text-color:\n * button-filled-success-background-color:\n * button-filled-success-border-color:\n * button-filled-success-text-color:\n * button-filled-success-focus-background-color:\n * button-filled-success-focus-border-color:\n * button-filled-success-hover-background-color:\n * button-filled-success-hover-border-color:\n * button-filled-success-active-background-color:\n * button-filled-success-active-border-color:\n * button-filled-success-disabled-background-color:\n * button-filled-success-disabled-border-color:\n * button-filled-success-disabled-text-color:\n * button-filled-info-background-color:\n * button-filled-info-border-color:\n * button-filled-info-text-color:\n * button-filled-info-focus-background-color:\n * button-filled-info-focus-border-color:\n * button-filled-info-hover-background-color:\n * button-filled-info-hover-border-color:\n * button-filled-info-active-background-color:\n * button-filled-info-active-border-color:\n * button-filled-info-disabled-background-color:\n * button-filled-info-disabled-border-color:\n * button-filled-info-disabled-text-color:\n * button-filled-warning-background-color:\n * button-filled-warning-border-color:\n * button-filled-warning-text-color:\n * button-filled-warning-focus-background-color:\n * button-filled-warning-focus-border-color:\n * button-filled-warning-hover-background-color:\n * button-filled-warning-hover-border-color:\n * button-filled-warning-active-background-color:\n * button-filled-warning-active-border-color:\n * button-filled-warning-disabled-background-color:\n * button-filled-warning-disabled-border-color:\n * button-filled-warning-disabled-text-color:\n * button-filled-danger-background-color:\n * button-filled-danger-border-color:\n * button-filled-danger-text-color:\n * button-filled-danger-focus-background-color:\n * button-filled-danger-focus-border-color:\n * button-filled-danger-hover-background-color:\n * button-filled-danger-hover-border-color:\n * button-filled-danger-active-background-color:\n * button-filled-danger-active-border-color:\n * button-filled-danger-disabled-background-color:\n * button-filled-danger-disabled-border-color:\n * button-filled-danger-disabled-text-color:\n * button-filled-control-background-color:\n * button-filled-control-border-color:\n * button-filled-control-text-color:\n * button-filled-control-focus-background-color:\n * button-filled-control-focus-border-color:\n * button-filled-control-hover-background-color:\n * button-filled-control-hover-border-color:\n * button-filled-control-active-background-color:\n * button-filled-control-active-border-color:\n * button-filled-control-disabled-background-color:\n * button-filled-control-disabled-border-color:\n * button-filled-control-disabled-text-color:\n * button-outline-border-style:\n * button-outline-border-width:\n * button-outline-text-transform:\n * button-outline-focus-inset-shadow-length:\n * button-outline-tiny-padding:\n * icon-button-outline-tiny-padding:\n * button-outline-small-padding:\n * icon-button-outline-small-padding:\n * button-outline-medium-padding:\n * icon-button-outline-medium-padding:\n * button-outline-large-padding:\n * icon-button-outline-large-padding:\n * button-outline-giant-padding:\n * icon-button-outline-giant-padding:\n * button-outline-basic-background-color:\n * button-outline-basic-border-color:\n * button-outline-basic-text-color:\n * button-outline-basic-focus-background-color:\n * button-outline-basic-focus-border-color:\n * button-outline-basic-focus-text-color:\n * button-outline-basic-hover-background-color:\n * button-outline-basic-hover-border-color:\n * button-outline-basic-hover-text-color:\n * button-outline-basic-active-background-color:\n * button-outline-basic-active-border-color:\n * button-outline-basic-active-text-color:\n * button-outline-basic-disabled-background-color:\n * button-outline-basic-disabled-border-color:\n * button-outline-basic-disabled-text-color:\n * button-outline-primary-background-color:\n * button-outline-primary-border-color:\n * button-outline-primary-text-color:\n * button-outline-primary-focus-background-color:\n * button-outline-primary-focus-border-color:\n * button-outline-primary-focus-text-color:\n * button-outline-primary-hover-background-color:\n * button-outline-primary-hover-border-color:\n * button-outline-primary-hover-text-color:\n * button-outline-primary-active-background-color:\n * button-outline-primary-active-border-color:\n * button-outline-primary-active-text-color:\n * button-outline-primary-disabled-background-color:\n * button-outline-primary-disabled-border-color:\n * button-outline-primary-disabled-text-color:\n * button-outline-success-background-color:\n * button-outline-success-border-color:\n * button-outline-success-text-color:\n * button-outline-success-focus-background-color:\n * button-outline-success-focus-border-color:\n * button-outline-success-focus-text-color:\n * button-outline-success-hover-background-color:\n * button-outline-success-hover-border-color:\n * button-outline-success-hover-text-color:\n * button-outline-success-active-background-color:\n * button-outline-success-active-border-color:\n * button-outline-success-active-text-color:\n * button-outline-success-disabled-background-color:\n * button-outline-success-disabled-border-color:\n * button-outline-success-disabled-text-color:\n * button-outline-info-background-color:\n * button-outline-info-border-color:\n * button-outline-info-text-color:\n * button-outline-info-focus-background-color:\n * button-outline-info-focus-border-color:\n * button-outline-info-focus-text-color:\n * button-outline-info-hover-background-color:\n * button-outline-info-hover-border-color:\n * button-outline-info-hover-text-color:\n * button-outline-info-active-background-color:\n * button-outline-info-active-border-color:\n * button-outline-info-active-text-color:\n * button-outline-info-disabled-background-color:\n * button-outline-info-disabled-border-color:\n * button-outline-info-disabled-text-color:\n * button-outline-warning-background-color:\n * button-outline-warning-border-color:\n * button-outline-warning-text-color:\n * button-outline-warning-focus-background-color:\n * button-outline-warning-focus-border-color:\n * button-outline-warning-focus-text-color:\n * button-outline-warning-hover-background-color:\n * button-outline-warning-hover-border-color:\n * button-outline-warning-hover-text-color:\n * button-outline-warning-active-background-color:\n * button-outline-warning-active-border-color:\n * button-outline-warning-active-text-color:\n * button-outline-warning-disabled-background-color:\n * button-outline-warning-disabled-border-color:\n * button-outline-warning-disabled-text-color:\n * button-outline-danger-background-color:\n * button-outline-danger-border-color:\n * button-outline-danger-text-color:\n * button-outline-danger-focus-background-color:\n * button-outline-danger-focus-border-color:\n * button-outline-danger-focus-text-color:\n * button-outline-danger-hover-background-color:\n * button-outline-danger-hover-border-color:\n * button-outline-danger-hover-text-color:\n * button-outline-danger-active-background-color:\n * button-outline-danger-active-border-color:\n * button-outline-danger-active-text-color:\n * button-outline-danger-disabled-background-color:\n * button-outline-danger-disabled-border-color:\n * button-outline-danger-disabled-text-color:\n * button-outline-control-background-color:\n * button-outline-control-border-color:\n * button-outline-control-text-color:\n * button-outline-control-focus-background-color:\n * button-outline-control-focus-border-color:\n * button-outline-control-focus-text-color:\n * button-outline-control-hover-background-color:\n * button-outline-control-hover-border-color:\n * button-outline-control-hover-text-color:\n * button-outline-control-active-background-color:\n * button-outline-control-active-border-color:\n * button-outline-control-active-text-color:\n * button-outline-control-disabled-background-color:\n * button-outline-control-disabled-border-color:\n * button-outline-control-disabled-text-color:\n * button-ghost-background-color:\n * button-ghost-border-color:\n * button-ghost-border-style:\n * button-ghost-border-width:\n * button-ghost-text-transform:\n * button-ghost-focus-inset-shadow-length:\n * button-ghost-tiny-padding:\n * icon-button-ghost-tiny-padding:\n * button-ghost-small-padding:\n * icon-button-ghost-small-padding:\n * button-ghost-medium-padding:\n * icon-button-ghost-medium-padding:\n * button-ghost-large-padding:\n * icon-button-ghost-large-padding:\n * button-ghost-giant-padding:\n * icon-button-ghost-giant-padding:\n * button-ghost-basic-text-color:\n * button-ghost-basic-focus-background-color:\n * button-ghost-basic-focus-border-color:\n * button-ghost-basic-focus-text-color:\n * button-ghost-basic-hover-background-color:\n * button-ghost-basic-hover-border-color:\n * button-ghost-basic-hover-text-color:\n * button-ghost-basic-active-background-color:\n * button-ghost-basic-active-border-color:\n * button-ghost-basic-active-text-color:\n * button-ghost-basic-disabled-background-color:\n * button-ghost-basic-disabled-border-color:\n * button-ghost-basic-disabled-text-color:\n * button-ghost-primary-text-color:\n * button-ghost-primary-focus-background-color:\n * button-ghost-primary-focus-border-color:\n * button-ghost-primary-focus-text-color:\n * button-ghost-primary-hover-background-color:\n * button-ghost-primary-hover-border-color:\n * button-ghost-primary-hover-text-color:\n * button-ghost-primary-active-background-color:\n * button-ghost-primary-active-border-color:\n * button-ghost-primary-active-text-color:\n * button-ghost-primary-disabled-background-color:\n * button-ghost-primary-disabled-border-color:\n * button-ghost-primary-disabled-text-color:\n * button-ghost-success-text-color:\n * button-ghost-success-focus-background-color:\n * button-ghost-success-focus-border-color:\n * button-ghost-success-focus-text-color:\n * button-ghost-success-hover-background-color:\n * button-ghost-success-hover-border-color:\n * button-ghost-success-hover-text-color:\n * button-ghost-success-active-background-color:\n * button-ghost-success-active-border-color:\n * button-ghost-success-active-text-color:\n * button-ghost-success-disabled-background-color:\n * button-ghost-success-disabled-border-color:\n * button-ghost-success-disabled-text-color:\n * button-ghost-info-text-color:\n * button-ghost-info-focus-background-color:\n * button-ghost-info-focus-border-color:\n * button-ghost-info-focus-text-color:\n * button-ghost-info-hover-background-color:\n * button-ghost-info-hover-border-color:\n * button-ghost-info-hover-text-color:\n * button-ghost-info-active-background-color:\n * button-ghost-info-active-border-color:\n * button-ghost-info-active-text-color:\n * button-ghost-info-disabled-background-color:\n * button-ghost-info-disabled-border-color:\n * button-ghost-info-disabled-text-color:\n * button-ghost-warning-text-color:\n * button-ghost-warning-focus-background-color:\n * button-ghost-warning-focus-border-color:\n * button-ghost-warning-focus-text-color:\n * button-ghost-warning-hover-background-color:\n * button-ghost-warning-hover-border-color:\n * button-ghost-warning-hover-text-color:\n * button-ghost-warning-active-background-color:\n * button-ghost-warning-active-border-color:\n * button-ghost-warning-active-text-color:\n * button-ghost-warning-disabled-background-color:\n * button-ghost-warning-disabled-border-color:\n * button-ghost-warning-disabled-text-color:\n * button-ghost-danger-text-color:\n * button-ghost-danger-focus-background-color:\n * button-ghost-danger-focus-border-color:\n * button-ghost-danger-focus-text-color:\n * button-ghost-danger-hover-background-color:\n * button-ghost-danger-hover-border-color:\n * button-ghost-danger-hover-text-color:\n * button-ghost-danger-active-background-color:\n * button-ghost-danger-active-border-color:\n * button-ghost-danger-active-text-color:\n * button-ghost-danger-disabled-background-color:\n * button-ghost-danger-disabled-border-color:\n * button-ghost-danger-disabled-text-color:\n * button-ghost-control-text-color:\n * button-ghost-control-focus-background-color:\n * button-ghost-control-focus-border-color:\n * button-ghost-control-focus-text-color:\n * button-ghost-control-hover-background-color:\n * button-ghost-control-hover-border-color:\n * button-ghost-control-hover-text-color:\n * button-ghost-control-active-background-color:\n * button-ghost-control-active-border-color:\n * button-ghost-control-active-text-color:\n * button-ghost-control-disabled-background-color:\n * button-ghost-control-disabled-border-color:\n * button-ghost-control-disabled-text-color:\n * button-hero-border-color:\n * button-hero-border-style:\n * button-hero-border-width:\n * button-hero-text-transform:\n * button-hero-tiny-padding:\n * icon-button-hero-tiny-padding:\n * button-hero-small-padding:\n * icon-button-hero-small-padding:\n * button-hero-medium-padding:\n * icon-button-hero-medium-padding:\n * button-hero-large-padding:\n * icon-button-hero-large-padding:\n * button-hero-giant-padding:\n * icon-button-hero-giant-padding:\n * button-hero-shadow:\n * button-hero-text-shadow:\n * button-hero-bevel-size:\n * button-hero-glow-size:\n * button-hero-outline-color:\n * button-hero-outline-width:\n * button-hero-basic-text-color:\n * button-hero-basic-bevel-color:\n * button-hero-basic-glow-color:\n * button-hero-basic-left-background-color:\n * button-hero-basic-right-background-color:\n * button-hero-basic-focus-left-background-color:\n * button-hero-basic-focus-right-background-color:\n * button-hero-basic-hover-left-background-color:\n * button-hero-basic-hover-right-background-color:\n * button-hero-basic-active-left-background-color:\n * button-hero-basic-active-right-background-color:\n * button-hero-basic-disabled-background-color:\n * button-hero-basic-disabled-text-color:\n * button-hero-primary-text-color:\n * button-hero-primary-bevel-color:\n * button-hero-primary-glow-color:\n * button-hero-primary-left-background-color:\n * button-hero-primary-right-background-color:\n * button-hero-primary-focus-left-background-color:\n * button-hero-primary-focus-right-background-color:\n * button-hero-primary-hover-left-background-color:\n * button-hero-primary-hover-right-background-color:\n * button-hero-primary-active-left-background-color:\n * button-hero-primary-active-right-background-color:\n * button-hero-primary-disabled-background-color:\n * button-hero-primary-disabled-text-color:\n * button-hero-success-text-color:\n * button-hero-success-bevel-color:\n * button-hero-success-glow-color:\n * button-hero-success-left-background-color:\n * button-hero-success-right-background-color:\n * button-hero-success-focus-left-background-color:\n * button-hero-success-focus-right-background-color:\n * button-hero-success-hover-left-background-color:\n * button-hero-success-hover-right-background-color:\n * button-hero-success-active-left-background-color:\n * button-hero-success-active-right-background-color:\n * button-hero-success-disabled-background-color:\n * button-hero-success-disabled-text-color:\n * button-hero-info-text-color:\n * button-hero-info-bevel-color:\n * button-hero-info-glow-color:\n * button-hero-info-left-background-color:\n * button-hero-info-right-background-color:\n * button-hero-info-focus-left-background-color:\n * button-hero-info-focus-right-background-color:\n * button-hero-info-hover-left-background-color:\n * button-hero-info-hover-right-background-color:\n * button-hero-info-active-left-background-color:\n * button-hero-info-active-right-background-color:\n * button-hero-info-disabled-background-color:\n * button-hero-info-disabled-text-color:\n * button-hero-warning-text-color:\n * button-hero-warning-bevel-color:\n * button-hero-warning-glow-color:\n * button-hero-warning-left-background-color:\n * button-hero-warning-right-background-color:\n * button-hero-warning-focus-left-background-color:\n * button-hero-warning-focus-right-background-color:\n * button-hero-warning-hover-left-background-color:\n * button-hero-warning-hover-right-background-color:\n * button-hero-warning-active-left-background-color:\n * button-hero-warning-active-right-background-color:\n * button-hero-warning-disabled-background-color:\n * button-hero-warning-disabled-text-color:\n * button-hero-danger-text-color:\n * button-hero-danger-bevel-color:\n * button-hero-danger-glow-color:\n * button-hero-danger-left-background-color:\n * button-hero-danger-right-background-color:\n * button-hero-danger-focus-left-background-color:\n * button-hero-danger-focus-right-background-color:\n * button-hero-danger-hover-left-background-color:\n * button-hero-danger-hover-right-background-color:\n * button-hero-danger-active-left-background-color:\n * button-hero-danger-active-right-background-color:\n * button-hero-danger-disabled-background-color:\n * button-hero-danger-disabled-text-color:\n * button-hero-control-text-color:\n * button-hero-control-bevel-color:\n * button-hero-control-glow-color:\n * button-hero-control-left-background-color:\n * button-hero-control-right-background-color:\n * button-hero-control-focus-left-background-color:\n * button-hero-control-focus-right-background-color:\n * button-hero-control-hover-left-background-color:\n * button-hero-control-hover-right-background-color:\n * button-hero-control-active-left-background-color:\n * button-hero-control-active-right-background-color:\n * button-hero-control-disabled-background-color:\n * button-hero-control-disabled-text-color:\n */\n@Component({\n selector: 'button[nbButton],a[nbButton],input[type=\"button\"][nbButton],input[type=\"submit\"][nbButton]',\n template: `\n @if (loading()) {\n <span class=\"nb-button-spinner\" aria-hidden=\"true\"></span>\n }\n <ng-content />\n `,\n providers: [\n { provide: NbButton, useExisting: NbButtonComponent }\n ]\n})\nexport class NbButtonComponent extends NbButton {\n /**\n * Sets the `hero` appearance, over `appearance` and the other boolean appearances.\n */\n readonly hero = input<boolean, NbBooleanInput>(false, { transform: convertToBoolProperty })\n\n /**\n * Shows a spinner in place of the content and ignores clicks, e.g. while a form submits.\n * Unlike `disabled`, the button keeps its focus and looks enabled.\n */\n readonly loading = input<boolean, NbBooleanInput>(false, { transform: convertToBoolProperty })\n\n constructor() {\n super()\n // A capture listener on the button runs before every click listener on it, including the ones its user\n // binds with (click), which a host listener can't guarantee.\n const listen = (event: Event) => this.onClick(event)\n const unlisten = inject(Renderer2).listen(this.hostElement.nativeElement, 'click', listen, { capture: true })\n inject(DestroyRef).onDestroy(unlisten)\n }\n\n protected override appearanceFlag() {\n return this.hero() ? 'hero' : super.appearanceFlag()\n }\n\n protected override isBusy() {\n return this.loading()\n }\n\n // The spinner is not content, so it doesn't count as a leading icon.\n protected override get nodes(): Node[] {\n return super.nodes.filter((node) => !(node instanceof Element && node.classList.contains('nb-button-spinner')))\n }\n\n onClick(event: Event) {\n if (this.properties().disabled || this.loading()) {\n event.preventDefault()\n event.stopImmediatePropagation()\n }\n }\n}\n","import { NgModule } from '@angular/core'\n\nimport { NbButtonComponent } from './button.component'\n\nconst NB_BUTTON_COMPONENTS = [\n NbButtonComponent\n]\n\n@NgModule({\n imports: [...NB_BUTTON_COMPONENTS],\n exports: [...NB_BUTTON_COMPONENTS]\n})\nexport class NbButtonModule { }\n","import { Directive, inject, input, linkedSignal, output } from '@angular/core'\n\nimport { ɵconvertToBoolProperty as convertToBoolProperty, NbBooleanInput, type NbButtonAppearance, type NbButtonToggleAppearance } from '@liquid-js/lyr-core/base'\nimport { NbButton } from '../button/base-button'\nimport { NB_BUTTON_GROUP } from './button-group-injection-tokens'\n\nconst toggleStatuses = ['primary', 'success', 'info', 'warning', 'danger', 'control']\n\n/**\n * A button with a pressed state, `aria-pressed` for assistive technologies. It's `basic` until pressed, then in its\n * status, or `primary` for a `basic` one. In an `nb-button-group` without `multiple` a click doesn't unpress it, as\n * with radio buttons.\n */\n@Directive({\n selector: 'button[nbButtonToggle]',\n providers: [{ provide: NbButton, useExisting: NbButtonToggleDirective }],\n exportAs: 'nbButtonToggle',\n host: {\n '[attr.aria-pressed]': 'isPressed()',\n '(click)': 'onClick()'\n }\n})\nexport class NbButtonToggleDirective<T = unknown> extends NbButton<NbButtonToggleAppearance> {\n protected readonly buttonGroup = inject(NB_BUTTON_GROUP, { optional: true })\n\n /** The buttons' default appearance, but `filled` for `hero`, which toggles don't have. */\n protected override defaultAppearance(appearance?: NbButtonAppearance): NbButtonToggleAppearance {\n return appearance && appearance !== 'hero' ? appearance : 'filled'\n }\n\n /**\n * Value the button group emits in `valueChange` while the toggle is pressed.\n */\n readonly value = input<T>()\n\n /**\n * Whether the button is pressed. Supports two-way binding with `[(pressed)]`.\n */\n readonly pressed = input<boolean, NbBooleanInput>(false, { transform: convertToBoolProperty })\n\n /**\n * Emits when a click or the button group changes the pressed state.\n */\n readonly pressedChange = output<boolean>()\n\n /**\n * The current pressed state: the `pressed` input, until a click or the button group changes it.\n */\n readonly isPressed = linkedSignal(() => this.pressed())\n\n protected override statusClasses() {\n const status = this.properties().status\n // A toggle is `basic` until pressed, and a `basic` one is `primary` when pressed.\n const pressedStatus = status === 'basic' ? 'primary' : status\n return [\n !this.isPressed() ? 'status-basic' : toggleStatuses.includes(pressedStatus) ? `status-${pressedStatus}` : undefined,\n // `success` isn't one of the status service's core statuses, so check the toggle's own list first.\n !toggleStatuses.includes(status) && this.statusService.isCustomStatus(status)\n ? this.statusService.getStatusClass(status)\n : undefined\n ]\n }\n\n onClick() {\n // In a group without `multiple` a click doesn't unpress the toggle, as with radio buttons.\n if (this.buttonGroup?.multiple() || !this.isPressed()) {\n this.setPressed(!this.isPressed())\n }\n }\n\n /**\n * Sets the pressed state and emits `pressedChange` when it changes.\n */\n setPressed(pressed: boolean) {\n if (this.isPressed() !== pressed) {\n this.isPressed.set(pressed)\n this.pressedChange.emit(pressed)\n }\n }\n}\n","import {\n Component,\n computed,\n contentChildren,\n DestroyRef,\n effect,\n ElementRef,\n forwardRef,\n inject,\n input,\n linkedSignal,\n output,\n PLATFORM_ID,\n untracked\n} from '@angular/core'\nimport { isPlatformBrowser } from '@angular/common'\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop'\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'\nimport { fromEvent, merge } from 'rxjs'\nimport { filter, switchMap } from 'rxjs/operators'\nimport { NB_DOCUMENT, injectNbDefaults, NbStatusService, ɵconvertToBoolProperty as convertToBoolProperty, NbBooleanInput, NbComponentSize, NbComponentShape, NbComponentOrCustomStatus, type NbButtonToggleAppearance, ɵsameControlValue as sameControlValue } from '@liquid-js/lyr-core/base'\nimport { NbButtonProperties } from '../button/base-button'\nimport { NbButtonToggleDirective } from './button-toggle.directive'\n\nimport { NB_BUTTON_GROUP } from './button-group-injection-tokens'\n\n// The value a group starts with, until it or the app sets one.\nconst NO_VALUE = Symbol('no value')\n\n/**\n * Whether a group's `multiple` isn't given. Angular's template type checker doesn't apply a type parameter's default:\n * without a `multiple` binding it infers `M` as its whole constraint (or `any`), which no binding gives.\n */\ntype NbButtonGroupMultipleUnset<M> = 0 extends 1 & M ? true : [NbBooleanInput] extends [M] ? true : false\n\n/**\n * A button group's value, for toggles of value `T` and a `multiple` of `M`, as a select's: the pressed toggle's value,\n * or `null` when none is pressed; with `multiple` (`true`, `''` or `'true'`), the values of all pressed toggles.\n */\nexport type NbButtonGroupValue<T, M extends NbBooleanInput = NbBooleanInput> =\n NbButtonGroupMultipleUnset<M> extends true ? T | null : M extends true | '' | 'true' ? T[] : T | null\n\n// The values a group's value holds.\nfunction valuesOf<T>(value: T | T[] | null | undefined): T[] {\n return Array.isArray(value) ? value : value == null ? [] : [value]\n}\n\n/**\n * Groups buttons into one strip, and sets their appearance, size, shape, status and disabled state as a group.\n *\n * @stacked-example(Button Group Showcase, button-group/button-group-showcase.component)\n *\n * ### Installation\n *\n * Import `NbButtonGroupComponent`, `NbButtonToggleDirective` into your standalone component:\n * ```ts\n * @Component({\n * imports: [NbButtonGroupComponent, NbButtonToggleDirective],\n * })\n * export class PageComponent { }\n * ```\n *\n * With NgModules:\n *\n * Import `NbButtonGroupModule` to your feature module.\n * ```ts\n * @NgModule({\n * imports: [\n * // ...\n * NbButtonGroupModule,\n * ],\n * })\n * export class PageModule { }\n * ```\n *\n * ### Usage\n *\n * A group holds `[nbButton]`s or `[nbButtonToggle]`s.\n * @stacked-example(Button and Button Toggle Groups, button-group/button-and-button-toggle-groups.component)\n *\n * By default only one toggle in a group is pressed at a time, as in a radio group, and clicking it again keeps it\n * pressed. With `multiple` on the group any number of toggles stays pressed.\n * @stacked-example(Button Group Multiple, button-group/button-group-multiple.component)\n *\n * The group's value is the value of the pressed toggle, given to a toggle with its `value` input, or `null` when none\n * is pressed; with `multiple`, it's the values of all pressed toggles, as a select's. Listen to `(valueChange)`, bind\n * `value` both ways, e.g. `<nb-button-group [(value)]=\"track\">`, to press toggles from the app too, or use the group\n * in a form, as a radio group, with `formControl`, `ngModel` or `formField`; the values have the type of what it's\n * bound to.\n * @stacked-example(Button Group Value Change, button-group/button-group-value-change.component)\n *\n * `disabled` on the group, or its form control, disables all its buttons.\n * @stacked-example(Button Group Disabled, button-group/button-group-disabled.component)\n *\n * The group's `appearance`, `status`, `size` and `shape` replace those of its buttons.\n *\n * Button group appearances:\n * @stacked-example(Button Group Appearances, button-group/button-group-appearances.component)\n *\n * Button group statuses:\n * @stacked-example(Button Group Statuses, button-group/button-group-statuses.component)\n *\n * Button group sizes:\n * @stacked-example(Button Group Sizes, button-group/button-group-sizes.component)\n *\n * Buttons group shapes:\n * @additional-example(Button Group Shapes, button-group/button-group-shapes.component)\n * @styles\n *\n * button-group-filled-button-basic-text-color:\n * button-group-filled-button-primary-text-color:\n * button-group-filled-button-success-text-color:\n * button-group-filled-button-info-text-color:\n * button-group-filled-button-warning-text-color:\n * button-group-filled-button-danger-text-color:\n * button-group-filled-button-control-text-color:\n * button-group-filled-basic-divider-color:\n * button-group-filled-primary-divider-color:\n * button-group-filled-success-divider-color:\n * button-group-filled-info-divider-color:\n * button-group-filled-warning-divider-color:\n * button-group-filled-danger-divider-color:\n * button-group-filled-control-divider-color:\n * button-group-ghost-divider-color:\n * button-group-separate-gap:\n **/\n@Component({\n selector: 'nb-button-group',\n template: ' <ng-content /> ',\n providers: [\n { provide: NB_BUTTON_GROUP, useExisting: NbButtonGroupComponent },\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => NbButtonGroupComponent), multi: true }\n ],\n host: {\n 'role': 'group',\n '[class]': 'customStatusClass()',\n '[class.separate]': 'separate()'\n }\n})\nexport class NbButtonGroupComponent<T = unknown, M extends NbBooleanInput = NbBooleanInput>\nimplements ControlValueAccessor {\n // The app's defaults for this type, which the inputs below start from.\n protected readonly nbDefaults = injectNbDefaults('buttonGroup')\n\n protected readonly statusService = inject(NbStatusService)\n\n // The toggles in a group carry values of the group's type.\n protected readonly toggles = contentChildren<NbButtonToggleDirective<T>>(NbButtonToggleDirective)\n\n /**\n * Size of the buttons: `tiny`, `small`, `medium`, `large` or `giant`. Unset, it follows the app's default, or\n * `medium`.\n */\n readonly sizeInput = input<NbComponentSize | undefined>(undefined, { alias: 'size' })\n /** The size in use: the input's, the app's default, or 'medium'. */\n readonly size = linkedSignal<NbComponentSize>(() => this.sizeInput() ?? this.nbDefaults().size ?? 'medium')\n\n /**\n * Status of the buttons: `basic` (default), `primary`, `info`, `success`, `warning`, `danger`, `control` or a\n * custom one.\n */\n readonly status = input<NbComponentOrCustomStatus>('basic')\n\n /**\n * Shape of the buttons: `rectangle`, `semi-round` or `round`. Unset, it follows the app's default, or `rectangle`.\n */\n readonly shapeInput = input<NbComponentShape | undefined>(undefined, { alias: 'shape' })\n /** The shape in use: the input's, the app's default, or 'rectangle'. */\n readonly shape = linkedSignal<NbComponentShape>(() => this.shapeInput() ?? this.nbDefaults().shape ?? 'rectangle')\n\n /**\n * Appearance of the buttons: `filled`, `outline` or `ghost`. Unset, it follows the app's default, or `filled`.\n */\n readonly appearanceInput = input<NbButtonToggleAppearance | undefined>(undefined, { alias: 'appearance' })\n /** The appearance in use: the input's, the app's default, or 'filled'. */\n readonly appearance = linkedSignal<NbButtonToggleAppearance>(() => this.appearanceInput() ?? this.nbDefaults().appearance ?? 'filled')\n\n /**\n * Disables the buttons in the group; a form control's disabled state does too.\n */\n readonly disabled = input<boolean, NbBooleanInput>(false, { transform: convertToBoolProperty })\n\n /** Whether the buttons are disabled: the `disabled` input, or the form's disabled state, whichever changed last. */\n readonly isDisabled = linkedSignal(() => this.disabled())\n\n /**\n * Keeps the buttons apart, each with its own corners and border, wrapping onto more rows as they need, e.g. for\n * times to pick from; by default they're joined in one strip.\n */\n readonly separate = input<boolean, NbBooleanInput>(false, { transform: convertToBoolProperty })\n\n /**\n * Lets any number of toggles stay pressed, and makes the value an array. Off by default: the toggle pressed last\n * stays pressed, and clicking it again doesn't unpress it.\n */\n readonly multiple = input<boolean, M>(false, { transform: convertToBoolProperty })\n\n /**\n * Sets the `filled` appearance, over `appearance`.\n */\n readonly filled = input<boolean, NbBooleanInput>(false, { transform: convertToBoolProperty })\n\n /**\n * Sets the `outline` appearance, over `appearance` and `filled`.\n */\n readonly outline = input<boolean, NbBooleanInput>(false, { transform: convertToBoolProperty })\n\n /**\n * Sets the `ghost` appearance, over `appearance`, `filled` and `outline`.\n */\n readonly ghost = input<boolean, NbBooleanInput>(false, { transform: convertToBoolProperty })\n\n /**\n * The value of the pressed toggle, or `null`; with `multiple`, the values of the pressed toggles. `valueChange`\n * emits as they're pressed; set it, or bind it both ways with `[(value)]`, to press the toggles with those values.\n */\n readonly value = input<T | T[] | null>()\n /** Emits the value after the change detection that pressed or unpressed a toggle, and only when it differs. */\n readonly valueChange = output<NbButtonGroupValue<T, M>>()\n\n // The value: the `value` input or the form's, whichever changed last, or the pressed toggles'.\n protected readonly valueState = linkedSignal<T | T[] | null | undefined | typeof NO_VALUE>(() => {\n const value = this.value()\n return value === undefined ? NO_VALUE : value\n })\n\n /**\n * The properties the buttons in the group render with.\n */\n readonly buttonProperties = computed<NbButtonProperties>(() => ({\n appearance: (this.ghost() && 'ghost') || (this.outline() && 'outline') || (this.filled() && 'filled') ||\n this.appearance(),\n size: this.size(),\n shape: this.shape(),\n status: this.status(),\n disabled: this.isDisabled()\n }))\n\n protected readonly customStatusClass = computed(() =>\n this.statusService.isCustomStatus(this.status()) ? [this.statusService.getStatusClass(this.status())] : []\n )\n\n // The value the group set itself, or the default it starts with; a value other than this came from the app.\n protected ownValue: T | T[] | null | typeof NO_VALUE = NO_VALUE\n\n protected readonly hostElement = inject<ElementRef<HTMLElement>>(ElementRef)\n protected readonly document = inject(NB_DOCUMENT)\n protected onChange: (value: NbButtonGroupValue<T, M>) => void = () => {}\n protected onTouched: () => void = () => {}\n\n constructor() {\n if (isPlatformBrowser(inject(PLATFORM_ID))) {\n this.subscribeOnBlur()\n }\n\n // The app's value presses the toggles with its values, and only those.\n effect(() => {\n const state = this.valueState()\n if (state === this.ownValue || state === NO_VALUE) {\n return\n }\n const value = valuesOf<T>(state)\n const toggles = this.toggles()\n untracked(() =>\n toggles.forEach((toggle) => {\n const toggleValue = toggle.value()\n toggle.setPressed(toggleValue !== undefined && value.includes(toggleValue))\n })\n )\n })\n\n let pressedBefore = new Set<NbButtonToggleDirective<T>>()\n effect(() => {\n let pressed = this.toggles().filter((toggle) => toggle.isPressed())\n // Without `multiple`, the toggle pressed last stays pressed.\n if (!this.multiple() && pressed.length > 1) {\n const kept = pressed.filter((toggle) => !pressedBefore.has(toggle)).pop() ?? pressed[0]\n untracked(() => pressed.filter((toggle) => toggle !== kept).forEach((toggle) => toggle.setPressed(false)))\n pressed = [kept]\n }\n pressedBefore = new Set(pressed)\n\n const value = pressed.map((toggle) => toggle.value()).filter((item): item is T => typeof item !== 'undefined')\n // Emit after change detection, as the group did before, so handlers can update what's already rendered.\n queueMicrotask(() => this.emitValue(value))\n })\n }\n\n registerOnChange(fn: (value: NbButtonGroupValue<T, M>) => void) {\n this.onChange = fn\n }\n\n registerOnTouched(fn: () => void) {\n this.onTouched = fn\n }\n\n // Untracked, as forms write values from wherever the app sets them, e.g. an effect that mustn't come to depend\n // on the control.\n writeValue(value: NbButtonGroupValue<T, M> | undefined) {\n untracked(() => {\n const next = value ?? null\n if (!sameControlValue(this.valueState(), next)) {\n this.valueState.set(next)\n }\n })\n }\n\n setDisabledState(isDisabled: boolean) {\n this.isDisabled.set(isDisabled)\n }\n\n protected emitValue(values: T[]) {\n const state = this.valueState()\n const last = state === NO_VALUE ? [] : valuesOf<T>(state)\n if (values.length === last.length && values.every((item, index) => item === last[index])) {\n return\n }\n const value = (this.multiple() ? values : (values[0] ?? null)) as NbButtonGroupValue<T, M>\n this.ownValue = value\n this.valueState.set(value)\n this.valueChange.emit(value)\n this.onChange(value)\n }\n\n // Leaving the group, by focus or a click elsewhere, touches its control, as leaving a radio group does.\n protected subscribeOnBlur() {\n const hostElement = this.hostElement.nativeElement\n fromEvent<Event>(hostElement, 'focusin')\n .pipe(\n filter((event) => hostElement.contains(event.target as Node)),\n switchMap(() => merge(fromEvent<Event>(this.document, 'focusin'), fromEvent<Event>(this.document, 'click'))),\n filter((event) => !hostElement.contains(event.target as Node)),\n takeUntilDestroyed(inject(DestroyRef))\n )\n .subscribe(() => this.onTouched())\n }\n}\n","import { NgModule } from '@angular/core'\nimport { NbButtonGroupComponent } from './button-group.component'\nimport { NbButtonToggleDirective } from './button-toggle.directive'\n\n@NgModule({\n imports: [NbButtonGroupComponent, NbButtonToggleDirective],\n exports: [NbButtonGroupComponent, NbButtonToggleDirective]\n})\nexport class NbButtonGroupModule { }\n"],"mappings":";;;;;;;;;AAGA,MAAa,kBAAkB,IAAI,eAAuC,iBAAiB;ACkD3F,IAAsB,WAAtB,MAAsB,SAAQ;CAuGhB,kBAAkB,YAA+B;EACvD,OAAQ,cAAc;CAC1B;CAsBU,iBAAc;EACpB,IAAI,KAAK,MAAK,GACV,OAAO;EAEX,IAAI,KAAK,QAAO,GACZ,OAAO;EAEX,IAAI,KAAK,OAAM,GACX,OAAO;CAGf;CAKU,SAAM;EACZ,OAAO;CACX;CAEU,gBAAa;EACnB,OAAO,CAAC,KAAK,cAAc,eAAe,KAAK,WAAU,CAAE,CAAC,MAAM,CAAC;CAC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GAAA,MAAA;GAAmB,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAnB;EAAA,KAAA,OAAA,GAAA,oBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAmB,SAAA,CAHlB,wBAAwB,uBAAuB;GAAA,SAAA,CAC/C,wBAAwB,uBAAuB;EAAA,CAAA;CAAA;CAEhD;EAAA,KAAA,OAAA,GAAA,oBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;EAAmB,CAAA;CAAA;;AAAnB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAmB,YAAA,CAAA;EAJ/B,MAAA;EAAS,MAAA,CAAA;GACN,SAAS,CAAC,wBAAwB,uBAAuB;GACzD,SAAS,CAAC,wBAAwB,uBAAuB;EAC5D,CAAA"}
|
|
@@ -1486,7 +1486,7 @@ var NbChatFormComponent = class NbChatFormComponent {
|
|
|
1486
1486
|
observer.observe(button);
|
|
1487
1487
|
onCleanup(() => {
|
|
1488
1488
|
observer.disconnect();
|
|
1489
|
-
row.style.removeProperty("--nb-chat-send-width");
|
|
1489
|
+
if (!row.contains(button)) row.style.removeProperty("--nb-chat-send-width");
|
|
1490
1490
|
});
|
|
1491
1491
|
});
|
|
1492
1492
|
if (typeof CSS === "undefined" || CSS.supports("field-sizing", "content")) return;
|